+
+
+
\ No newline at end of file
diff --git a/src/Jackett.Web/app.js b/src/Jackett.Web/app.js
new file mode 100644
index 000000000..8702fe8bc
--- /dev/null
+++ b/src/Jackett.Web/app.js
@@ -0,0 +1,39 @@
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
+ switch (arguments.length) {
+ case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target);
+ case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0);
+ case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc);
+ }
+};
+var __metadata = (this && this.__metadata) || function (k, v) {
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
+};
+import { SignalRService } from './Services/SignalRService';
+import { autoinject } from 'aurelia-framework';
+export let App = class {
+ constructor(sr) {
+ sr.start();
+ }
+ configureRouter(config, router) {
+ config.title = 'Jackett';
+ // Notice: the overall template is hardcoded to routes based on index.
+ config.map([
+ { route: ['', 'welcome'], name: 'welcome', moduleId: './views/home', title: 'Home' },
+ { route: ['indexers'], name: 'indexers', moduleId: './views/indexers', title: 'Indexers' },
+ { route: ['irc'], name: 'irc', moduleId: './views/irc', title: 'IRC' },
+ { route: ['settings'], name: 'settings', moduleId: './views/settings', title: 'Settings' },
+ { route: ['settings'], name: 'settings', moduleId: './views/settings', title: 'Server settings' },
+ { route: 'irc-settings', name: 'irc-settings', moduleId: './views/irc-settings', title: 'IRC Settings' },
+ { route: 'irc-profile-edit/:name', name: 'irc-profile-edit', moduleId: './views/irc-settings-edit', title: 'Edit Profile' },
+ { route: 'irc-profile-create', name: 'irc-profile-create', moduleId: './views/irc-settings-edit', title: 'Create Profile' },
+ { route: 'autodlprofile-configure/:type', name: 'autodlprofile-configure', moduleId: './views/autodlprofile-configure', title: 'AutoDL Profile Config' }
+ ]);
+ this.router = router;
+ }
+};
+App = __decorate([
+ autoinject,
+ __metadata('design:paramtypes', [SignalRService])
+], App);
+//# sourceMappingURL=app.js.map
\ No newline at end of file
diff --git a/src/Jackett.Web/app.js.map b/src/Jackett.Web/app.js.map
new file mode 100644
index 000000000..246b887f6
--- /dev/null
+++ b/src/Jackett.Web/app.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"app.js","sourceRoot":"","sources":["app.ts"],"names":["App","App.constructor","App.configureRouter"],"mappings":";;;;;;;;;;;OACO,EAAC,cAAc,EAAC,MAAM,2BAA2B;OACjD,EAAC,UAAU,EAAC,MAAM,mBAAmB;AAE5C;IAIIA,YAAYA,EAAkBA;QAC1BC,EAAEA,CAACA,KAAKA,EAAEA,CAACA;IACfA,CAACA;IAEDD,eAAeA,CAACA,MAAMA,EAAEA,MAAcA;QAClCE,MAAMA,CAACA,KAAKA,GAAGA,SAASA,CAACA;QACzBA,sEAAsEA;QACtEA,MAAMA,CAACA,GAAGA,CAACA;YACPA,EAAEA,KAAKA,EAAEA,CAACA,EAAEA,EAAEA,SAASA,CAACA,EAAEA,IAAIA,EAAEA,SAASA,EAAEA,QAAQA,EAAEA,cAAcA,EAAEA,KAAKA,EAAEA,MAAMA,EAAEA;YACpFA,EAAEA,KAAKA,EAAEA,CAACA,UAAUA,CAACA,EAAEA,IAAIA,EAAEA,UAAUA,EAAEA,QAAQA,EAAEA,kBAAkBA,EAAEA,KAAKA,EAAEA,UAAUA,EAAEA;YAC1FA,EAAEA,KAAKA,EAAEA,CAACA,KAAKA,CAACA,EAAEA,IAAIA,EAAEA,KAAKA,EAAEA,QAAQA,EAAEA,aAAaA,EAAEA,KAAKA,EAAEA,KAAKA,EAAEA;YACtEA,EAAEA,KAAKA,EAAEA,CAACA,UAAUA,CAACA,EAAEA,IAAIA,EAAEA,UAAUA,EAAEA,QAAQA,EAAEA,kBAAkBA,EAAEA,KAAKA,EAAEA,UAAUA,EAAEA;YAC1FA,EAAEA,KAAKA,EAAEA,CAACA,UAAUA,CAACA,EAAEA,IAAIA,EAAEA,UAAUA,EAAEA,QAAQA,EAAEA,kBAAkBA,EAAEA,KAAKA,EAAEA,iBAAiBA,EAAEA;YACjGA,EAAEA,KAAKA,EAAEA,cAAcA,EAAEA,IAAIA,EAAEA,cAAcA,EAAEA,QAAQA,EAAEA,sBAAsBA,EAAEA,KAAKA,EAAEA,cAAcA,EAAEA;YACxGA,EAAEA,KAAKA,EAAEA,wBAAwBA,EAAEA,IAAIA,EAAEA,kBAAkBA,EAAEA,QAAQA,EAAEA,2BAA2BA,EAAEA,KAAKA,EAAEA,cAAcA,EAAEA;YAC3HA,EAAEA,KAAKA,EAAEA,oBAAoBA,EAAEA,IAAIA,EAAEA,oBAAoBA,EAAEA,QAAQA,EAAEA,2BAA2BA,EAAEA,KAAKA,EAAEA,gBAAgBA,EAAEA;YAC3HA,EAAEA,KAAKA,EAAEA,+BAA+BA,EAAEA,IAAIA,EAAEA,yBAAyBA,EAAEA,QAAQA,EAAEA,iCAAiCA,EAAEA,KAAKA,EAAEA,uBAAuBA,EAAEA;SAC3JA,CAACA,CAACA;QAEHA,IAAIA,CAACA,MAAMA,GAAGA,MAAMA,CAACA;IACzBA,CAACA;AACLF,CAACA;AAzBD;IAAC,UAAU;;QAyBV;AAAA"}
\ No newline at end of file
diff --git a/src/Jackett.Web/app.ts b/src/Jackett.Web/app.ts
new file mode 100644
index 000000000..54095d1bd
--- /dev/null
+++ b/src/Jackett.Web/app.ts
@@ -0,0 +1,30 @@
+import {Router} from 'aurelia-router';
+import {SignalRService} from './Services/SignalRService'
+import {autoinject} from 'aurelia-framework';
+
+@autoinject
+export class App {
+ router: Router;
+
+ constructor(sr: SignalRService) {
+ sr.start();
+ }
+
+ configureRouter(config, router: Router) {
+ config.title = 'Jackett';
+ // Notice: the overall template is hardcoded to routes based on index.
+ config.map([
+ { route: ['', 'welcome'], name: 'welcome', moduleId: './views/home', title: 'Home' },
+ { route: ['indexers'], name: 'indexers', moduleId: './views/indexers', title: 'Indexers' },
+ { route: ['irc'], name: 'irc', moduleId: './views/irc', title: 'IRC' },
+ { route: ['settings'], name: 'settings', moduleId: './views/settings', title: 'Settings' },
+ { route: ['settings'], name: 'settings', moduleId: './views/settings', title: 'Server settings' },
+ { route: 'irc-settings', name: 'irc-settings', moduleId: './views/irc-settings', title: 'IRC Settings' },
+ { route: 'irc-profile-edit/:name', name: 'irc-profile-edit', moduleId: './views/irc-settings-edit', title: 'Edit Profile' },
+ { route: 'irc-profile-create', name: 'irc-profile-create', moduleId: './views/irc-settings-edit', title: 'Create Profile' },
+ { route: 'autodlprofile-configure/:type', name: 'autodlprofile-configure', moduleId: './views/autodlprofile-configure', title: 'AutoDL Profile Config' }
+ ]);
+
+ this.router = router;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/aureliafile.js b/src/Jackett.Web/aureliafile.js
new file mode 100644
index 000000000..89c961814
--- /dev/null
+++ b/src/Jackett.Web/aureliafile.js
@@ -0,0 +1,24 @@
+var aurelia = require('aurelia-cli');
+
+aurelia.command('bundle', {
+ js: {
+ "dist/app-bundle": {
+ modules: [
+ 'dist/*',
+ 'aurelia-bootstrapper',
+ 'aurelia-http-client',
+ 'aurelia-router',
+ 'aurelia-animator-css',
+ 'github:aurelia/templating-binding@0.14.0',
+ 'github:aurelia/templating-resources@0.14.0',
+ 'github:aurelia/templating-router@0.15.0',
+ 'github:aurelia/loader-default@0.9.5',
+ 'github:aurelia/history-browser@0.7.0'
+ ],
+ options: {
+ inject: true,
+ minify: true
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/src/Jackett.Web/config.js b/src/Jackett.Web/config.js
new file mode 100644
index 000000000..ff19a0c95
--- /dev/null
+++ b/src/Jackett.Web/config.js
@@ -0,0 +1,188 @@
+System.config({
+ baseURL: "/dev",
+ defaultJSExtensions: true,
+ transpiler: "babel",
+ babelOptions: {
+ "optional": [
+ "runtime",
+ "optimisation.modules.system"
+ ]
+ },
+ paths: {
+ "jackett-hubs": "/signalr/hubs",
+ "github:*": "jspm_packages/github/*",
+ "npm:*": "jspm_packages/npm/*"
+ },
+ map: {
+ "aurelia-animator-css": "github:aurelia/animator-css@0.15.0",
+ "aurelia-bootstrapper": "github:aurelia/bootstrapper@0.16.0",
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-fetch-client": "github:aurelia/fetch-client@0.2.0",
+ "aurelia-framework": "github:aurelia/framework@0.15.0",
+ "aurelia-http-client": "github:aurelia/http-client@0.11.0",
+ "aurelia-router": "github:aurelia/router@0.11.0",
+ "aurelia-validation": "github:aurelia/validation@0.2.8",
+ "babel": "npm:babel-core@5.8.23",
+ "babel-runtime": "npm:babel-runtime@5.8.20",
+ "core-js": "npm:core-js@1.1.4",
+ "font-awesome": "npm:font-awesome@4.4.0",
+ "jquery": "github:components/jquery@2.1.4",
+ "moment": "npm:moment@2.10.6",
+ "ms-signalr-client": "npm:ms-signalr-client@2.2.2",
+ "polymer/mutationobservers": "github:polymer/mutationobservers@0.4.2",
+ "semantic-ui": "github:Semantic-Org/Semantic-UI@2.1.3",
+ "whatwg-fetch": "npm:whatwg-fetch@0.9.0",
+ "github:Semantic-Org/Semantic-UI@2.1.3": {
+ "css": "github:systemjs/plugin-css@0.1.16",
+ "jquery": "github:components/jquery@2.1.4"
+ },
+ "github:aurelia/animator-css@0.15.0": {
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3",
+ "aurelia-templating": "github:aurelia/templating@0.14.4"
+ },
+ "github:aurelia/binding@0.8.6": {
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3",
+ "aurelia-task-queue": "github:aurelia/task-queue@0.6.2",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/bootstrapper@0.16.0": {
+ "aurelia-event-aggregator": "github:aurelia/event-aggregator@0.7.0",
+ "aurelia-framework": "github:aurelia/framework@0.15.0",
+ "aurelia-history": "github:aurelia/history@0.6.1",
+ "aurelia-history-browser": "github:aurelia/history-browser@0.7.0",
+ "aurelia-loader-default": "github:aurelia/loader-default@0.9.5",
+ "aurelia-logging-console": "github:aurelia/logging-console@0.6.2",
+ "aurelia-router": "github:aurelia/router@0.11.0",
+ "aurelia-templating": "github:aurelia/templating@0.14.4",
+ "aurelia-templating-binding": "github:aurelia/templating-binding@0.14.0",
+ "aurelia-templating-resources": "github:aurelia/templating-resources@0.14.0",
+ "aurelia-templating-router": "github:aurelia/templating-router@0.15.0",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/dependency-injection@0.9.2": {
+ "aurelia-logging": "github:aurelia/logging@0.6.4",
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/event-aggregator@0.7.0": {
+ "aurelia-logging": "github:aurelia/logging@0.6.4"
+ },
+ "github:aurelia/fetch-client@0.2.0": {
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/framework@0.15.0": {
+ "aurelia-binding": "github:aurelia/binding@0.8.6",
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-loader": "github:aurelia/loader@0.8.7",
+ "aurelia-logging": "github:aurelia/logging@0.6.4",
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3",
+ "aurelia-path": "github:aurelia/path@0.8.1",
+ "aurelia-task-queue": "github:aurelia/task-queue@0.6.2",
+ "aurelia-templating": "github:aurelia/templating@0.14.4",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/history-browser@0.7.0": {
+ "aurelia-history": "github:aurelia/history@0.6.1",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/http-client@0.11.0": {
+ "aurelia-path": "github:aurelia/path@0.9.0",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/loader-default@0.9.5": {
+ "aurelia-loader": "github:aurelia/loader@0.8.7",
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3"
+ },
+ "github:aurelia/loader@0.8.7": {
+ "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0",
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3",
+ "aurelia-path": "github:aurelia/path@0.8.1",
+ "core-js": "npm:core-js@0.9.18",
+ "webcomponentsjs": "github:webcomponents/webcomponentsjs@0.6.3"
+ },
+ "github:aurelia/logging-console@0.6.2": {
+ "aurelia-logging": "github:aurelia/logging@0.6.4"
+ },
+ "github:aurelia/metadata@0.7.3": {
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/route-recognizer@0.6.2": {
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/router@0.11.0": {
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-event-aggregator": "github:aurelia/event-aggregator@0.7.0",
+ "aurelia-history": "github:aurelia/history@0.6.1",
+ "aurelia-logging": "github:aurelia/logging@0.6.4",
+ "aurelia-path": "github:aurelia/path@0.8.1",
+ "aurelia-route-recognizer": "github:aurelia/route-recognizer@0.6.2",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/templating-binding@0.14.0": {
+ "aurelia-binding": "github:aurelia/binding@0.8.6",
+ "aurelia-logging": "github:aurelia/logging@0.6.4",
+ "aurelia-templating": "github:aurelia/templating@0.14.4"
+ },
+ "github:aurelia/templating-resources@0.14.0": {
+ "aurelia-binding": "github:aurelia/binding@0.8.6",
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-logging": "github:aurelia/logging@0.6.4",
+ "aurelia-task-queue": "github:aurelia/task-queue@0.6.2",
+ "aurelia-templating": "github:aurelia/templating@0.14.4",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/templating-router@0.15.0": {
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3",
+ "aurelia-path": "github:aurelia/path@0.8.1",
+ "aurelia-router": "github:aurelia/router@0.11.0",
+ "aurelia-templating": "github:aurelia/templating@0.14.4"
+ },
+ "github:aurelia/templating@0.14.4": {
+ "aurelia-binding": "github:aurelia/binding@0.8.6",
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-html-template-element": "github:aurelia/html-template-element@0.2.0",
+ "aurelia-loader": "github:aurelia/loader@0.8.7",
+ "aurelia-logging": "github:aurelia/logging@0.6.4",
+ "aurelia-metadata": "github:aurelia/metadata@0.7.3",
+ "aurelia-path": "github:aurelia/path@0.8.1",
+ "aurelia-task-queue": "github:aurelia/task-queue@0.6.2",
+ "core-js": "npm:core-js@0.9.18"
+ },
+ "github:aurelia/validation@0.2.8": {
+ "aurelia-binding": "github:aurelia/binding@0.8.6",
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@0.9.2",
+ "aurelia-logging": "github:aurelia/logging@0.6.4",
+ "aurelia-templating": "github:aurelia/templating@0.14.4"
+ },
+ "github:jspm/nodelibs-process@0.1.1": {
+ "process": "npm:process@0.10.1"
+ },
+ "npm:babel-runtime@5.8.20": {
+ "process": "github:jspm/nodelibs-process@0.1.1"
+ },
+ "npm:core-js@0.9.18": {
+ "fs": "github:jspm/nodelibs-fs@0.1.2",
+ "process": "github:jspm/nodelibs-process@0.1.1",
+ "systemjs-json": "github:systemjs/plugin-json@0.1.0"
+ },
+ "npm:core-js@1.1.4": {
+ "fs": "github:jspm/nodelibs-fs@0.1.2",
+ "process": "github:jspm/nodelibs-process@0.1.1",
+ "systemjs-json": "github:systemjs/plugin-json@0.1.0"
+ },
+ "npm:font-awesome@4.4.0": {
+ "css": "github:systemjs/plugin-css@0.1.16"
+ },
+ "npm:jquery@2.1.4": {
+ "process": "github:jspm/nodelibs-process@0.1.1"
+ },
+ "npm:moment@2.10.6": {
+ "process": "github:jspm/nodelibs-process@0.1.1"
+ },
+ "npm:ms-signalr-client@2.2.2": {
+ "jquery": "npm:jquery@2.1.4"
+ }
+ }
+});
diff --git a/src/Jackett.Web/content/jacket_medium.png b/src/Jackett.Web/content/jacket_medium.png
new file mode 100644
index 000000000..7735dcbf1
Binary files /dev/null and b/src/Jackett.Web/content/jacket_medium.png differ
diff --git a/src/Jackett.Web/gulpfile.js b/src/Jackett.Web/gulpfile.js
new file mode 100644
index 000000000..4b28ec106
--- /dev/null
+++ b/src/Jackett.Web/gulpfile.js
@@ -0,0 +1,3 @@
+// all gulp tasks are located in the ./build/tasks directory
+// gulp configuration is in files in ./build directory
+require('require-dir')('build/tasks');
diff --git a/src/Jackett.Web/main.js b/src/Jackett.Web/main.js
new file mode 100644
index 000000000..c363549b7
--- /dev/null
+++ b/src/Jackett.Web/main.js
@@ -0,0 +1,14 @@
+import { LogManager } from 'aurelia-framework';
+import { ConsoleAppender } from 'aurelia-logging-console';
+import 'aurelia-validation';
+import { ValidateCustomAttributeViewStrategy } from 'aurelia-validation';
+LogManager.addAppender(new ConsoleAppender());
+LogManager.setLevel(LogManager.logLevel.debug);
+export function configure(aurelia) {
+ aurelia.use.standardConfiguration()
+ .plugin('./resources/MomentValueConverter', undefined)
+ .developmentLogging()
+ .plugin('aurelia-validation', (config) => { config.useViewStrategy(ValidateCustomAttributeViewStrategy.TWBootstrapAppendToMessage); });
+ aurelia.start().then(a => a.setRoot('app', document.body));
+}
+//# sourceMappingURL=main.js.map
\ No newline at end of file
diff --git a/src/Jackett.Web/main.js.map b/src/Jackett.Web/main.js.map
new file mode 100644
index 000000000..6525b7e3a
--- /dev/null
+++ b/src/Jackett.Web/main.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"main.js","sourceRoot":"","sources":["main.ts"],"names":["configure"],"mappings":"OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB;OACrC,EAAC,eAAe,EAAC,MAAM,yBAAyB;OAEhD,oBAAoB;OACpB,EAAC,mCAAmC,EAAC,MAAM,oBAAoB;AAEtE,UAAU,CAAC,WAAW,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC;AAC9C,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAE/C,0BAA0B,OAAgB;IACtCA,OAAOA,CAACA,GAAGA,CAACA,qBAAqBA,EAAEA;SAC9BA,MAAMA,CAACA,kCAAkCA,EAAEA,SAASA,CAACA;SACrDA,kBAAkBA,EAAEA;SACpBA,MAAMA,CAACA,oBAAoBA,EAAEA,CAACA,MAAMA,OAAOA,MAAMA,CAACA,eAAeA,CAACA,mCAAmCA,CAACA,0BAA0BA,CAACA,CAACA,CAACA,CAACA,CAACA,CAACA;IAE3IA,OAAOA,CAACA,KAAKA,EAAEA,CAACA,IAAIA,CAACA,CAACA,IAAIA,CAACA,CAACA,OAAOA,CAACA,KAAKA,EAAEA,QAAQA,CAACA,IAAIA,CAACA,CAACA,CAACA;AAC/DA,CAACA"}
\ No newline at end of file
diff --git a/src/Jackett.Web/main.ts b/src/Jackett.Web/main.ts
new file mode 100644
index 000000000..d482b5fb2
--- /dev/null
+++ b/src/Jackett.Web/main.ts
@@ -0,0 +1,17 @@
+import {LogManager} from 'aurelia-framework';
+import {ConsoleAppender} from 'aurelia-logging-console';
+import {Aurelia} from 'aurelia-framework';
+import 'aurelia-validation';
+import {ValidateCustomAttributeViewStrategy} from 'aurelia-validation';
+
+LogManager.addAppender(new ConsoleAppender());
+LogManager.setLevel(LogManager.logLevel.debug);
+
+export function configure(aurelia: Aurelia) {
+ aurelia.use.standardConfiguration()
+ .plugin('./resources/MomentValueConverter', undefined)
+ .developmentLogging()
+ .plugin('aurelia-validation', (config) => { config.useViewStrategy(ValidateCustomAttributeViewStrategy.TWBootstrapAppendToMessage); });
+
+ aurelia.start().then(a => a.setRoot('app', document.body));
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/package.json b/src/Jackett.Web/package.json
new file mode 100644
index 000000000..08ca9a507
--- /dev/null
+++ b/src/Jackett.Web/package.json
@@ -0,0 +1,34 @@
+{
+ "jspm": {
+ "directories": {},
+ "dependencies": {
+ "aurelia-animator-css": "github:aurelia/animator-css@^0.15.0",
+ "aurelia-bootstrapper": "github:aurelia/bootstrapper@^0.16.0",
+ "aurelia-dependency-injection": "github:aurelia/dependency-injection@^0.9.2",
+ "aurelia-fetch-client": "github:aurelia/fetch-client@^0.2.0",
+ "aurelia-framework": "github:aurelia/framework@^0.15.0",
+ "aurelia-http-client": "github:aurelia/http-client@^0.11.0",
+ "aurelia-router": "github:aurelia/router@^0.11.0",
+ "aurelia-validation": "github:aurelia/validation@^0.2.8",
+ "font-awesome": "npm:font-awesome@^4.4.0",
+ "jquery": "github:components/jquery@^2.1.4",
+ "moment": "npm:moment@^2.10.6",
+ "ms-signalr-client": "npm:ms-signalr-client@^2.2.2",
+ "polymer/mutationobservers": "github:polymer/mutationobservers@^0.4.2",
+ "semantic-ui": "github:Semantic-Org/Semantic-UI@^2.0.8",
+ "whatwg-fetch": "npm:whatwg-fetch@^0.9.0"
+ },
+ "devDependencies": {
+ "babel": "npm:babel-core@^5.8.22",
+ "babel-runtime": "npm:babel-runtime@^5.8.20",
+ "core-js": "npm:core-js@^1.1.0"
+ }
+ },
+ "devDependencies": {
+ "aurelia-cli": "^0.3.1",
+ "jspm": "^0.16.2"
+ },
+ "dependencies": {
+ "whatwg-fetch": "^0.9.0"
+ }
+}
diff --git a/src/Jackett.Web/packages.config b/src/Jackett.Web/packages.config
new file mode 100644
index 000000000..be4466bf2
--- /dev/null
+++ b/src/Jackett.Web/packages.config
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Jackett.Web/styles/styles.css b/src/Jackett.Web/styles/styles.css
new file mode 100644
index 000000000..5492b66c8
--- /dev/null
+++ b/src/Jackett.Web/styles/styles.css
@@ -0,0 +1,140 @@
+body {
+ background-color: #FFFFFF;
+}
+
+.ui.menu .item img.logo {
+ margin-right: 1.5em;
+}
+
+.main.container {
+ margin-top: 7em;
+}
+
+.wireframe {
+ margin-top: 2em;
+}
+
+.ui.footer.segment {
+ margin: 5em 0em 0em;
+ padding: 5em 0em;
+}
+
+.main {
+ min-height: 20em;
+}
+
+.splash {
+ text-align: center;
+ margin-top: 10em;
+}
+
+ .splash .message {
+ margin-bottom: 2em;
+ }
+
+
+.ui.inverted.menu {
+ background: #52708D !important;
+}
+
+.logo {
+ margin-right: 1em !important;
+}
+
+/* IRC */
+
+.jackett-irc {
+ position: absolute;
+ top: 52px;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background-color: #000;
+ z-index: 2;
+ color: #fff;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+}
+
+.jackett-irc-networks {
+ flex-grow: 1;
+ min-width: 200px;
+ border-right: 1px solid #52708D;
+ padding: 10px;
+}
+
+.jackett-irc-logs {
+ flex-grow: 20;
+ min-width: 200px;
+ overflow-y: scroll;
+ position: relative;
+}
+
+.jackett-irc-log-time, .jackett-irc-log-user, .jackett-irc-log-msg {
+ display: inline-block;
+ vertical-align:top;
+}
+
+.jackett-irc-log-user {
+ padding-right: 10px;
+ border-right: 1px grey solid;
+ margin-left: 10px;
+}
+
+.jackett-irc-log-msg {
+ margin-left: 10px;
+ word-break: break-all;
+}
+
+.jackett-irc-log-msg pre {
+ margin: 0;
+ padding: 0;
+ word-wrap: break-word;
+ white-space: pre-line;
+}
+
+.jackett-irc-users {
+ flex-grow: 1;
+ min-width: 200px;
+ border-left: 1px solid #52708D;
+ padding: 10px;
+}
+
+.jackett-irc-channel {
+ margin-left: 10px;
+}
+
+.jackett-irc-network i {
+ padding-right: 5px;
+
+}
+
+.jackett-body-fill {
+ overflow: hidden;
+}
+
+.ui.form .field > label, .aurelia-validation-message{
+ display:inline-block !important;
+}
+
+.aurelia-validation-message{
+ margin-left: 10px;
+ color:red;
+}
+
+.jackett-irc-selected {
+ background-color: grey;
+}
+
+.jackett-irc-command{
+ bottom: 0;
+ width: 100%;
+ top: auto;
+ position: absolute;
+ background-color:#2F2D2D;
+}
+
+.jackett-ircprofile-server i{
+ padding-top: 10px;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/tsconfig.json b/src/Jackett.Web/tsconfig.json
new file mode 100644
index 000000000..ad5e369b5
--- /dev/null
+++ b/src/Jackett.Web/tsconfig.json
@@ -0,0 +1,13 @@
+{
+ "compilerOptions": {
+ "emitDecoratorMetadata": true,
+ "experimentalDecorators": true,
+ "noImplicitAny": false,
+ "noEmitOnError": true,
+ "removeComments": false,
+ "noExternalResolve": true,
+ "declarationFiles": false,
+ "target": "es5",
+ "module": "systemjs"
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia-amd/aurelia-amd.d.js b/src/Jackett.Web/typings/aurelia-amd/aurelia-amd.d.js
new file mode 100644
index 000000000..e69de29bb
diff --git a/src/Jackett.Web/typings/aurelia-amd/aurelia-amd.d.ts b/src/Jackett.Web/typings/aurelia-amd/aurelia-amd.d.ts
new file mode 100644
index 000000000..871318095
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia-amd/aurelia-amd.d.ts
@@ -0,0 +1,11 @@
+declare module "loader-amd" {
+ class System {
+ static normalize(moduleId: string, normalizedParentModuleId?: string): Promise;
+ static map: Object;
+ static importModule(moduleId: string): Promise;
+ }
+
+ class LoaderAmd {
+ loadModule(moduleId: string): Promise;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-animator-css.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-animator-css.d.ts
new file mode 100644
index 000000000..556da08da
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-animator-css.d.ts
@@ -0,0 +1,24 @@
+declare module 'aurelia-animator-css/animator' {
+ export class CssAnimator {
+ animationStack: any;
+ constructor();
+ addMultipleEventListener(el: any, s: any, fn: any, b: any): void;
+ addAnimationToStack(animId: any): void;
+ removeAnimationFromStack(animId: any): void;
+ getElementAnimationDelay(element: any): number;
+ move(): Promise;
+ enter(element: any): Promise<{}>;
+ leave(element: any): Promise<{}>;
+ removeClass(element: any, className: any): Promise<{}>;
+ addClass(element: any, className: any): Promise<{}>;
+ }
+
+}
+declare module 'aurelia-animator-css/index' {
+ export { CssAnimator } from 'aurelia-animator-css/animator';
+ export function configure(aurelia: any): void;
+
+}
+declare module 'aurelia-animator-css' {
+ export * from 'aurelia-animator-css/index';
+}
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-app-contacts.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-app-contacts.d.ts
new file mode 100644
index 000000000..8b83b2591
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-app-contacts.d.ts
@@ -0,0 +1,77 @@
+declare module 'aurelia-app-contacts/web-api' {
+ export class WebAPI {
+ isRequesting: any;
+ getContactList(): Promise<{}>;
+ getContactDetails(id: any): Promise<{}>;
+ saveContact(contact: any): Promise<{}>;
+ }
+
+}
+declare module 'aurelia-app-contacts/app' {
+ import { Router } from 'aurelia-router';
+ import { WebAPI } from 'aurelia-app-contacts/web-api';
+ export class App {
+ static inject: typeof WebAPI[];
+ router: Router;
+ api: any;
+ constructor(api: any);
+ configureRouter(config: any, router: any): void;
+ }
+
+}
+declare module 'aurelia-app-contacts/messages' {
+ export class ContactUpdated {
+ contact: any;
+ constructor(contact: any);
+ }
+ export class ContactViewed {
+ contact: any;
+ constructor(contact: any);
+ }
+
+}
+declare module 'aurelia-app-contacts/utility' {
+ export function areEqual(obj1: any, obj2: any): boolean;
+
+}
+declare module 'aurelia-app-contacts/contact-detail' {
+ export class ContactDetail {
+ static inject: any[];
+ api: any;
+ ea: any;
+ contact: any;
+ originalContact: any;
+ constructor(api: any, ea: any);
+ activate(params: any, config: any): any;
+ canSave: boolean;
+ save(): void;
+ canDeactivate(): boolean;
+ }
+
+}
+declare module 'aurelia-app-contacts/contact-list' {
+ export class ContactList {
+ static inject: any[];
+ api: any;
+ contacts: any;
+ selectedId: any;
+ constructor(api: any, ea: any);
+ created(): void;
+ select(contact: any): boolean;
+ }
+
+}
+declare module 'aurelia-app-contacts/loading-indicator' {
+ export class LoadingIndicator {
+ loading: boolean;
+ loadingChanged(newValue: any): void;
+ }
+
+}
+declare module 'aurelia-app-contacts/no-selection' {
+ export class NoSelection {
+ message: any;
+ constructor();
+ }
+
+}
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-binding.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-binding.d.ts
new file mode 100644
index 000000000..269ad50b2
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-binding.d.ts
@@ -0,0 +1,443 @@
+declare module 'aurelia-binding' {
+ import core from 'core-js';
+ import { TaskQueue } from 'aurelia-task-queue';
+ import { All, Container } from 'aurelia-dependency-injection';
+ import { Decorators, Metadata } from 'aurelia-metadata';
+ export class AccessKeyedObserver {
+ constructor(objectInfo: any, keyInfo: any, observerLocator: any, evaluate: any);
+ updatePropertySubscription(object: any, key: any): any;
+ objectOrKeyChanged(object: any, key: any): any;
+ subscribe(callback: any): any;
+ notify(): any;
+ dispose(): any;
+ }
+ export function calcSplices(current: any, currentStart: any, currentEnd: any, old: any, oldStart: any, oldEnd: any): any;
+ export function projectArraySplices(array: any, changeRecords: any): any;
+ export var hasObjectObserve: any;
+ export var hasArrayObserve: any;
+ export function getChangeRecords(map: any): any;
+ export class ModifyCollectionObserver {
+ constructor(taskQueue: any, collection: any);
+ subscribe(callback: any): any;
+ addChangeRecord(changeRecord: any): any;
+ reset(oldCollection: any): any;
+ getLengthObserver(): any;
+ call(): any;
+ }
+ export class CollectionLengthObserver {
+ constructor(collection: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ subscribe(callback: any): any;
+ call(newValue: any): any;
+ }
+ export function getArrayObserver(taskQueue: any, array: any): any;
+ class ModifyArrayObserver extends ModifyCollectionObserver {
+ constructor(taskQueue: any, array: any);
+ static create(taskQueue: any, array: any): any;
+ }
+ class ArrayObserveObserver {
+ constructor(array: any);
+ subscribe(callback: any): any;
+ getLengthObserver(): any;
+ handleChanges(changeRecords: any): any;
+ }
+ export class PathObserver {
+ constructor(leftObserver: any, getRightObserver: any, value: any);
+ updateRight(observer: any): any;
+ subscribe(callback: any): any;
+ notify(newValue: any): any;
+ dispose(): any;
+ }
+ export class CompositeObserver {
+ constructor(observers: any, evaluate: any);
+ subscribe(callback: any): any;
+ notify(newValue: any): any;
+ dispose(): any;
+ }
+ export class Expression {
+ constructor();
+ evaluate(scope: any, valueConverters: any, args?: any): any;
+ assign(scope: any, value: any, valueConverters: any): any;
+ toString(): any;
+ }
+ export class Chain extends Expression {
+ constructor(expressions: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ }
+ export class ValueConverter extends Expression {
+ constructor(expression: any, name: any, args: any, allArgs: any);
+ evaluate(scope: any, valueConverters: any): any;
+ assign(scope: any, value: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class Assign extends Expression {
+ constructor(target: any, value: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(vistor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class Conditional extends Expression {
+ constructor(condition: any, yes: any, no: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class AccessScope extends Expression {
+ constructor(name: any);
+ evaluate(scope: any, valueConverters: any): any;
+ assign(scope: any, value: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class AccessMember extends Expression {
+ constructor(object: any, name: any);
+ evaluate(scope: any, valueConverters: any): any;
+ assign(scope: any, value: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class AccessKeyed extends Expression {
+ constructor(object: any, key: any);
+ evaluate(scope: any, valueConverters: any): any;
+ assign(scope: any, value: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class CallScope extends Expression {
+ constructor(name: any, args: any);
+ evaluate(scope: any, valueConverters: any, args: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class CallMember extends Expression {
+ constructor(object: any, name: any, args: any);
+ evaluate(scope: any, valueConverters: any, args: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class CallFunction extends Expression {
+ constructor(func: any, args: any);
+ evaluate(scope: any, valueConverters: any, args: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class Binary extends Expression {
+ constructor(operation: any, left: any, right: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class PrefixNot extends Expression {
+ constructor(operation: any, expression: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class LiteralPrimitive extends Expression {
+ constructor(value: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class LiteralString extends Expression {
+ constructor(value: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class LiteralArray extends Expression {
+ constructor(elements: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class LiteralObject extends Expression {
+ constructor(keys: any, values: any);
+ evaluate(scope: any, valueConverters: any): any;
+ accept(visitor: any): any;
+ connect(binding: any, scope: any): any;
+ }
+ export class Unparser {
+ constructor(buffer: any);
+ static unparse(expression: any): any;
+ write(text: any): any;
+ writeArgs(args: any): any;
+ visitChain(chain: any): any;
+ visitValueConverter(converter: any): any;
+ visitAssign(assign: any): any;
+ visitConditional(conditional: any): any;
+ visitAccessScope(access: any): any;
+ visitAccessMember(access: any): any;
+ visitAccessKeyed(access: any): any;
+ visitCallScope(call: any): any;
+ visitCallFunction(call: any): any;
+ visitCallMember(call: any): any;
+ visitPrefix(prefix: any): any;
+ visitBinary(binary: any): any;
+ visitLiteralPrimitive(literal: any): any;
+ visitLiteralArray(literal: any): any;
+ visitLiteralObject(literal: any): any;
+ visitLiteralString(literal: any): any;
+ }
+ export var bindingMode: any;
+ export class Token {
+ constructor(index: any, text: any);
+ withOp(op: any): any;
+ withGetterSetter(key: any): any;
+ withValue(value: any): any;
+ toString(): any;
+ }
+ export class Lexer {
+ lex(text: any): any;
+ }
+ export class Scanner {
+ constructor(input: any);
+ scanToken(): any;
+ scanCharacter(start: any, text: any): any;
+ scanOperator(start: any, text: any): any;
+ scanComplexOperator(start: any, code: any, one: any, two: any): any;
+ scanIdentifier(): any;
+ scanNumber(start: any): any;
+ scanString(): any;
+ advance(): any;
+ error(message: any, offset?: any): any;
+ }
+ export class Parser {
+ constructor();
+ parse(input: any): any;
+ }
+ export class ParserImplementation {
+ constructor(lexer: any, input: any);
+ peek(): any;
+ parseChain(): any;
+ parseValueConverter(): any;
+ parseExpression(): any;
+ parseConditional(): any;
+ parseLogicalOr(): any;
+ parseLogicalAnd(): any;
+ parseEquality(): any;
+ parseRelational(): any;
+ parseAdditive(): any;
+ parseMultiplicative(): any;
+ parsePrefix(): any;
+ parseAccessOrCallMember(): any;
+ parsePrimary(): any;
+ parseAccessOrCallScope(): any;
+ parseObject(): any;
+ parseExpressionList(terminator: any): any;
+ optional(text: any): any;
+ expect(text: any): any;
+ advance(): any;
+ error(message: any): any;
+ }
+ export function getMapObserver(taskQueue: any, map: any): any;
+ class ModifyMapObserver extends ModifyCollectionObserver {
+ constructor(taskQueue: any, map: any);
+ static create(taskQueue: any, map: any): any;
+ }
+ class DelegateHandlerEntry {
+ constructor(eventName: any);
+ increment(): any;
+ decrement(): any;
+ }
+ class DefaultEventStrategy {
+ subscribe(target: any, targetEvent: any, callback: any, delegate: any): any;
+ }
+ export class EventManager {
+ constructor();
+ registerElementConfig(config: any): any;
+ registerElementPropertyConfig(tagName: any, propertyName: any, events: any): any;
+ registerElementHandler(tagName: any, handler: any): any;
+ registerEventStrategy(eventName: any, strategy: any): any;
+ getElementHandler(target: any, propertyName: any): any;
+ addEventListener(target: any, targetEvent: any, callback: any, delegate: any): any;
+ }
+ export class DirtyChecker {
+ constructor();
+ addProperty(property: any): any;
+ removeProperty(property: any): any;
+ scheduleDirtyCheck(): any;
+ check(): any;
+ }
+ export class DirtyCheckProperty {
+ constructor(dirtyChecker: any, obj: any, propertyName: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ call(): any;
+ isDirty(): any;
+ beginTracking(): any;
+ endTracking(): any;
+ subscribe(callback: any): any;
+ }
+ export class SetterObserver {
+ constructor(taskQueue: any, obj: any, propertyName: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ getterValue(): any;
+ setterValue(newValue: any): any;
+ call(): any;
+ subscribe(callback: any): any;
+ convertProperty(): any;
+ }
+ export class OoPropertyObserver {
+ constructor(obj: any, propertyName: any, subscribe: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ }
+ export class OoObjectObserver {
+ constructor(obj: any, observerLocator: any);
+ subscribe(propertyName: any, callback: any): any;
+ unsubscribe(propertyName: any, callback: any): any;
+ getObserver(propertyName: any, descriptor: any): any;
+ handleChanges(changes: any): any;
+ }
+ export class UndefinedPropertyObserver {
+ constructor(owner: any, obj: any, propertyName: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ trigger(newValue: any, oldValue: any): any;
+ getObserver(): any;
+ subscribe(callback: any): any;
+ }
+ export class XLinkAttributeObserver {
+
+ // xlink namespaced attributes require getAttributeNS/setAttributeNS
+ // (even though the NS version doesn't work for other namespaces
+ // in html5 documents)
+ constructor(element: any, propertyName: any, attributeName: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ subscribe(callback: any): any;
+ }
+ export class DataAttributeObserver {
+ constructor(element: any, propertyName: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ subscribe(callback: any): any;
+ }
+ export class StyleObserver {
+ constructor(element: any, propertyName: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ subscribe(callback: any): any;
+ flattenCss(object: any): any;
+ }
+ export class ValueAttributeObserver {
+ constructor(element: any, propertyName: any, handler: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ call(): any;
+ subscribe(callback: any): any;
+ unsubscribe(callback: any): any;
+ }
+ export class SelectValueObserver {
+ constructor(element: any, handler: any, observerLocator: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ synchronizeOptions(): any;
+ synchronizeValue(): any;
+ call(): any;
+ subscribe(callback: any): any;
+ unsubscribe(callback: any): any;
+ bind(): any;
+ unbind(): any;
+ }
+ export class CheckedObserver {
+ constructor(element: any, handler: any, observerLocator: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ synchronizeElement(): any;
+ synchronizeValue(): any;
+ call(): any;
+ subscribe(callback: any): any;
+ unsubscribe(callback: any): any;
+ unbind(): any;
+ }
+ export class ClassObserver {
+ constructor(element: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ subscribe(callback: any): any;
+ }
+ export class ComputedPropertyObserver {
+ constructor(obj: any, propertyName: any, descriptor: any, observerLocator: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ trigger(newValue: any, oldValue: any): any;
+ evaluate(): any;
+ subscribe(callback: any): any;
+ }
+ export function hasDeclaredDependencies(descriptor: any): any;
+ export function declarePropertyDependencies(ctor: any, propertyName: any, dependencies: any): any;
+ export var elements: any;
+ export var presentationElements: any;
+ export var presentationAttributes: any;
+ export function isStandardSvgAttribute(nodeName: any, attributeName: any): any;
+ export class ObserverLocator {
+ static inject(): any;
+ constructor(taskQueue: any, eventManager: any, dirtyChecker: any, observationAdapters: any);
+ getObserver(obj: any, propertyName: any): any;
+ getOrCreateObserversLookup(obj: any): any;
+ createObserversLookup(obj: any): any;
+ getObservationAdapter(obj: any, propertyName: any, descriptor: any): any;
+ createPropertyObserver(obj: any, propertyName: any): any;
+ getArrayObserver(array: any): any;
+ getMapObserver(map: any): any;
+ }
+ export class ObjectObservationAdapter {
+ handlesProperty(object: any, propertyName: any, descriptor: any): any;
+ getObserver(object: any, propertyName: any, descriptor: any): any;
+ }
+ export class BindingExpression {
+ constructor(observerLocator: any, targetProperty: any, sourceExpression: any, mode: any, valueConverterLookupFunction: any, attribute: any);
+ createBinding(target: any): any;
+ static create(targetProperty: any, sourceExpression: any, mode?: any): any;
+ }
+ class Binding {
+ constructor(observerLocator: any, sourceExpression: any, target: any, targetProperty: any, mode: any, valueConverterLookupFunction: any);
+ getObserver(obj: any, propertyName: any): any;
+ bind(source: any): any;
+ unbind(): any;
+ }
+ export class CallExpression {
+ constructor(observerLocator: any, targetProperty: any, sourceExpression: any, valueConverterLookupFunction: any);
+ createBinding(target: any): any;
+ }
+ class Call {
+ constructor(observerLocator: any, sourceExpression: any, target: any, targetProperty: any, valueConverterLookupFunction: any);
+ bind(source: any): any;
+ unbind(): any;
+ }
+ export class ValueConverterResource {
+ constructor(name: any);
+ static convention(name: any): any;
+ analyze(container: any, target: any): any;
+ register(registry: any, name: any): any;
+ load(container: any, target: any): any;
+ }
+
+ // ES7 Decorators
+ export function valueConverter(nameOrTarget: any): any;
+ export function computedFrom(...rest: any[]): any;
+ export class ListenerExpression {
+ constructor(eventManager: any, targetEvent: any, sourceExpression: any, delegate: any, preventDefault: any);
+ createBinding(target: any): any;
+ }
+ class Listener {
+ constructor(eventManager: any, targetEvent: any, delegate: any, sourceExpression: any, target: any, preventDefault: any);
+ bind(source: any): any;
+ unbind(): any;
+ }
+ export class NameExpression {
+ constructor(name: any, mode: any);
+ createBinding(target: any): any;
+ }
+ class NameBinder {
+ constructor(property: any, target: any, mode: any);
+ bind(source: any): any;
+ unbind(): any;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-bootstrapper.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-bootstrapper.d.ts
new file mode 100644
index 000000000..b753702e8
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-bootstrapper.d.ts
@@ -0,0 +1,7 @@
+declare module 'aurelia-bootstrapper/index' {
+ export function bootstrap(configure: any): Promise<{}>;
+
+}
+declare module 'aurelia-bootstrapper' {
+ export * from 'aurelia-bootstrapper/index';
+}
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-dependency-injection.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-dependency-injection.d.ts
new file mode 100644
index 000000000..375c6ae74
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-dependency-injection.d.ts
@@ -0,0 +1,345 @@
+declare module 'aurelia-dependency-injection' {
+ import core from 'core-js';
+ import { Metadata, Decorators } from 'aurelia-metadata';
+ import { AggregateError } from 'aurelia-logging';
+
+ /**
+ * Used to allow functions/classes to indicate that they should be registered as transients with the container.
+ *
+ * @class TransientRegistration
+ * @constructor
+ * @param {Object} [key] The key to register as.
+ */
+ export class TransientRegistration {
+ constructor(key: any);
+
+ /**
+ * Called by the container to register the annotated function/class as transient.
+ *
+ * @method register
+ * @param {Container} container The container to register with.
+ * @param {Object} key The key to register as.
+ * @param {Object} fn The function to register (target of the annotation).
+ */
+ register(container: Container, key: any, fn: Function): any;
+ }
+
+ /**
+ * Used to allow functions/classes to indicate that they should be registered as singletons with the container.
+ *
+ * @class SingletonRegistration
+ * @constructor
+ * @param {Object} [key] The key to register as.
+ */
+ export class SingletonRegistration {
+ constructor(keyOrRegisterInChild: any, registerInChild?: boolean);
+
+ /**
+ * Called by the container to register the annotated function/class as a singleton.
+ *
+ * @method register
+ * @param {Container} container The container to register with.
+ * @param {Object} key The key to register as.
+ * @param {Object} fn The function to register (target of the annotation).
+ */
+ register(container: Container, key: any, fn: Function): any;
+ }
+
+ /**
+ * An abstract resolver used to allow functions/classes to specify custom dependency resolution logic.
+ *
+ * @class Resolver
+ * @constructor
+ */
+ export class Resolver {
+
+ /**
+ * Called by the container to allow custom resolution of dependencies for a function/class.
+ *
+ * @method get
+ * @param {Container} container The container to resolve from.
+ * @return {Object} Returns the resolved object.
+ */
+ get(container: Container): any;
+ }
+
+ /**
+ * Used to allow functions/classes to specify lazy resolution logic.
+ *
+ * @class Lazy
+ * @constructor
+ * @extends Resolver
+ * @param {Object} key The key to lazily resolve.
+ */
+ export class Lazy extends Resolver {
+ constructor(key: any);
+
+ /**
+ * Called by the container to lazily resolve the dependency into a lazy locator function.
+ *
+ * @method get
+ * @param {Container} container The container to resolve from.
+ * @return {Function} Returns a function which can be invoked at a later time to obtain the actual dependency.
+ */
+ get(container: Container): any;
+
+ /**
+ * Creates a Lazy Resolver for the supplied key.
+ *
+ * @method of
+ * @static
+ * @param {Object} key The key to lazily resolve.
+ * @return {Lazy} Returns an insance of Lazy for the key.
+ */
+ static of(key: any): Lazy;
+ }
+
+ /**
+ * Used to allow functions/classes to specify resolution of all matches to a key.
+ *
+ * @class All
+ * @constructor
+ * @extends Resolver
+ * @param {Object} key The key to lazily resolve all matches for.
+ */
+ export class All extends Resolver {
+ constructor(key: any);
+
+ /**
+ * Called by the container to resolve all matching dependencies as an array of instances.
+ *
+ * @method get
+ * @param {Container} container The container to resolve from.
+ * @return {Object[]} Returns an array of all matching instances.
+ */
+ get(container: Container): any[];
+
+ /**
+ * Creates an All Resolver for the supplied key.
+ *
+ * @method of
+ * @static
+ * @param {Object} key The key to resolve all instances for.
+ * @return {All} Returns an insance of All for the key.
+ */
+ static of(key: any): All;
+ }
+
+ /**
+ * Used to allow functions/classes to specify an optional dependency, which will be resolved only if already registred with the container.
+ *
+ * @class Optional
+ * @constructor
+ * @extends Resolver
+ * @param {Object} key The key to optionally resolve for.
+ * @param {Boolean} [checkParent=false] Indicates whether or not the parent container hierarchy should be checked.
+ */
+ export class Optional extends Resolver {
+ constructor(key: any, checkParent?: boolean);
+
+ /**
+ * Called by the container to provide optional resolution of the key.
+ *
+ * @method get
+ * @param {Container} container The container to resolve from.
+ * @return {Object} Returns the instance if found; otherwise null.
+ */
+ get(container: Container): any;
+
+ /**
+ * Creates an Optional Resolver for the supplied key.
+ *
+ * @method of
+ * @static
+ * @param {Object} key The key to optionally resolve for.
+ * @param {Boolean} [checkParent=false] Indicates whether or not the parent container hierarchy should be checked.
+ * @return {Optional} Returns an insance of Optional for the key.
+ */
+ static of(key: any, checkParent?: boolean): Optional;
+ }
+
+ /**
+ * Used to inject the dependency from the parent container instead of the current one.
+ *
+ * @class Parent
+ * @constructor
+ * @extends Resolver
+ * @param {Object} key The key to resolve from the parent container.
+ */
+ export class Parent extends Resolver {
+ constructor(key: any);
+
+ /**
+ * Called by the container to load the dependency from the parent container
+ *
+ * @method get
+ * @param {Container} container The container to resolve the parent from.
+ * @return {Function} Returns the matching instance from the parent container
+ */
+ get(container: Container): any;
+
+ /**
+ * Creates a Parent Resolver for the supplied key.
+ *
+ * @method of
+ * @static
+ * @param {Object} key The key to resolve.
+ * @return {Parent} Returns an insance of Parent for the key.
+ */
+ static of(key: any): Parent;
+ }
+
+ /**
+ * Used to instantiate a class.
+ *
+ * @class ClassActivator
+ * @constructor
+ */
+ export class ClassActivator {
+ static instance: any;
+ invoke(fn: Function, args: any[]): any;
+ }
+
+ /**
+ * Used to invoke a factory method.
+ *
+ * @class FactoryActivator
+ * @constructor
+ */
+ export class FactoryActivator {
+ static instance: any;
+ invoke(fn: Function, args: any[]): any;
+ }
+ export var emptyParameters: any;
+
+ /**
+ * A lightweight, extensible dependency injection container.
+ *
+ * @class Container
+ * @constructor
+ */
+ export class Container {
+ constructor(constructionInfo?: Map);
+
+ /**
+ * Makes this container instance globally reachable through Container.instance.
+ *
+ * @method makeGlobal
+ */
+ makeGlobal(): Container;
+
+ /**
+ * Registers an existing object instance with the container.
+ *
+ * @method registerInstance
+ * @param {Object} key The key that identifies the dependency at resolution time; usually a constructor function.
+ * @param {Object} instance The instance that will be resolved when the key is matched.
+ */
+ registerInstance(key: any, instance: any): any;
+
+ /**
+ * Registers a type (constructor function) such that the container returns a new instance for each request.
+ *
+ * @method registerTransient
+ * @param {Object} key The key that identifies the dependency at resolution time; usually a constructor function.
+ * @param {Function} [fn] The constructor function to use when the dependency needs to be instantiated.
+ */
+ registerTransient(key: any, fn?: Function): any;
+
+ /**
+ * Registers a type (constructor function) such that the container always returns the same instance for each request.
+ *
+ * @method registerSingleton
+ * @param {Object} key The key that identifies the dependency at resolution time; usually a constructor function.
+ * @param {Function} [fn] The constructor function to use when the dependency needs to be instantiated.
+ */
+ registerSingleton(key: any, fn?: Function): any;
+
+ /**
+ * Registers a type (constructor function) by inspecting its registration annotations. If none are found, then the default singleton registration is used.
+ *
+ * @method autoRegister
+ * @param {Function} fn The constructor function to use when the dependency needs to be instantiated.
+ * @param {Object} [key] The key that identifies the dependency at resolution time; usually a constructor function.
+ */
+ autoRegister(fn: any, key?: any): any;
+
+ /**
+ * Registers an array of types (constructor functions) by inspecting their registration annotations. If none are found, then the default singleton registration is used.
+ *
+ * @method autoRegisterAll
+ * @param {Function[]} fns The constructor function to use when the dependency needs to be instantiated.
+ */
+ autoRegisterAll(fns: any[]): any;
+
+ /**
+ * Registers a custom resolution function such that the container calls this function for each request to obtain the instance.
+ *
+ * @method registerHandler
+ * @param {Object} key The key that identifies the dependency at resolution time; usually a constructor function.
+ * @param {Function} handler The resolution function to use when the dependency is needed. It will be passed one arguement, the container instance that is invoking it.
+ */
+ registerHandler(key: any, handler: ((c: Container) => any)): any;
+
+ /**
+ * Unregisters based on key.
+ *
+ * @method unregister
+ * @param {Object} key The key that identifies the dependency at resolution time; usually a constructor function.
+ */
+ unregister(key: any): any;
+
+ /**
+ * Resolves a single instance based on the provided key.
+ *
+ * @method get
+ * @param {Object} key The key that identifies the object to resolve.
+ * @return {Object} Returns the resolved instance.
+ */
+ get(key: any): any;
+
+ /**
+ * Resolves all instance registered under the provided key.
+ *
+ * @method getAll
+ * @param {Object} key The key that identifies the objects to resolve.
+ * @return {Object[]} Returns an array of the resolved instances.
+ */
+ getAll(key: any): any[];
+
+ /**
+ * Inspects the container to determine if a particular key has been registred.
+ *
+ * @method hasHandler
+ * @param {Object} key The key that identifies the dependency at resolution time; usually a constructor function.
+ * @param {Boolean} [checkParent=false] Indicates whether or not to check the parent container hierarchy.
+ * @return {Boolean} Returns true if the key has been registred; false otherwise.
+ */
+ hasHandler(key: any, checkParent?: boolean): boolean;
+
+ /**
+ * Creates a new dependency injection container whose parent is the current container.
+ *
+ * @method createChild
+ * @return {Container} Returns a new container instance parented to this.
+ */
+ createChild(): Container;
+
+ /**
+ * Invokes a function, recursively resolving its dependencies.
+ *
+ * @method invoke
+ * @param {Function} fn The function to invoke with the auto-resolved dependencies.
+ * @param {any[]} [deps] Additional function dependencies to use during invocation.
+ * @return {Object} Returns the instance resulting from calling the function.
+ */
+ invoke(fn: Function, deps?: any[]): any;
+ }
+ export function autoinject(target?: any): any;
+ export function inject(...rest: any[]): any;
+ export function registration(value: any): any;
+ export function transient(key?: any): any;
+ export function singleton(keyOrRegisterInChild?: any, registerInChild?: boolean): any;
+ export function instanceActivator(value: any): any;
+ export function factory(): any;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-event-aggregator.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-event-aggregator.d.ts
new file mode 100644
index 000000000..fa09b1d72
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-event-aggregator.d.ts
@@ -0,0 +1,15 @@
+declare module 'aurelia-event-aggregator' {
+ import * as LogManager from 'aurelia-logging';
+ class Handler {
+ constructor(messageType: any, callback: any);
+ handle(message: any): any;
+ }
+ export class EventAggregator {
+ constructor();
+ publish(event: string | any, data?: any): any;
+ subscribe(event: any, callback: any): any;
+ subscribeOnce(event: any, callback: any): any;
+ }
+ export function includeEventsIn(obj: any): any;
+ export function configure(aurelia: any): any;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-fetch-client.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-fetch-client.d.ts
new file mode 100644
index 000000000..13b8a2306
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-fetch-client.d.ts
@@ -0,0 +1,139 @@
+declare module 'aurelia-fetch-client' {
+ import 'core-js';
+
+ /* eslint-disable */
+ export interface Interceptor {
+ request(request: Request): Request | Response | Promise;
+ requestError(error: any): Request | Response | Promise;
+ response(response: Response): Response | Promise;
+ responseError(error: any): Response | Promise;
+ }
+ export interface RequestInit {
+ method?: string;
+ headers?: Headers;
+ body?: Blob | BufferSource | FormData | URLSearchParams | string;
+ mode?: string;
+ credentials?: string;
+ cache?: string;
+ }
+
+ /**
+ * Create a Blob containing JSON-serialized data.
+ * Useful for easily creating JSON fetch request bodies.
+ *
+ * @param body - The object to be serialized to JSON.
+ */
+ export function json(body: any): Blob;
+
+ /**
+ * A class for configuring HttpClients.
+ *
+ * @constructor
+ */
+ export class HttpClientConfiguration {
+
+ /**
+ * The base URL to be prepended to each Request's url before sending.
+ */
+ baseUrl: string;
+
+ /**
+ * Default values to apply to init objects when creating Requests. Note that
+ * defaults cannot be applied when Request objects are manually created because
+ * Request provides its own defaults and discards the original init object.
+ * See also https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
+ */
+ defaults: RequestInit;
+
+ /**
+ * Interceptors to be added to the HttpClient.
+ */
+ interceptors: Interceptor[];
+
+ /**
+ * Sets the baseUrl.
+ *
+ * @param baseUrl - The base URL.
+ * @chainable
+ */
+ withBaseUrl(baseUrl: string): HttpClientConfiguration;
+
+ /**
+ * Sets the defaults.
+ *
+ * @param defaults - The defaults.
+ * @chainable
+ */
+ withDefaults(defaults: RequestInit): HttpClientConfiguration;
+
+ /**
+ * Adds an interceptor to be run on all requests or responses.
+ *
+ * @param interceptor - An object with request, requestError,
+ * response, or responseError methods. request and requestError act as
+ * resolve and reject handlers for the Request before it is sent.
+ * response and responseError act as resolve and reject handlers for
+ * the Response after it has been received.
+ * @chainable
+ */
+ withInterceptor(interceptor: Interceptor): HttpClientConfiguration;
+
+ /**
+ * Applies a configuration that addresses common application needs, including
+ * configuring same-origin credentials, and using rejectErrorResponses.
+ *
+ * @chainable
+ */
+ useStandardConfiguration(): HttpClientConfiguration;
+
+ /**
+ * Causes Responses whose status codes fall outside the range 200-299 to reject.
+ * The fetch API only rejects on network errors or other conditions that prevent
+ * the request from completing, meaning consumers must inspect Response.ok in the
+ * Promise continuation to determine if the server responded with a success code.
+ * This method adds a response interceptor that causes Responses with error codes
+ * to be rejected, which is common behavior in HTTP client libraries.
+ *
+ * @chainable
+ */
+ rejectErrorResponses(): HttpClientConfiguration;
+ }
+
+ /**
+ * An HTTP client based on the Fetch API.
+ *
+ * @constructor
+ */
+ export class HttpClient {
+ activeRequestCount: number;
+ isRequesting: boolean;
+ interceptors: Interceptor[];
+ isConfigured: boolean;
+ baseUrl: string;
+ defaults: RequestInit;
+
+ /**
+ * Configure this client with default settings to be used by all requests.
+ *
+ * @param config - A function that takes a config argument,
+ * or a config object, or a string to use as the client's baseUrl.
+ * @chainable
+ */
+ configure(config: string | RequestInit | ((config: HttpClientConfiguration) => void)): HttpClient;
+
+ /**
+ * Starts the process of fetching a resource. Default configuration parameters
+ * will be applied to the Request. The constructed Request will be passed to
+ * registered request interceptors before being sent. The Response will be passed
+ * to registered Response interceptors before it is returned.
+ *
+ * See also https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
+ *
+ * @param input - The resource that you wish to fetch. Either a
+ * Request object, or a string containing the URL of the resource.
+ * @param - An options object containing settings to be applied to
+ * the Request.
+ */
+ fetch(input: Request | string, init?: any): Promise;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-framework.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-framework.d.ts
new file mode 100644
index 000000000..60b723712
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-framework.d.ts
@@ -0,0 +1,222 @@
+declare module 'aurelia-framework' {
+ import core from 'core-js';
+ import * as TheLogManager from 'aurelia-logging';
+ import { Metadata } from 'aurelia-metadata';
+ import { Container } from 'aurelia-dependency-injection';
+ import { Loader } from 'aurelia-loader';
+ import { join, relativeToFile } from 'aurelia-path';
+ import { BindingLanguage, ViewEngine, ViewSlot, ResourceRegistry, CompositionEngine, Animator, DOMBoundary } from 'aurelia-templating';
+
+ /**
+ * Manages loading and configuring plugins.
+ *
+ * @class Plugins
+ * @constructor
+ * @param {Aurelia} aurelia An instance of Aurelia.
+ */
+ export class Plugins {
+ constructor(aurelia: Aurelia);
+
+ /**
+ * Configures an internal feature plugin before Aurelia starts.
+ *
+ * @method feature
+ * @param {string} plugin The folder for the internal plugin to configure (expects an index.js in that folder).
+ * @param {config} config The configuration for the specified plugin.
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ feature(plugin: string, config: any): Plugins;
+
+ /**
+ * Configures an external, 3rd party plugin before Aurelia starts.
+ *
+ * @method plugin
+ * @param {string} plugin The ID of the 3rd party plugin to configure.
+ * @param {config} config The configuration for the specified plugin.
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ plugin(plugin: string, config: any): Plugins;
+
+ /**
+ * Plugs in the default binding language from aurelia-templating-binding.
+ *
+ * @method defaultBindingLanguage
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ defaultBindingLanguage(): Plugins;
+
+ /**
+ * Plugs in the router from aurelia-templating-router.
+ *
+ * @method router
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ router(): Plugins;
+
+ /**
+ * Plugs in the default history implementation from aurelia-history-browser.
+ *
+ * @method history
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ history(): Plugins;
+
+ /**
+ * Plugs in the default templating resources (if, repeat, show, compose, etc.) from aurelia-templating-resources.
+ *
+ * @method defaultResources
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ defaultResources(): Plugins;
+
+ /**
+ * Plugs in the event aggregator from aurelia-event-aggregator.
+ *
+ * @method eventAggregator
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ eventAggregator(): Plugins;
+
+ /**
+ * Sets up the Aurelia configuration. This is equivalent to calling `.defaultBindingLanguage().defaultResources().history().router().eventAggregator();`
+ *
+ * @method standardConfiguration
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ standardConfiguration(): Plugins;
+
+ /**
+ * Plugs in the ConsoleAppender and sets the log level to debug.
+ *
+ * @method developmentLogging
+ * @return {Plugins} Returns the current Plugins instance.
+ */
+ developmentLogging(): Plugins;
+ }
+
+ /**
+ * The framework core that provides the main Aurelia object.
+ *
+ * @class Aurelia
+ * @constructor
+ * @param {Loader} loader The loader for this Aurelia instance to use. If a loader is not specified, Aurelia will use a defaultLoader.
+ * @param {Container} container The dependency injection container for this Aurelia instance to use. If a container is not specified, Aurelia will create an empty container.
+ * @param {ResourceRegistry} resources The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.
+ */
+ export class Aurelia {
+ loader: Loader;
+ container: Container;
+ resources: ResourceRegistry;
+ use: Plugins;
+ constructor(loader?: Loader, container?: Container, resources?: ResourceRegistry);
+
+ /**
+ * Adds an existing object to the framework's dependency injection container.
+ *
+ * @method withInstance
+ * @param {Class} type The object type of the dependency that the framework will inject.
+ * @param {Object} instance The existing instance of the dependency that the framework will inject.
+ * @return {Aurelia} Returns the current Aurelia instance.
+ */
+ withInstance(type: any, instance: any): Aurelia;
+
+ /**
+ * Adds a singleton to the framework's dependency injection container.
+ *
+ * @method withSingleton
+ * @param {Class} type The object type of the dependency that the framework will inject.
+ * @param {Object} implementation The constructor function of the dependency that the framework will inject.
+ * @return {Aurelia} Returns the current Aurelia instance.
+ */
+ withSingleton(type: any, implementation?: Function): Aurelia;
+
+ /**
+ * Adds a transient to the framework's dependency injection container.
+ *
+ * @method withTransient
+ * @param {Class} type The object type of the dependency that the framework will inject.
+ * @param {Object} implementation The constructor function of the dependency that the framework will inject.
+ * @return {Aurelia} Returns the current Aurelia instance.
+ */
+ withTransient(type: any, implementation?: Function): Aurelia;
+
+ /**
+ * Adds globally available view resources to be imported into the Aurelia framework.
+ *
+ * @method globalizeResources
+ * @param {Object|Array} resources The relative module id to the resource. (Relative to the plugin's installer.)
+ * @return {Aurelia} Returns the current Aurelia instance.
+ */
+ globalizeResources(resources: string | string[]): Aurelia;
+
+ /**
+ * Renames a global resource that was imported.
+ *
+ * @method renameGlobalResource
+ * @param {String} resourcePath The path to the resource.
+ * @param {String} newName The new name.
+ * @return {Aurelia} Returns the current Aurelia instance.
+ */
+ renameGlobalResource(resourcePath: string, newName: string): Aurelia;
+
+ /**
+ * Adds an async function that runs before the plugins are run.
+ *
+ * @method addPreStartTask
+ * @param {Function} task The function to run before start.
+ * @return {Aurelia} Returns the current Aurelia instance.
+ */
+ addPreStartTask(task: Function): Aurelia;
+
+ /**
+ * Adds an async function that runs after the plugins are run.
+ *
+ * @method addPostStartTask
+ * @param {Function} task The function to run after start.
+ * @return {Aurelia} Returns the current Aurelia instance.
+ */
+ addPostStartTask(task: Function): Aurelia;
+
+ /**
+ * Loads plugins, then resources, and then starts the Aurelia instance.
+ *
+ * @method start
+ * @return {Promise} Returns the started Aurelia instance.
+ */
+ start(): Promise;
+
+ /**
+ * Enhances the host's existing elements with behaviors and bindings.
+ *
+ * @method enhance
+ * @param {Object} bindingContext A binding context for the enhanced elements.
+ * @param {string|Object} applicationHost The DOM object that Aurelia will enhance.
+ * @return {Promise} Returns the current Aurelia instance.
+ */
+ enhance(bindingContext?: Object, applicationHost?: any): Promise;
+
+ /**
+ * Instantiates the root view-model and view and add them to the DOM.
+ *
+ * @method setRoot
+ * @param {Object} root The root view-model to load upon bootstrap.
+ * @param {string|Object} applicationHost The DOM object that Aurelia will attach to.
+ * @return {Promise} Returns the current Aurelia instance.
+ */
+ setRoot(root?: string, applicationHost?: any): Promise;
+ }
+
+ /**
+ * The aurelia framework brings together all the required core aurelia libraries into a ready-to-go application-building platform.
+ *
+ * @module framework
+ */
+ export * from 'aurelia-dependency-injection';
+ export * from 'aurelia-binding';
+ export * from 'aurelia-metadata';
+ export * from 'aurelia-templating';
+ export * from 'aurelia-loader';
+ export * from 'aurelia-task-queue';
+ export * from 'aurelia-path';
+ export var LogManager: any;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-history-browser.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-history-browser.d.ts
new file mode 100644
index 000000000..403eb7dd9
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-history-browser.d.ts
@@ -0,0 +1,16 @@
+declare module 'aurelia-history-browser' {
+ import * as core from 'core-js';
+ import { History } from 'aurelia-history';
+ export class BrowserHistory extends History {
+ constructor();
+ getHash(window?: Window): string;
+ getFragment(fragment: string, forcePushState?: boolean): string;
+ activate(options?: Object): boolean;
+ deactivate(): void;
+ checkUrl(): boolean;
+ loadUrl(fragmentOverride: string): boolean;
+ navigate(fragment?: string, options?: Object): boolean;
+ navigateBack(): void;
+ }
+ export function configure(aurelia: Object): void;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-history.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-history.d.ts
new file mode 100644
index 000000000..48a25d640
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-history.d.ts
@@ -0,0 +1,8 @@
+declare module 'aurelia-history' {
+ export class History {
+ activate(options: Object): boolean;
+ deactivate(): void;
+ navigate(fragment: string, options: Object): boolean;
+ navigateBack(): void;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-http-client.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-http-client.d.ts
new file mode 100644
index 000000000..866682560
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-http-client.d.ts
@@ -0,0 +1,203 @@
+declare module 'aurelia-http-client' {
+ import core from 'core-js';
+ import { join, buildQueryString } from 'aurelia-path';
+ export class Headers {
+ constructor(headers?: any);
+ add(key: any, value: any): any;
+ get(key: any): any;
+ clear(): any;
+ configureXHR(xhr: any): any;
+
+ /**
+ * XmlHttpRequest's getAllResponseHeaders() method returns a string of response
+ * headers according to the format described here:
+ * http://www.w3.org/TR/XMLHttpRequest/#the-getallresponseheaders-method
+ * This method parses that string into a user-friendly key/value pair object.
+ */
+ static parse(headerStr: any): any;
+ }
+ export class RequestMessage {
+ constructor(method: any, url: any, content: any, headers: any);
+ buildFullUrl(): any;
+ }
+
+ /*jshint -W093 */
+ export class HttpResponseMessage {
+ constructor(requestMessage: any, xhr: any, responseType: any, reviver: any);
+ content(): any;
+ }
+
+ /**
+ * MimeTypes mapped to responseTypes
+ *
+ * @type {Object}
+ */
+ export var mimeTypes: any;
+ export class RequestMessageProcessor {
+ constructor(xhrType: any, xhrTransformers: any);
+ abort(): any;
+ process(client: any, message: any): any;
+ }
+ export function timeoutTransformer(client: any, processor: any, message: any, xhr: any): any;
+ export function callbackParameterNameTransformer(client: any, processor: any, message: any, xhr: any): any;
+ export function credentialsTransformer(client: any, processor: any, message: any, xhr: any): any;
+ export function progressTransformer(client: any, processor: any, message: any, xhr: any): any;
+ export function responseTypeTransformer(client: any, processor: any, message: any, xhr: any): any;
+ export function headerTransformer(client: any, processor: any, message: any, xhr: any): any;
+ export function contentTransformer(client: any, processor: any, message: any, xhr: any): any;
+ export class JSONPRequestMessage extends RequestMessage {
+ constructor(url: any, callbackParameterName: any);
+ }
+ class JSONPXHR {
+ open(method: any, url: any): any;
+ send(): any;
+ abort(): any;
+ setRequestHeader(): any;
+ }
+ export function createJSONPRequestMessageProcessor(): any;
+ export class HttpRequestMessage extends RequestMessage {
+ constructor(method: any, url: any, content: any, headers: any);
+ }
+ export function createHttpRequestMessageProcessor(): any;
+
+ /**
+ * A builder class allowing fluent composition of HTTP requests.
+ *
+ * @class RequestBuilder
+ * @constructor
+ */
+ export class RequestBuilder {
+ constructor(client: any);
+
+ /**
+ * Adds a user-defined request transformer to the RequestBuilder.
+ *
+ * @method addHelper
+ * @param {String} name The name of the helper to add.
+ * @param {Function} fn The helper function.
+ * @chainable
+ */
+ static addHelper(name: any, fn: any): any;
+
+ /**
+ * Sends the request.
+ *
+ * @method send
+ * @return {Promise} A cancellable promise object.
+ */
+ send(): any;
+ }
+
+ /**
+ * The main HTTP client object.
+ *
+ * @class HttpClient
+ * @constructor
+ */
+ export class HttpClient {
+ constructor();
+
+ /**
+ * Configure this HttpClient with default settings to be used by all requests.
+ *
+ * @method configure
+ * @param {Function} fn A function that takes a RequestBuilder as an argument.
+ * @chainable
+ */
+ configure(fn: any): any;
+
+ /**
+ * Returns a new RequestBuilder for this HttpClient instance that can be used to build and send HTTP requests.
+ *
+ * @method createRequest
+ * @param url The target URL.
+ * @type RequestBuilder
+ */
+ createRequest(url: any): any;
+
+ /**
+ * Sends a message using the underlying networking stack.
+ *
+ * @method send
+ * @param message A configured HttpRequestMessage or JSONPRequestMessage.
+ * @param {Array} transformers A collection of transformers to apply to the HTTP request.
+ * @return {Promise} A cancellable promise object.
+ */
+ send(message: any, transformers: any): any;
+
+ /**
+ * Sends an HTTP DELETE request.
+ *
+ * @method delete
+ * @param {String} url The target URL.
+ * @return {Promise} A cancellable promise object.
+ */
+ delete(url: any): any;
+
+ /**
+ * Sends an HTTP GET request.
+ *
+ * @method get
+ * @param {String} url The target URL.
+ * @return {Promise} A cancellable promise object.
+ */
+ get(url: any): any;
+
+ /**
+ * Sends an HTTP HEAD request.
+ *
+ * @method head
+ * @param {String} url The target URL.
+ * @return {Promise} A cancellable promise object.
+ */
+ head(url: any): any;
+
+ /**
+ * Sends a JSONP request.
+ *
+ * @method jsonp
+ * @param {String} url The target URL.
+ * @return {Promise} A cancellable promise object.
+ */
+ jsonp(url: any, callbackParameterName?: any): any;
+
+ /**
+ * Sends an HTTP OPTIONS request.
+ *
+ * @method options
+ * @param {String} url The target URL.
+ * @return {Promise} A cancellable promise object.
+ */
+ options(url: any): any;
+
+ /**
+ * Sends an HTTP PUT request.
+ *
+ * @method put
+ * @param {String} url The target URL.
+ * @param {Object} url The request payload.
+ * @return {Promise} A cancellable promise object.
+ */
+ put(url: any, content: any): any;
+
+ /**
+ * Sends an HTTP PATCH request.
+ *
+ * @method patch
+ * @param {String} url The target URL.
+ * @param {Object} url The request payload.
+ * @return {Promise} A cancellable promise object.
+ */
+ patch(url: any, content: any): any;
+
+ /**
+ * Sends an HTTP POST request.
+ *
+ * @method post
+ * @param {String} url The target URL.
+ * @param {Object} url The request payload.
+ * @return {Promise} A cancellable promise object.
+ */
+ post(url: any, content: any): any;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-loader-default.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-loader-default.d.ts
new file mode 100644
index 000000000..8debbf1ea
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-loader-default.d.ts
@@ -0,0 +1,11 @@
+declare module 'aurelia-loader-default' {
+ import { Origin } from 'aurelia-metadata';
+ import { Loader } from 'aurelia-loader';
+ export class DefaultLoader extends Loader {
+ constructor();
+ loadModule(id: any): any;
+ loadAllModules(ids: any): any;
+ loadTemplate(url: any): any;
+ loadText(url: any): any;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-loader.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-loader.d.ts
new file mode 100644
index 000000000..dd7205730
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-loader.d.ts
@@ -0,0 +1,30 @@
+declare module 'aurelia-loader' {
+ import core from 'core-js';
+ import { relativeToFile } from 'aurelia-path';
+ import { Origin } from 'aurelia-metadata';
+ export class TemplateDependency {
+ constructor(src: string, name?: string);
+ }
+ export class TemplateRegistryEntry {
+ constructor(id: string);
+ templateIsLoaded(): boolean;
+ isReady(): boolean;
+ setTemplate(template: Element): void;
+ addDependency(src: string | Function, name?: string): void;
+ setResources(resources: any): void;
+ setFactory(factory: any): void;
+ }
+ export class Loader {
+ constructor();
+ loadModule(id: any): any;
+ loadAllModules(ids: any): any;
+ loadTemplate(url: any): any;
+ loadText(url: any): any;
+ getOrCreateTemplateRegistryEntry(id: any): any;
+ importDocument(url: any): any;
+ importBundle(link: any): any;
+ importTemplate(url: any): any;
+ findTemplate(doc: any, url: any): any;
+ findBundledTemplate(name: any, entry: any): any;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-logging-console.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-logging-console.d.ts
new file mode 100644
index 000000000..dcfe1e68a
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-logging-console.d.ts
@@ -0,0 +1,8 @@
+declare module 'aurelia-logging-console' {
+ export class ConsoleAppender {
+ debug(logger: Object, ...rest: any[]): void;
+ info(logger: Object, ...rest: any[]): void;
+ warn(logger: Object, ...rest: any[]): void;
+ error(logger: Object, ...rest: any[]): void;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-logging.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-logging.d.ts
new file mode 100644
index 000000000..d1bec226d
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-logging.d.ts
@@ -0,0 +1,103 @@
+declare module 'aurelia-logging' {
+
+ /**
+ * This library is part of the Aurelia platform and contains a minimal but effective logging mechanism
+ * with support for log levels and pluggable log appenders.
+ *
+ * @module logging
+ */
+ /**
+ * Creates an instance of Error that aggregates and preserves an innerError.
+ *
+ * @class AggregateError
+ * @constructor
+ */
+ export function AggregateError(msg: string, inner?: Error, skipIfAlreadyAggregate?: boolean): Error;
+
+ /**
+ * Enum specifying the levels of the logger
+ *
+ * @property logLevel
+ * @type Enum
+ * @for export
+ */
+ export var logLevel: any;
+
+ /**
+ * Gets an instance of a logger by the Id used when creating.
+ *
+ * @method getLogger
+ * @param {string} id The id of the logger you wish to get an instance of.
+ * @return {Logger} The instance of the logger, or creates a new logger if none exists for that Id.
+ * @for export
+ */
+ export function getLogger(id: string): Logger;
+
+ /**
+ * Adds an appender capable of processing logs and channeling them to an output.
+ *
+ * @method addAppender
+ * @param {Object} appender An appender instance to begin processing logs with.
+ * @for export
+ */
+ export function addAppender(appender: Object): void;
+
+ /**
+ * Sets the level of the logging for the application loggers
+ *
+ * @method setLevel
+ * @param {Number} level Matches an enum specifying the level of logging.
+ * @for export
+ */
+ export function setLevel(level: number): void;
+
+ /**
+ * The logger is essentially responsible for having log statements that appear during debugging but are squelched
+ * when using the build tools, depending on the log level that is set. The available levels are -
+ * 1. none
+ * 2. error
+ * 3. warn
+ * 4. info
+ * 5. debug
+ *
+ * You cannot instantiate the logger directly - you must use the getLogger method instead.
+ *
+ * @class Logger
+ * @constructor
+ */
+ export class Logger {
+ constructor(id: string, key: Object);
+
+ /**
+ * Logs a debug message.
+ *
+ * @method debug
+ * @param {string} message The message to log
+ */
+ debug(message: string): void;
+
+ /**
+ * Logs info.
+ *
+ * @method info
+ * @param {string} message The message to log
+ */
+ info(message: string): void;
+
+ /**
+ * Logs a warning.
+ *
+ * @method warn
+ * @param {string} message The message to log
+ */
+ warn(message: string): void;
+
+ /**
+ * Logs an error.
+ *
+ * @method error
+ * @param {string} message The message to log
+ */
+ error(message: string): void;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-metadata.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-metadata.d.ts
new file mode 100644
index 000000000..dd0285c45
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-metadata.d.ts
@@ -0,0 +1,49 @@
+declare module 'aurelia-metadata' {
+ import core from 'core-js';
+
+ /**
+ * Provides helpers for working with metadata.
+ *
+ * @class Metadata
+ * @static
+ */
+ export var Metadata: any;
+
+ /**
+ * A metadata annotation that describes the origin module of the function to which it's attached.
+ *
+ * @class Origin
+ * @constructor
+ * @param {string} moduleId The origin module id.
+ * @param {string} moduleMember The name of the export in the origin module.
+ */
+ export class Origin {
+ constructor(moduleId: string, moduleMember: string);
+
+ /**
+ * Get the Origin annotation for the specified function.
+ *
+ * @method get
+ * @static
+ * @param {Function} fn The function to inspect for Origin metadata.
+ * @return {Origin} Returns the Origin metadata.
+ */
+ static get(fn: Function): any;
+
+ /**
+ * Set the Origin annotation for the specified function.
+ *
+ * @method set
+ * @static
+ * @param {Function} fn The function to set the Origin metadata on.
+ * @param {origin} fn The Origin metadata to store on the function.
+ * @return {Origin} Returns the Origin metadata.
+ */
+ static set(fn: Function, origin: Origin): any;
+ }
+ export class DecoratorApplicator {
+ constructor();
+ decorator(decorator: Function): DecoratorApplicator;
+ }
+ export var Decorators: any;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-path.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-path.d.ts
new file mode 100644
index 000000000..a809d77b2
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-path.d.ts
@@ -0,0 +1,5 @@
+declare module 'aurelia-path' {
+ export function relativeToFile(name: string, file: string): string;
+ export function join(path1: string, path2: string): string;
+ export function buildQueryString(a: Object, traditional?: boolean): string;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-route-recognizer.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-route-recognizer.d.ts
new file mode 100644
index 000000000..b5e7ed87e
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-route-recognizer.d.ts
@@ -0,0 +1,168 @@
+declare module 'aurelia-route-recognizer' {
+ import core from 'core-js';
+ export interface RouteHandler {
+ name: string;
+ }
+ export interface ConfigurableRoute {
+ path: string;
+ handler: RouteHandler;
+ }
+ export interface HandlerEntry {
+ handler: RouteHandler;
+ names: string[];
+ }
+ export interface RecognizedRoute {
+ handler: RouteHandler;
+ params: Object;
+ isDynamic: boolean;
+ }
+ export interface CharSpec {
+ invalidChars?: string;
+ validChars?: string;
+ repeat?: boolean;
+ }
+
+ // A State has a character specification and (`charSpec`) and a list of possible
+ // subsequent states (`nextStates`).
+ //
+ // If a State is an accepting state, it will also have several additional
+ // properties:
+ //
+ // * `regex`: A regular expression that is used to extract parameters from paths
+ // that reached this accepting state.
+ // * `handlers`: Information on how to convert the list of captures into calls
+ // to registered handlers with the specified parameters.
+ // * `types`: How many static, dynamic, or star segments in this route. Used to
+ // decide which route to use if multiple registered routes match a path.
+ //
+ // Currently, State is implemented naively by looping over `nextStates` and
+ // comparing a character specification against a character. A more efficient
+ // implementation would use a hash of keys pointing at one or more next states.
+ export class State {
+ constructor(charSpec: CharSpec);
+ get(charSpec: CharSpec): State;
+ put(charSpec: CharSpec): State;
+
+ // Find a list of child states matching the next character
+ match(ch: string): State[];
+ }
+
+ // A Segment represents a segment in the original route description.
+ // Each Segment type provides an `eachChar` and `regex` method.
+ //
+ // The `eachChar` method invokes the callback with one or more character
+ // specifications. A character specification consumes one or more input
+ // characters.
+ //
+ // The `regex` method returns a regex fragment for the segment. If the
+ // segment is a dynamic or star segment, the regex fragment also includes
+ // a capture.
+ //
+ // A character specification contains:
+ //
+ // * `validChars`: a String with a list of all valid characters, or
+ // * `invalidChars`: a String with a list of all invalid characters
+ // * `repeat`: true if the character specification can repeat
+ export class StaticSegment {
+ constructor(string: string);
+ eachChar(callback: ((spec: CharSpec) => void)): any;
+ regex(): string;
+ generate(params: Object, consumed: Object): string;
+ }
+ export class DynamicSegment {
+ constructor(name: string);
+ eachChar(callback: ((spec: CharSpec) => void)): any;
+ regex(): string;
+ generate(params: Object, consumed: Object): string;
+ }
+ export class StarSegment {
+ constructor(name: string);
+ eachChar(callback: ((spec: CharSpec) => void)): any;
+ regex(): string;
+ generate(params: Object, consumed: Object): string;
+ }
+ export class EpsilonSegment {
+ eachChar(callback: ((spec: CharSpec) => void)): any;
+ regex(): string;
+ generate(params: Object, consumed: Object): string;
+ }
+
+ /**
+ * Class that parses route patterns and matches path strings.
+ *
+ * @class RouteRecognizer
+ * @constructor
+ */
+ export class RouteRecognizer {
+ constructor();
+
+ /**
+ * Parse a route pattern and add it to the collection of recognized routes.
+ *
+ * @method add
+ * @param {Object} route The route to add.
+ */
+ add(route: ConfigurableRoute | ConfigurableRoute[]): State;
+
+ /**
+ * Retrieve the handlers registered for the named route.
+ *
+ * @method handlersFor
+ * @param {String} name The name of the route.
+ * @return {Array} The handlers.
+ */
+ handlersFor(name: string): HandlerEntry[];
+
+ /**
+ * Check if this RouteRecognizer recognizes a named route.
+ *
+ * @method hasRoute
+ * @param {String} name The name of the route.
+ * @return {Boolean} True if the named route is recognized.
+ */
+ hasRoute(name: string): boolean;
+
+ /**
+ * Generate a path and query string from a route name and params object.
+ *
+ * @method generate
+ * @param {String} name The name of the route.
+ * @param {Object} params The route params to use when populating the pattern.
+ * Properties not required by the pattern will be appended to the query string.
+ * @return {String} The generated absolute path and query string.
+ */
+ generate(name: string, params: Object): string;
+
+ /**
+ * Generate a query string from an object.
+ *
+ * @method generateQueryString
+ * @param {Object} params Object containing the keys and values to be used.
+ * @return {String} The generated query string, including leading '?'.
+ */
+ generateQueryString(params: Object): string;
+
+ /**
+ * Parse a query string.
+ *
+ * @method parseQueryString
+ * @param {String} The query string to parse.
+ * @return {Object} Object with keys and values mapped from the query string.
+ */
+ parseQueryString(queryString: string): Object;
+
+ /**
+ * Match a path string against registered route patterns.
+ *
+ * @method recognize
+ * @param {String} path The path to attempt to match.
+ * @return {Array} Array of objects containing `handler`, `params`, and
+ * `isDynanic` values for the matched route(s), or undefined if no match
+ * was found.
+ */
+ recognize(path: string): RecognizedRoute[];
+ }
+ class RecognizeResults {
+ constructor(queryParams: Object);
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-router.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-router.d.ts
new file mode 100644
index 000000000..93a8188eb
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-router.d.ts
@@ -0,0 +1,201 @@
+declare module 'aurelia-router' {
+ import * as core from 'core-js';
+ import * as LogManager from 'aurelia-logging';
+ import { Container } from 'aurelia-dependency-injection';
+ import { RouteRecognizer } from 'aurelia-route-recognizer';
+ import { join } from 'aurelia-path';
+ import { History } from 'aurelia-history';
+ import { EventAggregator } from 'aurelia-event-aggregator';
+ export class RouteFilterContainer {
+ static inject(): any;
+ constructor(container: any);
+ addStep(name: any, step: any, index?: any): any;
+ getFilterSteps(name: any): any;
+ }
+ export function createRouteFilterStep(name: any): any;
+ class RouteFilterStep {
+ constructor(name: any, routeFilterContainer: any);
+ getSteps(): any;
+ }
+ export const pipelineStatus: any;
+ export class Pipeline {
+ constructor();
+ withStep(step: any): any;
+ run(ctx: any): any;
+ }
+ export class NavigationInstruction {
+ fragment: string;
+ queryString: string;
+ params: any;
+ queryParams: any;
+ config: any;
+ parentInstruction: NavigationInstruction;
+ constructor(fragment: string, queryString?: string, params?: any, queryParams?: any, config?: any, parentInstruction?: NavigationInstruction);
+ addViewPortInstruction(viewPortName: any, strategy: any, moduleId: any, component: any): any;
+ getWildCardName(): string;
+ getWildcardPath(): string;
+ getBaseUrl(): string;
+ }
+
+ /**
+ * Class for storing and interacting with a route's navigation settings
+ *
+ * @class NavModel
+ * @constructor
+ */
+ export class NavModel {
+ constructor(router: any, relativeHref: any);
+
+ /**
+ * Sets the route's title and updates document.title.
+ * If the a navigation is in progress, the change will be applied
+ * to document.title when the navigation completes.
+ *
+ * @method setTitle
+ * @param {String} title The new title.
+ */
+ setTitle(title: any): any;
+ }
+ export function processPotential(obj: any, resolve: any, reject: any): any;
+ export function normalizeAbsolutePath(path: any, hasPushState: any): any;
+ export function createRootedPath(fragment: any, baseUrl: any, hasPushState: any): any;
+ export function resolveUrl(fragment: any, baseUrl: any, hasPushState: any): any;
+
+ /**
+ * Determines if the provided object is a navigation command.
+ * A navigation command is anything with a navigate method.
+ * @param {object} obj The item to check.
+ * @return {boolean}
+ */
+ export function isNavigationCommand(obj: any): any;
+
+ /**
+ * Used during the activation lifecycle to cause a redirect.
+ *
+ * @class Redirect
+ * @constructor
+ * @param {String} url The url to redirect to.
+ */
+ export class Redirect {
+ constructor(url: any, options: any);
+
+ /**
+ * Called by the activation system to set the child router.
+ *
+ * @method setRouter
+ * @param {Router} router
+ */
+ setRouter(router: any): any;
+
+ /**
+ * Called by the navigation pipeline to navigate.
+ *
+ * @method navigate
+ * @param {Router} appRouter - a router which should redirect
+ */
+ navigate(appRouter: any): any;
+ }
+ export class RouterConfiguration {
+ instructions: any;
+ options: any;
+ pipelineSteps: any;
+ title: any;
+ unknownRouteConfig: any;
+ addPipelineStep(name: any, step: any): any;
+ map(route: any): any;
+ mapRoute(config: any): any;
+ mapUnknownRoutes(config: any): any;
+ exportToRouter(router: any): any;
+ }
+ export const activationStrategy: any;
+ export function buildNavigationPlan(navigationContext: any, forceLifecycleMinimum: any): any;
+ export class BuildNavigationPlanStep {
+ run(navigationContext: any, next: any): any;
+ }
+ export var affirmations: any;
+ export class CanDeactivatePreviousStep {
+ run(navigationContext: any, next: any): any;
+ }
+ export class CanActivateNextStep {
+ run(navigationContext: any, next: any): any;
+ }
+ export class DeactivatePreviousStep {
+ run(navigationContext: any, next: any): any;
+ }
+ export class ActivateNextStep {
+ run(navigationContext: any, next: any): any;
+ }
+ export class NavigationContext {
+ constructor(router: any, nextInstruction: any);
+ getAllContexts(acc?: any): any;
+ nextInstructions(): any;
+ currentInstructions(): any;
+ prevInstructions(): any;
+ commitChanges(waitToSwap: any): any;
+ updateTitle(): any;
+ buildTitle(separator?: any): any;
+ }
+ export class CommitChangesStep {
+ run(navigationContext: any, next: any): any;
+ }
+ export class RouteLoader {
+ loadRoute(router: any, config: any): any;
+ }
+ export class LoadRouteStep {
+ static inject(): any;
+ constructor(routeLoader: any);
+ run(navigationContext: any, next: any): any;
+ }
+ export function loadNewRoute(routeLoader: any, navigationContext: any): any;
+ export class Router {
+ container: any;
+ history: any;
+ viewPorts: any;
+ baseUrl: string;
+ isConfigured: boolean;
+ fallbackOrder: number;
+ recognizer: RouteRecognizer;
+ childRecognizer: RouteRecognizer;
+ routes: any[];
+ isNavigating: boolean;
+ navigation: any[];
+ currentInstruction: NavigationInstruction;
+ constructor(container: any, history: any);
+ isRoot(): any;
+ registerViewPort(viewPort: Object, name?: string): any;
+ refreshBaseUrl(): any;
+ refreshNavigation(): any;
+ configure(callbackOrConfig: RouterConfiguration | ((config: RouterConfiguration) => RouterConfiguration)): Router;
+ navigate(fragment: string, options?: Object): boolean;
+ navigateToRoute(route: string, params?: Object, options?: Object): boolean;
+ navigateBack(): any;
+ createChild(container?: Container): Router;
+ createNavigationInstruction(url?: string, parentInstruction?: NavigationInstruction): Promise;
+ createNavigationContext(instruction: NavigationInstruction): NavigationContext;
+ generate(name: string, params?: Object): string;
+ createNavModel(config: Object): NavModel;
+ addRoute(config: Object, navModel?: NavModel): any;
+ hasRoute(name: string): boolean;
+ hasOwnRoute(name: string): boolean;
+ handleUnknownRoutes(config?: string | Function | Object): any;
+ updateTitle(): any;
+ reset(): any;
+ }
+ export class PipelineProvider {
+ static inject(): any;
+ constructor(container: any);
+ createPipeline(navigationContext: any): any;
+ }
+ export class AppRouter extends Router {
+ static inject(): any;
+ constructor(container: any, history: any, pipelineProvider: any, events: any);
+ isRoot(): any;
+ loadUrl(url: any): any;
+ queueInstruction(instruction: any): any;
+ dequeueInstruction(instructionCount?: any): any;
+ registerViewPort(viewPort: any, name: any): any;
+ activate(options: any): any;
+ deactivate(): any;
+ reset(): any;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-skeleton-navigation.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-skeleton-navigation.d.ts
new file mode 100644
index 000000000..a7c342610
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-skeleton-navigation.d.ts
@@ -0,0 +1,51 @@
+declare module 'aurelia-skeleton-navigation/animation-main' {
+ export function configure(aurelia: any): void;
+
+}
+declare module 'aurelia-skeleton-navigation/app' {
+ import { Router } from 'aurelia-router';
+ export class App {
+ router: Router;
+ configureRouter(config: any, router: any): void;
+ }
+
+}
+declare module 'aurelia-skeleton-navigation/child-router' {
+ import { Router } from 'aurelia-router';
+ export class ChildRouter {
+ router: Router;
+ configureRouter(config: any, router: any): void;
+ }
+
+}
+declare module 'aurelia-skeleton-navigation/flickr' {
+ export class Flickr {
+ heading: string;
+ images: any[];
+ http: any;
+ url: string;
+ constructor(http: any);
+ activate(): any;
+ canDeactivate(): boolean;
+ }
+
+}
+declare module 'aurelia-skeleton-navigation/nav-bar' {
+ export class NavBar {
+ router: any;
+ }
+
+}
+declare module 'aurelia-skeleton-navigation/welcome' {
+ export class Welcome {
+ heading: string;
+ firstName: string;
+ lastName: string;
+ fullName: string;
+ welcome(): void;
+ }
+ export class UpperValueConverter {
+ toView(value: any): any;
+ }
+
+}
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-skeleton-plugin.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-skeleton-plugin.d.ts
new file mode 100644
index 000000000..c60e1f653
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-skeleton-plugin.d.ts
@@ -0,0 +1,12 @@
+declare module 'aurelia-skeleton-plugin/hello-world' {
+ export class HelloWorld {
+ }
+
+}
+declare module 'aurelia-skeleton-plugin/index' {
+ export function configure(aurelia: any): void;
+
+}
+declare module 'aurelia-skeleton-plugin' {
+ export * from 'aurelia-skeleton-plugin/index';
+}
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-task-queue.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-task-queue.d.ts
new file mode 100644
index 000000000..3d5be16b7
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-task-queue.d.ts
@@ -0,0 +1,10 @@
+declare module 'aurelia-task-queue' {
+ export class TaskQueue {
+ constructor();
+ queueMicroTask(task: any): any;
+ queueTask(task: any): any;
+ flushTaskQueue(): any;
+ flushMicroTaskQueue(): any;
+ onError(error: any, task: any): any;
+ }
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-templating-binding.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-templating-binding.d.ts
new file mode 100644
index 000000000..a377d5a6e
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-templating-binding.d.ts
@@ -0,0 +1,40 @@
+declare module 'aurelia-templating-binding' {
+ import * as LogManager from 'aurelia-logging';
+ import { Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, NameExpression, CallExpression, bindingMode } from 'aurelia-binding';
+ import { BindingLanguage } from 'aurelia-templating';
+ export class SyntaxInterpreter {
+ static inject(): any;
+ constructor(parser: any, observerLocator: any, eventManager: any);
+ interpret(resources: any, element: any, info: any, existingInstruction: any): any;
+ handleUnknownCommand(resources: any, element: any, info: any, existingInstruction: any): any;
+ determineDefaultBindingMode(element: any, attrName: any): any;
+ bind(resources: any, element: any, info: any, existingInstruction: any): any;
+ trigger(resources: any, element: any, info: any): any;
+ delegate(resources: any, element: any, info: any): any;
+ call(resources: any, element: any, info: any, existingInstruction: any): any;
+ options(resources: any, element: any, info: any, existingInstruction: any): any;
+ }
+ export class TemplatingBindingLanguage extends BindingLanguage {
+ static inject(): any;
+ constructor(parser: any, observerLocator: any, syntaxInterpreter: any);
+ inspectAttribute(resources: any, attrName: any, attrValue: any): any;
+ createAttributeInstruction(resources: any, element: any, info: any, existingInstruction: any): any;
+ parseText(resources: any, value: any): any;
+ parseContent(resources: any, attrName: any, attrValue: any): any;
+ }
+ export class InterpolationBindingExpression {
+ constructor(observerLocator: any, targetProperty: any, parts: any, mode: any, valueConverterLookupFunction: any, attribute: any);
+ createBinding(target: any): any;
+ }
+ class InterpolationBinding {
+ constructor(observerLocator: any, parts: any, target: any, targetProperty: any, mode: any, valueConverterLookupFunction: any);
+ getObserver(obj: any, propertyName: any): any;
+ bind(source: any): any;
+ setValue(): any;
+ partChanged(newValue: any, oldValue: any, connecting: any): any;
+ connect(): any;
+ interpolate(): any;
+ unbind(): any;
+ }
+ export function configure(aurelia: any): any;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-templating-resources.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-templating-resources.d.ts
new file mode 100644
index 000000000..29d431eb7
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-templating-resources.d.ts
@@ -0,0 +1,130 @@
+declare module 'aurelia-templating-resources/compose' {
+ export class Compose {
+ element: any;
+ container: any;
+ compositionEngine: any;
+ viewSlot: any;
+ viewResources: any;
+ taskQueue: any;
+ executionContext: any;
+ view: any;
+ viewModel: any;
+ model: any;
+ currentInstruction: any;
+ currentViewModel: any;
+ constructor(element: any, container: any, compositionEngine: any, viewSlot: any, viewResources: any, taskQueue: any);
+ bind(executionContext: any): void;
+ modelChanged(newValue: any, oldValue: any): void;
+ viewChanged(newValue: any, oldValue: any): void;
+ viewModelChanged(newValue: any, oldValue: any): void;
+ }
+
+}
+declare module 'aurelia-templating-resources/global-behavior' {
+ export class GlobalBehavior {
+ element: any;
+ handler: any;
+ aureliaCommand: any;
+ aureliaAttrName: any;
+ static handlers: any;
+ static createSettingsFromBehavior: any;
+ static jQueryPlugins: any;
+ constructor(element: any);
+ bind(): void;
+ attached(): void;
+ detached(): void;
+ unbind(): void;
+ }
+
+}
+declare module 'aurelia-templating-resources/if' {
+ export class If {
+ viewFactory: any;
+ viewSlot: any;
+ showing: any;
+ view: any;
+ constructor(viewFactory: any, viewSlot: any);
+ valueChanged(newValue: any): void;
+ }
+
+}
+declare module 'aurelia-templating-resources/with' {
+ export class With {
+ viewFactory: any;
+ viewSlot: any;
+ view: any;
+ constructor(viewFactory: any, viewSlot: any);
+ valueChanged(newValue: any): void;
+ }
+
+}
+declare module 'aurelia-templating-resources/repeat' {
+ export class Repeat {
+ viewFactory: any;
+ viewSlot: any;
+ observerLocator: any;
+ local: any;
+ key: any;
+ value: any;
+ items: any;
+ executionContext: any;
+ oldItems: any;
+ disposeSubscription: any;
+ lastBoundItems: any;
+ constructor(viewFactory: any, viewSlot: any, observerLocator: any);
+ bind(executionContext: any): void;
+ unbind(): void;
+ itemsChanged(): void;
+ processItems(): void;
+ processArrayItems(items: any): void;
+ processMapEntries(items: any): void;
+ processNumber(value: any): void;
+ createBaseExecutionContext(data: any): any;
+ createBaseExecutionKvpContext(key: any, value: any): any;
+ createFullExecutionContext(data: any, index: any, length: any): any;
+ createFullExecutionKvpContext(key: any, value: any, index: any, length: any): any;
+ updateExecutionContext(context: any, index: any, length: any): any;
+ handleSplices(array: any, splices: any): void;
+ handleMapChangeRecords(map: any, records: any): void;
+ getViewIndexByKey(key: any): any;
+ }
+
+}
+declare module 'aurelia-templating-resources/show' {
+ export class Show {
+ element: any;
+ constructor(element: any);
+ valueChanged(newValue: any): void;
+ }
+
+}
+declare module 'aurelia-templating-resources/sanitize-html' {
+ export class SanitizeHtmlValueConverter {
+ static defaultSanitizer(untrustedMarkup: any): any;
+ sanitizer: any;
+ constructor();
+ toView(untrustedMarkup: any): any;
+ }
+
+}
+declare module 'aurelia-templating-resources/replaceable' {
+ export class Replaceable {
+ constructor(viewFactory: any, viewSlot: any);
+ }
+
+}
+declare module 'aurelia-templating-resources/index' {
+ export function configure(aurelia: any): void;
+ export { Compose } from 'aurelia-templating-resources/compose';
+ export { If } from 'aurelia-templating-resources/if';
+ export { With } from 'aurelia-templating-resources/with';
+ export { Repeat } from 'aurelia-templating-resources/repeat';
+ export { Show } from 'aurelia-templating-resources/show';
+ export { GlobalBehavior } from 'aurelia-templating-resources/global-behavior';
+ export { SanitizeHtmlValueConverter } from 'aurelia-templating-resources/sanitize-html';
+ export { Replaceable } from 'aurelia-templating-resources/replaceable';
+
+}
+declare module 'aurelia-templating-resources' {
+ export * from 'aurelia-templating-resources/index';
+}
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-templating-router.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-templating-router.d.ts
new file mode 100644
index 000000000..d9ac7acf4
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-templating-router.d.ts
@@ -0,0 +1,47 @@
+declare module 'aurelia-templating-router/route-loader' {
+ import { RouteLoader } from 'aurelia-router';
+ export class TemplatingRouteLoader extends RouteLoader {
+ compositionEngine: any;
+ constructor(compositionEngine: any);
+ loadRoute(router: any, config: any): any;
+ }
+
+}
+declare module 'aurelia-templating-router/router-view' {
+ export class RouterView {
+ element: any;
+ container: any;
+ viewSlot: any;
+ router: any;
+ view: any;
+ constructor(element: any, container: any, viewSlot: any, router: any);
+ bind(executionContext: any): void;
+ process(viewPortInstruction: any, waitToSwap: any): any;
+ swap(viewPortInstruction: any): void;
+ }
+
+}
+declare module 'aurelia-templating-router/route-href' {
+ export class RouteHref {
+ router: any;
+ element: any;
+ route: any;
+ params: any;
+ attribute: any;
+ constructor(router: any, element: any);
+ bind(): void;
+ attributeChanged(value: any, previous: any): void;
+ processChange(): void;
+ }
+
+}
+declare module 'aurelia-templating-router/index' {
+ export function configure(aurelia: any): void;
+ export { TemplatingRouteLoader } from 'aurelia-templating-router/route-loader';
+ export { RouterView } from 'aurelia-templating-router/router-view';
+ export { RouteHref } from 'aurelia-templating-router/route-href';
+
+}
+declare module 'aurelia-templating-router' {
+ export * from 'aurelia-templating-router/index';
+}
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-templating.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-templating.d.ts
new file mode 100644
index 000000000..eeac85a2d
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-templating.d.ts
@@ -0,0 +1,318 @@
+declare module 'aurelia-templating' {
+ import core from 'core-js';
+ import * as LogManager from 'aurelia-logging';
+ import { Metadata, Origin, Decorators } from 'aurelia-metadata';
+ import { relativeToFile } from 'aurelia-path';
+ import { TemplateRegistryEntry, Loader } from 'aurelia-loader';
+ import { Container } from 'aurelia-dependency-injection';
+ import { bindingMode, ObserverLocator, BindingExpression, Binding, ValueConverterResource, EventManager } from 'aurelia-binding';
+ import { TaskQueue } from 'aurelia-task-queue';
+ export let DOMBoundary: any;
+ export function createTemplateFromMarkup(markup: any): any;
+ export function replaceNode(newNode: any, node: any, parentNode: any): any;
+ export function removeNode(node: any, parentNode: any): any;
+ export const animationEvent: any;
+ export class Animator {
+ static configureDefault(container: any, animatorInstance: any): any;
+ move(): any;
+
+ /**
+ * Execute an 'enter' animation on an element
+ *
+ * @param element {HTMLElement} Element to animate
+ *
+ * @returns {Promise} Resolved when the animation is done
+ */
+ enter(element: any): any;
+
+ /**
+ * Execute a 'leave' animation on an element
+ *
+ * @param element {HTMLElement} Element to animate
+ *
+ * @returns {Promise} Resolved when the animation is done
+ */
+ leave(element: any): any;
+
+ /**
+ * Add a class to an element to trigger an animation.
+ *
+ * @param element {HTMLElement} Element to animate
+ * @param className {String} Properties to animate or name of the effect to use
+ *
+ * @returns {Promise} Resolved when the animation is done
+ */
+ removeClass(element: any, className: any): any;
+
+ /**
+ * Add a class to an element to trigger an animation.
+ *
+ * @param element {HTMLElement} Element to animate
+ * @param className {String} Properties to animate or name of the effect to use
+ *
+ * @returns {Promise} Resolved when the animation is done
+ */
+ addClass(element: any, className: any): any;
+
+ /**
+ * Execute a single animation.
+ *
+ * @param element {HTMLElement} Element to animate
+ * @param className {Object|String} Properties to animate or name of the effect to use
+ * For css animators this represents the className to
+ * be added and removed right after the animation is done
+ * @param options {Object} options for the animation (duration, easing, ...)
+ *
+ * @returns {Promise} Resolved when the animation is done
+ */
+ animate(element: any, className: any, options: any): any;
+
+ /**
+ * Run a sequence of animations one after the other.
+ * for example : animator.runSequence("fadeIn","callout")
+ *
+ * @param sequence {Array} An array of effectNames or classNames
+ *
+ * @returns {Promise} Resolved when all animations are done
+ */
+ runSequence(sequence: any): any;
+
+ /**
+ * Register an effect (for JS based animators)
+ *
+ * @param effectName {String} name identifier of the effect
+ * @param properties {Object} Object with properties for the effect
+ *
+ */
+ registerEffect(effectName: any, properties: any): any;
+
+ /**
+ * Unregister an effect (for JS based animators)
+ *
+ * @param effectName {String} name identifier of the effect
+ */
+ unregisterEffect(effectName: any): any;
+ }
+ export function hyphenate(name: any): any;
+ export function nextElementSibling(element: any): any;
+ export class ViewStrategy {
+ static metadataKey: string;
+ makeRelativeTo(baseUrl: string): any;
+ static normalize(value: string | ViewStrategy): any;
+ static getDefault(target: any): ViewStrategy;
+ }
+ export class UseViewStrategy extends ViewStrategy {
+ constructor(path: string);
+ loadViewFactory(viewEngine: ViewEngine, options: Object, loadContext?: string[]): Promise;
+ makeRelativeTo(file: string): any;
+ }
+ export class ConventionalViewStrategy extends ViewStrategy {
+ constructor(moduleId: string);
+ loadViewFactory(viewEngine: ViewEngine, options: Object, loadContext?: string[]): Promise;
+ static convertModuleIdToViewUrl(moduleId: string): string;
+ }
+ export class NoViewStrategy extends ViewStrategy {
+ loadViewFactory(viewEngine: ViewEngine, options: Object, loadContext?: string[]): Promise;
+ }
+ export class TemplateRegistryViewStrategy extends ViewStrategy {
+ constructor(moduleId: string, entry: TemplateRegistryEntry);
+ loadViewFactory(viewEngine: ViewEngine, options: Object, loadContext?: string[]): Promise;
+ }
+ export class InlineViewStrategy extends ViewStrategy {
+ constructor(markup: string, dependencies?: Array, dependencyBaseUrl?: string);
+ loadViewFactory(viewEngine: ViewEngine, options: Object, loadContext?: string[]): Promise;
+ }
+ export class BindingLanguage {
+ inspectAttribute(resources: any, attrName: any, attrValue: any): any;
+ createAttributeInstruction(resources: any, element: any, info: any, existingInstruction: any): any;
+ parseText(resources: any, value: any): any;
+ }
+ export class ResourceRegistry {
+ constructor();
+ registerElement(tagName: any, behavior: any): any;
+ getElement(tagName: any): any;
+ registerAttribute(attribute: any, behavior: any, knownAttribute: any): any;
+ getAttribute(attribute: any): any;
+ registerValueConverter(name: any, valueConverter: any): any;
+ getValueConverter(name: any): any;
+ }
+ export class ViewResources extends ResourceRegistry {
+ constructor(parent: any, viewUrl: any);
+ relativeToView(path: any): any;
+ getElement(tagName: any): any;
+ mapAttribute(attribute: any): any;
+ getAttribute(attribute: any): any;
+ getValueConverter(name: any): any;
+ }
+
+ // NOTE: Adding a fragment to the document causes the nodes to be removed from the fragment.
+ // NOTE: Adding to the fragment, causes the nodes to be removed from the document.
+ export class View {
+ constructor(container: any, fragment: any, behaviors: any, bindings: any, children: any, systemControlled: any, contentSelectors: any);
+ created(executionContext: any): any;
+ bind(executionContext: any, systemUpdate: any): any;
+ addBinding(binding: any): any;
+ unbind(): any;
+ insertNodesBefore(refNode: any): any;
+ appendNodesTo(parent: any): any;
+ removeNodes(): any;
+ attached(): any;
+ detached(): any;
+ }
+ export class ContentSelector {
+ static applySelectors(view: any, contentSelectors: any, callback: any): any;
+ constructor(anchor: any, selector: any);
+ copyForViewSlot(): any;
+ matches(node: any): any;
+ add(group: any): any;
+ insert(index: any, group: any): any;
+ removeAt(index: any, fragment: any): any;
+ }
+ export class ViewSlot {
+ constructor(anchor: any, anchorIsContainer: any, executionContext: any, animator?: any);
+ transformChildNodesIntoView(): any;
+ bind(executionContext: any): any;
+ unbind(): any;
+ add(view: any): any;
+ insert(index: any, view: any): any;
+ remove(view: any): any;
+ removeAt(index: any): any;
+ removeAll(): any;
+ swap(view: any): any;
+ attached(): any;
+ detached(): any;
+ installContentSelectors(contentSelectors: any): any;
+ contentSelectorAdd(view: any): any;
+ contentSelectorInsert(index: any, view: any): any;
+ contentSelectorRemove(view: any): any;
+ contentSelectorRemoveAt(index: any): any;
+ contentSelectorRemoveAll(): any;
+ }
+ export class BoundViewFactory {
+ constructor(parentContainer: any, viewFactory: any, executionContext: any, partReplacements: any);
+ create(executionContext: any): any;
+ }
+ export class ViewFactory {
+ constructor(template: any, instructions: any, resources: any);
+ create(container: any, executionContext: any, options?: any, element?: any): any;
+ }
+ export class ViewCompiler {
+ static inject(): any;
+ constructor(bindingLanguage: any);
+ compile(templateOrFragment: any, resources: any, options?: any): any;
+ compileNode(node: any, resources: any, instructions: any, parentNode: any, parentInjectorId: any, targetLightDOM: any): any;
+ compileSurrogate(node: any, resources: any): any;
+ compileElement(node: any, resources: any, instructions: any, parentNode: any, parentInjectorId: any, targetLightDOM: any): any;
+ }
+ class ProxyViewFactory {
+ constructor(promise: any);
+ absorb(factory: any): any;
+ }
+ export class ViewEngine {
+ static inject(): any;
+ constructor(loader: Loader, container: Container, viewCompiler: ViewCompiler, moduleAnalyzer: ModuleAnalyzer, appResources: ResourceRegistry);
+ enhance(container: any, element: any, resources: any, bindingContext: any): any;
+ loadViewFactory(urlOrRegistryEntry: string | TemplateRegistryEntry, compileOptions?: Object, associatedModuleId?: string, loadContext?: string[]): Promise;
+ loadTemplateResources(viewRegistryEntry: TemplateRegistryEntry, associatedModuleId?: string, loadContext?: string[]): Promise;
+ importViewModelResource(moduleImport: string, moduleMember: string): Promise;
+ importViewResources(moduleIds: string[], names: string[], resources: ResourceRegistry, associatedModuleId?: string, loadContext?: string[]): Promise;
+ }
+ export class BehaviorInstance {
+ constructor(behavior: any, executionContext: any, instruction: any);
+ static createForUnitTest(type: any, attributes: any, bindingContext: any): any;
+ created(context: any): any;
+ bind(context: any): any;
+ unbind(): any;
+ attached(): any;
+ detached(): any;
+ }
+ export class BindableProperty {
+ constructor(nameOrConfig: any);
+ registerWith(target: any, behavior: any, descriptor: any): any;
+ configureDescriptor(behavior: any, descriptor: any): any;
+ defineOn(target: any, behavior: any): any;
+ createObserver(executionContext: any): any;
+ initialize(executionContext: any, observerLookup: any, attributes: any, behaviorHandlesBind: any, boundProperties: any): any;
+ createDynamicProperty(executionContext: any, observerLookup: any, behaviorHandlesBind: any, name: any, attribute: any, boundProperties: any): any;
+ }
+ class BehaviorPropertyObserver {
+ constructor(taskQueue: any, obj: any, propertyName: any, selfSubscriber: any, initialValue: any);
+ getValue(): any;
+ setValue(newValue: any): any;
+ call(): any;
+ subscribe(callback: any): any;
+ }
+ export class HtmlBehaviorResource {
+ constructor();
+ static convention(name: string, existing?: HtmlBehaviorResource): any;
+ addChildBinding(behavior: BindingExpression): any;
+ analyze(container: Container, target: Function): any;
+ load(container: Container, target: Function, viewStrategy?: ViewStrategy, transientView?: boolean, loadContext?: string[]): Promise;
+ register(registry: ResourceRegistry, name?: string): any;
+ compile(compiler: ViewCompiler, resources: ResourceRegistry, node: Node, instruction: Object, parentNode?: Node): Node;
+ create(container: Container, instruction?: Object, element?: Element, bindings?: Binding[]): BehaviorInstance;
+ ensurePropertiesDefined(instance: Object, lookup: Object): any;
+ }
+ export class ResourceModule {
+ constructor(moduleId: string);
+ analyze(container: Container): any;
+ register(registry: ResourceRegistry, name?: string): any;
+ load(container: Container, loadContext?: string[]): Promise;
+ }
+ export class ResourceDescription {
+ constructor(key: string, exportedValue: any, resourceTypeMeta: Object);
+ analyze(container: Container): any;
+ register(registry: ResourceRegistry, name?: string): any;
+ load(container: Container, loadContext?: string[]): Promise | void;
+ static get(resource: any, key?: string): ResourceDescription;
+ }
+ export class ModuleAnalyzer {
+ constructor();
+ getAnalysis(moduleId: string): ResourceModule;
+ analyze(moduleId: string, moduleInstance: any, viewModelMember?: string): ResourceModule;
+ }
+ export class ChildObserver {
+ constructor(config: any);
+ create(target: any, behavior: any): any;
+ }
+
+ // TODO: we really only want one child observer per element. Right now you can have many, via @sync.
+ // We need to enable a way to share the observer across all uses and direct matches to the correct source.
+ export class ChildObserverBinder {
+ constructor(selector: any, target: any, property: any, behavior: any, changeHandler: any);
+ bind(source: any): any;
+ unbind(): any;
+ onChange(mutations: any): any;
+ }
+ export class CompositionEngine {
+ static inject(): any;
+ constructor(viewEngine: any);
+ activate(instruction: any): any;
+ createBehaviorAndSwap(instruction: any): any;
+ createBehavior(instruction: any): any;
+ createViewModel(instruction: any): any;
+ compose(instruction: any): any;
+ }
+ export class ElementConfigResource {
+ load(container: any, target: any): any;
+ register(): any;
+ }
+ export function behavior(override: any): any;
+ export function customElement(name: any): any;
+ export function customAttribute(name: any, defaultBindingMode: any): any;
+ export function templateController(target: any): any;
+ export function bindable(nameOrConfigOrTarget?: any, key?: any, descriptor?: any): any;
+ export function dynamicOptions(target: any): any;
+ export function sync(selectorOrConfig: any): any;
+ export function useShadowDOM(target: any): any;
+
+ // this is now deprecated in favor of the processContent decorator
+ export function skipContentProcessing(target: any): any;
+ export function processContent(processor: any): any;
+ export function containerless(target: any): any;
+ export function viewStrategy(strategy: any): any;
+ export function useView(path: any): any;
+ export function inlineView(markup: string, dependencies?: Array, dependencyBaseUrl?: string): any;
+ export function noView(target: any): any;
+ export function elementConfig(target: any): any;
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/aurelia/aurelia-validation.d.ts b/src/Jackett.Web/typings/aurelia/aurelia-validation.d.ts
new file mode 100644
index 000000000..645f5274d
--- /dev/null
+++ b/src/Jackett.Web/typings/aurelia/aurelia-validation.d.ts
@@ -0,0 +1,614 @@
+declare module 'aurelia-validation/validation/utilities' {
+ export class Utilities {
+ constructor();
+ static getValue(val: any): any;
+ static isEmptyValue(val: any): boolean;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-locale' {
+ export class ValidationLocale {
+ static Repository: any;
+ defaults: any;
+ currentLocale: any;
+ constructor(defaults: any, data: any);
+ getValueFor(identifier: any, category: any): any;
+ setting(settingIdentifier: any): any;
+ translate(translationIdentifier: any, newValue: any, threshold: any): any;
+ }
+
+}
+declare module 'aurelia-validation/validation/validate-custom-attribute-view-strategy' {
+ export class ValidateCustomAttributeViewStrategyBase {
+ bindingPathAttributes: any;
+ constructor();
+ getValidationProperty(validation: any, element: any): any;
+ prepareElement(validationProperty: any, element: any): void;
+ updateElement(validationProperty: any, element: any): void;
+ }
+ export class TWBootstrapViewStrategy extends ValidateCustomAttributeViewStrategyBase {
+ appendMessageToInput: any;
+ appendMessageToLabel: any;
+ helpBlockClass: any;
+ constructor(appendMessageToInput: any, appendMessageToLabel: any, helpBlockClass: any);
+ searchFormGroup(currentElement: any, currentDepth: any): any;
+ findLabels(formGroup: any, inputId: any): any[];
+ findLabelsRecursively(currentElement: any, inputId: any, currentLabels: any, currentDepth: any): void;
+ appendMessageToElement(element: any, validationProperty: any): void;
+ appendUIVisuals(validationProperty: any, currentElement: any): void;
+ prepareElement(validationProperty: any, element: any): void;
+ updateElement(validationProperty: any, element: any): void;
+ }
+ export class ValidateCustomAttributeViewStrategy {
+ static TWBootstrapAppendToInput: any;
+ static TWBootstrapAppendToMessage: any;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-config' {
+ export class ValidationConfigDefaults {
+ static _defaults: any;
+ static defaults: any;
+ }
+ export class ValidationConfig {
+ static uniqueListenerId: any;
+ innerConfig: any;
+ values: any;
+ changedHandlers: any;
+ constructor(innerConfig?: any);
+ getValue(identifier: any): any;
+ setValue(identifier: any, value: any): ValidationConfig;
+ onLocaleChanged(callback: any): any;
+ getDebounceTimeout(): any;
+ useDebounceTimeout(value: any): ValidationConfig;
+ getDependencies(): any;
+ computedFrom(dependencies: any): ValidationConfig;
+ useLocale(localeIdentifier: any): ValidationConfig;
+ locale(): any;
+ useViewStrategy(viewStrategy: any): ValidationConfig;
+ getViewStrategy(): any;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-result' {
+ export class ValidationResult {
+ isValid: any;
+ properties: any;
+ constructor();
+ addProperty(name: any): any;
+ checkValidity(): void;
+ clear(): void;
+ }
+ export class ValidationResultProperty {
+ group: any;
+ onValidateCallbacks: any;
+ isValid: any;
+ isDirty: any;
+ message: any;
+ failingRule: any;
+ latestValue: any;
+ constructor(group: any);
+ clear(): void;
+ onValidate(onValidateCallback: any): void;
+ notifyObserversOfChange(): void;
+ setValidity(validationResponse: any, shouldBeDirty: any): void;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-rules' {
+ export class ValidationRule {
+ onValidate: any;
+ threshold: any;
+ message: any;
+ errorMessage: any;
+ ruleName: any;
+ constructor(threshold: any, onValidate: any, message?: any);
+ withMessage(message: any): void;
+ explain(): any;
+ setResult(result: any, currentValue: any, locale: any): boolean;
+ /**
+ * Validation rules: return a promise that fulfills and resolves to true/false
+ */
+ validate(currentValue: any, locale: any): Promise;
+ }
+ export class EmailValidationRule extends ValidationRule {
+ isFQDN: any;
+ emailUserUtf8Regex: any;
+ constructor();
+ }
+ export class MinimumLengthValidationRule extends ValidationRule {
+ constructor(minimumLength: any);
+ }
+ export class MaximumLengthValidationRule extends ValidationRule {
+ constructor(maximumLength: any);
+ }
+ export class BetweenLengthValidationRule extends ValidationRule {
+ constructor(minimumLength: any, maximumLength: any);
+ }
+ export class CustomFunctionValidationRule extends ValidationRule {
+ constructor(customFunction: any, threshold: any);
+ }
+ export class NumericValidationRule extends ValidationRule {
+ constructor();
+ }
+ export class RegexValidationRule extends ValidationRule {
+ constructor(regex: any);
+ }
+ export class ContainsOnlyValidationRule extends RegexValidationRule {
+ constructor(regex: any);
+ }
+ export class MinimumValueValidationRule extends ValidationRule {
+ constructor(minimumValue: any);
+ }
+ export class MinimumInclusiveValueValidationRule extends ValidationRule {
+ constructor(minimumValue: any);
+ }
+ export class MaximumValueValidationRule extends ValidationRule {
+ constructor(maximumValue: any);
+ }
+ export class MaximumInclusiveValueValidationRule extends ValidationRule {
+ constructor(maximumValue: any);
+ }
+ export class BetweenValueValidationRule extends ValidationRule {
+ constructor(minimumValue: any, maximumValue: any);
+ }
+ export class DigitValidationRule extends ValidationRule {
+ digitRegex: any;
+ constructor();
+ }
+ export class AlphaNumericValidationRule extends ValidationRule {
+ alphaNumericRegex: any;
+ constructor();
+ }
+ export class AlphaValidationRule extends ValidationRule {
+ alphaRegex: any;
+ constructor();
+ }
+ export class AlphaOrWhitespaceValidationRule extends ValidationRule {
+ alphaNumericRegex: any;
+ constructor();
+ }
+ export class AlphaNumericOrWhitespaceValidationRule extends ValidationRule {
+ alphaNumericRegex: any;
+ constructor();
+ }
+ export class MediumPasswordValidationRule extends ValidationRule {
+ constructor(minimumComplexityLevel: any);
+ }
+ export class StrongPasswordValidationRule extends MediumPasswordValidationRule {
+ constructor();
+ }
+ export class EqualityValidationRuleBase extends ValidationRule {
+ constructor(otherValue: any, equality: any, otherValueLabel?: any);
+ }
+ export class EqualityValidationRule extends EqualityValidationRuleBase {
+ constructor(otherValue: any);
+ }
+ export class EqualityWithOtherLabelValidationRule extends EqualityValidationRuleBase {
+ constructor(otherValue: any, otherLabel: any);
+ }
+ export class InEqualityValidationRule extends EqualityValidationRuleBase {
+ constructor(otherValue: any);
+ }
+ export class InEqualityWithOtherLabelValidationRule extends EqualityValidationRuleBase {
+ constructor(otherValue: any, otherLabel: any);
+ }
+ export class InCollectionValidationRule extends ValidationRule {
+ constructor(collection: any);
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-rules-collection' {
+ export class ValidationRulesCollection {
+ isRequired: any;
+ validationRules: any;
+ validationCollections: any;
+ isRequiredMessage: any;
+ constructor();
+ /**
+ * Returns a promise that fulfils and resolves to simple result status object.
+ */
+ validate(newValue: any, locale: any): Promise<{
+ isValid: boolean;
+ message: any;
+ failingRule: string;
+ latestValue: any;
+ }>;
+ addValidationRule(validationRule: any): void;
+ addValidationRuleCollection(validationRulesCollection: any): void;
+ isNotEmpty(): void;
+ withMessage(message: any): void;
+ }
+ export class SwitchCaseValidationRulesCollection {
+ conditionExpression: any;
+ innerCollections: any;
+ defaultCollection: any;
+ caseLabel: any;
+ defaultCaseLabel: any;
+ constructor(conditionExpression: any);
+ case(caseLabel: any): void;
+ default(): void;
+ getCurrentCollection(caseLabel: any, createIfNotExists?: boolean): any;
+ validate(newValue: any, locale: any): any;
+ addValidationRule(validationRule: any): void;
+ addValidationRuleCollection(validationRulesCollection: any): void;
+ isNotEmpty(): void;
+ withMessage(message: any): void;
+ }
+
+}
+declare module 'aurelia-validation/validation/path-observer' {
+ export class PathObserver {
+ observerLocator: any;
+ path: any;
+ subject: any;
+ observers: any;
+ callbacks: any;
+ constructor(observerLocator: any, subject: any, path: any);
+ observeParts(propertyName?: any): void;
+ observePart(part: any): void;
+ getObserver(): any;
+ getValue(): any;
+ subscribe(callback: any): any;
+ }
+
+}
+declare module 'aurelia-validation/validation/debouncer' {
+ export class Debouncer {
+ currentFunction: any;
+ debounceTimeout: any;
+ constructor(debounceTimeout: any);
+ debounce(func: any): void;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-property' {
+ export class ValidationProperty {
+ propertyResult: any;
+ propertyName: any;
+ validationGroup: any;
+ collectionOfValidationRules: any;
+ config: any;
+ latestValue: any;
+ observer: any;
+ debouncer: any;
+ dependencyObservers: any;
+ constructor(observerLocator: any, propertyName: any, validationGroup: any, propertyResult: any, config: any);
+ addValidationRule(validationRule: any): void;
+ validateCurrentValue(forceDirty: any, forceExecution?: any): any;
+ clear(): void;
+ /**
+ * returns a promise that fulfils and resolves to true/false
+ */
+ validate(newValue: any, shouldBeDirty: any, forceExecution?: any): any;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-group-builder' {
+ export class ValidationGroupBuilder {
+ observerLocator: any;
+ validationRuleCollections: any;
+ validationGroup: any;
+ constructor(observerLocator: any, validationGroup: any);
+ ensure(propertyName: any, configurationCallback: any): any;
+ isNotEmpty(): any;
+ isGreaterThan(minimumValue: any): any;
+ isGreaterThanOrEqualTo(minimumValue: any): any;
+ isBetween(minimumValue: any, maximumValue: any): any;
+ isIn(collection: any): any;
+ isLessThan(maximumValue: any): any;
+ isLessThanOrEqualTo(maximumValue: any): any;
+ isEqualTo(otherValue: any, otherValueLabel: any): any;
+ isNotEqualTo(otherValue: any, otherValueLabel: any): any;
+ isEmail(): any;
+ hasMinLength(minimumValue: any): any;
+ hasMaxLength(maximumValue: any): any;
+ hasLengthBetween(minimumValue: any, maximumValue: any): any;
+ isNumber(): any;
+ containsOnlyDigits(): any;
+ containsOnlyAlpha(): any;
+ containsOnlyAlphaOrWhitespace(): any;
+ containsOnlyAlphanumerics(): any;
+ containsOnlyAlphanumericsOrWhitespace(): any;
+ isStrongPassword(minimumComplexityLevel: any): any;
+ containsOnly(regex: any): any;
+ matches(regex: any): any;
+ passes(customFunction: any, threshold: any): any;
+ passesRule(validationRule: any): any;
+ checkLast(): void;
+ withMessage(message: any): any;
+ if(conditionExpression: any): any;
+ else(): any;
+ endIf(): any;
+ switch(conditionExpression: any): any;
+ case(caseLabel: any): any;
+ default(): any;
+ endSwitch(): any;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation-group' {
+ /**
+ * Encapsulates validation rules and their current validation state for a given subject
+ * @class ValidationGroup
+ * @constructor
+ */
+ export class ValidationGroup {
+ result: any;
+ subject: any;
+ validationProperties: any;
+ config: any;
+ builder: any;
+ onValidateCallbacks: any;
+ onPropertyValidationCallbacks: any;
+ isValidating: any;
+ onDestroy: any;
+ /**
+ * Instantiates a new {ValidationGroup}
+ * @param subject The subject to evaluate
+ * @param observerLocator The observerLocator used to monitor changes on the subject
+ * @param config The configuration
+ */
+ constructor(subject: any, observerLocator: any, config: any);
+ destroy(): void;
+ clear(): void;
+ onBreezeEntity(): void;
+ /**
+ * Causes complete re-evaluation: gets the latest value, marks the property as 'dirty' (unless false is passed), runs validation rules asynchronously and updates this.result
+ * @returns {Promise} A promise that fulfils when valid, rejects when invalid.
+ */
+ validate(forceDirty?: boolean, forceExecution?: boolean): Promise;
+ onValidate(validationFunction: any, validationFunctionFailedCallback?: any): ValidationGroup;
+ onPropertyValidate(validationFunction: any): ValidationGroup;
+ /**
+ * Adds a validation property for the specified path
+ * @param {String} bindingPath the path of the property/field, for example 'firstName' or 'address.muncipality.zipCode'
+ * @param configCallback a configuration callback
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ ensure(bindingPath: any, configCallback?: any): ValidationGroup;
+ /**
+ * Adds a validation rule that checks a value for being 'isNotEmpty', 'required'
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isNotEmpty(): any;
+ /**
+ * Adds a validation rule that checks a value for being greater than or equal to a threshold
+ * @param minimumValue the threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isGreaterThanOrEqualTo(minimumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for being greater than a threshold
+ * @param minimumValue the threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isGreaterThan(minimumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for being greater than or equal to a threshold, and less than or equal to another threshold
+ * @param minimumValue The minimum threshold
+ * @param maximumValue The isLessThanOrEqualTo threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isBetween(minimumValue: any, maximumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for being less than a threshold
+ * @param maximumValue The threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isLessThanOrEqualTo(maximumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for being less than or equal to a threshold
+ * @param maximumValue The threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isLessThan(maximumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for being equal to a threshold
+ * @param otherValue The threshold
+ * @param otherValueLabel Optional: a label to use in the validation message
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isEqualTo(otherValue: any, otherValueLabel: any): any;
+ /**
+ * Adds a validation rule that checks a value for not being equal to a threshold
+ * @param otherValue The threshold
+ * @param otherValueLabel Optional: a label to use in the validation message
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isNotEqualTo(otherValue: any, otherValueLabel: any): any;
+ /**
+ * Adds a validation rule that checks a value for being a valid isEmail address
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isEmail(): any;
+ /**
+ * Adds a validation rule that checks a value for being equal to at least one other value in a particular collection
+ * @param collection The threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isIn(collection: any): any;
+ /**
+ * Adds a validation rule that checks a value for having a length greater than or equal to a specified threshold
+ * @param minimumValue The threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ hasMinLength(minimumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for having a length less than a specified threshold
+ * @param maximumValue The threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ hasMaxLength(maximumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for having a length greater than or equal to a specified threshold and less than another threshold
+ * @param minimumValue The min threshold
+ * @param maximumValue The max threshold
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ hasLengthBetween(minimumValue: any, maximumValue: any): any;
+ /**
+ * Adds a validation rule that checks a value for being numeric, this includes formatted numbers like '-3,600.25'
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isNumber(): any;
+ /**
+ * Adds a validation rule that checks a value for being strictly numeric, this excludes formatted numbers like '-3,600.25'
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ containsOnlyDigits(): any;
+ containsOnly(regex: any): any;
+ containsOnlyAlpha(): any;
+ containsOnlyAlphaOrWhitespace(): any;
+ containsOnlyLetters(): any;
+ containsOnlyLettersOrWhitespace(): any;
+ /**
+ * Adds a validation rule that checks a value for only containing alphanumerical characters
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ containsOnlyAlphanumerics(): any;
+ /**
+ * Adds a validation rule that checks a value for only containing alphanumerical characters or whitespace
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ containsOnlyAlphanumericsOrWhitespace(): any;
+ /**
+ * Adds a validation rule that checks a value for being a strong password. A strong password contains at least the specified of the following groups: lowercase characters, uppercase characters, digits and special characters.
+ * @param minimumComplexityLevel {Number} Optionally, specifiy the number of groups to match. Default is 4.
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ isStrongPassword(minimumComplexityLevel: any): any;
+ /**
+ * Adds a validation rule that checks a value for matching a particular regex
+ * @param regex the regex to match
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ matches(regex: any): any;
+ /**
+ * Adds a validation rule that checks a value for passing a custom function
+ * @param customFunction {Function} The custom function that needs to pass, that takes two arguments: newValue (the value currently being evaluated) and optionally: threshold, and returns true/false.
+ * @param threshold {Object} An optional threshold that will be passed to the customFunction
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ passes(customFunction: any, threshold?: any): any;
+ /**
+ * Adds the {ValidationRule}
+ * @param validationRule {ValudationRule} The rule that needs to pass
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ passesRule(validationRule: any): any;
+ /**
+ * Specifies that the next validation rules only need to be evaluated when the specified conditionExpression is true
+ * @param conditionExpression {Function} a function that returns true of false.
+ * @param threshold {Object} an optional treshold object that is passed to the conditionExpression
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ if(conditionExpression: any, threshold: any): any;
+ /**
+ * Specifies that the next validation rules only need to be evaluated when the previously specified conditionExpression is false.
+ * See: if(conditionExpression, threshold)
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ else(): any;
+ /**
+ * Specifies that the execution of next validation rules no longer depend on the the previously specified conditionExpression.
+ * See: if(conditionExpression, threshold)
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ endIf(): any;
+ /**
+ * Specifies that the next validation rules only need to be evaluated when they are preceded by a case that matches the conditionExpression
+ * @param conditionExpression {Function} a function that returns a case label to execute. This is optional, when omitted the case label will be matched using the underlying property's value
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ switch(conditionExpression: any): any;
+ /**
+ * Specifies that the next validation rules only need to be evaluated when the caseLabel matches the value returned by a preceding switch statement
+ * See: switch(conditionExpression)
+ * @param caseLabel {Object} the case label
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ case(caseLabel: any): any;
+ /**
+ * Specifies that the next validation rules only need to be evaluated when not other caseLabel matches the value returned by a preceding switch statement
+ * See: switch(conditionExpression)
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ default(): any;
+ /**
+ * Specifies that the execution of next validation rules no longer depend on the the previously specified conditionExpression.
+ * See: switch(conditionExpression)
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ endSwitch(): any;
+ /**
+ * Specifies that the execution of the previous validation rule should use the specified error message if it fails
+ * @param message either a static string or a function that takes two arguments: newValue (the value that has been evaluated) and threshold.
+ * @returns {ValidationGroup} returns this ValidationGroup, to enable fluent API
+ */
+ withMessage(message: any): any;
+ }
+
+}
+declare module 'aurelia-validation/validation/validation' {
+ import { ValidationGroup } from 'aurelia-validation/validation/validation-group';
+ /**
+ * A lightweight validation plugin
+ * @class Validation
+ * @constructor
+ */
+ export class Validation {
+ static defaults: any;
+ observerLocator: any;
+ config: any;
+ /**
+ * Instantiates a new {Validation}
+ * @param observerLocator the observerLocator used to observer properties
+ * @param validationConfig the configuration
+ */
+ constructor(observerLocator: any, validationConfig: any);
+ /**
+ * Returns a new validation group on the subject
+ * @param subject The subject to validate
+ * @returns {ValidationGroup} A ValidationGroup that encapsulates the validation rules and current validation state for this subject
+ */
+ on(subject: any, configCallback: any): ValidationGroup;
+ onBreezeEntity(breezeEntity: any, configCallback: any): ValidationGroup;
+ }
+
+}
+declare module 'aurelia-validation/validation/validate-custom-attribute' {
+ export class ValidateCustomAttribute {
+ element: any;
+ processedValidation: any;
+ viewStrategy: any;
+ value: any;
+ constructor(element: any);
+ valueChanged(newValue: any): void;
+ subscribeChangedHandlers(currentElement: any): void;
+ detached(): void;
+ attached(): void;
+ }
+
+}
+declare module 'aurelia-validation/validation/decorators' {
+ export function ensure(setupStep: any): (target: any, propertyName: any) => void;
+
+}
+declare module 'aurelia-validation/index' {
+ export { Utilities } from 'aurelia-validation/validation/utilities';
+ export { ValidationConfig } from 'aurelia-validation/validation/validation-config';
+ export { ValidationLocale } from 'aurelia-validation/validation/validation-locale';
+ export * from 'aurelia-validation/validation/validation-result';
+ export * from 'aurelia-validation/validation/validation-rules';
+ export { Validation } from 'aurelia-validation/validation/validation';
+ export { ValidateCustomAttribute } from 'aurelia-validation/validation/validate-custom-attribute';
+ export { ValidateCustomAttributeViewStrategy } from 'aurelia-validation/validation/validate-custom-attribute-view-strategy';
+ export { ValidateCustomAttributeViewStrategyBase } from 'aurelia-validation/validation/validate-custom-attribute-view-strategy';
+ export { ensure } from 'aurelia-validation/validation/decorators';
+ export function configure(aurelia: any, configCallback: any): any;
+
+}
+declare module 'aurelia-validation' {
+ export * from 'aurelia-validation/index';
+}
\ No newline at end of file
diff --git a/src/Jackett.Web/typings/core-js.d.ts b/src/Jackett.Web/typings/core-js.d.ts
new file mode 100644
index 000000000..dcc44705d
--- /dev/null
+++ b/src/Jackett.Web/typings/core-js.d.ts
@@ -0,0 +1,4 @@
+declare module 'core-js' {
+ var core:any;
+ export default core
+}
diff --git a/src/Jackett.Web/typings/es6.d.ts b/src/Jackett.Web/typings/es6.d.ts
new file mode 100644
index 000000000..8574e2fd7
--- /dev/null
+++ b/src/Jackett.Web/typings/es6.d.ts
@@ -0,0 +1,18293 @@
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+///
+
+/////////////////////////////
+/// ECMAScript APIs
+/////////////////////////////
+
+declare var NaN: number;
+declare var Infinity: number;
+
+/**
+ * Evaluates JavaScript code and executes it.
+ * @param x A String value that contains valid JavaScript code.
+ */
+declare function eval(x: string): any;
+
+/**
+ * Converts A string to an integer.
+ * @param s A string to convert into a number.
+ * @param radix A value between 2 and 36 that specifies the base of the number in numString.
+ * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
+ * All other strings are considered decimal.
+ */
+declare function parseInt(s: string, radix?: number): number;
+
+/**
+ * Converts a string to a floating-point number.
+ * @param string A string that contains a floating-point number.
+ */
+declare function parseFloat(string: string): number;
+
+/**
+ * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
+ * @param number A numeric value.
+ */
+declare function isNaN(number: number): boolean;
+
+/**
+ * Determines whether a supplied number is finite.
+ * @param number Any numeric value.
+ */
+declare function isFinite(number: number): boolean;
+
+/**
+ * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
+ * @param encodedURI A value representing an encoded URI.
+ */
+declare function decodeURI(encodedURI: string): string;
+
+/**
+ * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
+ * @param encodedURIComponent A value representing an encoded URI component.
+ */
+declare function decodeURIComponent(encodedURIComponent: string): string;
+
+/**
+ * Encodes a text string as a valid Uniform Resource Identifier (URI)
+ * @param uri A value representing an encoded URI.
+ */
+declare function encodeURI(uri: string): string;
+
+/**
+ * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
+ * @param uriComponent A value representing an encoded URI component.
+ */
+declare function encodeURIComponent(uriComponent: string): string;
+
+interface PropertyDescriptor {
+ configurable?: boolean;
+ enumerable?: boolean;
+ value?: any;
+ writable?: boolean;
+ get? (): any;
+ set? (v: any): void;
+}
+
+interface PropertyDescriptorMap {
+ [s: string]: PropertyDescriptor;
+}
+
+interface Object {
+ /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
+ constructor: Function;
+
+ /** Returns a string representation of an object. */
+ toString(): string;
+
+ /** Returns a date converted to a string using the current locale. */
+ toLocaleString(): string;
+
+ /** Returns the primitive value of the specified object. */
+ valueOf(): Object;
+
+ /**
+ * Determines whether an object has a property with the specified name.
+ * @param v A property name.
+ */
+ hasOwnProperty(v: string): boolean;
+
+ /**
+ * Determines whether an object exists in another object's prototype chain.
+ * @param v Another object whose prototype chain is to be checked.
+ */
+ isPrototypeOf(v: Object): boolean;
+
+ /**
+ * Determines whether a specified property is enumerable.
+ * @param v A property name.
+ */
+ propertyIsEnumerable(v: string): boolean;
+}
+
+interface ObjectConstructor {
+ new (value?: any): Object;
+ (): any;
+ (value: any): any;
+
+ /** A reference to the prototype for a class of objects. */
+ prototype: Object;
+
+ /**
+ * Returns the prototype of an object.
+ * @param o The object that references the prototype.
+ */
+ getPrototypeOf(o: any): any;
+
+ /**
+ * Gets the own property descriptor of the specified object.
+ * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
+ * @param o Object that contains the property.
+ * @param p Name of the property.
+ */
+ getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
+
+ /**
+ * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
+ * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
+ * @param o Object that contains the own properties.
+ */
+ getOwnPropertyNames(o: any): string[];
+
+ /**
+ * Creates an object that has the specified prototype, and that optionally contains specified properties.
+ * @param o Object to use as a prototype. May be null
+ * @param properties JavaScript object that contains one or more property descriptors.
+ */
+ create(o: any, properties?: PropertyDescriptorMap): any;
+
+ /**
+ * Adds a property to an object, or modifies attributes of an existing property.
+ * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
+ * @param p The property name.
+ * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
+ */
+ defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
+
+ /**
+ * Adds one or more properties to an object, and/or modifies attributes of existing properties.
+ * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
+ * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
+ */
+ defineProperties(o: any, properties: PropertyDescriptorMap): any;
+
+ /**
+ * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
+ * @param o Object on which to lock the attributes.
+ */
+ seal(o: T): T;
+
+ /**
+ * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
+ * @param o Object on which to lock the attributes.
+ */
+ freeze(o: T): T;
+
+ /**
+ * Prevents the addition of new properties to an object.
+ * @param o Object to make non-extensible.
+ */
+ preventExtensions(o: T): T;
+
+ /**
+ * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
+ * @param o Object to test.
+ */
+ isSealed(o: any): boolean;
+
+ /**
+ * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
+ * @param o Object to test.
+ */
+ isFrozen(o: any): boolean;
+
+ /**
+ * Returns a value that indicates whether new properties can be added to an object.
+ * @param o Object to test.
+ */
+ isExtensible(o: any): boolean;
+
+ /**
+ * Returns the names of the enumerable properties and methods of an object.
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
+ */
+ keys(o: any): string[];
+}
+
+/**
+ * Provides functionality common to all JavaScript objects.
+ */
+declare var Object: ObjectConstructor;
+
+/**
+ * Creates a new function.
+ */
+interface Function {
+ /**
+ * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
+ * @param thisArg The object to be used as the this object.
+ * @param argArray A set of arguments to be passed to the function.
+ */
+ apply(thisArg: any, argArray?: any): any;
+
+ /**
+ * Calls a method of an object, substituting another object for the current object.
+ * @param thisArg The object to be used as the current object.
+ * @param argArray A list of arguments to be passed to the method.
+ */
+ call(thisArg: any, ...argArray: any[]): any;
+
+ /**
+ * For a given function, creates a bound function that has the same body as the original function.
+ * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
+ * @param thisArg An object to which the this keyword can refer inside the new function.
+ * @param argArray A list of arguments to be passed to the new function.
+ */
+ bind(thisArg: any, ...argArray: any[]): any;
+
+ prototype: any;
+ length: number;
+
+ // Non-standard extensions
+ arguments: any;
+ caller: Function;
+}
+
+interface FunctionConstructor {
+ /**
+ * Creates a new function.
+ * @param args A list of arguments the function accepts.
+ */
+ new (...args: string[]): Function;
+ (...args: string[]): Function;
+ prototype: Function;
+}
+
+declare var Function: FunctionConstructor;
+
+interface IArguments {
+ [index: number]: any;
+ length: number;
+ callee: Function;
+}
+
+interface String {
+ /** Returns a string representation of a string. */
+ toString(): string;
+
+ /**
+ * Returns the character at the specified index.
+ * @param pos The zero-based index of the desired character.
+ */
+ charAt(pos: number): string;
+
+ /**
+ * Returns the Unicode value of the character at the specified location.
+ * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
+ */
+ charCodeAt(index: number): number;
+
+ /**
+ * Returns a string that contains the concatenation of two or more strings.
+ * @param strings The strings to append to the end of the string.
+ */
+ concat(...strings: string[]): string;
+
+ /**
+ * Returns the position of the first occurrence of a substring.
+ * @param searchString The substring to search for in the string
+ * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
+ */
+ indexOf(searchString: string, position?: number): number;
+
+ /**
+ * Returns the last occurrence of a substring in the string.
+ * @param searchString The substring to search for.
+ * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
+ */
+ lastIndexOf(searchString: string, position?: number): number;
+
+ /**
+ * Determines whether two strings are equivalent in the current locale.
+ * @param that String to compare to target string
+ */
+ localeCompare(that: string): number;
+
+ /**
+ * Matches a string with a regular expression, and returns an array containing the results of that search.
+ * @param regexp A variable name or string literal containing the regular expression pattern and flags.
+ */
+ match(regexp: string): RegExpMatchArray;
+
+ /**
+ * Matches a string with a regular expression, and returns an array containing the results of that search.
+ * @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
+ */
+ match(regexp: RegExp): RegExpMatchArray;
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A String object or string literal that represents the regular expression
+ * @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
+ */
+ replace(searchValue: string, replaceValue: string): string;
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A String object or string literal that represents the regular expression
+ * @param replaceValue A function that returns the replacement text.
+ */
+ replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string;
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
+ * @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
+ */
+ replace(searchValue: RegExp, replaceValue: string): string;
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
+ * @param replaceValue A function that returns the replacement text.
+ */
+ replace(searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string;
+
+ /**
+ * Finds the first substring match in a regular expression search.
+ * @param regexp The regular expression pattern and applicable flags.
+ */
+ search(regexp: string): number;
+
+ /**
+ * Finds the first substring match in a regular expression search.
+ * @param regexp The regular expression pattern and applicable flags.
+ */
+ search(regexp: RegExp): number;
+
+ /**
+ * Returns a section of a string.
+ * @param start The index to the beginning of the specified portion of stringObj.
+ * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
+ * If this value is not specified, the substring continues to the end of stringObj.
+ */
+ slice(start?: number, end?: number): string;
+
+ /**
+ * Split a string into substrings using the specified separator and return them as an array.
+ * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
+ * @param limit A value used to limit the number of elements returned in the array.
+ */
+ split(separator: string, limit?: number): string[];
+
+ /**
+ * Split a string into substrings using the specified separator and return them as an array.
+ * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
+ * @param limit A value used to limit the number of elements returned in the array.
+ */
+ split(separator: RegExp, limit?: number): string[];
+
+ /**
+ * Returns the substring at the specified location within a String object.
+ * @param start The zero-based index number indicating the beginning of the substring.
+ * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
+ * If end is omitted, the characters from start through the end of the original string are returned.
+ */
+ substring(start: number, end?: number): string;
+
+ /** Converts all the alphabetic characters in a string to lowercase. */
+ toLowerCase(): string;
+
+ /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
+ toLocaleLowerCase(): string;
+
+ /** Converts all the alphabetic characters in a string to uppercase. */
+ toUpperCase(): string;
+
+ /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
+ toLocaleUpperCase(): string;
+
+ /** Removes the leading and trailing white space and line terminator characters from a string. */
+ trim(): string;
+
+ /** Returns the length of a String object. */
+ length: number;
+
+ // IE extensions
+ /**
+ * Gets a substring beginning at the specified location and having the specified length.
+ * @param from The starting position of the desired substring. The index of the first character in the string is zero.
+ * @param length The number of characters to include in the returned substring.
+ */
+ substr(from: number, length?: number): string;
+
+ /** Returns the primitive value of the specified object. */
+ valueOf(): string;
+
+ [index: number]: string;
+}
+
+interface StringConstructor {
+ new (value?: any): String;
+ (value?: any): string;
+ prototype: String;
+ fromCharCode(...codes: number[]): string;
+}
+
+/**
+ * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
+ */
+declare var String: StringConstructor;
+
+interface Boolean {
+ /** Returns the primitive value of the specified object. */
+ valueOf(): boolean;
+}
+
+interface BooleanConstructor {
+ new (value?: any): Boolean;
+ (value?: any): boolean;
+ prototype: Boolean;
+}
+
+declare var Boolean: BooleanConstructor;
+
+interface Number {
+ /**
+ * Returns a string representation of an object.
+ * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
+ */
+ toString(radix?: number): string;
+
+ /**
+ * Returns a string representing a number in fixed-point notation.
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
+ */
+ toFixed(fractionDigits?: number): string;
+
+ /**
+ * Returns a string containing a number represented in exponential notation.
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
+ */
+ toExponential(fractionDigits?: number): string;
+
+ /**
+ * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
+ * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
+ */
+ toPrecision(precision?: number): string;
+
+ /** Returns the primitive value of the specified object. */
+ valueOf(): number;
+}
+
+interface NumberConstructor {
+ new (value?: any): Number;
+ (value?: any): number;
+ prototype: Number;
+
+ /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
+ MAX_VALUE: number;
+
+ /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
+ MIN_VALUE: number;
+
+ /**
+ * A value that is not a number.
+ * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
+ */
+ NaN: number;
+
+ /**
+ * A value that is less than the largest negative number that can be represented in JavaScript.
+ * JavaScript displays NEGATIVE_INFINITY values as -infinity.
+ */
+ NEGATIVE_INFINITY: number;
+
+ /**
+ * A value greater than the largest number that can be represented in JavaScript.
+ * JavaScript displays POSITIVE_INFINITY values as infinity.
+ */
+ POSITIVE_INFINITY: number;
+}
+
+/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
+declare var Number: NumberConstructor;
+
+interface TemplateStringsArray extends Array {
+ raw: string[];
+}
+
+interface Math {
+ /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
+ E: number;
+ /** The natural logarithm of 10. */
+ LN10: number;
+ /** The natural logarithm of 2. */
+ LN2: number;
+ /** The base-2 logarithm of e. */
+ LOG2E: number;
+ /** The base-10 logarithm of e. */
+ LOG10E: number;
+ /** Pi. This is the ratio of the circumference of a circle to its diameter. */
+ PI: number;
+ /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
+ SQRT1_2: number;
+ /** The square root of 2. */
+ SQRT2: number;
+ /**
+ * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
+ * For example, the absolute value of -5 is the same as the absolute value of 5.
+ * @param x A numeric expression for which the absolute value is needed.
+ */
+ abs(x: number): number;
+ /**
+ * Returns the arc cosine (or inverse cosine) of a number.
+ * @param x A numeric expression.
+ */
+ acos(x: number): number;
+ /**
+ * Returns the arcsine of a number.
+ * @param x A numeric expression.
+ */
+ asin(x: number): number;
+ /**
+ * Returns the arctangent of a number.
+ * @param x A numeric expression for which the arctangent is needed.
+ */
+ atan(x: number): number;
+ /**
+ * Returns the angle (in radians) from the X axis to a point.
+ * @param y A numeric expression representing the cartesian y-coordinate.
+ * @param x A numeric expression representing the cartesian x-coordinate.
+ */
+ atan2(y: number, x: number): number;
+ /**
+ * Returns the smallest number greater than or equal to its numeric argument.
+ * @param x A numeric expression.
+ */
+ ceil(x: number): number;
+ /**
+ * Returns the cosine of a number.
+ * @param x A numeric expression that contains an angle measured in radians.
+ */
+ cos(x: number): number;
+ /**
+ * Returns e (the base of natural logarithms) raised to a power.
+ * @param x A numeric expression representing the power of e.
+ */
+ exp(x: number): number;
+ /**
+ * Returns the greatest number less than or equal to its numeric argument.
+ * @param x A numeric expression.
+ */
+ floor(x: number): number;
+ /**
+ * Returns the natural logarithm (base e) of a number.
+ * @param x A numeric expression.
+ */
+ log(x: number): number;
+ /**
+ * Returns the larger of a set of supplied numeric expressions.
+ * @param values Numeric expressions to be evaluated.
+ */
+ max(...values: number[]): number;
+ /**
+ * Returns the smaller of a set of supplied numeric expressions.
+ * @param values Numeric expressions to be evaluated.
+ */
+ min(...values: number[]): number;
+ /**
+ * Returns the value of a base expression taken to a specified power.
+ * @param x The base value of the expression.
+ * @param y The exponent value of the expression.
+ */
+ pow(x: number, y: number): number;
+ /** Returns a pseudorandom number between 0 and 1. */
+ random(): number;
+ /**
+ * Returns a supplied numeric expression rounded to the nearest number.
+ * @param x The value to be rounded to the nearest number.
+ */
+ round(x: number): number;
+ /**
+ * Returns the sine of a number.
+ * @param x A numeric expression that contains an angle measured in radians.
+ */
+ sin(x: number): number;
+ /**
+ * Returns the square root of a number.
+ * @param x A numeric expression.
+ */
+ sqrt(x: number): number;
+ /**
+ * Returns the tangent of a number.
+ * @param x A numeric expression that contains an angle measured in radians.
+ */
+ tan(x: number): number;
+}
+/** An intrinsic object that provides basic mathematics functionality and constants. */
+declare var Math: Math;
+
+/** Enables basic storage and retrieval of dates and times. */
+interface Date {
+ /** Returns a string representation of a date. The format of the string depends on the locale. */
+ toString(): string;
+ /** Returns a date as a string value. */
+ toDateString(): string;
+ /** Returns a time as a string value. */
+ toTimeString(): string;
+ /** Returns a value as a string value appropriate to the host environment's current locale. */
+ toLocaleString(): string;
+ /** Returns a date as a string value appropriate to the host environment's current locale. */
+ toLocaleDateString(): string;
+ /** Returns a time as a string value appropriate to the host environment's current locale. */
+ toLocaleTimeString(): string;
+ /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
+ valueOf(): number;
+ /** Gets the time value in milliseconds. */
+ getTime(): number;
+ /** Gets the year, using local time. */
+ getFullYear(): number;
+ /** Gets the year using Universal Coordinated Time (UTC). */
+ getUTCFullYear(): number;
+ /** Gets the month, using local time. */
+ getMonth(): number;
+ /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
+ getUTCMonth(): number;
+ /** Gets the day-of-the-month, using local time. */
+ getDate(): number;
+ /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
+ getUTCDate(): number;
+ /** Gets the day of the week, using local time. */
+ getDay(): number;
+ /** Gets the day of the week using Universal Coordinated Time (UTC). */
+ getUTCDay(): number;
+ /** Gets the hours in a date, using local time. */
+ getHours(): number;
+ /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
+ getUTCHours(): number;
+ /** Gets the minutes of a Date object, using local time. */
+ getMinutes(): number;
+ /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
+ getUTCMinutes(): number;
+ /** Gets the seconds of a Date object, using local time. */
+ getSeconds(): number;
+ /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
+ getUTCSeconds(): number;
+ /** Gets the milliseconds of a Date, using local time. */
+ getMilliseconds(): number;
+ /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
+ getUTCMilliseconds(): number;
+ /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
+ getTimezoneOffset(): number;
+ /**
+ * Sets the date and time value in the Date object.
+ * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
+ */
+ setTime(time: number): number;
+ /**
+ * Sets the milliseconds value in the Date object using local time.
+ * @param ms A numeric value equal to the millisecond value.
+ */
+ setMilliseconds(ms: number): number;
+ /**
+ * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
+ * @param ms A numeric value equal to the millisecond value.
+ */
+ setUTCMilliseconds(ms: number): number;
+
+ /**
+ * Sets the seconds value in the Date object using local time.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setSeconds(sec: number, ms?: number): number;
+ /**
+ * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setUTCSeconds(sec: number, ms?: number): number;
+ /**
+ * Sets the minutes value in the Date object using local time.
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setMinutes(min: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setUTCMinutes(min: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the hour value in the Date object using local time.
+ * @param hours A numeric value equal to the hours value.
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setHours(hours: number, min?: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
+ * @param hours A numeric value equal to the hours value.
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the numeric day-of-the-month value of the Date object using local time.
+ * @param date A numeric value equal to the day of the month.
+ */
+ setDate(date: number): number;
+ /**
+ * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
+ * @param date A numeric value equal to the day of the month.
+ */
+ setUTCDate(date: number): number;
+ /**
+ * Sets the month value in the Date object using local time.
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
+ * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
+ */
+ setMonth(month: number, date?: number): number;
+ /**
+ * Sets the month value in the Date object using Universal Coordinated Time (UTC).
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
+ * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
+ */
+ setUTCMonth(month: number, date?: number): number;
+ /**
+ * Sets the year of the Date object using local time.
+ * @param year A numeric value for the year.
+ * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
+ * @param date A numeric value equal for the day of the month.
+ */
+ setFullYear(year: number, month?: number, date?: number): number;
+ /**
+ * Sets the year value in the Date object using Universal Coordinated Time (UTC).
+ * @param year A numeric value equal to the year.
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
+ * @param date A numeric value equal to the day of the month.
+ */
+ setUTCFullYear(year: number, month?: number, date?: number): number;
+ /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
+ toUTCString(): string;
+ /** Returns a date as a string value in ISO format. */
+ toISOString(): string;
+ /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
+ toJSON(key?: any): string;
+}
+
+interface DateConstructor {
+ new (): Date;
+ new (value: number): Date;
+ new (value: string): Date;
+ new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
+ (): string;
+ prototype: Date;
+ /**
+ * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
+ * @param s A date string
+ */
+ parse(s: string): number;
+ /**
+ * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
+ * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
+ * @param month The month as an number between 0 and 11 (January to December).
+ * @param date The date as an number between 1 and 31.
+ * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
+ * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
+ * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
+ * @param ms An number from 0 to 999 that specifies the milliseconds.
+ */
+ UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
+ now(): number;
+}
+
+declare var Date: DateConstructor;
+
+interface RegExpMatchArray extends Array {
+ index?: number;
+ input?: string;
+}
+
+interface RegExpExecArray extends Array {
+ index: number;
+ input: string;
+}
+
+interface RegExp {
+ /**
+ * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
+ * @param string The String object or string literal on which to perform the search.
+ */
+ exec(string: string): RegExpExecArray;
+
+ /**
+ * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
+ * @param string String on which to perform the search.
+ */
+ test(string: string): boolean;
+
+ /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
+ source: string;
+
+ /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
+ global: boolean;
+
+ /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
+ ignoreCase: boolean;
+
+ /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
+ multiline: boolean;
+
+ lastIndex: number;
+
+ // Non-standard extensions
+ compile(): RegExp;
+}
+
+interface RegExpConstructor {
+ new (pattern: string, flags?: string): RegExp;
+ (pattern: string, flags?: string): RegExp;
+ prototype: RegExp;
+
+ // Non-standard extensions
+ $1: string;
+ $2: string;
+ $3: string;
+ $4: string;
+ $5: string;
+ $6: string;
+ $7: string;
+ $8: string;
+ $9: string;
+ lastMatch: string;
+}
+
+declare var RegExp: RegExpConstructor;
+
+interface Error {
+ name: string;
+ message: string;
+}
+
+interface ErrorConstructor {
+ new (message?: string): Error;
+ (message?: string): Error;
+ prototype: Error;
+}
+
+declare var Error: ErrorConstructor;
+
+interface EvalError extends Error {
+}
+
+interface EvalErrorConstructor {
+ new (message?: string): EvalError;
+ (message?: string): EvalError;
+ prototype: EvalError;
+}
+
+declare var EvalError: EvalErrorConstructor;
+
+interface RangeError extends Error {
+}
+
+interface RangeErrorConstructor {
+ new (message?: string): RangeError;
+ (message?: string): RangeError;
+ prototype: RangeError;
+}
+
+declare var RangeError: RangeErrorConstructor;
+
+interface ReferenceError extends Error {
+}
+
+interface ReferenceErrorConstructor {
+ new (message?: string): ReferenceError;
+ (message?: string): ReferenceError;
+ prototype: ReferenceError;
+}
+
+declare var ReferenceError: ReferenceErrorConstructor;
+
+interface SyntaxError extends Error {
+}
+
+interface SyntaxErrorConstructor {
+ new (message?: string): SyntaxError;
+ (message?: string): SyntaxError;
+ prototype: SyntaxError;
+}
+
+declare var SyntaxError: SyntaxErrorConstructor;
+
+interface TypeError extends Error {
+}
+
+interface TypeErrorConstructor {
+ new (message?: string): TypeError;
+ (message?: string): TypeError;
+ prototype: TypeError;
+}
+
+declare var TypeError: TypeErrorConstructor;
+
+interface URIError extends Error {
+}
+
+interface URIErrorConstructor {
+ new (message?: string): URIError;
+ (message?: string): URIError;
+ prototype: URIError;
+}
+
+declare var URIError: URIErrorConstructor;
+
+interface JSON {
+ /**
+ * Converts a JavaScript Object Notation (JSON) string into an object.
+ * @param text A valid JSON string.
+ * @param reviver A function that transforms the results. This function is called for each member of the object.
+ * If a member contains nested objects, the nested objects are transformed before the parent object is.
+ */
+ parse(text: string, reviver?: (key: any, value: any) => any): any;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ */
+ stringify(value: any): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer A function that transforms the results.
+ */
+ stringify(value: any, replacer: (key: string, value: any) => any): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer Array that transforms the results.
+ */
+ stringify(value: any, replacer: any[]): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer A function that transforms the results.
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
+ */
+ stringify(value: any, replacer: (key: string, value: any) => any, space: any): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer Array that transforms the results.
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
+ */
+ stringify(value: any, replacer: any[], space: any): string;
+}
+/**
+ * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
+ */
+declare var JSON: JSON;
+
+
+/////////////////////////////
+/// ECMAScript Array API (specially handled by compiler)
+/////////////////////////////
+
+interface Array {
+ /**
+ * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
+ */
+ length: number;
+ /**
+ * Returns a string representation of an array.
+ */
+ toString(): string;
+ toLocaleString(): string;
+ /**
+ * Appends new elements to an array, and returns the new length of the array.
+ * @param items New elements of the Array.
+ */
+ push(...items: T[]): number;
+ /**
+ * Removes the last element from an array and returns it.
+ */
+ pop(): T;
+ /**
+ * Combines two or more arrays.
+ * @param items Additional items to add to the end of array1.
+ */
+ concat(...items: U[]): T[];
+ /**
+ * Combines two or more arrays.
+ * @param items Additional items to add to the end of array1.
+ */
+ concat(...items: T[]): T[];
+ /**
+ * Adds all the elements of an array separated by the specified separator string.
+ * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
+ */
+ join(separator?: string): string;
+ /**
+ * Reverses the elements in an Array.
+ */
+ reverse(): T[];
+ /**
+ * Removes the first element from an array and returns it.
+ */
+ shift(): T;
+ /**
+ * Returns a section of an array.
+ * @param start The beginning of the specified portion of the array.
+ * @param end The end of the specified portion of the array.
+ */
+ slice(start?: number, end?: number): T[];
+
+ /**
+ * Sorts an array.
+ * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
+ */
+ sort(compareFn?: (a: T, b: T) => number): T[];
+
+ /**
+ * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
+ * @param start The zero-based location in the array from which to start removing elements.
+ */
+ splice(start: number): T[];
+
+ /**
+ * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
+ * @param start The zero-based location in the array from which to start removing elements.
+ * @param deleteCount The number of elements to remove.
+ * @param items Elements to insert into the array in place of the deleted elements.
+ */
+ splice(start: number, deleteCount: number, ...items: T[]): T[];
+
+ /**
+ * Inserts new elements at the start of an array.
+ * @param items Elements to insert at the start of the Array.
+ */
+ unshift(...items: T[]): number;
+
+ /**
+ * Returns the index of the first occurrence of a value in an array.
+ * @param searchElement The value to locate in the array.
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
+ */
+ indexOf(searchElement: T, fromIndex?: number): number;
+
+ /**
+ * Returns the index of the last occurrence of a specified value in an array.
+ * @param searchElement The value to locate in the array.
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
+ */
+ lastIndexOf(searchElement: T, fromIndex?: number): number;
+
+ /**
+ * Determines whether all the members of an array satisfy the specified test.
+ * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
+
+ /**
+ * Determines whether the specified callback function returns true for any element of an array.
+ * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
+
+ /**
+ * Performs the specified action for each element in an array.
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
+
+ /**
+ * Calls a defined callback function on each element of an array, and returns an array that contains the results.
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
+
+ /**
+ * Returns the elements of an array that meet the condition specified in a callback function.
+ * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
+
+ /**
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
+ /**
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
+
+ /**
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
+ /**
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
+
+ [n: number]: T;
+}
+
+interface ArrayConstructor {
+ new (arrayLength?: number): any[];
+ new (arrayLength: number): T[];
+ new (...items: T[]): T[];
+ (arrayLength?: number): any[];
+ (arrayLength: number): T[];
+ (...items: T[]): T[];
+ isArray(arg: any): boolean;
+ prototype: Array;
+}
+
+declare var Array: ArrayConstructor;
+
+interface TypedPropertyDescriptor {
+ enumerable?: boolean;
+ configurable?: boolean;
+ writable?: boolean;
+ value?: T;
+ get?: () => T;
+ set?: (value: T) => void;
+}
+
+declare type ClassDecorator = (target: TFunction) => TFunction | void;
+declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
+declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void;
+declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
+declare type PropertyKey = string | number | symbol;
+
+interface Symbol {
+ /** Returns a string representation of an object. */
+ toString(): string;
+
+ /** Returns the primitive value of the specified object. */
+ valueOf(): Object;
+
+ [Symbol.toStringTag]: string;
+}
+
+interface SymbolConstructor {
+ /**
+ * A reference to the prototype.
+ */
+ prototype: Symbol;
+
+ /**
+ * Returns a new unique Symbol value.
+ * @param description Description of the new Symbol object.
+ */
+ (description?: string|number): symbol;
+
+ /**
+ * Returns a Symbol object from the global symbol registry matching the given key if found.
+ * Otherwise, returns a new symbol with this key.
+ * @param key key to search for.
+ */
+ for(key: string): symbol;
+
+ /**
+ * Returns a key from the global symbol registry matching the given Symbol if found.
+ * Otherwise, returns a undefined.
+ * @param sym Symbol to find the key for.
+ */
+ keyFor(sym: symbol): string;
+
+ // Well-known Symbols
+
+ /**
+ * A method that determines if a constructor object recognizes an object as one of the
+ * constructor’s instances. Called by the semantics of the instanceof operator.
+ */
+ hasInstance: symbol;
+
+ /**
+ * A Boolean value that if true indicates that an object should flatten to its array elements
+ * by Array.prototype.concat.
+ */
+ isConcatSpreadable: symbol;
+
+ /**
+ * A method that returns the default iterator for an object. Called by the semantics of the
+ * for-of statement.
+ */
+ iterator: symbol;
+
+ /**
+ * A regular expression method that matches the regular expression against a string. Called
+ * by the String.prototype.match method.
+ */
+ match: symbol;
+
+ /**
+ * A regular expression method that replaces matched substrings of a string. Called by the
+ * String.prototype.replace method.
+ */
+ replace: symbol;
+
+ /**
+ * A regular expression method that returns the index within a string that matches the
+ * regular expression. Called by the String.prototype.search method.
+ */
+ search: symbol;
+
+ /**
+ * A function valued property that is the constructor function that is used to create
+ * derived objects.
+ */
+ species: symbol;
+
+ /**
+ * A regular expression method that splits a string at the indices that match the regular
+ * expression. Called by the String.prototype.split method.
+ */
+ split: symbol;
+
+ /**
+ * A method that converts an object to a corresponding primitive value.Called by the ToPrimitive
+ * abstract operation.
+ */
+ toPrimitive: symbol;
+
+ /**
+ * A String value that is used in the creation of the default string description of an object.
+ * Called by the built-in method Object.prototype.toString.
+ */
+ toStringTag: symbol;
+
+ /**
+ * An Object whose own property names are property names that are excluded from the with
+ * environment bindings of the associated objects.
+ */
+ unscopables: symbol;
+}
+declare var Symbol: SymbolConstructor;
+
+interface Object {
+ /**
+ * Determines whether an object has a property with the specified name.
+ * @param v A property name.
+ */
+ hasOwnProperty(v: PropertyKey): boolean;
+
+ /**
+ * Determines whether a specified property is enumerable.
+ * @param v A property name.
+ */
+ propertyIsEnumerable(v: PropertyKey): boolean;
+}
+
+interface ObjectConstructor {
+ /**
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
+ * target object. Returns the target object.
+ * @param target The target object to copy to.
+ * @param sources One or more source objects to copy properties from.
+ */
+ assign(target: any, ...sources: any[]): any;
+
+ /**
+ * Returns an array of all symbol properties found directly on object o.
+ * @param o Object to retrieve the symbols from.
+ */
+ getOwnPropertySymbols(o: any): symbol[];
+
+ /**
+ * Returns true if the values are the same value, false otherwise.
+ * @param value1 The first value.
+ * @param value2 The second value.
+ */
+ is(value1: any, value2: any): boolean;
+
+ /**
+ * Sets the prototype of a specified object o to object proto or null. Returns the object o.
+ * @param o The object to change its prototype.
+ * @param proto The value of the new prototype or null.
+ */
+ setPrototypeOf(o: any, proto: any): any;
+
+ /**
+ * Gets the own property descriptor of the specified object.
+ * An own property descriptor is one that is defined directly on the object and is not
+ * inherited from the object's prototype.
+ * @param o Object that contains the property.
+ * @param p Name of the property.
+ */
+ getOwnPropertyDescriptor(o: any, propertyKey: PropertyKey): PropertyDescriptor;
+
+ /**
+ * Adds a property to an object, or modifies attributes of an existing property.
+ * @param o Object on which to add or modify the property. This can be a native JavaScript
+ * object (that is, a user-defined object or a built in object) or a DOM object.
+ * @param p The property name.
+ * @param attributes Descriptor for the property. It can be for a data property or an accessor
+ * property.
+ */
+ defineProperty(o: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): any;
+}
+
+interface Function {
+ /**
+ * Returns a new function object that is identical to the argument object in all ways except
+ * for its identity and the value of its HomeObject internal slot.
+ */
+ toMethod(newHome: Object): Function;
+
+ /**
+ * Returns the name of the function. Function names are read-only and can not be changed.
+ */
+ name: string;
+}
+
+interface NumberConstructor {
+ /**
+ * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
+ * that is representable as a Number value, which is approximately:
+ * 2.2204460492503130808472633361816 x 10−16.
+ */
+ EPSILON: number;
+
+ /**
+ * Returns true if passed value is finite.
+ * Unlike the global isFininte, Number.isFinite doesn't forcibly convert the parameter to a
+ * number. Only finite values of the type number, result in true.
+ * @param number A numeric value.
+ */
+ isFinite(number: number): boolean;
+
+ /**
+ * Returns true if the value passed is an integer, false otherwise.
+ * @param number A numeric value.
+ */
+ isInteger(number: number): boolean;
+
+ /**
+ * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
+ * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
+ * to a number. Only values of the type number, that are also NaN, result in true.
+ * @param number A numeric value.
+ */
+ isNaN(number: number): boolean;
+
+ /**
+ * Returns true if the value passed is a safe integer.
+ * @param number A numeric value.
+ */
+ isSafeInteger(number: number): boolean;
+
+ /**
+ * The value of the largest integer n such that n and n + 1 are both exactly representable as
+ * a Number value.
+ * The value of Number.MIN_SAFE_INTEGER is 9007199254740991 2^53 − 1.
+ */
+ MAX_SAFE_INTEGER: number;
+
+ /**
+ * The value of the smallest integer n such that n and n − 1 are both exactly representable as
+ * a Number value.
+ * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
+ */
+ MIN_SAFE_INTEGER: number;
+
+ /**
+ * Converts a string to a floating-point number.
+ * @param string A string that contains a floating-point number.
+ */
+ parseFloat(string: string): number;
+
+ /**
+ * Converts A string to an integer.
+ * @param s A string to convert into a number.
+ * @param radix A value between 2 and 36 that specifies the base of the number in numString.
+ * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
+ * All other strings are considered decimal.
+ */
+ parseInt(string: string, radix?: number): number;
+}
+
+interface ArrayLike {
+ length: number;
+ [n: number]: T;
+}
+
+interface Array {
+ /** Iterator */
+ [Symbol.iterator](): IterableIterator;
+
+ /**
+ * Returns an array of key, value pairs for every entry in the array
+ */
+ entries(): IterableIterator<[number, T]>;
+
+ /**
+ * Returns an list of keys in the array
+ */
+ keys(): IterableIterator;
+
+ /**
+ * Returns an list of values in the array
+ */
+ values(): IterableIterator;
+
+ /**
+ * Returns the value of the first element in the array where predicate is true, and undefined
+ * otherwise.
+ * @param predicate find calls predicate once for each element of the array, in ascending
+ * order, until it finds one where predicate returns true. If such an element is found, find
+ * immediately returns that element value. Otherwise, find returns undefined.
+ * @param thisArg If provided, it will be used as the this value for each invocation of
+ * predicate. If it is not provided, undefined is used instead.
+ */
+ find(predicate: (value: T, index: number, obj: Array) => boolean, thisArg?: any): T;
+
+ /**
+ * Returns the index of the first element in the array where predicate is true, and undefined
+ * otherwise.
+ * @param predicate find calls predicate once for each element of the array, in ascending
+ * order, until it finds one where predicate returns true. If such an element is found, find
+ * immediately returns that element value. Otherwise, find returns undefined.
+ * @param thisArg If provided, it will be used as the this value for each invocation of
+ * predicate. If it is not provided, undefined is used instead.
+ */
+ findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
+
+ /**
+ * Returns the this object after filling the section identified by start and end with value
+ * @param value value to fill array section with
+ * @param start index to start filling the array at. If start is negative, it is treated as
+ * length+start where length is the length of the array.
+ * @param end index to stop filling the array at. If end is negative, it is treated as
+ * length+end.
+ */
+ fill(value: T, start?: number, end?: number): T[];
+
+ /**
+ * Returns the this object after copying a section of the array identified by start and end
+ * to the same array starting at position target
+ * @param target If target is negative, it is treated as length+target where length is the
+ * length of the array.
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
+ * is treated as length+end.
+ * @param end If not specified, length of the this object is used as its default value.
+ */
+ copyWithin(target: number, start: number, end?: number): T[];
+}
+
+interface ArrayConstructor {
+ /**
+ * Creates an array from an array-like object.
+ * @param arrayLike An array-like object to convert to an array.
+ * @param mapfn A mapping function to call on every element of the array.
+ * @param thisArg Value of 'this' used to invoke the mapfn.
+ */
+ from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): Array;
+
+ /**
+ * Creates an array from an iterable object.
+ * @param iterable An iterable object to convert to an array.
+ * @param mapfn A mapping function to call on every element of the array.
+ * @param thisArg Value of 'this' used to invoke the mapfn.
+ */
+ from(iterable: Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): Array;
+
+ /**
+ * Creates an array from an array-like object.
+ * @param arrayLike An array-like object to convert to an array.
+ */
+ from(arrayLike: ArrayLike): Array;
+
+ /**
+ * Creates an array from an iterable object.
+ * @param iterable An iterable object to convert to an array.
+ */
+ from(iterable: Iterable): Array;
+
+ /**
+ * Returns a new array from a set of elements.
+ * @param items A set of elements to include in the new array object.
+ */
+ of(...items: T[]): Array;
+}
+
+interface String {
+ /** Iterator */
+ [Symbol.iterator](): IterableIterator;
+
+ /**
+ * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
+ * value of the UTF-16 encoded code point starting at the string element at position pos in
+ * the String resulting from converting this object to a String.
+ * If there is no element at that position, the result is undefined.
+ * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
+ */
+ codePointAt(pos: number): number;
+
+ /**
+ * Returns true if searchString appears as a substring of the result of converting this
+ * object to a String, at one or more positions that are
+ * greater than or equal to position; otherwise, returns false.
+ * @param searchString search string
+ * @param position If position is undefined, 0 is assumed, so as to search all of the String.
+ */
+ contains(searchString: string, position?: number): boolean;
+
+ /**
+ * Returns true if the sequence of elements of searchString converted to a String is the
+ * same as the corresponding elements of this object (converted to a String) starting at
+ * endPosition – length(this). Otherwise returns false.
+ */
+ endsWith(searchString: string, endPosition?: number): boolean;
+
+ /**
+ * Returns the String value result of normalizing the string into the normalization form
+ * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
+ * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
+ * is "NFC"
+ */
+ normalize(form?: string): string;
+
+ /**
+ * Returns a String value that is made from count copies appended together. If count is 0,
+ * T is the empty String is returned.
+ * @param count number of copies to append
+ */
+ repeat(count: number): string;
+
+ /**
+ * Returns true if the sequence of elements of searchString converted to a String is the
+ * same as the corresponding elements of this object (converted to a String) starting at
+ * position. Otherwise returns false.
+ */
+ startsWith(searchString: string, position?: number): boolean;
+
+ /**
+ * Returns an HTML anchor element and sets the name attribute to the text value
+ * @param name
+ */
+ anchor(name: string): string;
+
+ /** Returns a HTML element */
+ big(): string;
+
+ /** Returns a