aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-13 23:30:18 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-13 23:31:17 +0100
commitf3fb8be7db6de87dae40d41bd5597a735c800ca1 (patch)
tree1a061db04de8f5bb5a6b697fa56a9948f67fac2f
parent200d83c3886149ebb3f018530302079e12a81f6b (diff)
restructuring
-rw-r--r--.gitignore28
-rw-r--r--background/background.html13
l---------background/content_scripts1
l---------background/lib1
-rw-r--r--gulpfile.js118
-rw-r--r--i18n/strings-prelude.js3
-rw-r--r--i18n/strings.js7
-rwxr-xr-xlib/decl/chrome/chrome.d.ts7697
-rw-r--r--lib/decl/filesystem/filesystem.d.ts548
-rw-r--r--lib/decl/filewriter/filewriter.d.ts176
-rw-r--r--lib/decl/handlebars/handlebars-1.0.0.d.ts184
-rw-r--r--lib/decl/handlebars/handlebars.d.ts227
-rw-r--r--lib/decl/jquery/jquery.d.ts3190
-rw-r--r--lib/decl/lib.es6.d.ts20674
-rw-r--r--lib/decl/node.d.ts2178
-rw-r--r--lib/decl/react-dom.d.ts75
-rw-r--r--lib/decl/react-global.d.ts11
-rw-r--r--lib/decl/react.d.ts2547
-rw-r--r--lib/decl/systemjs/systemjs.d.ts20
-rw-r--r--lib/decl/urijs/URIjs.d.ts236
-rw-r--r--lib/emscripten/taler-emscripten-lib.js24
-rw-r--r--lib/refs.d.ts7
-rw-r--r--lib/vendor/URI.js2162
l---------lib/vendor/jed.js1
-rw-r--r--lib/vendor/react-dom.dev.js18525
l---------lib/vendor/react-dom.js1
-rw-r--r--lib/vendor/react-dom.min.js15
-rw-r--r--lib/vendor/react.dev.js3783
l---------lib/vendor/react.js1
-rw-r--r--lib/vendor/react.min.js12
-rw-r--r--lib/vendor/system-csp-production.src.js4536
-rw-r--r--manifest.json13
-rw-r--r--pages/tree.html36
-rw-r--r--popup/popup.html26
-rw-r--r--src/background/background.html13
-rw-r--r--src/background/background.ts (renamed from background/main.ts)6
-rw-r--r--src/checkable.ts (renamed from lib/wallet/checkable.ts)0
-rw-r--r--src/chromeBadge.ts (renamed from lib/wallet/chromeBadge.ts)0
-rw-r--r--src/components.ts (renamed from lib/components.ts)0
-rw-r--r--src/content_scripts/notify.js325
-rw-r--r--src/content_scripts/notify.ts (renamed from content_scripts/notify.ts)7
-rw-r--r--src/cryptoApi-test.ts (renamed from lib/wallet/cryptoApi-test.ts)2
-rw-r--r--src/cryptoApi.ts (renamed from lib/wallet/cryptoApi.ts)2
-rw-r--r--src/cryptoLib.ts (renamed from lib/wallet/cryptoLib.ts)3
-rw-r--r--src/cryptoWorker.ts (renamed from lib/wallet/cryptoWorker.ts)19
-rw-r--r--src/db.ts (renamed from lib/wallet/db.ts)0
-rw-r--r--src/emscripten/taler-emscripten-lib.d.ts (renamed from lib/emscripten/taler-emscripten-lib.d.ts)0
-rw-r--r--src/emscriptif-test.ts (renamed from lib/wallet/emscriptif-test.ts)0
-rw-r--r--src/emscriptif.ts (renamed from lib/wallet/emscriptif.ts)5
-rw-r--r--src/helpers.ts (renamed from lib/wallet/helpers.ts)0
-rw-r--r--src/http.ts (renamed from lib/wallet/http.ts)0
-rw-r--r--src/i18n.ts (renamed from lib/i18n.ts)0
-rw-r--r--src/i18n/de.po (renamed from i18n/de.po)0
-rw-r--r--src/i18n/en-US.po (renamed from i18n/en-US.po)0
-rw-r--r--src/i18n/fr.po (renamed from i18n/fr.po)0
-rw-r--r--src/i18n/it.po (renamed from i18n/it.po)0
-rw-r--r--src/i18n/poheader (renamed from i18n/poheader)0
-rw-r--r--src/i18n/taler-wallet-webex.pot (renamed from i18n/taler-wallet-webex.pot)0
-rw-r--r--src/module-trampoline.js (renamed from lib/module-trampoline.js)3
-rw-r--r--src/pages/confirm-contract.html (renamed from pages/confirm-contract.html)22
-rw-r--r--src/pages/confirm-contract.tsx (renamed from pages/confirm-contract.tsx)15
-rw-r--r--src/pages/confirm-create-reserve.html (renamed from pages/confirm-create-reserve.html)18
-rw-r--r--src/pages/confirm-create-reserve.tsx (renamed from pages/confirm-create-reserve.tsx)14
-rw-r--r--src/pages/debug.html (renamed from pages/debug.html)2
-rw-r--r--src/pages/help/empty-wallet.html (renamed from pages/help/empty-wallet.html)4
-rw-r--r--src/pages/show-db.html (renamed from pages/show-db.html)2
-rw-r--r--src/pages/show-db.ts (renamed from pages/show-db.ts)0
-rw-r--r--src/pages/tree.html36
-rw-r--r--src/pages/tree.tsx (renamed from pages/tree.tsx)12
-rw-r--r--src/popup/popup.css (renamed from popup/popup.css)0
-rw-r--r--src/popup/popup.html26
-rw-r--r--src/popup/popup.tsx (renamed from popup/popup.tsx)8
-rw-r--r--src/query.ts (renamed from lib/wallet/query.ts)0
-rw-r--r--src/renderHtml.tsx (renamed from lib/wallet/renderHtml.tsx)0
-rw-r--r--src/style/lang.css (renamed from style/lang.css)0
-rw-r--r--src/style/wallet.css (renamed from style/wallet.css)2
l---------src/taler-wallet-lib.ts (renamed from lib/taler-wallet-lib.ts)0
-rw-r--r--src/types-test.ts (renamed from lib/wallet/types-test.ts)0
-rw-r--r--src/types.ts (renamed from lib/wallet/types.ts)0
-rw-r--r--src/wallet.ts (renamed from lib/wallet/wallet.ts)0
-rw-r--r--src/wxApi.ts (renamed from lib/wallet/wxApi.ts)0
-rw-r--r--src/wxMessaging.ts (renamed from lib/wallet/wxMessaging.ts)6
-rw-r--r--tsconfig.json63
83 files changed, 548 insertions, 67143 deletions
diff --git a/.gitignore b/.gitignore
index a15d04296..42ec4a90d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,24 +1,16 @@
-lib/**/*.js.map
-background/**/*.js.map
-popup/**/*.js.map
-pages/**/*.js.map
-pogen/**/*.js.map
-test/**/*.js.map
-content_scripts/**/*.js.map
-testlib/**/*.js.map
+src/**/*.js.map
+src/**/*.js
+
+!src/content_scripts/*.js
+!src/module-trampoline.js
+
testlib/talertest.js
-background/*.js
-pogen/*.js
-test/*.js
-lib/wallet/*.js
-pages/*.js
-content_scripts/*.js
-lib/*.js
-!lib/module-trampoline.js
-popup/*.js
-test/tests/*.js
+testlib/talertest.js.map
+
build/
+
.idea/
+
taler-wallet-*.tar.gz
taler-wallet-*.directive
taler-wallet-*.directive.asc
diff --git a/background/background.html b/background/background.html
deleted file mode 100644
index 0d616646c..000000000
--- a/background/background.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <script src="../lib/vendor/URI.js"></script>
- <script src="../lib/vendor/system-csp-production.src.js"></script>
- <script src="main.js"></script>
- <meta charset="UTF-8">
- <title>(wallet bg page)</title>
-</head>
-<body>
- <img id="taler-logo" src="../img/icon.png">
-</body>
-</html>
diff --git a/background/content_scripts b/background/content_scripts
deleted file mode 120000
index d2499f6d2..000000000
--- a/background/content_scripts
+++ /dev/null
@@ -1 +0,0 @@
-../content_scripts \ No newline at end of file
diff --git a/background/lib b/background/lib
deleted file mode 120000
index dc598c56d..000000000
--- a/background/lib
+++ /dev/null
@@ -1 +0,0 @@
-../lib \ No newline at end of file
diff --git a/gulpfile.js b/gulpfile.js
index 37e32cb59..389e380f7 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -50,39 +50,31 @@ const vfs = require('vinyl-fs');
const paths = {
ts: {
- release: [
- "lib/**/*.{ts,tsx}",
- "background/*.{ts,tsx}",
- "content_scripts/*.{ts,tsx}",
- "popup/*.{ts,tsx}",
- "pages/*.{ts,tsx}",
- "!**/*.d.ts",
- "!**/*-test*.ts",
+ src: [
+ "src/**/*.{ts,tsx}",
+ "!src/**/*-test*.ts",
],
decl: [
- "lib/refs.d.ts",
+ "decl/lib.es6.d.ts",
+ "decl/urijs/URIjs.d.ts",
+ "decl/systemjs/systemjs.d.ts",
+ "decl/react-global.d.ts",
+ "decl/chrome/chrome.d.ts",
],
- dev: [
+ test: [
"testlib/**/.ts",
- "**/*-test*.ts",
+ "src/**/*-test*.ts",
],
},
dist: [
"img/icon.png",
"img/logo.png",
- "i18n/strings.js",
- "lib/emscripten/taler-emscripten-lib.js",
- "lib/module-trampoline.js",
- "lib/vendor/*.js",
- "style/*.css",
- "popup/**/*.{html,css}",
- "pages/**/*.{html,css}",
- "background/*.html",
+ "src/**/*.{js,css,html}",
],
extra: [
- "i18n/*.po",
- "i18n/*.pot",
- "lib/**/*.d.ts",
+ "src/i18n/*.po",
+ "src/i18n/*.pot",
+ "decl/**/*.d.ts",
"AUTHORS",
"README",
"COPYING",
@@ -98,30 +90,6 @@ const paths = {
// targets other than "srcdist".
"manifest.json",
],
- /* French copyright application */
- appdist: [
- "i18n/*.po",
- "i18n/*.pot",
- "style/*.css",
- "img/**",
- "lib/**/*.{ts,tsx}",
- "!lib/vendor/*",
- "!**/*.d.ts",
- "background/*.{ts,tsx}",
- "content_scripts/*.{ts,tsx}",
- "popup/*.{ts,tsx}",
- "pages/*.{ts,tsx}",
- "AUTHORS",
- "README",
- "COPYING",
- "Makefile",
- "gulpfile.js",
- "test/tests/*.{ts,tsx}",
- "pogen/pogen.ts",
- "lib/module-trampoline.js",
- "popup/**/*.{html,css}",
- "pages/**/*.{html,css}",
- ],
};
@@ -140,37 +108,7 @@ const tsBaseArgs = {
};
-let manifest;
-(() => {
- const f = fs.readFileSync("manifest.json", "utf8");
- manifest = JSON.parse(f);
-})();
-
-
-/**
- * File globbing that works just like
- * gulp.src(...).
- */
-function gglob(ps) {
- let patPos = [];
- let patNeg = [];
- for (let x of ps) {
- if (x.slice(0,1) === "!") {
- patNeg.push(x.slice(1));
- } else {
- patPos.push(x);
- console.log("Pattern", x);
- }
- }
- let result = new Set();
- for (let pat of patPos) {
- let rs = glob.sync(pat, {ignore: patNeg});
- for (let r of rs) {
- result.add(r);
- }
- }
- return Array.from(result);
-}
+const manifest = JSON.parse(fs.readFileSync("manifest.json", "utf8"));
// Concatenate node streams,
@@ -178,7 +116,7 @@ function gglob(ps) {
function concatStreams (/*streams...*/) {
var toMerge = [].slice.call(arguments);
if (toMerge.length === 1 && (toMerge[0] instanceof Array)) {
- toMerge = toMerge[0]; //handle array as arguments object
+ toMerge = toMerge[0]; // handle array as arguments object
}
var stream = new Stream();
stream.setMaxListeners(0); // allow adding more than 11 streams
@@ -228,7 +166,7 @@ gulp.task("compile-prod", ["clean"], function () {
tsArgs.sourceMap = undefined;
let opts = {base: "."};
const files = concatStreams(
- gulp.src(paths.ts.release, opts),
+ gulp.src(paths.ts.src, opts),
gulp.src(paths.ts.decl, opts));
return files
@@ -284,9 +222,9 @@ gulp.task("srcdist", [], function () {
const opts = {buffer: false, stripBOM: false, base: "."};
// We can't just concat patterns due to exclude patterns
const files = concatStreams(
- gulp.src(paths.ts.release, opts),
+ gulp.src(paths.ts.src, opts),
gulp.src(paths.ts.decl, opts),
- gulp.src(paths.ts.dev, opts),
+ gulp.src(paths.ts.test, opts),
gulp.src(paths.dist, opts),
gulp.src(paths.extra, opts));
@@ -299,18 +237,6 @@ gulp.task("srcdist", [], function () {
/**
- * Create source distribution for
- * French copyright application.
- */
-gulp.task("appdist", [], function () {
- let zipname = String.prototype.concat("taler-wallet-webex-", manifest.version_name, "-appsrc.zip");
- return gulp.src(paths.appdist, {buffer: false, stripBOM: false, base: "."})
- .pipe(zip(zipname))
- .pipe(gulp.dest("."));
-});
-
-
-/**
* Compile po extraction script.
*/
gulp.task("pogenjs", [], function () {
@@ -360,9 +286,9 @@ function tsconfig(confBase) {
gulp.task("tsconfig", function() {
let opts = {base: "."};
const files = concatStreams(
- gulp.src(paths.ts.release, opts),
- gulp.src(paths.ts.dev, opts),
- gulp.src(paths.ts.decl, opts));
+ vfs.src(paths.ts.src, opts),
+ vfs.src(paths.ts.test, opts),
+ vfs.src(paths.ts.decl, opts));
return files.pipe(tsconfig(tsBaseArgs))
.pipe(gulp.dest("."));
});
diff --git a/i18n/strings-prelude.js b/i18n/strings-prelude.js
deleted file mode 100644
index 0e9ddc468..000000000
--- a/i18n/strings-prelude.js
+++ /dev/null
@@ -1,3 +0,0 @@
-if (!window.i18n) {
- throw Error("Module loading order incorrect, please load i18n module before loading i18n-strings");
-}
diff --git a/i18n/strings.js b/i18n/strings.js
deleted file mode 100644
index 064a12fa8..000000000
--- a/i18n/strings.js
+++ /dev/null
@@ -1,7 +0,0 @@
-if (!window.i18n) {
- throw Error("Module loading order incorrect, please load i18n module before loading i18n-strings");
-}
-i18n.strings['de'] = {"domain":"de","locale_data":{"de":{"":{"domain":"de","plural_forms":"nplurals=2; plural=(n != 1);","lang":""},"%1$s\n wants to enter a contract over %2$s\n with you.":["%1$s\n möchte einen Vertrag über %2$s\n mit Ihnen abschließen."],"You are about to purchase:":["Sie sind dabei, Folgendes zu kaufen:"],"You have insufficient funds of the requested currency in your wallet.":[""],"Error: URL is empty":[""],"Error: URL may not be relative":[""],"Error: could not retrieve balance information.":[""],"Bank requested reserve (%1$s) for %2$s.":["Bank bestätig anlegen der Reserve (%1$s) bei %2$s"],"Started to withdraw %1$s from %2$s (%3$s).":[""],"Merchant %1$s offered contract %2$s.":[""],"Withdrew %1$s from %2$s (%3$s).":["Reserve (%1$s) mit %2$s bei %3$s erzeugt"],"Paid %1$s to merchant %2$s. (%3$s)":[""],"Error: could not retrieve event history":[""],"Your wallet has no events recorded.":["Ihre Geldbörse verzeichnet keine Vorkommnisse."]}}};
-i18n.strings['en-US'] = {"domain":"en-US","locale_data":{"en-US":{"":{"domain":"en-US","plural_forms":"nplurals=2; plural=(n != 1);","lang":""},"%1$s\n wants to enter a contract over %2$s\n with you.":[""],"You are about to purchase:":[""],"You have insufficient funds of the requested currency in your wallet.":[""],"Error: URL is empty":[""],"Error: URL may not be relative":[""],"Error: could not retrieve balance information.":[""],"Bank requested reserve (%1$s) for %2$s.":[""],"Started to withdraw %1$s from %2$s (%3$s).":[""],"Merchant %1$s offered contract %2$s.":[""],"Withdrew %1$s from %2$s (%3$s).":[""],"Paid %1$s to merchant %2$s. (%3$s)":[""],"Error: could not retrieve event history":[""],"Your wallet has no events recorded.":[""]}}};
-i18n.strings['fr'] = {"domain":"fr","locale_data":{"fr":{"":{"domain":"fr","plural_forms":"nplurals=2; plural=(n != 1);","lang":""},"%1$s\n wants to enter a contract over %2$s\n with you.":[""],"You are about to purchase:":[""],"You have insufficient funds of the requested currency in your wallet.":[""],"Error: URL is empty":[""],"Error: URL may not be relative":[""],"Error: could not retrieve balance information.":[""],"Bank requested reserve (%1$s) for %2$s.":[""],"Started to withdraw %1$s from %2$s (%3$s).":[""],"Merchant %1$s offered contract %2$s.":[""],"Withdrew %1$s from %2$s (%3$s).":[""],"Paid %1$s to merchant %2$s. (%3$s)":[""],"Error: could not retrieve event history":[""],"Your wallet has no events recorded.":[""]}}};
-i18n.strings['it'] = {"domain":"it","locale_data":{"it":{"":{"domain":"it","plural_forms":"nplurals=2; plural=(n != 1);","lang":""},"%1$s\n wants to enter a contract over %2$s\n with you.":[""],"You are about to purchase:":[""],"You have insufficient funds of the requested currency in your wallet.":[""],"Error: URL is empty":[""],"Error: URL may not be relative":[""],"Error: could not retrieve balance information.":[""],"Bank requested reserve (%1$s) for %2$s.":[""],"Started to withdraw %1$s from %2$s (%3$s).":[""],"Merchant %1$s offered contract %2$s.":[""],"Withdrew %1$s from %2$s (%3$s).":[""],"Paid %1$s to merchant %2$s. (%3$s)":[""],"Error: could not retrieve event history":[""],"Your wallet has no events recorded.":[""]}}};
diff --git a/lib/decl/chrome/chrome.d.ts b/lib/decl/chrome/chrome.d.ts
deleted file mode 100755
index 5a67322f2..000000000
--- a/lib/decl/chrome/chrome.d.ts
+++ /dev/null
@@ -1,7697 +0,0 @@
-// Type definitions for Chrome extension development
-// Project: http://developer.chrome.com/extensions/
-// Definitions by: Matthew Kimber <https://github.com/matthewkimber>, otiai10 <https://github.com/otiai10>, couven92 <https://github.com/couven92>, RReverser <https://github.com/rreverser>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-/// <reference path='../filesystem/filesystem.d.ts' />
-
-////////////////////
-// Global object
-////////////////////
-interface Window {
- chrome: typeof chrome;
-}
-
-////////////////////
-// Accessibility Features
-////////////////////
-/**
- * Use the chrome.accessibilityFeatures API to manage Chrome's accessibility features. This API relies on the ChromeSetting prototype of the type API for getting and setting individual accessibility features. In order to get feature states the extension must request accessibilityFeatures.read permission. For modifying feature state, the extension needs accessibilityFeatures.modify permission. Note that accessibilityFeatures.modify does not imply accessibilityFeatures.read permission.
- * Availability: Since Chrome 37.
- * Permissions: "accessibilityFeatures.read"
- * Important: This API works only on Chrome OS.
- */
-declare namespace chrome.accessibilityFeatures {
- interface AccessibilityFeaturesGetArg {
- /** Optional. Whether to return the value that applies to the incognito session (default false). */
- incognito?: boolean;
- }
-
- interface AccessibilityFeaturesCallbackArg {
- /** The value of the setting. */
- value: any;
- /**
- * One of
- * • not_controllable: cannot be controlled by any extension
- * • controlled_by_other_extensions: controlled by extensions with higher precedence
- * • controllable_by_this_extension: can be controlled by this extension
- * • controlled_by_this_extension: controlled by this extension
- */
- levelOfControl: string;
- /** Optional. Whether the effective value is specific to the incognito session. This property will only be present if the incognito property in the details parameter of get() was true. */
- incognitoSpecific?: boolean;
- }
-
- interface AccessibilityFeaturesSetArg {
- /**
- * The value of the setting.
- * Note that every setting has a specific value type, which is described together with the setting. An extension should not set a value of a different type.
- */
- value: any;
- /**
- * Optional.
- * The scope of the ChromeSetting. One of
- * • regular: setting for the regular profile (which is inherited by the incognito profile if not overridden elsewhere),
- * • regular_only: setting for the regular profile only (not inherited by the incognito profile),
- * • incognito_persistent: setting for the incognito profile that survives browser restarts (overrides regular preferences),
- * • incognito_session_only: setting for the incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular and incognito_persistent preferences).
- */
- scope?: string;
- }
-
- interface AccessibilityFeaturesClearArg {
- /**
- * Optional.
- * The scope of the ChromeSetting. One of
- * • regular: setting for the regular profile (which is inherited by the incognito profile if not overridden elsewhere),
- * • regular_only: setting for the regular profile only (not inherited by the incognito profile),
- * • incognito_persistent: setting for the incognito profile that survives browser restarts (overrides regular preferences),
- * • incognito_session_only: setting for the incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular and incognito_persistent preferences).
- */
- scope?: string;
- }
-
- interface AccessibilityFeaturesSetting {
- /**
- * Gets the value of a setting.
- * @param details Which setting to consider.
- * @param callback The callback parameter should be a function that looks like this:
- * function(object details) {...};
- */
- get(details: AccessibilityFeaturesGetArg, callback: (details: AccessibilityFeaturesCallbackArg) => void): void;
- /**
- * Sets the value of a setting.
- * @param details Which setting to change.
- * @param callback Called at the completion of the set operation.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- set(details: AccessibilityFeaturesSetArg, callback?: () => void): void;
- /**
- * Clears the setting, restoring any default value.
- * @param details Which setting to clear.
- * @param callback Called at the completion of the clear operation.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- clear(details: AccessibilityFeaturesClearArg, callback?: () => void): void;
- }
-
- var spokenFeedback: AccessibilityFeaturesSetting;
- var largeCursor: AccessibilityFeaturesSetting;
- var stickyKeys: AccessibilityFeaturesSetting;
- var highContrast: AccessibilityFeaturesSetting;
- var screenMagnifier: AccessibilityFeaturesSetting;
- var autoclick: AccessibilityFeaturesSetting;
- var virtualKeyboard: AccessibilityFeaturesSetting;
- var animationPolicy: AccessibilityFeaturesSetting;
-}
-
-////////////////////
-// Alarms
-////////////////////
-/**
- * Use the chrome.alarms API to schedule code to run periodically or at a specified time in the future.
- * Availability: Since Chrome 22.
- * Permissions: "alarms"
- */
-declare namespace chrome.alarms {
- interface AlarmCreateInfo {
- /** Optional. Length of time in minutes after which the onAlarm event should fire. */
- delayInMinutes?: number;
- /** Optional. If set, the onAlarm event should fire every periodInMinutes minutes after the initial event specified by when or delayInMinutes. If not set, the alarm will only fire once. */
- periodInMinutes?: number;
- /** Optional. Time at which the alarm should fire, in milliseconds past the epoch (e.g. Date.now() + n). */
- when?: number;
- }
-
- interface Alarm {
- /** Optional. If not null, the alarm is a repeating alarm and will fire again in periodInMinutes minutes. */
- periodInMinutes?: number;
- /** Time at which this alarm was scheduled to fire, in milliseconds past the epoch (e.g. Date.now() + n). For performance reasons, the alarm may have been delayed an arbitrary amount beyond this. */
- scheduledTime: number;
- /** Name of this alarm. */
- name: string;
- }
-
- interface AlarmEvent extends chrome.events.Event<(alarm: Alarm) => void> {}
-
- /**
- * Creates an alarm. Near the time(s) specified by alarmInfo, the onAlarm event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
- * In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 1 minute but may delay them an arbitrary amount more. That is, setting delayInMinutes or periodInMinutes to less than 1 will not be honored and will cause a warning. when can be set to less than 1 minute after "now" without warning but won't actually cause the alarm to fire for at least 1 minute.
- * To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
- * @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either when or delayInMinutes (but not both). If periodInMinutes is set, the alarm will repeat every periodInMinutes minutes after the initial event. If neither when or delayInMinutes is set for a repeating alarm, periodInMinutes is used as the default for delayInMinutes.
- */
- export function create(alarmInfo: AlarmCreateInfo): void;
- /**
- * Creates an alarm. Near the time(s) specified by alarmInfo, the onAlarm event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.
- * In order to reduce the load on the user's machine, Chrome limits alarms to at most once every 1 minute but may delay them an arbitrary amount more. That is, setting delayInMinutes or periodInMinutes to less than 1 will not be honored and will cause a warning. when can be set to less than 1 minute after "now" without warning but won't actually cause the alarm to fire for at least 1 minute.
- * To help you debug your app or extension, when you've loaded it unpacked, there's no limit to how often the alarm can fire.
- * @param name Optional name to identify this alarm. Defaults to the empty string.
- * @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either when or delayInMinutes (but not both). If periodInMinutes is set, the alarm will repeat every periodInMinutes minutes after the initial event. If neither when or delayInMinutes is set for a repeating alarm, periodInMinutes is used as the default for delayInMinutes.
- */
- export function create(name: string, alarmInfo: AlarmCreateInfo): void;
- /**
- * Gets an array of all the alarms.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of Alarm alarms) {...};
- */
- export function getAll(callback: (alarms: Alarm[]) => void): void;
- /**
- * Clears all alarms.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean wasCleared) {...};
- */
- export function clearAll(callback?: (wasCleared: boolean) => void): void;
- /**
- * Clears the alarm with the given name.
- * @param name The name of the alarm to clear. Defaults to the empty string.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean wasCleared) {...};
- */
- export function clear(name?: string, callback?: (wasCleared: boolean) => void): void;
- /**
- * Clears the alarm without a name.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean wasCleared) {...};
- */
- export function clear(callback: (wasCleared: boolean) => void): void;
- /**
- * Retrieves details about the specified alarm.
- * @param callback The callback parameter should be a function that looks like this:
- * function( Alarm alarm) {...};
- */
- export function get(callback: (alarm: Alarm) => void): void;
- /**
- * Retrieves details about the specified alarm.
- * @param name The name of the alarm to get. Defaults to the empty string.
- * @param callback The callback parameter should be a function that looks like this:
- * function( Alarm alarm) {...};
- */
- export function get(name: string, callback: (alarm: Alarm) => void): void;
-
- /** Fired when an alarm has elapsed. Useful for event pages. */
- var onAlarm: AlarmEvent;
-}
-
-/**
- * Use the chrome.browser API to interact with the Chrome browser associated with
- * the current application and Chrome profile.
- */
-declare namespace chrome.browser {
- interface Options {
- /** The URL to navigate to when the new tab is initially opened. */
- url: string;
- }
-
- /**
- * Opens a new tab in a browser window associated with the current application
- * and Chrome profile. If no browser window for the Chrome profile is opened,
- * a new one is opened prior to creating the new tab.
- * @param options Configures how the tab should be opened.
- * @param callback Called when the tab was successfully
- * created, or failed to be created. If failed, runtime.lastError will be set.
- */
- export function openTab(options: Options, callback: () => void): void;
-
- /**
- * Opens a new tab in a browser window associated with the current application
- * and Chrome profile. If no browser window for the Chrome profile is opened,
- * a new one is opened prior to creating the new tab. Since Chrome 42 only.
- * @param options Configures how the tab should be opened.
- */
- export function openTab(options: Options): void;
-}
-
-////////////////////
-// Bookmarks
-////////////////////
-/**
- * Use the chrome.bookmarks API to create, organize, and otherwise manipulate bookmarks. Also see Override Pages, which you can use to create a custom Bookmark Manager page.
- * Availability: Since Chrome 5.
- * Permissions: "bookmarks"
- */
-declare namespace chrome.bookmarks {
- /** A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder. */
- interface BookmarkTreeNode {
- /** Optional. The 0-based position of this node within its parent folder. */
- index?: number;
- /** Optional. When this node was created, in milliseconds since the epoch (new Date(dateAdded)). */
- dateAdded?: number;
- /** The text displayed for the node. */
- title: string;
- /** Optional. The URL navigated to when a user clicks the bookmark. Omitted for folders. */
- url?: string;
- /** Optional. When the contents of this folder last changed, in milliseconds since the epoch. */
- dateGroupModified?: number;
- /** The unique identifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted. */
- id: string;
- /** Optional. The id of the parent folder. Omitted for the root node. */
- parentId?: string;
- /** Optional. An ordered list of children of this node. */
- children?: BookmarkTreeNode[];
- /**
- * Optional.
- * Since Chrome 37.
- * Indicates the reason why this node is unmodifiable. The managed value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default).
- */
- unmodifiable?: any;
- }
-
- interface BookmarkRemoveInfo {
- index: number;
- parentId: string;
- }
-
- interface BookmarkMoveInfo {
- index: number;
- oldIndex: number;
- parentId: string;
- oldParentId: string;
- }
-
- interface BookmarkChangeInfo {
- url?: string;
- title: string;
- }
-
- interface BookmarkReorderInfo {
- childIds: string[];
- }
-
- interface BookmarkRemovedEvent extends chrome.events.Event<(id: string, removeInfo: BookmarkRemoveInfo) => void> {}
-
- interface BookmarkImportEndedEvent extends chrome.events.Event<() => void> {}
-
- interface BookmarkMovedEvent extends chrome.events.Event<(id: string, moveInfo: BookmarkMoveInfo) => void> {}
-
- interface BookmarkImportBeganEvent extends chrome.events.Event<() => void> {}
-
- interface BookmarkChangedEvent extends chrome.events.Event<(id: string, changeInfo: BookmarkChangeInfo) => void> {}
-
- interface BookmarkCreatedEvent extends chrome.events.Event<(id: string, bookmark: BookmarkTreeNode) => void> {}
-
- interface BookmarkChildrenReordered extends chrome.events.Event<(id: string, reorderInfo: BookmarkReorderInfo) => void> {}
-
- interface BookmarkSearchQuery {
- query?: string;
- url?: string;
- title?: string;
- }
-
- interface BookmarkCreateArg {
- /** Optional. Defaults to the Other Bookmarks folder. */
- parentId?: string;
- index?: number;
- title?: string;
- url?: string;
- }
-
- interface BookmarkDestinationArg {
- parentId?: string;
- index?: number;
- }
-
- interface BookmarkChangesArg {
- title?: string;
- url?: string;
- }
-
- /** @deprecated since Chrome 38. Bookmark write operations are no longer limited by Chrome. */
- var MAX_WRITE_OPERATIONS_PER_HOUR: number;
- /** @deprecated since Chrome 38. Bookmark write operations are no longer limited by Chrome. */
- var MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: number;
-
- /**
- * Searches for BookmarkTreeNodes matching the given query. Queries specified with an object produce BookmarkTreeNodes matching all specified properties.
- * @param query A string of words and quoted phrases that are matched against bookmark URLs and titles.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function search(query: string, callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Searches for BookmarkTreeNodes matching the given query. Queries specified with an object produce BookmarkTreeNodes matching all specified properties.
- * @param query An object with one or more of the properties query, url, and title specified. Bookmarks matching all specified properties will be produced.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function search(query: BookmarkSearchQuery, callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Retrieves the entire Bookmarks hierarchy.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function getTree(callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Retrieves the recently added bookmarks.
- * @param numberOfItems The maximum number of items to return.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function getRecent(numberOfItems: number, callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Retrieves the specified BookmarkTreeNode.
- * @param id A single string-valued id
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function get(id: string, callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Retrieves the specified BookmarkTreeNode.
- * @param idList An array of string-valued ids
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function get(idList: string[], callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function( BookmarkTreeNode result) {...};
- */
- export function create(bookmark: BookmarkCreateArg, callback?: (result: BookmarkTreeNode) => void): void;
- /**
- * Moves the specified BookmarkTreeNode to the provided location.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function( BookmarkTreeNode result) {...};
- */
- export function move(id: string, destination: BookmarkDestinationArg, callback?: (result: BookmarkTreeNode) => void): void;
- /**
- * Updates the properties of a bookmark or folder. Specify only the properties that you want to change; unspecified properties will be left unchanged. Note: Currently, only 'title' and 'url' are supported.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function( BookmarkTreeNode result) {...};
- */
- export function update(id: string, changes: BookmarkChangesArg, callback?: (result: BookmarkTreeNode) => void): void;
- /**
- * Removes a bookmark or an empty bookmark folder.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function remove(id: string, callback?: Function): void;
- /**
- * Retrieves the children of the specified BookmarkTreeNode id.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function getChildren(id: string, callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Since Chrome 14.
- * Retrieves part of the Bookmarks hierarchy, starting at the specified node.
- * @param id The ID of the root of the subtree to retrieve.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of BookmarkTreeNode results) {...};
- */
- export function getSubTree(id: string, callback: (results: BookmarkTreeNode[]) => void): void;
- /**
- * Recursively removes a bookmark folder.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeTree(id: string, callback?: Function): void;
-
- /** Fired when a bookmark or folder is removed. When a folder is removed recursively, a single notification is fired for the folder, and none for its contents. */
- var onRemoved: BookmarkRemovedEvent;
- /** Fired when a bookmark import session is ended. */
- var onImportEnded: BookmarkImportEndedEvent;
- /** Fired when a bookmark import session is begun. Expensive observers should ignore onCreated updates until onImportEnded is fired. Observers should still handle other notifications immediately. */
- var onImportBegan: BookmarkImportBeganEvent;
- /** Fired when a bookmark or folder changes. Note: Currently, only title and url changes trigger this. */
- var onChanged: BookmarkChangedEvent;
- /** Fired when a bookmark or folder is moved to a different parent folder. */
- var onMoved: BookmarkMovedEvent;
- /** Fired when a bookmark or folder is created. */
- var onCreated: BookmarkCreatedEvent;
- /** Fired when the children of a folder have changed their order due to the order being sorted in the UI. This is not called as a result of a move(). */
- var onChildrenReordered: BookmarkChildrenReordered;
-}
-
-////////////////////
-// Browser Action
-////////////////////
-/**
- * Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its icon, a browser action can also have a tooltip, a badge, and a popup.
- * Availability: Since Chrome 5.
- * Manifest: "browser_action": {...}
- */
-declare namespace chrome.browserAction {
- interface BadgeBackgroundColorDetails {
- /** An array of four integers in the range [0,255] that make up the RGBA color of the badge. For example, opaque red is [255, 0, 0, 255]. Can also be a string with a CSS value, with opaque red being #FF0000 or #F00. */
- color: any;
- /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
- tabId?: number;
- }
-
- interface BadgeTextDetails {
- /** Any number of characters can be passed, but only about four can fit in the space. */
- text: string;
- /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
- tabId?: number;
- }
-
- interface TitleDetails {
- /** The string the browser action should display when moused over. */
- title: string;
- /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
- tabId?: number;
- }
-
- interface TabDetails {
- /** Optional. Specify the tab to get the information. If no tab is specified, the non-tab-specific information is returned. */
- tabId?: number;
- }
-
- interface TabIconDetails {
- /** Optional. Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'19': foo}' */
- path?: any;
- /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
- tabId?: number;
- /** Optional. Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'19': foo}' */
- imageData?: ImageData;
- }
-
- interface PopupDetails {
- /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
- tabId?: number;
- /** The html file to show in a popup. If set to the empty string (''), no popup is shown. */
- popup: string;
- }
-
- interface BrowserClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {}
-
- /**
- * Since Chrome 22.
- * Enables the browser action for a tab. By default, browser actions are enabled.
- * @param tabId The id of the tab for which you want to modify the browser action.
- */
- export function enable(tabId?: number): void;
- /** Sets the background color for the badge. */
- export function setBadgeBackgroundColor(details: BadgeBackgroundColorDetails): void;
- /** Sets the badge text for the browser action. The badge is displayed on top of the icon. */
- export function setBadgeText(details: BadgeTextDetails): void;
- /** Sets the title of the browser action. This shows up in the tooltip. */
- export function setTitle(details: TitleDetails): void;
- /**
- * Since Chrome 19.
- * Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned.
- * @param callback The callback parameter should be a function that looks like this:
- * function(string result) {...};
- */
- export function getBadgeText(details: TabDetails, callback: (result: string) => void): void;
- /** Sets the html document to be opened as a popup when the user clicks on the browser action's icon. */
- export function setPopup(details: PopupDetails): void;
- /**
- * Since Chrome 22.
- * Disables the browser action for a tab.
- * @param tabId The id of the tab for which you want to modify the browser action.
- */
- export function disable(tabId?: number): void;
- /**
- * Since Chrome 19.
- * Gets the title of the browser action.
- * @param callback The callback parameter should be a function that looks like this:
- * function(string result) {...};
- */
- export function getTitle(details: TabDetails, callback: (result: string) => void): void;
- /**
- * Since Chrome 19.
- * Gets the background color of the browser action.
- * @param callback The callback parameter should be a function that looks like this:
- * function( ColorArray result) {...};
- */
- export function getBadgeBackgroundColor(details: TabDetails, callback: (result: number[]) => void): void;
- /**
- * Since Chrome 19.
- * Gets the html document set as the popup for this browser action.
- * @param callback The callback parameter should be a function that looks like this:
- * function(string result) {...};
- */
- export function getPopup(details: TabDetails, callback: (result: string) => void): void;
- /**
- * Sets the icon for the browser action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setIcon(details: TabIconDetails, callback?: Function): void;
-
- /** Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup. */
- var onClicked: BrowserClickedEvent;
-}
-
-////////////////////
-// Browsing Data
-////////////////////
-/**
- * Use the chrome.browsingData API to remove browsing data from a user's local profile.
- * Availability: Since Chrome 19.
- * Permissions: "browsingData"
- */
-declare namespace chrome.browsingData {
- interface OriginTypes {
- /** Optional. Websites that have been installed as hosted applications (be careful!). */
- protectedWeb?: boolean;
- /** Optional. Extensions and packaged applications a user has installed (be _really_ careful!). */
- extension?: boolean;
- /** Optional. Normal websites. */
- unprotectedWeb?: boolean;
- }
-
- /** Options that determine exactly what data will be removed. */
- interface RemovalOptions {
- /**
- * Optional.
- * Since Chrome 21.
- * An object whose properties specify which origin types ought to be cleared. If this object isn't specified, it defaults to clearing only "unprotected" origins. Please ensure that you really want to remove application data before adding 'protectedWeb' or 'extensions'.
- */
- originTypes?: OriginTypes;
- /** Optional. Remove data accumulated on or after this date, represented in milliseconds since the epoch (accessible via the getTime method of the JavaScript Date object). If absent, defaults to 0 (which would remove all browsing data). */
- since?: number;
- }
-
- /**
- * Since Chrome 27.
- * A set of data types. Missing data types are interpreted as false.
- */
- interface DataTypeSet {
- /** Optional. Websites' WebSQL data. */
- webSQL?: boolean;
- /** Optional. Websites' IndexedDB data. */
- indexedDB?: boolean;
- /** Optional. The browser's cookies. */
- cookies?: boolean;
- /** Optional. Stored passwords. */
- passwords?: boolean;
- /** Optional. Server-bound certificates. */
- serverBoundCertificates?: boolean;
- /** Optional. The browser's download list. */
- downloads?: boolean;
- /** Optional. The browser's cache. Note: when removing data, this clears the entire cache: it is not limited to the range you specify. */
- cache?: boolean;
- /** Optional. Websites' appcaches. */
- appcache?: boolean;
- /** Optional. Websites' file systems. */
- fileSystems?: boolean;
- /** Optional. Plugins' data. */
- pluginData?: boolean;
- /** Optional. Websites' local storage data. */
- localStorage?: boolean;
- /** Optional. The browser's stored form data. */
- formData?: boolean;
- /** Optional. The browser's history. */
- history?: boolean;
- /**
- * Optional.
- * Since Chrome 39.
- * Service Workers.
- */
- serviceWorkers?: boolean;
- }
-
- interface SettingsCallback {
- options: RemovalOptions;
- /** All of the types will be present in the result, with values of true if they are both selected to be removed and permitted to be removed, otherwise false. */
- dataToRemove: DataTypeSet;
- /** All of the types will be present in the result, with values of true if they are permitted to be removed (e.g., by enterprise policy) and false if not. */
- dataRemovalPermitted: DataTypeSet;
- }
-
- /**
- * Since Chrome 26.
- * Reports which types of data are currently selected in the 'Clear browsing data' settings UI. Note: some of the data types included in this API are not available in the settings UI, and some UI settings control more than one data type listed here.
- * @param callback The callback parameter should be a function that looks like this:
- * function(object result) {...};
- */
- export function settings(callback: (result: SettingsCallback) => void): void;
- /**
- * Clears plugins' data.
- * @param callback Called when plugins' data has been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removePluginData(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears the browser's stored form data (autofill).
- * @param callback Called when the browser's form data has been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeFormData(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears websites' file system data.
- * @param callback Called when websites' file systems have been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeFileSystems(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears various types of browsing data stored in a user's profile.
- * @param dataToRemove The set of data types to remove.
- * @param callback Called when deletion has completed.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function remove(options: RemovalOptions, dataToRemove: DataTypeSet, callback?: () => void): void;
- /**
- * Clears the browser's stored passwords.
- * @param callback Called when the browser's passwords have been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removePasswords(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears the browser's cookies and server-bound certificates modified within a particular timeframe.
- * @param callback Called when the browser's cookies and server-bound certificates have been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeCookies(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears websites' WebSQL data.
- * @param callback Called when websites' WebSQL databases have been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeWebSQL(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears websites' appcache data.
- * @param callback Called when websites' appcache data has been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeAppcache(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears the browser's list of downloaded files (not the downloaded files themselves).
- * @param callback Called when the browser's list of downloaded files has been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeDownloads(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears websites' local storage data.
- * @param callback Called when websites' local storage has been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeLocalStorage(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears the browser's cache.
- * @param callback Called when the browser's cache has been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeCache(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears the browser's history.
- * @param callback Called when the browser's history has cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeHistory(options: RemovalOptions, callback?: () => void): void;
- /**
- * Clears websites' IndexedDB data.
- * @param callback Called when websites' IndexedDB data has been cleared.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeIndexedDB(options: RemovalOptions, callback?: () => void): void;
-}
-
-////////////////////
-// Commands
-////////////////////
-/**
- * Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the browser action or send a command to the extension.
- * Availability: Since Chrome 25.
- * Manifest: "commands": {...}
- */
-declare namespace chrome.commands {
- interface Command {
- /** Optional. The name of the Extension Command */
- name?: string;
- /** Optional. The Extension Command description */
- description?: string;
- /** Optional. The shortcut active for this command, or blank if not active. */
- shortcut?: string;
- }
-
- interface CommandEvent extends chrome.events.Event<(command: string) => void> {}
-
- /**
- * Returns all the registered extension commands for this extension and their shortcut (if active).
- * @param callback Called to return the registered commands.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(array of Command commands) {...};
- */
- export function getAll(callback: (commands: Command[]) => void): void;
-
- /** Fired when a registered command is activated using a keyboard shortcut. */
- var onCommand: CommandEvent;
-}
-
-////////////////////
-// Content Settings
-////////////////////
-/**
- * Use the chrome.contentSettings API to change settings that control whether websites can use features such as cookies, JavaScript, and plugins. More generally speaking, content settings allow you to customize Chrome's behavior on a per-site basis instead of globally.
- * Availability: Since Chrome 16.
- * Permissions: "contentSettings"
- */
-declare namespace chrome.contentSettings {
- interface ClearDetails {
- /**
- * Optional.
- * Where to clear the setting (default: regular).
- * The scope of the ContentSetting. One of
- * * regular: setting for regular profile (which is inherited by the incognito profile if not overridden elsewhere),
- * * incognito_session_only: setting for incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular settings).
- */
- scope?: string;
- }
-
- interface SetDetails {
- /** Optional. The resource identifier for the content type. */
- resourceIdentifier?: ResourceIdentifier;
- /** The setting applied by this rule. See the description of the individual ContentSetting objects for the possible values. */
- setting: any;
- /** Optional. The pattern for the secondary URL. Defaults to matching all URLs. For details on the format of a pattern, see Content Setting Patterns. */
- secondaryPattern?: string;
- /** Optional. Where to set the setting (default: regular). */
- scope?: string;
- /** The pattern for the primary URL. For details on the format of a pattern, see Content Setting Patterns. */
- primaryPattern: string;
- }
-
- interface GetDetails {
- /** Optional. The secondary URL for which the content setting should be retrieved. Defaults to the primary URL. Note that the meaning of a secondary URL depends on the content type, and not all content types use secondary URLs. */
- secondaryUrl?: string;
- /** Optional. A more specific identifier of the type of content for which the settings should be retrieved. */
- resourceIdentifier?: ResourceIdentifier;
- /** Optional. Whether to check the content settings for an incognito session. (default false) */
- incognito?: boolean;
- /** The primary URL for which the content setting should be retrieved. Note that the meaning of a primary URL depends on the content type. */
- primaryUrl: string;
- }
-
- interface ReturnedDetails {
- /** The content setting. See the description of the individual ContentSetting objects for the possible values. */
- setting: any;
- }
-
- interface ContentSetting {
- /**
- * Clear all content setting rules set by this extension.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- clear(details: ClearDetails, callback?: () => void): void;
- /**
- * Applies a new content setting rule.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- set(details: SetDetails, callback?: () => void): void;
- /**
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of ResourceIdentifier resourceIdentifiers) {...};
- * Parameter resourceIdentifiers: A list of resource identifiers for this content type, or undefined if this content type does not use resource identifiers.
- */
- getResourceIdentifiers(callback: (resourceIdentifiers?: ResourceIdentifier[]) => void): void;
- /**
- * Gets the current content setting for a given pair of URLs.
- * @param callback The callback parameter should be a function that looks like this:
- * function(object details) {...};
- */
- get(details: GetDetails, callback: (details: ReturnedDetails) => void): void;
- }
-
- /** The only content type using resource identifiers is contentSettings.plugins. For more information, see Resource Identifiers. */
- interface ResourceIdentifier {
- /** The resource identifier for the given content type. */
- id: string;
- /** Optional. A human readable description of the resource. */
- description?: string;
- }
-
- /**
- * Whether to allow cookies and other local data to be set by websites. One of
- * allow: Accept cookies,
- * block: Block cookies,
- * session_only: Accept cookies only for the current session.
- * Default is allow.
- * The primary URL is the URL representing the cookie origin. The secondary URL is the URL of the top-level frame.
- */
- var cookies: ContentSetting;
- /**
- * Whether to allow sites to show pop-ups. One of
- * allow: Allow sites to show pop-ups,
- * block: Don't allow sites to show pop-ups.
- * Default is block.
- * The primary URL is the URL of the top-level frame. The secondary URL is not used.
- */
- var popups: ContentSetting;
- /**
- * Whether to run JavaScript. One of
- * allow: Run JavaScript,
- * block: Don't run JavaScript.
- * Default is allow.
- * The primary URL is the URL of the top-level frame. The secondary URL is not used.
- */
- var javascript: ContentSetting;
- /**
- * Whether to allow sites to show desktop notifications. One of
- * allow: Allow sites to show desktop notifications,
- * block: Don't allow sites to show desktop notifications,
- * ask: Ask when a site wants to show desktop notifications.
- * Default is ask.
- * The primary URL is the URL of the document which wants to show the notification. The secondary URL is not used.
- */
- var notifications: ContentSetting;
- /**
- * Whether to run plugins. One of
- * allow: Run plugins automatically,
- * block: Don't run plugins automatically,
- * detect_important_content: Only run automatically those plugins that are detected as the website's main content.
- * Default is allow.
- * The primary URL is the URL of the top-level frame. The secondary URL is not used.
- */
- var plugins: ContentSetting;
- /**
- * Whether to show images. One of
- * allow: Show images,
- * block: Don't show images.
- * Default is allow.
- * The primary URL is the URL of the top-level frame. The secondary URL is the URL of the image.
- */
- var images: ContentSetting;
- /**
- * Since Chrome 42.
- * Whether to allow Geolocation. One of
- * allow: Allow sites to track your physical location,
- * block: Don't allow sites to track your physical location,
- * ask: Ask before allowing sites to track your physical location.
- * Default is ask.
- * The primary URL is the URL of the document which requested location data. The secondary URL is the URL of the top-level frame (which may or may not differ from the requesting URL).
- */
- var location: ContentSetting;
- /**
- * Since Chrome 42.
- * Whether to allow sites to toggle the fullscreen mode. One of
- * allow: Allow sites to toggle the fullscreen mode,
- * ask: Ask when a site wants to toggle the fullscreen mode.
- * Default is ask.
- * The primary URL is the URL of the document which requested to toggle the fullscreen mode. The secondary URL is the URL of the top-level frame (which may or may not differ from the requesting URL).
- */
- var fullscreen: ContentSetting;
- /**
- * Since Chrome 42.
- * Whether to allow sites to disable the mouse cursor. One of
- * allow: Allow sites to disable the mouse cursor,
- * block: Don't allow sites to disable the mouse cursor,
- * ask: Ask when a site wants to disable the mouse cursor.
- * Default is ask.
- * The primary URL is the URL of the top-level frame. The secondary URL is not used.
- */
- var mouselock: ContentSetting;
- /**
- * Since Chrome 42.
- * Whether to allow sites to run plugins unsandboxed. One of
- * allow: Allow sites to run plugins unsandboxed,
- * block: Don't allow sites to run plugins unsandboxed,
- * ask: Ask when a site wants to run a plugin unsandboxed.
- * Default is ask.
- * The primary URL is the URL of the top-level frame. The secondary URL is not used.
- */
- var unsandboxedPlugins: ContentSetting;
- /**
- * Since Chrome 42.
- * Whether to allow sites to download multiple files automatically. One of
- * allow: Allow sites to download multiple files automatically,
- * block: Don't allow sites to download multiple files automatically,
- * ask: Ask when a site wants to download files automatically after the first file.
- * Default is ask.
- * The primary URL is the URL of the top-level frame. The secondary URL is not used.
- */
- var automaticDownloads: ContentSetting;
-}
-
-////////////////////
-// Context Menus
-////////////////////
-/**
- * Use the chrome.contextMenus API to add items to Google Chrome's context menu. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages.
- * Availability: Since Chrome 6.
- * Permissions: "contextMenus"
- */
-declare namespace chrome.contextMenus {
- interface OnClickData {
- /**
- * Optional.
- * Since Chrome 35.
- * The text for the context selection, if any.
- */
- selectionText?: string;
- /**
- * Optional.
- * Since Chrome 35.
- * A flag indicating the state of a checkbox or radio item after it is clicked.
- */
- checked?: boolean;
- /**
- * Since Chrome 35.
- * The ID of the menu item that was clicked.
- */
- menuItemId: any;
- /**
- * Optional.
- * Since Chrome 35.
- * The URL of the frame of the element where the context menu was clicked, if it was in a frame.
- */
- frameUrl?: string;
- /**
- * Since Chrome 35.
- * A flag indicating whether the element is editable (text input, textarea, etc.).
- */
- editable: boolean;
- /**
- * Optional.
- * Since Chrome 35.
- * One of 'image', 'video', or 'audio' if the context menu was activated on one of these types of elements.
- */
- mediaType?: string;
- /**
- * Optional.
- * Since Chrome 35.
- * A flag indicating the state of a checkbox or radio item before it was clicked.
- */
- wasChecked?: boolean;
- /**
- * Since Chrome 35.
- * The URL of the page where the menu item was clicked. This property is not set if the click occured in a context where there is no current page, such as in a launcher context menu.
- */
- pageUrl: string;
- /**
- * Optional.
- * Since Chrome 35.
- * If the element is a link, the URL it points to.
- */
- linkUrl?: string;
- /**
- * Optional.
- * Since Chrome 35.
- * The parent ID, if any, for the item clicked.
- */
- parentMenuItemId?: any;
- /**
- * Optional.
- * Since Chrome 35.
- * Will be present for elements with a 'src' URL.
- */
- srcUrl?: string;
- }
-
- interface CreateProperties {
- /** Optional. Lets you restrict the item to apply only to documents whose URL matches one of the given patterns. (This applies to frames as well.) For details on the format of a pattern, see Match Patterns. */
- documentUrlPatterns?: string[];
- /** Optional. The initial state of a checkbox or radio item: true for selected and false for unselected. Only one radio item can be selected at a time in a given group of radio items. */
- checked?: boolean;
- /** Optional. The text to be displayed in the item; this is required unless type is 'separator'. When the context is 'selection', you can use %s within the string to show the selected text. For example, if this parameter's value is "Translate '%s' to Pig Latin" and the user selects the word "cool", the context menu item for the selection is "Translate 'cool' to Pig Latin". */
- title?: string;
- /** Optional. List of contexts this menu item will appear in. Defaults to ['page'] if not specified. */
- contexts?: string[];
- /**
- * Optional.
- * Since Chrome 20.
- * Whether this context menu item is enabled or disabled. Defaults to true.
- */
- enabled?: boolean;
- /** Optional. Similar to documentUrlPatterns, but lets you filter based on the src attribute of img/audio/video tags and the href of anchor tags. */
- targetUrlPatterns?: string[];
- /**
- * Optional.
- * A function that will be called back when the menu item is clicked. Event pages cannot use this; instead, they should register a listener for chrome.contextMenus.onClicked.
- * @param info Information sent when a context menu item is clicked.
- * @param tab The details of the tab where the click took place. Note: this parameter only present for extensions.
- */
- onclick?: (info: OnClickData, tab: chrome.tabs.Tab) => void;
- /** Optional. The ID of a parent menu item; this makes the item a child of a previously added item. */
- parentId?: any;
- /** Optional. The type of menu item. Defaults to 'normal' if not specified. */
- type?: string;
- /**
- * Optional.
- * Since Chrome 21.
- * The unique ID to assign to this item. Mandatory for event pages. Cannot be the same as another ID for this extension.
- */
- id?: string;
- }
-
- interface UpdateProperties {
- documentUrlPatterns?: string[];
- checked?: boolean;
- title?: string;
- contexts?: string[];
- /** Optional. Since Chrome 20. */
- enabled?: boolean;
- targetUrlPatterns?: string[];
- onclick?: Function;
- /** Optional. Note: You cannot change an item to be a child of one of its own descendants. */
- parentId?: any;
- type?: string;
- }
-
- interface MenuClickedEvent extends chrome.events.Event<(info: OnClickData, tab?: chrome.tabs.Tab) => void> {}
-
- /**
- * Since Chrome 38.
- * The maximum number of top level extension items that can be added to an extension action context menu. Any items beyond this limit will be ignored.
- */
- var ACTION_MENU_TOP_LEVEL_LIMIT: number;
-
- /**
- * Removes all context menu items added by this extension.
- * @param callback Called when removal is complete.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeAll(callback?: () => void): void;
- /**
- * Creates a new context menu item. Note that if an error occurs during creation, you may not find out until the creation callback fires (the details will be in chrome.runtime.lastError).
- * @param callback Called when the item has been created in the browser. If there were any problems creating the item, details will be available in chrome.runtime.lastError.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function create(createProperties: CreateProperties, callback?: () => void): void;
- /**
- * Updates a previously created context menu item.
- * @param id The ID of the item to update.
- * @param updateProperties The properties to update. Accepts the same values as the create function.
- * @param callback Called when the context menu has been updated.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function update(id: string, updateProperties: UpdateProperties, callback?: () => void): void;
- /**
- * Updates a previously created context menu item.
- * @param id The ID of the item to update.
- * @param updateProperties The properties to update. Accepts the same values as the create function.
- * @param callback Called when the context menu has been updated.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function update(id: number, updateProperties: UpdateProperties, callback?: () => void): void;
- /**
- * Removes a context menu item.
- * @param menuItemId The ID of the context menu item to remove.
- * @param callback Called when the context menu has been removed.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function remove(menuItemId: string, callback?: () => void): void;
- /**
- * Removes a context menu item.
- * @param menuItemId The ID of the context menu item to remove.
- * @param callback Called when the context menu has been removed.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function remove(menuItemId: number, callback?: () => void): void;
-
- /**
- * Since Chrome 21.
- * Fired when a context menu item is clicked.
- */
- var onClicked: MenuClickedEvent;
-}
-
-////////////////////
-// Cookies
-////////////////////
-/**
- * Use the chrome.cookies API to query and modify cookies, and to be notified when they change.
- * Availability: Since Chrome 6.
- * Permissions: "cookies", host permissions
- */
-declare namespace chrome.cookies {
- /** Represents information about an HTTP cookie. */
- interface Cookie {
- /** The domain of the cookie (e.g. "www.google.com", "example.com"). */
- domain: string;
- /** The name of the cookie. */
- name: string;
- /** The ID of the cookie store containing this cookie, as provided in getAllCookieStores(). */
- storeId: string;
- /** The value of the cookie. */
- value: string;
- /** True if the cookie is a session cookie, as opposed to a persistent cookie with an expiration date. */
- session: boolean;
- /** True if the cookie is a host-only cookie (i.e. a request's host must exactly match the domain of the cookie). */
- hostOnly: boolean;
- /** Optional. The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies. */
- expirationDate?: number;
- /** The path of the cookie. */
- path: string;
- /** True if the cookie is marked as HttpOnly (i.e. the cookie is inaccessible to client-side scripts). */
- httpOnly: boolean;
- /** True if the cookie is marked as Secure (i.e. its scope is limited to secure channels, typically HTTPS). */
- secure: boolean;
- }
-
- /** Represents a cookie store in the browser. An incognito mode window, for instance, uses a separate cookie store from a non-incognito window. */
- interface CookieStore {
- /** The unique identifier for the cookie store. */
- id: string;
- /** Identifiers of all the browser tabs that share this cookie store. */
- tabIds: number[];
- }
-
- interface GetAllDetails {
- /** Optional. Restricts the retrieved cookies to those whose domains match or are subdomains of this one. */
- domain?: string;
- /** Optional. Filters the cookies by name. */
- name?: string;
- /** Optional. Restricts the retrieved cookies to those that would match the given URL. */
- url?: string;
- /** Optional. The cookie store to retrieve cookies from. If omitted, the current execution context's cookie store will be used. */
- storeId?: string;
- /** Optional. Filters out session vs. persistent cookies. */
- session?: boolean;
- /** Optional. Restricts the retrieved cookies to those whose path exactly matches this string. */
- path?: string;
- /** Optional. Filters the cookies by their Secure property. */
- secure?: boolean;
- }
-
- interface SetDetails {
- /** Optional. The domain of the cookie. If omitted, the cookie becomes a host-only cookie. */
- domain?: string;
- /** Optional. The name of the cookie. Empty by default if omitted. */
- name?: string;
- /** The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. If host permissions for this URL are not specified in the manifest file, the API call will fail. */
- url: string;
- /** Optional. The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store. */
- storeId?: string;
- /** Optional. The value of the cookie. Empty by default if omitted. */
- value?: string;
- /** Optional. The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie. */
- expirationDate?: number;
- /** Optional. The path of the cookie. Defaults to the path portion of the url parameter. */
- path?: string;
- /** Optional. Whether the cookie should be marked as HttpOnly. Defaults to false. */
- httpOnly?: boolean;
- /** Optional. Whether the cookie should be marked as Secure. Defaults to false. */
- secure?: boolean;
- }
-
- interface Details {
- name: string;
- url: string;
- storeId?: string;
- }
-
- interface CookieChangeInfo {
- /** Information about the cookie that was set or removed. */
- cookie: Cookie;
- /** True if a cookie was removed. */
- removed: boolean;
- /**
- * Since Chrome 12.
- * The underlying reason behind the cookie's change.
- */
- cause: string;
- }
-
- interface CookieChangedEvent extends chrome.events.Event<(changeInfo: CookieChangeInfo) => void> {}
-
- /**
- * Lists all existing cookie stores.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of CookieStore cookieStores) {...};
- * Parameter cookieStores: All the existing cookie stores.
- */
- export function getAllCookieStores(callback: (cookieStores: CookieStore[]) => void): void;
- /**
- * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first.
- * @param details Information to filter the cookies being retrieved.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of Cookie cookies) {...};
- * Parameter cookies: All the existing, unexpired cookies that match the given cookie info.
- */
- export function getAll(details: GetAllDetails, callback: (cookies: Cookie[]) => void): void;
- /**
- * Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
- * @param details Details about the cookie being set.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function( Cookie cookie) {...};
- * Optional parameter cookie: Contains details about the cookie that's been set. If setting failed for any reason, this will be "null", and "chrome.runtime.lastError" will be set.
- */
- export function set(details: SetDetails, callback?: (cookie?: Cookie) => void): void;
- /**
- * Deletes a cookie by name.
- * @param details Information to identify the cookie to remove.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(object details) {...};
- */
- export function remove(details: Details, callback?: (details: Details) => void): void;
- /**
- * Retrieves information about a single cookie. If more than one cookie of the same name exists for the given URL, the one with the longest path will be returned. For cookies with the same path length, the cookie with the earliest creation time will be returned.
- * @param details Details to identify the cookie being retrieved.
- * @param callback The callback parameter should be a function that looks like this:
- * function( Cookie cookie) {...};
- * Parameter cookie: Contains details about the cookie. This parameter is null if no such cookie was found.
- */
- export function get(details: Details, callback: (cookie?: Cookie) => void): void;
-
- /** Fired when a cookie is set or removed. As a special case, note that updating a cookie's properties is implemented as a two step process: the cookie to be updated is first removed entirely, generating a notification with "cause" of "overwrite" . Afterwards, a new cookie is written with the updated values, generating a second notification with "cause" "explicit". */
- var onChanged: CookieChangedEvent;
-}
-
-////////////////////
-// Debugger
-////////////////////
-/**
- * The chrome.debugger API serves as an alternate transport for Chrome's remote debugging protocol. Use chrome.debugger to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the Debuggee tabId to target tabs with sendCommand and route events by tabId from onEvent callbacks.
- * Availability: Since Chrome 18.
- * Permissions: "debugger"
- */
-declare module "chrome.debugger" {
- /** Debuggee identifier. Either tabId or extensionId must be specified */
- interface Debuggee {
- /** Optional. The id of the tab which you intend to debug. */
- tabId?: number;
- /**
- * Optional.
- * Since Chrome 27.
- * The id of the extension which you intend to debug. Attaching to an extension background page is only possible when 'silent-debugger-extension-api' flag is enabled on the target browser.
- */
- extensionId?: string;
- /**
- * Optional.
- * Since Chrome 28.
- * The opaque id of the debug target.
- */
- targetId?: string;
- }
-
- /**
- * Since Chrome 28.
- * Debug target information
- */
- interface TargetInfo {
- /** Target type. */
- type: string;
- /** Target id. */
- id: string;
- /**
- * Optional.
- * Since Chrome 30.
- * The tab id, defined if type == 'page'.
- */
- tabId?: number;
- /**
- * Optional.
- * Since Chrome 30.
- * The extension id, defined if type = 'background_page'.
- */
- extensionId?: string;
- /** True if debugger is already attached. */
- attached: boolean;
- /** Target page title. */
- title: string;
- /** Target URL. */
- url: string;
- /** Optional. Target favicon URL. */
- faviconUrl?: string;
- }
-
- interface DebuggerDetachedEvent extends chrome.events.Event<(source: Debuggee, reason: string) => void> {}
-
- interface DebuggerEventEvent extends chrome.events.Event<(source: Debuggee, method: string, params?: Object) => void> {}
-
- /**
- * Attaches debugger to the given target.
- * @param target Debugging target to which you want to attach.
- * @param requiredVersion Required debugging protocol version ("0.1"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained in the documentation pages.
- * @param callback Called once the attach operation succeeds or fails. Callback receives no arguments. If the attach fails, runtime.lastError will be set to the error message.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function attach(target: Debuggee, requiredVersion: string, callback?: () => void): void;
- /**
- * Detaches debugger from the given target.
- * @param target Debugging target from which you want to detach.
- * @param callback Called once the detach operation succeeds or fails. Callback receives no arguments. If the detach fails, runtime.lastError will be set to the error message.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function detach(target: Debuggee, callback?: () => void): void;
- /**
- * Sends given command to the debugging target.
- * @param target Debugging target to which you want to send the command.
- * @param method Method name. Should be one of the methods defined by the remote debugging protocol.
- * @param commandParams Since Chrome 22.
- * JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
- * @param callback Response body. If an error occurs while posting the message, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(object result) {...};
- */
- export function sendCommand(target: Debuggee, method: string, commandParams?: Object, callback?: (result?: Object) => void): void;
- /**
- * Since Chrome 28.
- * Returns the list of available debug targets.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of TargetInfo result) {...};
- * Parameter result: Array of TargetInfo objects corresponding to the available debug targets.
- */
- export function getTargets(callback: (result: TargetInfo[]) => void): void;
-
- /** Fired when browser terminates debugging session for the tab. This happens when either the tab is being closed or Chrome DevTools is being invoked for the attached tab. */
- var onDetach: DebuggerDetachedEvent;
- /** Fired whenever debugging target issues instrumentation event. */
- var onEvent: DebuggerEventEvent;
-}
-
-////////////////////
-// Declarative Content
-////////////////////
-/**
- * Use the chrome.declarativeContent API to take actions depending on the content of a page, without requiring permission to read the page's content.
- * Availability: Since Chrome 33.
- * Permissions: "declarativeContent"
- */
-declare namespace chrome.declarativeContent {
- interface PageStateUrlDetails {
- /** Optional. Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name. */
- hostContains?: string;
- /** Optional. Matches if the host name of the URL is equal to a specified string. */
- hostEquals?: string;
- /** Optional. Matches if the host name of the URL starts with a specified string. */
- hostPrefix?: string;
- /** Optional. Matches if the host name of the URL ends with a specified string. */
- hostSuffix?: string;
- /** Optional. Matches if the path segment of the URL contains a specified string. */
- pathContains?: string;
- /** Optional. Matches if the path segment of the URL is equal to a specified string. */
- pathEquals?: string;
- /** Optional. Matches if the path segment of the URL starts with a specified string. */
- pathPrefix?: string;
- /** Optional. Matches if the path segment of the URL ends with a specified string. */
- pathSuffix?: string;
- /** Optional. Matches if the query segment of the URL contains a specified string. */
- queryContains?: string;
- /** Optional. Matches if the query segment of the URL is equal to a specified string. */
- queryEquals?: string;
- /** Optional. Matches if the query segment of the URL starts with a specified string. */
- queryPrefix?: string;
- /** Optional. Matches if the query segment of the URL ends with a specified string. */
- querySuffix?: string;
- /** Optional. Matches if the URL (without fragment identifier) contains a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlContains?: string;
- /** Optional. Matches if the URL (without fragment identifier) is equal to a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlEquals?: string;
- /** Optional. Matches if the URL (without fragment identifier) matches a specified regular expression. Port numbers are stripped from the URL if they match the default port number. The regular expressions use the RE2 syntax. */
- urlMatches?: string;
- /** Optional. Matches if the URL without query segment and fragment identifier matches a specified regular expression. Port numbers are stripped from the URL if they match the default port number. The regular expressions use the RE2 syntax. */
- originAndPathMatches?: string;
- /** Optional. Matches if the URL (without fragment identifier) starts with a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlPrefix?: string;
- /** Optional. Matches if the URL (without fragment identifier) ends with a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlSuffix?: string;
- /** Optional. Matches if the scheme of the URL is equal to any of the schemes specified in the array. */
- schemes?: string[];
- /** Optional. Matches if the port of the URL is contained in any of the specified port lists. For example [80, 443, [1000, 1200]] matches all requests on port 80, 443 and in the range 1000-1200. */
- ports?: (number | number[])[];
- }
-
- /** Matches the state of a web page by various criteria. */
- interface PageStateMatcher {
- /** Optional. Filters URLs for various criteria. See event filtering. All criteria are case sensitive. */
- pageUrl?: PageStateUrlDetails;
- /** Optional. Matches if all of the CSS selectors in the array match displayed elements in a frame with the same origin as the page's main frame. All selectors in this array must be compound selectors to speed up matching. Note that listing hundreds of CSS selectors or CSS selectors that match hundreds of times per page can still slow down web sites. */
- css?: string[];
- /**
- * Optional.
- * Since Chrome 45. Warning: this is the current Beta channel. More information available on the API documentation pages.
- * Matches if the bookmarked state of the page is equal to the specified value. Requres the bookmarks permission.
- */
- isBookmarked?: boolean;
- }
-}
-
-////////////////////
-// Declarative Web Request
-////////////////////
-declare namespace chrome.declarativeWebRequest {
- interface HeaderFilter {
- nameEquals?: string;
- valueContains?: any;
- nameSuffix?: string;
- valueSuffix?: string;
- valuePrefix?: string;
- nameContains?: any;
- valueEquals?: string;
- namePrefix?: string;
- }
-
- interface AddResponseHeader {
- name: string;
- value: string;
- }
-
- interface RemoveResponseCookie {
- filter: ResponseCookie;
- }
-
- interface RemoveResponseHeader {
- name: string;
- value?: string;
- }
-
- interface RequestMatcher {
- contentType?: string[];
- url?: chrome.events.UrlFilter;
- excludeContentType?: string[];
- excludeResponseHeader?: HeaderFilter[];
- resourceType?: string;
- responseHeaders?: HeaderFilter[];
- }
-
- interface IgnoreRules {
- lowerPriorityThan: number;
- }
-
- interface RedirectToEmptyDocument { }
-
- interface RedirectRequest {
- redirectUrl: string;
- }
-
- interface ResponseCookie {
- domain?: string;
- name?: string;
- expires?: string;
- maxAge?: number;
- value?: string;
- path?: string;
- httpOnly?: string;
- secure?: string;
- }
-
- interface AddResponseCookie {
- cookie: ResponseCookie;
- }
-
- interface EditResponseCookie {
- filter: ResponseCookie;
- modification: ResponseCookie;
- }
-
- interface CancelRequest { }
-
- interface RemoveRequestHeader {
- name: string;
- }
-
- interface EditRequestCookie {
- filter: RequestCookie;
- modification: RequestCookie;
- }
-
- interface SetRequestHeader {
- name: string;
- value: string;
- }
-
- interface RequestCookie {
- name?: string;
- value?: string;
- }
-
- interface RedirectByRegEx {
- to: string;
- from: string;
- }
-
- interface RedirectToTransparentImage { }
-
- interface AddRequestCookie {
- cookie: RequestCookie;
- }
-
- interface RemoveRequestCookie {
- filter: RequestCookie;
- }
-
- interface RequestedEvent extends chrome.events.Event<Function> {}
-
- var onRequest: RequestedEvent;
-}
-
-////////////////////
-// DesktopCapture
-////////////////////
-/**
- * Desktop Capture API that can be used to capture content of screen, individual windows or tabs.
- * Availability: Since Chrome 34.
- * Permissions: "desktopCapture"
- */
-declare namespace chrome.desktopCapture {
- /**
- * Shows desktop media picker UI with the specified set of sources.
- * @param sources Set of sources that should be shown to the user.
- * @param callback The callback parameter should be a function that looks like this:
- * function(string streamId) {...};
- * Parameter streamId: An opaque string that can be passed to getUserMedia() API to generate media stream that corresponds to the source selected by the user. If user didn't select any source (i.e. canceled the prompt) then the callback is called with an empty streamId. The created streamId can be used only once and expires after a few seconds when it is not used.
- */
- export function chooseDesktopMedia(sources: string[], callback: (streamId: string) => void): number;
- /**
- * Shows desktop media picker UI with the specified set of sources.
- * @param sources Set of sources that should be shown to the user.
- * @param targetTab Optional tab for which the stream is created. If not specified then the resulting stream can be used only by the calling extension. The stream can only be used by frames in the given tab whose security origin matches tab.url.
- * @param callback The callback parameter should be a function that looks like this:
- * function(string streamId) {...};
- * Parameter streamId: An opaque string that can be passed to getUserMedia() API to generate media stream that corresponds to the source selected by the user. If user didn't select any source (i.e. canceled the prompt) then the callback is called with an empty streamId. The created streamId can be used only once and expires after a few seconds when it is not used.
- */
- export function chooseDesktopMedia(sources: string[], targetTab: chrome.tabs.Tab, callback: (streamId: string) => void): number;
- /**
- * Hides desktop media picker dialog shown by chooseDesktopMedia().
- * @param desktopMediaRequestId Id returned by chooseDesktopMedia()
- */
- export function cancelChooseDesktopMedia(desktopMediaRequestId: number): void;
-}
-
-////////////////////
-// Dev Tools - Inspected Window
-////////////////////
-/**
- * Use the chrome.devtools.inspectedWindow API to interact with the inspected window: obtain the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page.
- * Availability: Since Chrome 18.
- */
-declare namespace chrome.devtools.inspectedWindow {
- /** A resource within the inspected page, such as a document, a script, or an image. */
- interface Resource {
- /** The URL of the resource. */
- url: string;
- /**
- * Gets the content of the resource.
- * @param callback A function that receives resource content when the request completes.
- * The callback parameter should be a function that looks like this:
- * function(string content, string encoding) {...};
- * Parameter content: Content of the resource (potentially encoded).
- * Parameter encoding: Empty if content is not encoded, encoding name otherwise. Currently, only base64 is supported.
- */
- getContent(callback: (content: string, encoding: string) => void): void;
- /**
- * Sets the content of the resource.
- * @param content New content of the resource. Only resources with the text type are currently supported.
- * @param commit True if the user has finished editing the resource, and the new content of the resource should be persisted; false if this is a minor change sent in progress of the user editing the resource.
- * @param callback A function called upon request completion.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(object error) {...};
- * Optional parameter error: Set to undefined if the resource content was set successfully; describes error otherwise.
- */
- setContent(content: string, commit: boolean, callback?: (error: Object) => void): void;
- }
-
- interface ReloadOptions {
- /** Optional. If specified, the string will override the value of the User-Agent HTTP header that's sent while loading the resources of the inspected page. The string will also override the value of the navigator.userAgent property that's returned to any scripts that are running within the inspected page. */
- userAgent?: string;
- /** Optional. When true, the loader will ignore the cache for all inspected page resources loaded before the load event is fired. The effect is similar to pressing Ctrl+Shift+R in the inspected window or within the Developer Tools window. */
- ignoreCache?: boolean;
- /** Optional. If specified, the script will be injected into every frame of the inspected page immediately upon load, before any of the frame's scripts. The script will not be injected after subsequent reloads—for example, if the user presses Ctrl+R. */
- injectedScript?: boolean;
- /**
- * Optional.
- * If specified, this script evaluates into a function that accepts three string arguments: the source to preprocess, the URL of the source, and a function name if the source is an DOM event handler. The preprocessorerScript function should return a string to be compiled by Chrome in place of the input source. In the case that the source is a DOM event handler, the returned source must compile to a single JS function.
- * @deprecated Deprecated since Chrome 41. Please avoid using this parameter, it will be removed soon.
- */
- preprocessorScript?: string;
- }
-
- interface EvaluationExceptionInfo {
- /** Set if the error occurred on the DevTools side before the expression is evaluated. */
- isError: boolean;
- /** Set if the error occurred on the DevTools side before the expression is evaluated. */
- code: string;
- /** Set if the error occurred on the DevTools side before the expression is evaluated. */
- description: string;
- /** Set if the error occurred on the DevTools side before the expression is evaluated, contains the array of the values that may be substituted into the description string to provide more information about the cause of the error. */
- details: any[];
- /** Set if the evaluated code produces an unhandled exception. */
- isException: boolean;
- /** Set if the evaluated code produces an unhandled exception. */
- value: string;
- }
-
- interface ResourceAddedEvent extends chrome.events.Event<(resource: Resource) => void> {}
-
- interface ResourceContentCommittedEvent extends chrome.events.Event<(resource: Resource, content: string) => void> {}
-
- /** The ID of the tab being inspected. This ID may be used with chrome.tabs.* API. */
- var tabId: number;
-
- /** Reloads the inspected page. */
- export function reload(reloadOptions: ReloadOptions): void;
- /**
- * Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-compliant object, otherwise an exception is thrown. The eval function can report either a DevTools-side error or a JavaScript exception that occurs during evaluation. In either case, the result parameter of the callback is undefined. In the case of a DevTools-side error, the isException parameter is non-null and has isError set to true and code set to an error code. In the case of a JavaScript error, isException is set to true and value is set to the string value of thrown object.
- * @param expression An expression to evaluate.
- * @param callback A function called when evaluation completes.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(object result, object exceptionInfo) {...};
- * Parameter result: The result of evaluation.
- * Parameter exceptionInfo: An object providing details if an exception occurred while evaluating the expression.
- */
- export function eval(expression: string, callback?: (result: Object, exceptionInfo: EvaluationExceptionInfo) => void): void;
- /**
- * Retrieves the list of resources from the inspected page.
- * @param callback A function that receives the list of resources when the request completes.
- * The callback parameter should be a function that looks like this:
- * function(array of Resource resources) {...};
- */
- export function getResources(callback: (resources: Resource[]) => void): void;
-
- /** Fired when a new resource is added to the inspected page. */
- var onResourceAdded: ResourceAddedEvent;
- /** Fired when a new revision of the resource is committed (e.g. user saves an edited version of the resource in the Developer Tools). */
- var onResourceContentCommitted: ResourceContentCommittedEvent;
-}
-
-////////////////////
-// Dev Tools - Network
-////////////////////
-/**
- * Use the chrome.devtools.network API to retrieve the information about network requests displayed by the Developer Tools in the Network panel.
- * Availability: Since Chrome 18.
- */
-declare namespace chrome.devtools.network {
- /** Represents a network request for a document resource (script, image and so on). See HAR Specification for reference. */
- interface Request {
- /**
- * Returns content of the response body.
- * @param callback A function that receives the response body when the request completes.
- * The callback parameter should be a function that looks like this:
- * function(string content, string encoding) {...};
- * Parameter content: Content of the response body (potentially encoded).
- * Parameter encoding: Empty if content is not encoded, encoding name otherwise. Currently, only base64 is supported.
- */
- getContent(callback: (content: string, encoding: string) => void): void;
- }
-
- interface RequestFinishedEvent extends chrome.events.Event<(request: Request) => void> {}
-
- interface NavigatedEvent extends chrome.events.Event<(url: string) => void> {}
-
- /**
- * Returns HAR log that contains all known network requests.
- * @param callback A function that receives the HAR log when the request completes.
- * The callback parameter should be a function that looks like this:
- * function(object harLog) {...};
- * Parameter harLog: A HAR log. See HAR specification for details.
- */
- export function getHAR(callback: (harLog: Object) => void): void;
-
- /** Fired when a network request is finished and all request data are available. */
- var onRequestFinished: RequestFinishedEvent;
- /** Fired when the inspected window navigates to a new page. */
- var onNavigated: NavigatedEvent;
-}
-
-////////////////////
-// Dev Tools - Panels
-////////////////////
-/**
- * Use the chrome.devtools.panels API to integrate your extension into Developer Tools window UI: create your own panels, access existing panels, and add sidebars.
- * Availability: Since Chrome 18.
- */
-declare namespace chrome.devtools.panels {
- interface PanelShownEvent extends chrome.events.Event<(window: chrome.windows.Window) => void> {}
-
- interface PanelHiddenEvent extends chrome.events.Event<() => void> {}
-
- interface PanelSearchEvent extends chrome.events.Event<(action: string, queryString?: string) => void> {}
-
- /** Represents a panel created by extension. */
- interface ExtensionPanel {
- /**
- * Appends a button to the status bar of the panel.
- * @param iconPath Path to the icon of the button. The file should contain a 64x24-pixel image composed of two 32x24 icons. The left icon is used when the button is inactive; the right icon is displayed when the button is pressed.
- * @param tooltipText Text shown as a tooltip when user hovers the mouse over the button.
- * @param disabled Whether the button is disabled.
- */
- createStatusBarButton(iconPath: string, tooltipText: string, disabled: boolean): Button;
- /** Fired when the user switches to the panel. */
- onShown: PanelShownEvent;
- /** Fired when the user switches away from the panel. */
- onHidden: PanelHiddenEvent;
- /** Fired upon a search action (start of a new search, search result navigation, or search being canceled). */
- onSearch: PanelSearchEvent;
- }
-
- interface ButtonClickedEvent extends chrome.events.Event<() => void> {}
-
- /** A button created by the extension. */
- interface Button {
- /**
- * Updates the attributes of the button. If some of the arguments are omitted or null, the corresponding attributes are not updated.
- * @param iconPath Path to the new icon of the button.
- * @param tooltipText Text shown as a tooltip when user hovers the mouse over the button.
- * @param disabled Whether the button is disabled.
- */
- update(iconPath?: string, tooltipText?: string, disabled?: boolean): void;
- /** Fired when the button is clicked. */
- onClicked: ButtonClickedEvent;
- }
-
- interface SelectionChangedEvent extends chrome.events.Event<() => void> {}
-
- /** Represents the Elements panel. */
- interface ElementsPanel {
- /**
- * Creates a pane within panel's sidebar.
- * @param title Text that is displayed in sidebar caption.
- * @param callback A callback invoked when the sidebar is created.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function( ExtensionSidebarPane result) {...};
- * Parameter result: An ExtensionSidebarPane object for created sidebar pane.
- */
- createSidebarPane(title: string, callback?: (result: ExtensionSidebarPane) => void): void;
- /** Fired when an object is selected in the panel. */
- onSelectionChanged: SelectionChangedEvent;
- }
-
- /**
- * Since Chrome 41.
- * Represents the Sources panel.
- */
- interface SourcesPanel {
- /**
- * Creates a pane within panel's sidebar.
- * @param title Text that is displayed in sidebar caption.
- * @param callback A callback invoked when the sidebar is created.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function( ExtensionSidebarPane result) {...};
- * Parameter result: An ExtensionSidebarPane object for created sidebar pane.
- */
- createSidebarPane(title: string, callback?: (result: ExtensionSidebarPane) => void): void;
- /** Fired when an object is selected in the panel. */
- onSelectionChanged: SelectionChangedEvent;
- }
-
- interface ExtensionSidebarPaneShownEvent extends chrome.events.Event<(window: chrome.windows.Window) => void> {}
-
- interface ExtensionSidebarPaneHiddenEvent extends chrome.events.Event<() => void> {}
-
- /** A sidebar created by the extension. */
- interface ExtensionSidebarPane {
- /**
- * Sets the height of the sidebar.
- * @param height A CSS-like size specification, such as '100px' or '12ex'.
- */
- setHeight(height: string): void;
- /**
- * Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
- * @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
- * @param rootTitle An optional title for the root of the expression tree.
- * @param callback A callback invoked after the sidebar pane is updated with the expression evaluation results.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- setExpression(expression: string, rootTitle?: string, callback?: () => void): void;
- /**
- * Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
- * @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
- * @param callback A callback invoked after the sidebar pane is updated with the expression evaluation results.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- setExpression(expression: string, callback?: () => void): void;
- /**
- * Sets a JSON-compliant object to be displayed in the sidebar pane.
- * @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
- * @param rootTitle An optional title for the root of the expression tree.
- * @param callback A callback invoked after the sidebar is updated with the object.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- setObject(jsonObject: string, rootTitle?: string, callback?: () => void): void;
- /**
- * Sets a JSON-compliant object to be displayed in the sidebar pane.
- * @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
- * @param callback A callback invoked after the sidebar is updated with the object.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- setObject(jsonObject: string, callback?: () => void): void;
- /**
- * Sets an HTML page to be displayed in the sidebar pane.
- * @param path Relative path of an extension page to display within the sidebar.
- */
- setPage(path: string): void;
- /** Fired when the sidebar pane becomes visible as a result of user switching to the panel that hosts it. */
- onShown: ExtensionSidebarPaneShownEvent;
- /** Fired when the sidebar pane becomes hidden as a result of the user switching away from the panel that hosts the sidebar pane. */
- onHidden: ExtensionSidebarPaneHiddenEvent;
- }
-
- /** Elements panel. */
- var elements: ElementsPanel;
- /**
- * Since Chrome 38.
- * Sources panel.
- */
- var sources: SourcesPanel;
-
- /**
- * Creates an extension panel.
- * @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
- * @param iconPath Path of the panel's icon relative to the extension directory.
- * @param pagePath Path of the panel's HTML page relative to the extension directory.
- * @param callback A function that is called when the panel is created.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function( ExtensionPanel panel) {...};
- * Parameter panel: An ExtensionPanel object representing the created panel.
- */
- export function create(title: string, iconPath: string, pagePath: string, callback?: (panel: ExtensionPanel) => void): void;
- /**
- * Specifies the function to be called when the user clicks a resource link in the Developer Tools window. To unset the handler, either call the method with no parameters or pass null as the parameter.
- * @param callback A function that is called when the user clicks on a valid resource link in Developer Tools window. Note that if the user clicks an invalid URL or an XHR, this function is not called.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function( devtools.inspectedWindow.Resource resource) {...};
- * Parameter resource: A devtools.inspectedWindow.Resource object for the resource that was clicked.
- */
- export function setOpenResourceHandler(callback?: (resource: chrome.devtools.inspectedWindow.Resource) => void): void;
- /**
- * Since Chrome 38.
- * Requests DevTools to open a URL in a Developer Tools panel.
- * @param url The URL of the resource to open.
- * @param lineNumber Specifies the line number to scroll to when the resource is loaded.
- * @param callback A function that is called when the resource has been successfully loaded.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function openResource(url: string, lineNumber: number, callback: () => void): void;
-}
-
-////////////////////
-// Document Scan
-////////////////////
-/**
- * Use the chrome.documentScan API to discover and retrieve images from attached paper document scanners.
- * Availability: Since Chrome 44.
- * Permissions: "documentScan"
- * Important: This API works only on Chrome OS.
- */
-declare namespace chrome.documentScan {
- interface DocumentScanOptions {
- /** Optional. The MIME types that are accepted by the caller. */
- mimeTypes?: string[];
- /** Optional. The number of scanned images allowed (defaults to 1). */
- maxImages?: number;
- }
-
- interface DocumentScanCallbackArg {
- /** The data image URLs in a form that can be passed as the "src" value to an image tag. */
- dataUrls: string[];
- /** The MIME type of dataUrls. */
- mimeType: string;
- }
-
- /**
- * Performs a document scan. On success, the PNG data will be sent to the callback.
- * @param options Object containing scan parameters.
- * @param callback Called with the result and data from the scan.
- * The callback parameter should be a function that looks like this:
- * function(object result) {...};
- */
- export function scan(options: DocumentScanOptions, callback: (result: DocumentScanCallbackArg) => void): void;
-}
-
-////////////////////
-// Dev Tools - Downloads
-////////////////////
-/**
- * Use the chrome.downloads API to programmatically initiate, monitor, manipulate, and search for downloads.
- * Availability: Since Chrome 31.
- * Permissions: "downloads"
- */
-declare namespace chrome.downloads {
- interface HeaderNameValuePair {
- /** Name of the HTTP header. */
- name: string;
- /** Value of the HTTP header. */
- value: string;
- }
-
- interface DownloadOptions {
- /** Optional. Post body. */
- body?: string;
- /** Optional. Use a file-chooser to allow the user to select a filename regardless of whether filename is set or already exists. */
- saveAs?: boolean;
- /** The URL to download. */
- url: string;
- /** Optional. A file path relative to the Downloads directory to contain the downloaded file, possibly containing subdirectories. Absolute paths, empty paths, and paths containing back-references ".." will cause an error. onDeterminingFilename allows suggesting a filename after the file's MIME type and a tentative filename have been determined. */
- filename?: string;
- /** Optional. Extra HTTP headers to send with the request if the URL uses the HTTP[s] protocol. Each header is represented as a dictionary containing the keys name and either value or binaryValue, restricted to those allowed by XMLHttpRequest. */
- headers?: HeaderNameValuePair[];
- /** Optional. The HTTP method to use if the URL uses the HTTP[S] protocol. */
- method?: string;
- /** Optional. The action to take if filename already exists. */
- conflictAction?: string;
- }
-
- interface DownloadDelta {
- /** Optional. The change in danger, if any. */
- danger?: StringDelta;
- /** Optional. The change in url, if any. */
- url?: StringDelta;
- /** Optional. The change in totalBytes, if any. */
- totalBytes?: DoubleDelta;
- /** Optional. The change in filename, if any. */
- filename?: StringDelta;
- /** Optional. The change in paused, if any. */
- paused?: BooleanDelta;
- /** Optional. The change in state, if any. */
- state?: StringDelta;
- /** Optional. The change in mime, if any. */
- mime?: StringDelta;
- /** Optional. The change in fileSize, if any. */
- fileSize?: DoubleDelta;
- /** Optional. The change in startTime, if any. */
- startTime?: DoubleDelta;
- /** Optional. The change in error, if any. */
- error?: StringDelta;
- /** Optional. The change in endTime, if any. */
- endTime?: DoubleDelta;
- /** The id of the DownloadItem that changed. */
- id: number;
- /** Optional. The change in canResume, if any. */
- canResume?: BooleanDelta;
- /** Optional. The change in exists, if any. */
- exists?: BooleanDelta;
- }
-
- interface BooleanDelta {
- current?: boolean;
- previous?: boolean;
- }
-
- /** Since Chrome 34. */
- interface DoubleDelta {
- current?: number;
- previous?: number;
- }
-
- interface StringDelta {
- current?: string;
- previous?: string;
- }
-
- interface DownloadItem {
- /** Number of bytes received so far from the host, without considering file compression. */
- bytesReceived: number;
- /** Indication of whether this download is thought to be safe or known to be suspicious. */
- danger: string;
- /** Absolute URL. */
- url: string;
- /** Number of bytes in the whole file, without considering file compression, or -1 if unknown. */
- totalBytes: number;
- /** Absolute local path. */
- filename: string;
- /** True if the download has stopped reading data from the host, but kept the connection open. */
- paused: boolean;
- /** Indicates whether the download is progressing, interrupted, or complete. */
- state: string;
- /** The file's MIME type. */
- mime: string;
- /** Number of bytes in the whole file post-decompression, or -1 if unknown. */
- fileSize: number;
- /** The time when the download began in ISO 8601 format. May be passed directly to the Date constructor: chrome.downloads.search({}, function(items){items.forEach(function(item){console.log(new Date(item.startTime))})}) */
- startTime: string;
- /** Optional. Why the download was interrupted. Several kinds of HTTP errors may be grouped under one of the errors beginning with SERVER_. Errors relating to the network begin with NETWORK_, errors relating to the process of writing the file to the file system begin with FILE_, and interruptions initiated by the user begin with USER_. */
- error?: string;
- /** Optional. The time when the download ended in ISO 8601 format. May be passed directly to the Date constructor: chrome.downloads.search({}, function(items){items.forEach(function(item){if (item.endTime) console.log(new Date(item.endTime))})}) */
- endTime?: string;
- /** An identifier that is persistent across browser sessions. */
- id: number;
- /** False if this download is recorded in the history, true if it is not recorded. */
- incognito: boolean;
- /** Absolute URL. */
- referrer: string;
- /** Optional. Estimated time when the download will complete in ISO 8601 format. May be passed directly to the Date constructor: chrome.downloads.search({}, function(items){items.forEach(function(item){if (item.estimatedEndTime) console.log(new Date(item.estimatedEndTime))})}) */
- estimatedEndTime?: string;
- /** True if the download is in progress and paused, or else if it is interrupted and can be resumed starting from where it was interrupted. */
- canResume: boolean;
- /** Whether the downloaded file still exists. This information may be out of date because Chrome does not automatically watch for file removal. Call search() in order to trigger the check for file existence. When the existence check completes, if the file has been deleted, then an onChanged event will fire. Note that search() does not wait for the existence check to finish before returning, so results from search() may not accurately reflect the file system. Also, search() may be called as often as necessary, but will not check for file existence any more frequently than once every 10 seconds. */
- exists: boolean;
- /** Optional. The identifier for the extension that initiated this download if this download was initiated by an extension. Does not change once it is set. */
- byExtensionId?: string;
- /** Optional. The localized name of the extension that initiated this download if this download was initiated by an extension. May change if the extension changes its name or if the user changes their locale. */
- byExtensionName?: string;
- }
-
- interface GetFileIconOptions {
- /** Optional. * The size of the returned icon. The icon will be square with dimensions size * size pixels. The default and largest size for the icon is 32x32 pixels. The only supported sizes are 16 and 32. It is an error to specify any other size.
- */
- size?: number;
- }
-
- interface DownloadQuery {
- /** Optional. Set elements of this array to DownloadItem properties in order to sort search results. For example, setting orderBy=['startTime'] sorts the DownloadItem by their start time in ascending order. To specify descending order, prefix with a hyphen: '-startTime'. */
- orderBy?: string[];
- /** Optional. Limits results to DownloadItem whose url matches the given regular expression. */
- urlRegex?: string;
- /** Optional. Limits results to DownloadItem that ended before the given ms since the epoch. */
- endedBefore?: number;
- /** Optional. Limits results to DownloadItem whose totalBytes is greater than the given integer. */
- totalBytesGreater?: number;
- /** Optional. Indication of whether this download is thought to be safe or known to be suspicious. */
- danger?: string;
- /** Optional. Number of bytes in the whole file, without considering file compression, or -1 if unknown. */
- totalBytes?: number;
- /** Optional. True if the download has stopped reading data from the host, but kept the connection open. */
- paused?: boolean;
- /** Optional. Limits results to DownloadItem whose filename matches the given regular expression. */
- filenameRegex?: string;
- /** Optional. This array of search terms limits results to DownloadItem whose filename or url contain all of the search terms that do not begin with a dash '-' and none of the search terms that do begin with a dash. */
- query?: string[];
- /** Optional. Limits results to DownloadItem whose totalBytes is less than the given integer. */
- totalBytesLess?: number;
- /** Optional. The id of the DownloadItem to query. */
- id?: number;
- /** Optional. Number of bytes received so far from the host, without considering file compression. */
- bytesReceived?: number;
- /** Optional. Limits results to DownloadItem that ended after the given ms since the epoch. */
- endedAfter?: number;
- /** Optional. Absolute local path. */
- filename?: string;
- /** Optional. Indicates whether the download is progressing, interrupted, or complete. */
- state?: string;
- /** Optional. Limits results to DownloadItem that started after the given ms since the epoch. */
- startedAfter?: number;
- /** Optional. The file's MIME type. */
- mime?: string;
- /** Optional. Number of bytes in the whole file post-decompression, or -1 if unknown. */
- fileSize?: number;
- /** Optional. The time when the download began in ISO 8601 format. */
- startTime?: number;
- /** Optional. Absolute URL. */
- url?: string;
- /** Optional. Limits results to DownloadItem that started before the given ms since the epoch. */
- startedBefore?: number;
- /** Optional. The maximum number of matching DownloadItem returned. Defaults to 1000. Set to 0 in order to return all matching DownloadItem. See search for how to page through results. */
- limit?: number;
- /** Optional. Why a download was interrupted. */
- error?: number;
- /** Optional. The time when the download ended in ISO 8601 format. */
- endTime?: number;
- /** Optional. Whether the downloaded file exists; */
- exists?: boolean;
- }
-
- interface DownloadFilenameSuggestion {
- /** The DownloadItem's new target DownloadItem.filename, as a path relative to the user's default Downloads directory, possibly containing subdirectories. Absolute paths, empty paths, and paths containing back-references ".." will be ignored. */
- filename: string;
- /** Optional. The action to take if filename already exists. */
- conflictAction?: string;
- }
-
- interface DownloadChangedEvent extends chrome.events.Event<(downloadDelta: DownloadDelta) => void> {}
-
- interface DownloadCreatedEvent extends chrome.events.Event<(downloadItem: DownloadItem) => void> {}
-
- interface DownloadErasedEvent extends chrome.events.Event<(downloadId: number) => void> {}
-
- interface DownloadDeterminingFilenameEvent extends chrome.events.Event<(downloadItem: DownloadItem, suggest: (suggestion?: DownloadFilenameSuggestion) => void) => void> {}
-
- /**
- * Find DownloadItem. Set query to the empty object to get all DownloadItem. To get a specific DownloadItem, set only the id field. To page through a large number of items, set orderBy: ['-startTime'], set limit to the number of items per page, and set startedAfter to the startTime of the last item from the last page.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of DownloadItem results) {...};
- */
- export function search(query: DownloadQuery, callback: (results: DownloadItem[]) => void): void;
- /**
- * Pause the download. If the request was successful the download is in a paused state. Otherwise runtime.lastError contains an error message. The request will fail if the download is not active.
- * @param downloadId The id of the download to pause.
- * @param callback Called when the pause request is completed.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function pause(downloadId: number, callback?: () => void): void;
- /**
- * Retrieve an icon for the specified download. For new downloads, file icons are available after the onCreated event has been received. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, runtime.lastError will contain an error message.
- * @param downloadId The identifier for the download.
- * @param callback A URL to an image that represents the download.
- * The callback parameter should be a function that looks like this:
- * function(string iconURL) {...};
- */
- export function getFileIcon(downloadId: number, callback: (iconURL: string) => void): void;
- /**
- * Retrieve an icon for the specified download. For new downloads, file icons are available after the onCreated event has been received. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, runtime.lastError will contain an error message.
- * @param downloadId The identifier for the download.
- * @param callback A URL to an image that represents the download.
- * The callback parameter should be a function that looks like this:
- * function(string iconURL) {...};
- */
- export function getFileIcon(downloadId: number, options: GetFileIconOptions, callback: (iconURL: string) => void): void;
- /**
- * Resume a paused download. If the request was successful the download is in progress and unpaused. Otherwise runtime.lastError contains an error message. The request will fail if the download is not active.
- * @param downloadId The id of the download to resume.
- * @param callback Called when the resume request is completed.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function resume(downloadId: number, callback?: () => void): void;
- /**
- * Cancel a download. When callback is run, the download is cancelled, completed, interrupted or doesn't exist anymore.
- * @param downloadId The id of the download to cancel.
- * @param callback Called when the cancel request is completed.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function cancel(downloadId: number, callback?: () => void): void;
- /**
- * Download a URL. If the URL uses the HTTP[S] protocol, then the request will include all cookies currently set for its hostname. If both filename and saveAs are specified, then the Save As dialog will be displayed, pre-populated with the specified filename. If the download started successfully, callback will be called with the new DownloadItem's downloadId. If there was an error starting the download, then callback will be called with downloadId=undefined and runtime.lastError will contain a descriptive string. The error strings are not guaranteed to remain backwards compatible between releases. Extensions must not parse it.
- * @param options What to download and how.
- * @param callback Called with the id of the new DownloadItem.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(integer downloadId) {...};
- */
- export function download(options: DownloadOptions, callback?: (downloadId: number) => void): void;
- /**
- * Open the downloaded file now if the DownloadItem is complete; otherwise returns an error through runtime.lastError. Requires the "downloads.open" permission in addition to the "downloads" permission. An onChanged event will fire when the item is opened for the first time.
- * @param downloadId The identifier for the downloaded file.
- */
- export function open(downloadId: number): void;
- /**
- * Show the downloaded file in its folder in a file manager.
- * @param downloadId The identifier for the downloaded file.
- */
- export function show(downloadId: number): void;
- /** Show the default Downloads folder in a file manager. */
- export function showDefaultFolder(): void;
- /**
- * Erase matching DownloadItem from history without deleting the downloaded file. An onErased event will fire for each DownloadItem that matches query, then callback will be called.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(array of integer erasedIds) {...};
- */
- export function erase(query: DownloadQuery, callback: (erasedIds: number[]) => void): void;
- /**
- * Remove the downloaded file if it exists and the DownloadItem is complete; otherwise return an error through runtime.lastError.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeFile(downloadId: number, callback?: () => void): void;
- /**
- * Prompt the user to accept a dangerous download. Can only be called from a visible context (tab, window, or page/browser action popup). Does not automatically accept dangerous downloads. If the download is accepted, then an onChanged event will fire, otherwise nothing will happen. When all the data is fetched into a temporary file and either the download is not dangerous or the danger has been accepted, then the temporary file is renamed to the target filename, the |state| changes to 'complete', and onChanged fires.
- * @param downloadId The identifier for the DownloadItem.
- * @param callback Called when the danger prompt dialog closes.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function acceptDanger(downloadId: number, callback: () => void): void;
- /** Initiate dragging the downloaded file to another application. Call in a javascript ondragstart handler. */
- export function drag(downloadId: number): void;
- /** Enable or disable the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it. Enabling the shelf while at least one other extension has disabled it will return an error through runtime.lastError. Requires the "downloads.shelf" permission in addition to the "downloads" permission. */
- export function setShelfEnabled(enabled: boolean): void;
-
- /** When any of a DownloadItem's properties except bytesReceived and estimatedEndTime changes, this event fires with the downloadId and an object containing the properties that changed. */
- var onChanged: DownloadChangedEvent;
- /** This event fires with the DownloadItem object when a download begins. */
- var onCreated: DownloadCreatedEvent;
- /** Fires with the downloadId when a download is erased from history. */
- var onErased: DownloadErasedEvent;
- /** During the filename determination process, extensions will be given the opportunity to override the target DownloadItem.filename. Each extension may not register more than one listener for this event. Each listener must call suggest exactly once, either synchronously or asynchronously. If the listener calls suggest asynchronously, then it must return true. If the listener neither calls suggest synchronously nor returns true, then suggest will be called automatically. The DownloadItem will not complete until all listeners have called suggest. Listeners may call suggest without any arguments in order to allow the download to use downloadItem.filename for its filename, or pass a suggestion object to suggest in order to override the target filename. If more than one extension overrides the filename, then the last extension installed whose listener passes a suggestion object to suggest wins. In order to avoid confusion regarding which extension will win, users should not install extensions that may conflict. If the download is initiated by download and the target filename is known before the MIME type and tentative filename have been determined, pass filename to download instead. */
- var onDeterminingFilename: DownloadDeterminingFilenameEvent;
-}
-
-////////////////////
-// Enterprise Platform Keys
-////////////////////
-/**
- * Use the chrome.enterprise.platformKeys API to generate hardware-backed keys and to install certificates for these keys. The certificates will be managed by the platform and can be used for TLS authentication, network access or by other extension through chrome.platformKeys.
- * Availability: Since Chrome 37.
- * Permissions: "enterprise.platformKeys"
- * Important: This API works only on Chrome OS.
- * Note: This API is only for extensions pre-installed by policy.
- */
-declare namespace chrome.enterprise.platformKeys {
- interface Token {
- /**
- * Uniquely identifies this Token.
- * Static IDs are "user" and "system", referring to the platform's user-specific and the system-wide hardware token, respectively. Any other tokens (with other identifiers) might be returned by enterprise.platformKeys.getTokens.
- */
- id: string;
- /**
- * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
- * Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 can be generated. Each key can be used for signing data at most once.
- * Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle. Equally, Key objects created with window.crypto.subtle cannot be used with this interface.
- */
- subtleCrypto: SubtleCrypto;
- }
-
- /**
- * Returns the available Tokens. In a regular user's session the list will always contain the user's token with id "user". If a system-wide TPM token is available, the returned list will also contain the system-wide token with id "system". The system-wide token will be the same for all sessions on this device (device in the sense of e.g. a Chromebook).
- * @param callback Invoked by getTokens with the list of available Tokens.
- * The callback parameter should be a function that looks like this:
- * function(array of Token tokens) {...};
- * Parameter tokens: The list of available tokens.
- */
- export function getToken(callback: (tokens: Token[]) => void): void;
- /**
- * Returns the list of all client certificates available from the given token. Can be used to check for the existence and expiration of client certificates that are usable for a certain authentication.
- * @param tokenId The id of a Token returned by getTokens.
- * @param callback Called back with the list of the available certificates.
- * The callback parameter should be a function that looks like this:
- * function(array of ArrayBuffer certificates) {...};
- * Parameter certificates: The list of certificates, each in DER encoding of a X.509 certificate.
- */
- export function getCertificates(tokenId: string, callback: (certificates: ArrayBuffer) => void): void;
- /**
- * Imports certificate to the given token if the certified key is already stored in this token. After a successful certification request, this function should be used to store the obtained certificate and to make it available to the operating system and browser for authentication.
- * @param tokenId The id of a Token returned by getTokens.
- * @param certificate The DER encoding of a X.509 certificate.
- * @param callback Called back when this operation is finished.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function importCertificate(tokenId: string, certificate: ArrayBuffer, callback?: () => void): void;
- /**
- * Removes certificate from the given token if present. Should be used to remove obsolete certificates so that they are not considered during authentication and do not clutter the certificate choice. Should be used to free storage in the certificate store.
- * @param tokenId The id of a Token returned by getTokens.
- * @param certificate The DER encoding of a X.509 certificate.
- * @param callback Called back when this operation is finished.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeCertificate(tokenId: string, certificate: ArrayBuffer, callback?: () => void): void;
-}
-
-////////////////////
-// Events
-////////////////////
-/**
- * The chrome.events namespace contains common types used by APIs dispatching events to notify you when something interesting happens.
- * Availability: Since Chrome 21.
- */
-declare namespace chrome.events {
- /** Filters URLs for various criteria. See event filtering. All criteria are case sensitive. */
- interface UrlFilter {
- /** Optional. Matches if the scheme of the URL is equal to any of the schemes specified in the array. */
- schemes?: string[];
- /**
- * Optional.
- * Since Chrome 23.
- * Matches if the URL (without fragment identifier) matches a specified regular expression. Port numbers are stripped from the URL if they match the default port number. The regular expressions use the RE2 syntax.
- */
- urlMatches?: string;
- /** Optional. Matches if the path segment of the URL contains a specified string. */
- pathContains?: string;
- /** Optional. Matches if the host name of the URL ends with a specified string. */
- hostSuffix?: string;
- /** Optional. Matches if the host name of the URL starts with a specified string. */
- hostPrefix?: string;
- /** Optional. Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name. */
- hostContains?: string;
- /** Optional. Matches if the URL (without fragment identifier) contains a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlContains?: string;
- /** Optional. Matches if the query segment of the URL ends with a specified string. */
- querySuffix?: string;
- /** Optional. Matches if the URL (without fragment identifier) starts with a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlPrefix?: string;
- /** Optional. Matches if the host name of the URL is equal to a specified string. */
- hostEquals?: string;
- /** Optional. Matches if the URL (without fragment identifier) is equal to a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlEquals?: string;
- /** Optional. Matches if the query segment of the URL contains a specified string. */
- queryContains?: string;
- /** Optional. Matches if the path segment of the URL starts with a specified string. */
- pathPrefix?: string;
- /** Optional. Matches if the path segment of the URL is equal to a specified string. */
- pathEquals?: string;
- /** Optional. Matches if the path segment of the URL ends with a specified string. */
- pathSuffix?: string;
- /** Optional. Matches if the query segment of the URL is equal to a specified string. */
- queryEquals?: string;
- /** Optional. Matches if the query segment of the URL starts with a specified string. */
- queryPrefix?: string;
- /** Optional. Matches if the URL (without fragment identifier) ends with a specified string. Port numbers are stripped from the URL if they match the default port number. */
- urlSuffix?: string;
- /** Optional. Matches if the port of the URL is contained in any of the specified port lists. For example [80, 443, [1000, 1200]] matches all requests on port 80, 443 and in the range 1000-1200. */
- ports?: any[];
- /**
- * Optional.
- * Since Chrome 28.
- * Matches if the URL without query segment and fragment identifier matches a specified regular expression. Port numbers are stripped from the URL if they match the default port number. The regular expressions use the RE2 syntax.
- */
- originAndPathMatches?: string;
- }
-
- /** An object which allows the addition and removal of listeners for a Chrome event. */
- interface Event<T extends Function> {
- /**
- * Registers an event listener callback to an event.
- * @param callback Called when an event occurs. The parameters of this function depend on the type of event.
- * The callback parameter should be a function that looks like this:
- * function() {...};
- */
- addListener(callback: T): void;
- /**
- * Returns currently registered rules.
- * @param callback Called with registered rules.
- * The callback parameter should be a function that looks like this:
- * function(array of Rule rules) {...};
- * Parameter rules: Rules that were registered, the optional parameters are filled with values.
- */
- getRules(callback: (rules: Rule[]) => void): void;
- /**
- * Returns currently registered rules.
- * @param ruleIdentifiers If an array is passed, only rules with identifiers contained in this array are returned.
- * @param callback Called with registered rules.
- * The callback parameter should be a function that looks like this:
- * function(array of Rule rules) {...};
- * Parameter rules: Rules that were registered, the optional parameters are filled with values.
- */
- getRules(ruleIdentifiers: string[], callback: (rules: Rule[]) => void): void;
- /**
- * @param callback Listener whose registration status shall be tested.
- */
- hasListener(callback: T): boolean;
- /**
- * Unregisters currently registered rules.
- * @param ruleIdentifiers If an array is passed, only rules with identifiers contained in this array are unregistered.
- * @param callback Called when rules were unregistered.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- removeRules(ruleIdentifiers?: string[], callback?: () => void): void;
- /**
- * Unregisters currently registered rules.
- * @param callback Called when rules were unregistered.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- removeRules(callback?: () => void): void;
- /**
- * Registers rules to handle events.
- * @param rules Rules to be registered. These do not replace previously registered rules.
- * @param callback Called with registered rules.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(array of Rule rules) {...};
- * Parameter rules: Rules that were registered, the optional parameters are filled with values.
- */
- addRules(rules: Rule[], callback?: (rules: Rule[]) => void): void;
- /**
- * Deregisters an event listener callback from an event.
- * @param callback Listener that shall be unregistered.
- * The callback parameter should be a function that looks like this:
- * function() {...};
- */
- removeListener(callback: T): void;
- hasListeners(): boolean;
- }
-
- /** Description of a declarative rule for handling events. */
- interface Rule {
- /** Optional. Optional priority of this rule. Defaults to 100. */
- priority?: number;
- /** List of conditions that can trigger the actions. */
- conditions: any[];
- /** Optional. Optional identifier that allows referencing this rule. */
- id?: string;
- /** List of actions that are triggered if one of the condtions is fulfilled. */
- actions: any[];
- /**
- * Optional.
- * Since Chrome 28.
- * Tags can be used to annotate rules and perform operations on sets of rules.
- */
- tags?: string[];
- }
-}
-
-////////////////////
-// Extension
-////////////////////
-/**
- * The chrome.extension API has utilities that can be used by any extension page. It includes support for exchanging messages between an extension and its content scripts or between extensions, as described in detail in Message Passing.
- * Availability: Since Chrome 5.
- */
-declare namespace chrome.extension {
- interface FetchProperties {
- /** Optional. The window to restrict the search to. If omitted, returns all views. */
- windowId?: number;
- /** Optional. The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'notification', 'popup'. */
- type?: string;
- }
-
- interface LastError {
- /** Description of the error that has taken place. */
- message: string;
- }
-
- interface OnRequestEvent extends chrome.events.Event<((request: any, sender: runtime.MessageSender, sendResponse: (response: any) => void) => void) | ((sender: runtime.MessageSender, sendResponse: (response: any) => void) => void)> {}
-
- /**
- * Since Chrome 7.
- * True for content scripts running inside incognito tabs, and for extension pages running inside an incognito process. The latter only applies to extensions with 'split' incognito_behavior.
- */
- var inIncognitoContext: boolean;
- /** Set for the lifetime of a callback if an ansychronous extension api has resulted in an error. If no error has occured lastError will be undefined. */
- var lastError: LastError;
-
- /** Returns the JavaScript 'window' object for the background page running inside the current extension. Returns null if the extension has no background page. */
- export function getBackgroundPage(): Window;
- /**
- * Converts a relative path within an extension install directory to a fully-qualified URL.
- * @param path A path to a resource within an extension expressed relative to its install directory.
- */
- export function getURL(path: string): string;
- /**
- * Sets the value of the ap CGI parameter used in the extension's update URL. This value is ignored for extensions that are hosted in the Chrome Extension Gallery.
- * Since Chrome 9.
- */
- export function setUpdateUrlData(data: string): void;
- /** Returns an array of the JavaScript 'window' objects for each of the pages running inside the current extension. */
- export function getViews(fetchProperties?: FetchProperties): Window[];
- /**
- * Retrieves the state of the extension's access to the 'file://' scheme (as determined by the user-controlled 'Allow access to File URLs' checkbox.
- * Since Chrome 12.
- * @param callback The callback parameter should be a function that looks like this:
- * function(boolean isAllowedAccess) {...};
- * Parameter isAllowedAccess: True if the extension can access the 'file://' scheme, false otherwise.
- */
- export function isAllowedFileSchemeAccess(callback: (isAllowedAccess: boolean) => void): void;
- /**
- * Retrieves the state of the extension's access to Incognito-mode (as determined by the user-controlled 'Allowed in Incognito' checkbox.
- * Since Chrome 12.
- * @param callback The callback parameter should be a function that looks like this:
- * function(boolean isAllowedAccess) {...};
- * Parameter isAllowedAccess: True if the extension has access to Incognito mode, false otherwise.
- */
- export function isAllowedIncognitoAccess(callback: (isAllowedAccess: boolean) => void): void;
- /**
- * Sends a single request to other listeners within the extension. Similar to runtime.connect, but only sends a single request with an optional response. The extension.onRequest event is fired in each page of the extension.
- * @deprecated Deprecated since Chrome 33. Please use runtime.sendMessage.
- * @param extensionId The extension ID of the extension you want to connect to. If omitted, default is your own extension.
- * @param responseCallback If you specify the responseCallback parameter, it should be a function that looks like this:
- * function(any response) {...};
- * Parameter response: The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendRequest(extensionId: string, request: any, responseCallback?: (response: any) => void): void;
- /**
- * Sends a single request to other listeners within the extension. Similar to runtime.connect, but only sends a single request with an optional response. The extension.onRequest event is fired in each page of the extension.
- * @deprecated Deprecated since Chrome 33. Please use runtime.sendMessage.
- * @param responseCallback If you specify the responseCallback parameter, it should be a function that looks like this:
- * function(any response) {...};
- * Parameter response: The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendRequest(request: any, responseCallback?: (response: any) => void): void;
- /**
- * Returns an array of the JavaScript 'window' objects for each of the tabs running inside the current extension. If windowId is specified, returns only the 'window' objects of tabs attached to the specified window.
- * @deprecated Deprecated since Chrome 33. Please use extension.getViews {type: "tab"}.
- */
- export function getExtensionTabs(windowId?: number): Window[];
-
- /**
- * Fired when a request is sent from either an extension process or a content script.
- * @deprecated Deprecated since Chrome 33. Please use runtime.onMessage.
- */
- var onRequest: OnRequestEvent;
- /**
- * Fired when a request is sent from another extension.
- * @deprecated Deprecated since Chrome 33. Please use runtime.onMessageExternal.
- */
- var onRequestExternal: OnRequestEvent;
-}
-
-////////////////////
-// File Browser Handler
-////////////////////
-/**
- * Use the chrome.fileBrowserHandler API to extend the Chrome OS file browser. For example, you can use this API to enable users to upload files to your website.
- * Availability: Since Chrome 12.
- * Permissions: "fileBrowserHandler"
- * Important: This API works only on Chrome OS.
- */
-declare namespace chrome.fileBrowserHandler {
- interface SelectionParams {
- /**
- * Optional.
- * List of file extensions that the selected file can have. The list is also used to specify what files to be shown in the select file dialog. Files with the listed extensions are only shown in the dialog. Extensions should not include the leading '.'. Example: ['jpg', 'png']
- * Since Chrome 23.
- */
- allowedFileExtensions?: string[];
- /** Suggested name for the file. */
- suggestedName: string;
- }
-
- interface SelectionResult {
- /** Optional. Selected file entry. It will be null if a file hasn't been selected. */
- entry?: Object;
- /** Whether the file has been selected. */
- success: boolean;
- }
-
- /** Event details payload for fileBrowserHandler.onExecute event. */
- interface FileHandlerExecuteEventDetails {
- /** Optional. The ID of the tab that raised this event. Tab IDs are unique within a browser session. */
- tab_id?: number;
- /** Array of Entry instances representing files that are targets of this action (selected in ChromeOS file browser). */
- entries: any[];
- }
-
- interface FileBrowserHandlerExecuteEvent extends chrome.events.Event<(id: string, details: FileHandlerExecuteEventDetails) => void> {}
-
- /**
- * Prompts user to select file path under which file should be saved. When the file is selected, file access permission required to use the file (read, write and create) are granted to the caller. The file will not actually get created during the function call, so function caller must ensure its existence before using it. The function has to be invoked with a user gesture.
- * Since Chrome 21.
- * @param selectionParams Parameters that will be used while selecting the file.
- * @param callback Function called upon completion.
- * The callback parameter should be a function that looks like this:
- * function(object result) {...};
- * Parameter result: Result of the method.
- */
- export function selectFile(selectionParams: SelectionParams, callback: (result: SelectionResult) => void): void;
-
- /** Fired when file system action is executed from ChromeOS file browser. */
- var onExecute: FileBrowserHandlerExecuteEvent;
-}
-
-////////////////////
-// File System Provider
-////////////////////
-/**
- * Use the chrome.fileSystemProvider API to create file systems, that can be accessible from the file manager on Chrome OS.
- * Availability: Since Chrome 40.
- * Permissions: "fileSystemProvider"
- * Important: This API works only on Chrome OS.
- */
-declare namespace chrome.fileSystemProvider {
- interface OpenedFileInfo {
- /** A request ID to be be used by consecutive read/write and close requests. */
- openRequestId: number;
- /** The path of the opened file. */
- filePath: string;
- /** Whether the file was opened for reading or writing. */
- mode: string;
- }
-
- interface FileWatchersInfo {
- /** The path of the entry being observed. */
- entryPath: string;
- /** Whether watching should include all child entries recursively. It can be true for directories only. */
- recursive: boolean;
- /** Optional. Tag used by the last notification for the watcher. */
- lastTag?: string;
- }
-
- interface EntryMetadata {
- /** True if it is a directory. */
- isDirectory: boolean;
- /** Name of this entry (not full path name). Must not contain '/'. For root it must be empty. */
- name: string;
- /** File size in bytes. */
- size: number;
- /** The last modified time of this entry. */
- modificationTime: Date;
- /** Optional. Mime type for the entry. */
- mimeType?: string;
- /** Optional. Thumbnail image as a data URI in either PNG, JPEG or WEBP format, at most 32 KB in size. Optional, but can be provided only when explicitly requested by the onGetMetadataRequested event. */
- thumbnail?: string;
- }
-
- interface FileSystemInfo {
- /** The identifier of the file system. */
- fileSystemId: string;
- /** A human-readable name for the file system. */
- displayName: string;
- /** Whether the file system supports operations which may change contents of the file system (such as creating, deleting or writing to files). */
- writable: boolean;
- /**
- * The maximum number of files that can be opened at once. If 0, then not limited.
- * @since Since Chrome 42.
- */
- openedFilesLimit: number;
- /**
- * List of currently opened files.
- * @since Since Chrome 42.
- */
- openedFiles: OpenedFileInfo[];
- /**
- * Optional.
- * Whether the file system supports the tag field for observing directories.
- * @since Since Chrome 45. Warning: this is the current Beta channel.
- */
- supportsNotifyTag?: boolean;
- /**
- * List of watchers.
- * @since Since Chrome 45. Warning: this is the current Beta channel.
- */
- watchers: FileWatchersInfo[];
- }
-
- /** @since Since Chrome 45. Warning: this is the current Beta channel. */
- interface GetActionsRequestedOptions {
- /** The identifier of the file system related to this operation. */
- fileSystemId: string;
- /** The unique identifier of this request. */
- requestId: number;
- /** The path of the entry to return the list of actions for. */
- entryPath: string;
- }
-
- /** @since Since Chrome 45. Warning: this is the current Beta channel. */
- interface Action {
- /** The identifier of the action. Any string or CommonActionId for common actions. */
- id: string;
- /** Optional. The title of the action. It may be ignored for common actions. */
- title?: string;
- }
-
- /** @since Since Chrome 45. Warning: this is the current Beta channel. */
- interface ExecuteActionRequestedOptions {
- /** The identifier of the file system related to this operation. */
- fileSystemId: string;
- /** The unique identifier of this request. */
- requestId: number;
- /** The path of the entry to be used for the action. */
- entryPath: string;
- /** The identifier of the action to be executed. */
- actionId: string;
- }
-
- interface MountOptions {
- /** The string indentifier of the file system. Must be unique per each extension. */
- fileSystemId: string;
- /** A human-readable name for the file system. */
- displayName: string;
- /** Optional. Whether the file system supports operations which may change contents of the file system (such as creating, deleting or writing to files). */
- writable?: boolean;
- /**
- * Optional.
- * The maximum number of files that can be opened at once. If not specified, or 0, then not limited.
- * @since Since Chrome 41.
- */
- openedFilesLimit?: number;
- /**
- * Optional.
- * Whether the file system supports the tag field for observed directories.
- * @since Since Chrome 45. Warning: this is the current Beta channel.
- */
- supportsNotifyTag?: boolean;
- }
-
- interface UnmountOptions {
- /** The identifier of the file system to be unmounted. */
- fileSystemId: string;
- }
-
- interface NotificationChange {
- /** The path of the changed entry. */
- entryPath: string;
- /** The type of the change which happened to the entry. */
- changeType: string;
- }
-
- interface NotificationOptions {
- /** The identifier of the file system related to this change. */
- fileSystemId: string;
- /** The path of the observed entry. */
- observedPath: string;
- /** Mode of the observed entry. */
- recursive: boolean;
- /** The type of the change which happened to the observed entry. If it is DELETED, then the observed entry will be automatically removed from the list of observed entries. */
- changeType: string;
- /** Optional. List of changes to entries within the observed directory (including the entry itself) */
- changes?: NotificationChange[];
- /** Optional. Tag for the notification. Required if the file system was mounted with the supportsNotifyTag option. Note, that this flag is necessary to provide notifications about changes which changed even when the system was shutdown. */
- tag?: string;
- }
-
- interface RequestedEventOptions {
- /** The identifier of the file system related to this operation. */
- fileSystemId: string;
- /** The unique identifier of this request. */
- requestId: number;
- }
-
- interface EntryPathRequestedEventOptions extends RequestedEventOptions {
- /** The path of the entry to which this operation is related to. */
- entryPath: string;
- }
-
- interface MetadataRequestedEventOptions extends EntryPathRequestedEventOptions {
- /** Set to true if the thumbnail is requested. */
- thumbnail: boolean;
- }
-
- interface DirectoryPathRequestedEventOptions extends RequestedEventOptions {
- /** The path of the directory which is to be operated on. */
- directoryPath: string;
- }
-
- interface FilePathRequestedEventOptions extends RequestedEventOptions {
- /** The path of the entry for the operation */
- filePath: string;
- }
-
- interface OpenFileRequestedEventOptions extends FilePathRequestedEventOptions {
- /** Whether the file will be used for reading or writing. */
- mode: string;
- }
-
- interface OpenedFileRequestedEventOptions extends RequestedEventOptions {
- /** A request ID used to open the file. */
- openRequestId: number;
- }
-
- interface OpenedFileOffsetRequestedEventOptions extends OpenedFileRequestedEventOptions {
- /** Position in the file (in bytes) to start reading from. */
- offset: number;
- /** Number of bytes to be returned. */
- length: number;
- }
-
- interface DirectoryPathRecursiveRequestedEventOptions extends DirectoryPathRequestedEventOptions {
- /** Whether the operation is recursive (for directories only). */
- recursive: boolean;
- }
-
- interface EntryPathRecursiveRequestedEventOptions extends EntryPathRequestedEventOptions {
- /** Whether the operation is recursive (for directories only). */
- recursive: boolean;
- }
-
- interface SourceTargetPathRequestedEventOptions extends RequestedEventOptions {
- /** The source path for the operation. */
- sourcePath: string;
- /** The destination path for the operation. */
- targetPath: string;
- }
-
- interface FilePathLengthRequestedEventOptions extends FilePathRequestedEventOptions {
- /** Number of bytes to be retained after the operation completes. */
- length: number;
- }
-
- interface OpenedFileIoRequestedEventOptions extends OpenedFileRequestedEventOptions {
- /** Position in the file (in bytes) to start operating from. */
- offset: number;
- /** Buffer of bytes to be operated on the file. */
- data: ArrayBuffer;
- }
-
- interface OperationRequestedEventOptions extends RequestedEventOptions {
- /** An ID of the request to which this operation is related. */
- operationRequestId: number;
- }
-
- interface RequestedEvent extends chrome.events.Event<(options: RequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface MetadataRequestedEvent extends chrome.events.Event<(options: MetadataRequestedEventOptions, successCallback: (metadata: EntryMetadata) => void, errorCallback: (error: string) => void) => void> {}
-
- interface DirectoryPathRequestedEvent extends chrome.events.Event<(options: DirectoryPathRequestedEventOptions, successCallback: (entries: EntryMetadata[], hasMore: boolean) => void, errorCallback: (error: string) => void) => void> {}
-
- interface OpenFileRequestedEvent extends chrome.events.Event<(options: OpenFileRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface OpenedFileRequestedEvent extends chrome.events.Event<(options: OpenedFileRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface OpenedFileOffsetRequestedEvent extends chrome.events.Event<(options: OpenedFileOffsetRequestedEventOptions, successCallback: (data: ArrayBuffer, hasMore: boolean) => void, errorCallback: (error: string) => void) => void> {}
-
- interface DirectoryPathRecursiveRequestedEvent extends chrome.events.Event<(options: DirectoryPathRecursiveRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface EntryPathRecursiveRequestedEvent extends chrome.events.Event<(options: EntryPathRecursiveRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface FilePathRequestedEvent extends chrome.events.Event<(options: FilePathRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface SourceTargetPathRequestedEvent extends chrome.events.Event<(options: SourceTargetPathRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface FilePathLengthRequestedEvent extends chrome.events.Event<(options: FilePathLengthRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface OpenedFileIoRequestedEvent extends chrome.events.Event<(options: OpenedFileIoRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface OperationRequestedEvent extends chrome.events.Event<(options: OperationRequestedEventOptions, successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- interface OptionlessRequestedEvent extends chrome.events.Event<(successCallback: Function, errorCallback: (error: string) => void) => void> {}
-
- /**
- * Mounts a file system with the given fileSystemId and displayName. displayName will be shown in the left panel of Files.app. displayName can contain any characters including '/', but cannot be an empty string. displayName must be descriptive but doesn't have to be unique. The fileSystemId must not be an empty string.
- * Depending on the type of the file system being mounted, the source option must be set appropriately.
- * In case of an error, runtime.lastError will be set with a corresponding error code.
- * @param callback A generic result callback to indicate success or failure.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function mount(options: MountOptions, callback?: () => void): void;
- /**
- * Unmounts a file system with the given fileSystemId. It must be called after onUnmountRequested is invoked. Also, the providing extension can decide to perform unmounting if not requested (eg. in case of lost connection, or a file error).
- * In case of an error, runtime.lastError will be set with a corresponding error code.
- * @param callback A generic result callback to indicate success or failure.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function unmount(options: UnmountOptions, callback?: () => void): void;
- /**
- * Returns all file systems mounted by the extension.
- * @param callback Callback to receive the result of getAll function.
- * The callback parameter should be a function that looks like this:
- * function(array of FileSystemInfo fileSystems) {...};
- */
- export function getAll(callback: (fileSystems: FileSystemInfo[]) => void): void;
- /**
- * Returns information about a file system with the passed fileSystemId.
- * @since Since Chrome 42.
- * @param callback Callback to receive the result of get function.
- * The callback parameter should be a function that looks like this:
- * function(FileSystemInfo fileSystem) {...};
- */
- export function get(fileSystemId: string, callback: (fileSystem: FileSystemInfo) => void): void;
- /**
- * Notifies about changes in the watched directory at observedPath in recursive mode. If the file system is mounted with supportsNofityTag, then tag must be provided, and all changes since the last notification always reported, even if the system was shutdown. The last tag can be obtained with getAll.
- * To use, the file_system_provider.notify manifest option must be set to true.
- * Value of tag can be any string which is unique per call, so it's possible to identify the last registered notification. Eg. if the providing extension starts after a reboot, and the last registered notification's tag is equal to "123", then it should call notify for all changes which happened since the change tagged as "123". It cannot be an empty string.
- * Not all providers are able to provide a tag, but if the file system has a changelog, then the tag can be eg. a change number, or a revision number.
- * Note that if a parent directory is removed, then all descendant entries are also removed, and if they are watched, then the API must be notified about the fact. Also, if a directory is renamed, then all descendant entries are in fact removed, as there is no entry under their original paths anymore.
- * In case of an error, runtime.lastError will be set will a corresponding error code.
- * @param callback A generic result callback to indicate success or failure.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function notify(options: NotificationOptions, callback: () => void): void;
-
- /** Raised when unmounting for the file system with the fileSystemId identifier is requested. In the response, the unmount API method must be called together with successCallback. If unmounting is not possible (eg. due to a pending operation), then errorCallback must be called. */
- var onUnmountRequested: RequestedEvent;
- /** Raised when metadata of a file or a directory at entryPath is requested. The metadata must be returned with the successCallback call. In case of an error, errorCallback must be called. */
- var onGetMetadataRequested: MetadataRequestedEvent;
- /** Raised when contents of a directory at directoryPath are requested. The results must be returned in chunks by calling the successCallback several times. In case of an error, errorCallback must be called. */
- var onReadDirectoryRequested: DirectoryPathRequestedEvent;
- /** Raised when opening a file at filePath is requested. If the file does not exist, then the operation must fail. Maximum number of files opened at once can be specified with MountOptions. */
- var onOpenFileRequested: OpenFileRequestedEvent;
- /** Raised when opening a file previously opened with openRequestId is requested to be closed. */
- var onCloseFileRequested: OpenedFileRequestedEvent;
- /** Raised when reading contents of a file opened previously with openRequestId is requested. The results must be returned in chunks by calling successCallback several times. In case of an error, errorCallback must be called. */
- var onReadFileRequested: OpenedFileOffsetRequestedEvent;
- /** Raised when creating a directory is requested. The operation must fail with the EXISTS error if the target directory already exists. If recursive is true, then all of the missing directories on the directory path must be created. */
- var onCreateDirectoryRequested: DirectoryPathRecursiveRequestedEvent;
- /** Raised when deleting an entry is requested. If recursive is true, and the entry is a directory, then all of the entries inside must be recursively deleted as well. */
- var onDeleteEntryRequested: EntryPathRecursiveRequestedEvent;
- /** Raised when creating a file is requested. If the file already exists, then errorCallback must be called with the "EXISTS" error code. */
- var onCreateFileRequested: FilePathRequestedEvent;
- /** Raised when copying an entry (recursively if a directory) is requested. If an error occurs, then errorCallback must be called. */
- var onCopyEntryRequested: SourceTargetPathRequestedEvent;
- /** Raised when moving an entry (recursively if a directory) is requested. If an error occurs, then errorCallback must be called. */
- var onMoveEntryRequested: SourceTargetPathRequestedEvent;
- /** Raised when truncating a file to a desired length is requested. If an error occurs, then errorCallback must be called. */
- var onTruncateRequested: FilePathLengthRequestedEvent;
- /** Raised when writing contents to a file opened previously with openRequestId is requested. */
- var onWriteFileRequested: OpenedFileIoRequestedEvent;
- /** Raised when aborting an operation with operationRequestId is requested. The operation executed with operationRequestId must be immediately stopped and successCallback of this abort request executed. If aborting fails, then errorCallback must be called. Note, that callbacks of the aborted operation must not be called, as they will be ignored. Despite calling errorCallback, the request may be forcibly aborted. */
- var onAbortRequested: OperationRequestedEvent;
- /**
- * Raised when showing a configuration dialog for fileSystemId is requested. If it's handled, the file_system_provider.configurable manfiest option must be set to true.
- * @since Since Chrome 44.
- */
- var onConfigureRequested: RequestedEvent;
- /**
- * Raised when showing a dialog for mounting a new file system is requested. If the extension/app is a file handler, then this event shouldn't be handled. Instead app.runtime.onLaunched should be handled in order to mount new file systems when a file is opened. For multiple mounts, the file_system_provider.multiple_mounts manifest option must be set to true.
- * @since Since Chrome 44.
- */
- var onMountRequested: OptionlessRequestedEvent;
- /**
- * Raised when setting a new directory watcher is requested. If an error occurs, then errorCallback must be called.
- * @since Since Chrome 45. Warning: this is the current Beta channel.
- */
- var onAddWatcherRequested: EntryPathRecursiveRequestedEvent;
- /**
- * Raised when the watcher should be removed. If an error occurs, then errorCallback must be called.
- * @since Since Chrome 45. Warning: this is the current Beta channel.
- */
- var onRemoveWatcherRequested: EntryPathRecursiveRequestedEvent;
-}
-
-////////////////////
-// Font Settings
-////////////////////
-/**
- * Use the chrome.fontSettings API to manage Chrome's font settings.
- * Availability: Since Chrome 22.
- * Permissions: "fontSettings"
- */
-declare namespace chrome.fontSettings {
- /** Represents a font name. */
- interface FontName {
- /** The display name of the font. */
- displayName: string;
- /** The font ID. */
- fontId: string;
- }
-
- interface DefaultFontSizeDetails {
- /** The font size in pixels. */
- pixelSize: number;
- }
-
- interface FontDetails {
- /** The generic font family for the font. */
- genericFamily: string;
- /** Optional. The script for the font. If omitted, the global script font setting is affected. */
- script?: string;
- }
-
- interface FullFontDetails {
- /** The generic font family for which the font setting has changed. */
- genericFamily: string;
- /** The level of control this extension has over the setting. */
- levelOfControl: string;
- /** Optional. The script code for which the font setting has changed. */
- script?: string;
- /** The font ID. See the description in getFont. */
- fontId: string;
- }
-
- interface FontDetailsResult {
- /** The level of control this extension has over the setting. */
- levelOfControl: string;
- /** The font ID. Rather than the literal font ID preference value, this may be the ID of the font that the system resolves the preference value to. So, fontId can differ from the font passed to setFont, if, for example, the font is not available on the system. The empty string signifies fallback to the global script font setting. */
- fontId: string;
- }
-
- interface FontSizeDetails {
- /** The font size in pixels. */
- pixelSize: number;
- /** The level of control this extension has over the setting. */
- levelOfControl: string;
- }
-
- interface SetFontSizeDetails {
- /** The font size in pixels. */
- pixelSize: number;
- }
-
- interface SetFontDetails extends FontDetails {
- /** The font ID. The empty string means to fallback to the global script font setting. */
- fontId: string;
- }
-
- interface DefaultFixedFontSizeChangedEvent extends chrome.events.Event<(details: FontSizeDetails) => void> {}
-
- interface DefaultFontSizeChangedEvent extends chrome.events.Event<(details: FontSizeDetails) => void> {}
-
- interface MinimumFontSizeChangedEvent extends chrome.events.Event<(details: FontSizeDetails) => void> {}
-
- interface FontChangedEvent extends chrome.events.Event<(details: FullFontDetails) => void> {}
-
- /**
- * Sets the default font size.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setDefaultFontSize(details: DefaultFontSizeDetails, callback?: Function): void;
- /**
- * Gets the font for a given script and generic font family.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(object details) {...};
- */
- export function getFont(details: FontDetails, callback?: (details: FontDetailsResult) => void): void;
- /**
- * Gets the default font size.
- * @param details This parameter is currently unused.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(object details) {...};
- */
- export function getDefaultFontSize(details?: Object, callback?: (options: FontSizeDetails) => void): void;
- /**
- * Gets the minimum font size.
- * @param details This parameter is currently unused.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(object details) {...};
- */
- export function getMinimumFontSize(details?: FontSizeDetails, callback?: (options: FontSizeDetails) => void): void;
- /**
- * Sets the minimum font size.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setMinimumFontSize(details: SetFontSizeDetails, callback?: Function): void;
- /**
- * Gets the default size for fixed width fonts.
- * @param details This parameter is currently unused.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(object details) {...};
- */
- export function getDefaultFixedFontSize(details?: Object, callback?: (details: FontSizeDetails) => void): void;
- /**
- * Clears the default font size set by this extension, if any.
- * @param details This parameter is currently unused.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function clearDefaultFontSize(details?: Object, callback?: Function): void;
- /**
- * Sets the default size for fixed width fonts.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setDefaultFixedFontSize(details: SetFontSizeDetails, callback?: Function): void;
- /**
- * Clears the font set by this extension, if any.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function clearFont(details: FontDetails, callback?: Function): void;
- /**
- * Sets the font for a given script and generic font family.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(object details) {...};
- */
- export function setFont(details: SetFontDetails, callback?: Function): void;
- /**
- * Clears the minimum font size set by this extension, if any.
- * @param details This parameter is currently unused.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function clearMinimumFontSize(details?: Object, callback?: Function): void;
- /**
- * Gets a list of fonts on the system.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of FontName results) {...};
- */
- export function getFontList(callback: (results: FontName[]) => void): void;
- /**
- * Clears the default fixed font size set by this extension, if any.
- * @param details This parameter is currently unused.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function clearDefaultFixedFontSize(details: Object, callback?: Function): void;
-
- /** Fired when the default fixed font size setting changes. */
- var onDefaultFixedFontSizeChanged: DefaultFixedFontSizeChangedEvent;
- /** Fired when the default font size setting changes. */
- var onDefaultFontSizeChanged: DefaultFontSizeChangedEvent;
- /** Fired when the minimum font size setting changes. */
- var onMinimumFontSizeChanged: MinimumFontSizeChangedEvent;
- /** Fired when a font setting changes. */
- var onFontChanged: FontChangedEvent;
-}
-
-////////////////////
-// Google Cloud Messaging
-////////////////////
-/**
- * Use chrome.gcm to enable apps and extensions to send and receive messages through the Google Cloud Messaging Service.
- * Availability: Since Chrome 35.
- * Permissions: "gcm"
- */
-declare namespace chrome.gcm {
- interface OutgoingMessage {
- /** The ID of the server to send the message to as assigned by Google API Console. */
- destinationId: string;
- /** The ID of the message. It must be unique for each message in scope of the applications. See the Cloud Messaging documentation for advice for picking and handling an ID. */
- messageId: string;
- /** Optional. Time-to-live of the message in seconds. If it is not possible to send the message within that time, an onSendError event will be raised. A time-to-live of 0 indicates that the message should be sent immediately or fail if it's not possible. The maximum and a default value of time-to-live is 86400 seconds (1 day). */
- timeToLive?: number;
- /** Message data to send to the server. Case-insensitive goog. and google, as well as case-sensitive collapse_key are disallowed as key prefixes. Sum of all key/value pairs should not exceed gcm.MAX_MESSAGE_SIZE. */
- data: Object;
- }
-
- interface IncomingMessage {
- /** The message data. */
- data: Object;
- /**
- * Optional.
- * The sender who issued the message.
- * @since Since Chrome 41.
- */
- from?: string;
- /**
- * Optional.
- * The collapse key of a message. See Collapsible Messages section of Cloud Messaging documentation for details.
- */
- collapseKey?: string;
- }
-
- interface GcmError {
- /** The error message describing the problem. */
- errorMessage: string;
- /** Optional. The ID of the message with this error, if error is related to a specific message. */
- messageId?: string;
- /** Additional details related to the error, when available. */
- detail: Object;
- }
-
- interface MessageReceptionEvent extends chrome.events.Event<(message: IncomingMessage) => void> {}
-
- interface MessageDeletionEvent extends chrome.events.Event<() => void> {}
-
- interface GcmErrorEvent extends chrome.events.Event<(error: GcmError) => void> {}
-
- /** The maximum size (in bytes) of all key/value pairs in a message. */
- var MAX_MESSAGE_SIZE: number;
-
- /**
- * Registers the application with GCM. The registration ID will be returned by the callback. If register is called again with the same list of senderIds, the same registration ID will be returned.
- * @param senderIds A list of server IDs that are allowed to send messages to the application. It should contain at least one and no more than 100 sender IDs.
- * @param callback Function called when registration completes. It should check runtime.lastError for error when registrationId is empty.
- * The callback parameter should be a function that looks like this:
- * function(string registrationId) {...};
- * Parameter registrationId: A registration ID assigned to the application by the GCM.
- */
- export function register(senderIds: string[], callback: (registrationId: string) => void): void;
- /**
- * Unregisters the application from GCM.
- * @param callback A function called after the unregistration completes. Unregistration was successful if runtime.lastError is not set.
- * The callback parameter should be a function that looks like this:
- * function() {...};
- */
- export function unregister(callback: () => void): void;
- /**
- * Sends a message according to its contents.
- * @param message A message to send to the other party via GCM.
- * @param callback A function called after the message is successfully queued for sending. runtime.lastError should be checked, to ensure a message was sent without problems.
- * The callback parameter should be a function that looks like this:
- * function(string messageId) {...};
- * Parameter messageId: The ID of the message that the callback was issued for.
- */
- export function send(message: OutgoingMessage, callback: (messageId: string) => void): void;
-
- /** Fired when a message is received through GCM. */
- var onMessage: MessageReceptionEvent;
- /** Fired when a GCM server had to delete messages sent by an app server to the application. See Messages deleted event section of Cloud Messaging documentation for details on handling this event. */
- var onMessagesDeleted: MessageDeletionEvent;
- /** Fired when it was not possible to send a message to the GCM server. */
- var onSendError: GcmErrorEvent;
-}
-
-////////////////////
-// History
-////////////////////
-/**
- * Use the chrome.history API to interact with the browser's record of visited pages. You can add, remove, and query for URLs in the browser's history. To override the history page with your own version, see Override Pages.
- * Availability: Since Chrome 5.
- * Permissions: "history"
- */
-declare namespace chrome.history {
- /** An object encapsulating one visit to a URL. */
- interface VisitItem {
- /** The transition type for this visit from its referrer. */
- transition: string;
- /** Optional. When this visit occurred, represented in milliseconds since the epoch. */
- visitTime?: number;
- /** The unique identifier for this visit. */
- visitId: string;
- /** The visit ID of the referrer. */
- referringVisitId: string;
- /** The unique identifier for the item. */
- id: string;
- }
-
- /** An object encapsulating one result of a history query. */
- interface HistoryItem {
- /** Optional. The number of times the user has navigated to this page by typing in the address. */
- typedCount?: number;
- /** Optional. The title of the page when it was last loaded. */
- title?: string;
- /** Optional. The URL navigated to by a user. */
- url?: string;
- /** Optional. When this page was last loaded, represented in milliseconds since the epoch. */
- lastVisitTime?: number;
- /** Optional. The number of times the user has navigated to this page. */
- visitCount?: number;
- /** The unique identifier for the item. */
- id: string;
- }
-
- interface HistoryQuery {
- /** A free-text query to the history service. Leave empty to retrieve all pages. */
- text: string;
- /** Optional. The maximum number of results to retrieve. Defaults to 100. */
- maxResults?: number;
- /** Optional. Limit results to those visited after this date, represented in milliseconds since the epoch. */
- startTime?: number;
- /** Optional. Limit results to those visited before this date, represented in milliseconds since the epoch. */
- endTime?: number;
- }
-
- interface Url {
- /** The URL for the operation. It must be in the format as returned from a call to history.search. */
- url: string;
- }
-
- interface Range {
- /** Items added to history before this date, represented in milliseconds since the epoch. */
- endTime: number;
- /** Items added to history after this date, represented in milliseconds since the epoch. */
- startTime: number;
- }
-
- interface RemovedResult {
- /** True if all history was removed. If true, then urls will be empty. */
- allHistory: boolean;
- /** Optional. */
- urls?: string[];
- }
-
- interface HistoryVisitedEvent extends chrome.events.Event<(result: HistoryItem) => void> {}
-
- interface HistoryVisitRemovedEvent extends chrome.events.Event<(removed: RemovedResult) => void> {}
-
- /**
- * Searches the history for the last visit time of each page matching the query.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of HistoryItem results) {...};
- */
- export function search(query: HistoryQuery, callback: (results: HistoryItem[]) => void): void;
- /**
- * Adds a URL to the history at the current time with a transition type of "link".
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function addUrl(details: Url, callback?: () => void): void;
- /**
- * Removes all items within the specified date range from the history. Pages will not be removed from the history unless all visits fall within the range.
- * @param callback The callback parameter should be a function that looks like this:
- * function() {...};
- */
- export function deleteRange(range: Range, callback: () => void): void;
- /**
- * Deletes all items from the history.
- * @param callback The callback parameter should be a function that looks like this:
- * function() {...};
- */
- export function deleteAll(callback: () => void): void;
- /**
- * Retrieves information about visits to a URL.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of VisitItem results) {...};
- */
- export function getVisits(details: Url, callback: (results: VisitItem[]) => void): void;
- /**
- * Removes all occurrences of the given URL from the history.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function deleteUrl(details: Url, callback?: () => void): void;
-
- /** Fired when a URL is visited, providing the HistoryItem data for that URL. This event fires before the page has loaded. */
- var onVisited: HistoryVisitedEvent;
- /** Fired when one or more URLs are removed from the history service. When all visits have been removed the URL is purged from history. */
- var onVisitRemoved: HistoryVisitRemovedEvent;
-}
-
-////////////////////
-// i18n
-////////////////////
-/**
- * Use the chrome.i18n infrastructure to implement internationalization across your whole app or extension.
- * @since Chrome 5.
- */
-declare namespace chrome.i18n {
- /**
- * Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use i18n.getUILanguage.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of string languages) {...};
- * Parameter languages: Array of the accept languages of the browser, such as en-US,en,zh-CN
- */
- export function getAcceptLanguages(callback: (languages: string[]) => void): void;
- /**
- * Gets the localized string for the specified message. If the message is missing, this method returns an empty string (''). If the format of the getMessage() call is wrong — for example, messageName is not a string or the substitutions array has more than 9 elements — this method returns undefined.
- * @param messageName The name of the message, as specified in the messages.json file.
- * @param substitutions Optional. Up to 9 substitution strings, if the message requires any.
- */
- export function getMessage(messageName: string, substitutions?: any): string;
- /**
- * Gets the browser UI language of the browser. This is different from i18n.getAcceptLanguages which returns the preferred user languages.
- * @since Chrome 35.
- */
- export function getUILanguage(): string;
-}
-
-////////////////////
-// Identity
-////////////////////
-/**
- * Use the chrome.identity API to get OAuth2 access tokens.
- * Permissions: "identity"
- * @since Chrome 29.
- */
-declare namespace chrome.identity {
- /** @since Chrome 32. */
- interface AccountInfo {
- /** A unique identifier for the account. This ID will not change for the lifetime of the account. */
- id: string;
- }
-
- interface TokenDetails {
- /**
- * Optional.
- * Fetching a token may require the user to sign-in to Chrome, or approve the application's requested scopes. If the interactive flag is true, getAuthToken will prompt the user as necessary. When the flag is false or omitted, getAuthToken will return failure any time a prompt would be required.
- */
- interactive?: boolean;
- /**
- * Optional.
- * The account ID whose token should be returned. If not specified, the primary account for the profile will be used.
- * account is only supported when the "enable-new-profile-management" flag is set.
- * @since Chrome 37.
- */
- account?: AccountInfo;
- /**
- * Optional.
- * A list of OAuth2 scopes to request.
- * When the scopes field is present, it overrides the list of scopes specified in manifest.json.
- * @since Chrome 37.
- */
- scopes?: string[];
- }
-
- interface UserInfo {
- /** An email address for the user account signed into the current profile. Empty if the user is not signed in or the identity.email manifest permission is not specified. */
- email: string;
- /** A unique identifier for the account. This ID will not change for the lifetime of the account. Empty if the user is not signed in or (in M41+) the identity.email manifest permission is not specified. */
- id: string;
- }
-
- interface TokenInformation {
- /** The specific token that should be removed from the cache. */
- token: string;
- }
-
- interface WebAuthFlowOptions {
- /** The URL that initiates the auth flow. */
- url: string;
- /**
- * Optional.
- * Whether to launch auth flow in interactive mode.
- * Since some auth flows may immediately redirect to a result URL, launchWebAuthFlow hides its web view until the first navigation either redirects to the final URL, or finishes loading a page meant to be displayed.
- * If the interactive flag is true, the window will be displayed when a page load completes. If the flag is false or omitted, launchWebAuthFlow will return with an error if the initial navigation does not complete the flow.
- */
- interactive?: boolean;
- }
-
- interface SignInChangeEvent extends chrome.events.Event<(account: AccountInfo, signedIn: boolean) => void> {}
-
- /**
- * Retrieves a list of AccountInfo objects describing the accounts present on the profile.
- * getAccounts is only supported on dev channel.
- * Dev channel only.
- */
- export function getAccounts(callback: (accounts: AccountInfo[]) => void): void;
- /**
- * Gets an OAuth2 access token using the client ID and scopes specified in the oauth2 section of manifest.json.
- * The Identity API caches access tokens in memory, so it's ok to call getAuthToken non-interactively any time a token is required. The token cache automatically handles expiration.
- * For a good user experience it is important interactive token requests are initiated by UI in your app explaining what the authorization is for. Failing to do this will cause your users to get authorization requests, or Chrome sign in screens if they are not signed in, with with no context. In particular, do not use getAuthToken interactively when your app is first launched.
- * @param details Token options.
- * @param callback Called with an OAuth2 access token as specified by the manifest, or undefined if there was an error.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(string token) {...};
- */
- export function getAuthToken(details: TokenDetails, callback?: (token: string) => void): void;
- /**
- * Retrieves email address and obfuscated gaia id of the user signed into a profile.
- * This API is different from identity.getAccounts in two ways. The information returned is available offline, and it only applies to the primary account for the profile.
- * @since Chrome 37.
- */
- export function getProfileUserInfo(callback: (userInfo: UserInfo) => void): void;
- /**
- * Removes an OAuth2 access token from the Identity API's token cache.
- * If an access token is discovered to be invalid, it should be passed to removeCachedAuthToken to remove it from the cache. The app may then retrieve a fresh token with getAuthToken.
- * @param details Token information.
- * @param callback Called when the token has been removed from the cache.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function removeCachedAuthToken(details: TokenInformation, callback?: () => void): void;
- /**
- * Starts an auth flow at the specified URL.
- * This method enables auth flows with non-Google identity providers by launching a web view and navigating it to the first URL in the provider's auth flow. When the provider redirects to a URL matching the pattern https://<app-id>.chromiumapp.org/*, the window will close, and the final redirect URL will be passed to the callback function.
- * For a good user experience it is important interactive auth flows are initiated by UI in your app explaining what the authorization is for. Failing to do this will cause your users to get authorization requests with no context. In particular, do not launch an interactive auth flow when your app is first launched.
- * @param details WebAuth flow options.
- * @param callback Called with the URL redirected back to your application.
- * The callback parameter should be a function that looks like this:
- * function(string responseUrl) {...};
- */
- export function launchWebAuthFlow(details: WebAuthFlowOptions, callback: (responseUrl?: string) => void): void;
- /**
- * Generates a redirect URL to be used in launchWebAuthFlow.
- * The generated URLs match the pattern https://<app-id>.chromiumapp.org/*.
- * @since Chrome 33.
- * @param path Optional. The path appended to the end of the generated URL.
- */
- export function getRedirectURL(path?: string): string;
-
- /**
- * Fired when signin state changes for an account on the user's profile.
- * @since Chrome 33.
- */
- var onSignInChanged: SignInChangeEvent;
-}
-
-////////////////////
-// Idle
-////////////////////
-/**
- * Use the chrome.idle API to detect when the machine's idle state changes.
- * Permissions: "idle"
- * @since Chrome 6.
- */
-declare namespace chrome.idle {
- interface IdleStateChangedEvent extends chrome.events.Event<(newState: string) => void> {}
-
- /**
- * Returns "locked" if the system is locked, "idle" if the user has not generated any input for a specified number of seconds, or "active" otherwise.
- * @param detectionIntervalInSeconds The system is considered idle if detectionIntervalInSeconds seconds have elapsed since the last user input detected.
- * Since Chrome 25.
- * @param callback The callback parameter should be a function that looks like this:
- * function( IdleState newState) {...};
- */
- export function queryState(detectionIntervalInSeconds: number, callback: (newState: string) => void): void;
- /**
- * Sets the interval, in seconds, used to determine when the system is in an idle state for onStateChanged events. The default interval is 60 seconds.
- * @since Chrome 25.
- * @param intervalInSeconds Threshold, in seconds, used to determine when the system is in an idle state.
- */
- export function setDetectionInterval(intervalInSeconds: number): void;
-
- /** Fired when the system changes to an active, idle or locked state. The event fires with "locked" if the screen is locked or the screensaver activates, "idle" if the system is unlocked and the user has not generated any input for a specified number of seconds, and "active" when the user generates input on an idle system. */
- var onStateChanged: IdleStateChangedEvent;
-}
-
-////////////////////
-// Input - IME
-////////////////////
-/**
- * Use the chrome.input.ime API to implement a custom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window.
- * Permissions: "input"
- * @since Chrome 21.
- */
-declare namespace chrome.input.ime {
- /** See http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent */
- interface KeyboardEvent {
- /**
- * Optional.
- * Whether or not the SHIFT key is pressed.
- */
- shiftKey?: boolean;
- /**
- * Optional.
- * Whether or not the ALT key is pressed.
- */
- altKey?: boolean;
- /** The ID of the request. */
- requestId: string;
- /** Value of the key being pressed */
- key: string;
- /**
- * Optional.
- * Whether or not the CTRL key is pressed.
- */
- ctrlKey?: boolean;
- /** One of keyup or keydown. */
- type: string;
- /**
- * Optional.
- * The extension ID of the sender of this keyevent.
- * @since Chrome 34.
- */
- extensionId?: string;
- /**
- * Optional.
- * Value of the physical key being pressed. The value is not affected by current keyboard layout or modifier state.
- * @since Chrome 26.
- */
- code: string;
- /**
- * Optional.
- * The deprecated HTML keyCode, which is system- and implementation-dependent numerical code signifying the unmodified identifier associated with the key pressed.
- * @since Chrome 37.
- */
- keyCode?: number;
- /**
- * Optional.
- * Whether or not the CAPS_LOCK is enabled.
- * @since Chrome 29.
- */
- capsLock?: boolean;
- }
-
- /** Describes an input Context */
- interface InputContext {
- /** This is used to specify targets of text field operations. This ID becomes invalid as soon as onBlur is called. */
- contextID: number;
- /** Type of value this text field edits, (Text, Number, URL, etc) */
- type: string;
- /**
- * Whether the text field wants auto-correct.
- * @since Chrome 40.
- */
- autoCorrect: boolean;
- /**
- * Whether the text field wants auto-complete.
- * @since Chrome 40.
- */
- autoComplete: boolean;
- /**
- * Whether the text field wants spell-check.
- * @since Chrome 40.
- */
- spellCheck: boolean;
- }
-
- /**
- * A menu item used by an input method to interact with the user from the language menu.
- * @since Chrome 30.
- */
- interface MenuItem {
- /** String that will be passed to callbacks referencing this MenuItem. */
- id: string;
- /** Optional. Text displayed in the menu for this item. */
- label?: string;
- /** Optional. The type of menu item. */
- style?: string;
- /** Optional. Indicates this item is visible. */
- visible?: boolean;
- /** Indicates this item should be drawn with a check. */
- checked?: boolean;
- /** Indicates this item is enabled. */
- enabled?: boolean;
- }
-
- interface ImeParameters {
- /** MenuItems to use. */
- items: MenuItem[];
- /** ID of the engine to use */
- engineID: string;
- }
-
- interface CommitTextParameters {
- /** The text to commit */
- text: string;
- /** ID of the context where the text will be committed */
- contextID: number;
- }
-
- interface CandidateUsage {
- /** The title string of details description. */
- title: string;
- /** The body string of detail description. */
- body: string;
- }
-
- interface CandidateTemplate {
- /** The candidate */
- candidate: string;
- /** The candidate's id */
- id: number;
- /**
- * Optional.
- * The id to add these candidates under
- */
- parentId?: number;
- /**
- * Optional.
- * Short string displayed to next to the candidate, often the shortcut key or index
- */
- label?: string;
- /**
- * Optional.
- * Additional text describing the candidate
- */
- annotation?: string;
- /**
- * Optional.
- * The usage or detail description of word.
- */
- usage?: CandidateUsage;
- }
-
- interface CandidatesParameters {
- /** ID of the context that owns the candidate window. */
- contextID: number;
- /** List of candidates to show in the candidate window */
- candidates: CandidateTemplate[];
- }
-
- interface CompositionParameterSegment {
- /** Index of the character to start this segment at */
- start: number;
- /** Index of the character to end this segment after. */
- end: number;
- /** The type of the underline to modify this segment. */
- style: string;
- }
-
- interface CompositionParameters {
- /** ID of the context where the composition text will be set */
- contextID: number;
- /** Text to set */
- text: string;
- /** Optional. List of segments and their associated types. */
- segments: CompositionParameterSegment[];
- /** Position in the text of the cursor. */
- cursor: number;
- /** Optional. Position in the text that the selection starts at. */
- selectionStart?: number;
- /** Optional. Position in the text that the selection ends at. */
- selectionEnd?: number;
- }
-
- interface MenuItemParameters {
- items: Object[];
- engineId: string;
- }
-
- interface CandidateWindowParameterProperties {
- /**
- * Optional.
- * True to show the cursor, false to hide it.
- */
- cursorVisible?: boolean;
- /**
- * Optional.
- * True if the candidate window should be rendered vertical, false to make it horizontal.
- */
- vertical?: boolean;
- /**
- * Optional.
- * The number of candidates to display per page.
- */
- pageSize?: number;
- /**
- * Optional.
- * True to display the auxiliary text, false to hide it.
- */
- auxiliaryTextVisible?: boolean;
- /**
- * Optional.
- * Text that is shown at the bottom of the candidate window.
- */
- auxiliaryText?: string;
- /**
- * Optional.
- * True to show the Candidate window, false to hide it.
- */
- visible?: boolean;
- /**
- * Optional.
- * Where to display the candidate window.
- * @since Chrome 28.
- */
- windowPosition?: string;
- }
-
- interface CandidateWindowParameter {
- /** ID of the engine to set properties on. */
- engineID: string;
- properties: CandidateWindowParameterProperties;
- }
-
- interface ClearCompositionParameters {
- /** ID of the context where the composition will be cleared */
- contextID: number;
- }
-
- interface CursorPositionParameters {
- /** ID of the candidate to select. */
- candidateID: number;
- /** ID of the context that owns the candidate window. */
- contextID: number;
- }
-
- interface SendKeyEventParameters {
- /** ID of the context where the key events will be sent, or zero to send key events to non-input field. */
- contextID: number;
- /** Data on the key event. */
- keyData: KeyboardEvent[];
- }
-
- interface DeleteSurroundingTextParameters {
- /** ID of the engine receiving the event. */
- engineID: string;
- /** ID of the context where the surrounding text will be deleted. */
- contextID: number;
- /** The offset from the caret position where deletion will start. This value can be negative. */
- offset: number;
- /** The number of characters to be deleted */
- length: number;
- }
-
- interface SurroundingTextInfo {
- /** The text around cursor. */
- text: string;
- /** The ending position of the selection. This value indicates caret position if there is no selection. */
- focus: number;
- /** The beginning position of the selection. This value indicates caret position if is no selection. */
- anchor: number;
- }
-
- interface BlurEvent extends chrome.events.Event<(contextID: number) => void> {}
-
- interface CandidateClickedEvent extends chrome.events.Event<(engineID: string, candidateID: number, button: string) => void> {}
-
- interface KeyEventEvent extends chrome.events.Event<(engineID: string, keyData: KeyboardEvent) => void> {}
-
- interface DeactivatedEvent extends chrome.events.Event<(engineID: string) => void> {}
-
- interface InputContextUpdateEvent extends chrome.events.Event<(context: InputContext) => void> {}
-
- interface ActivateEvent extends chrome.events.Event<(engineID: string, screen: string) => void> {}
-
- interface FocusEvent extends chrome.events.Event<(context: InputContext) => void> {}
-
- interface MenuItemActivatedEvent extends chrome.events.Event<(engineID: string, name: string) => void> {}
-
- interface SurroundingTextChangedEvent extends chrome.events.Event<(engineID: string, surroundingInfo: SurroundingTextInfo) => void> {}
-
- interface InputResetEvent extends chrome.events.Event<(engineID: string) => void> {}
-
- /**
- * Adds the provided menu items to the language menu when this IME is active.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setMenuItems(parameters: ImeParameters, callback?: () => void): void;
- /**
- * Commits the provided text to the current input.
- * @param callback Called when the operation completes with a boolean indicating if the text was accepted or not. On failure, chrome.runtime.lastError is set.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean success) {...};
- */
- export function commitText(parameters: CommitTextParameters, callback?: (success: boolean) => void): void;
- /**
- * Sets the current candidate list. This fails if this extension doesn't own the active IME
- * @param callback Called when the operation completes.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean success) {...};
- */
- export function setCandidates(parameters: CandidatesParameters, callback?: (success: boolean) => void): void;
- /**
- * Set the current composition. If this extension does not own the active IME, this fails.
- * @param callback Called when the operation completes with a boolean indicating if the text was accepted or not. On failure, chrome.runtime.lastError is set.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean success) {...};
- */
- export function setComposition(parameters: CompositionParameters, callback?: (success: boolean) => void): void;
- /**
- * Updates the state of the MenuItems specified
- * @param callback Called when the operation completes
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function updateMenuItems(parameters: MenuItemParameters, callback?: () => void): void;
- /**
- * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
- * @param callback Called when the operation completes.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean success) {...};
- */
- export function setCandidateWindowProperties(parameters: CandidateWindowParameter, callback?: (success: boolean) => void): void;
- /**
- * Clear the current composition. If this extension does not own the active IME, this fails.
- * @param callback Called when the operation completes with a boolean indicating if the text was accepted or not. On failure, chrome.runtime.lastError is set.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean success) {...};
- */
- export function clearComposition(parameters: ClearCompositionParameters, callback?: (success: boolean) => void): void;
- /**
- * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
- * @param callback Called when the operation completes
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean success) {...};
- */
- export function setCursorPosition(parameters: CursorPositionParameters, callback?: (success: boolean) => void): void;
- /**
- * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
- * @since Chrome 33.
- * @param callback Called when the operation completes.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function sendKeyEvents(parameters: SendKeyEventParameters, callback?: () => void): void;
- /**
- * Hides the input view window, which is popped up automatically by system. If the input view window is already hidden, this function will do nothing.
- * @since Chrome 34.
- */
- export function hideInputView(): void;
- /**
- * Deletes the text around the caret.
- * @since Chrome 27.
- */
- export function deleteSurroundingText(parameters: DeleteSurroundingTextParameters, callback?: () => void): void;
- /**
- * Indicates that the key event received by onKeyEvent is handled. This should only be called if the onKeyEvent listener is asynchronous.
- * @since Chrome 25.
- * @param requestId Request id of the event that was handled. This should come from keyEvent.requestId
- * @param response True if the keystroke was handled, false if not
- */
- export function keyEventHandled(requestId: string, response: boolean): void;
-
- /** This event is sent when focus leaves a text box. It is sent to all extensions that are listening to this event, and enabled by the user. */
- var onBlur: BlurEvent;
- /** This event is sent if this extension owns the active IME. */
- var onCandidateClicked: CandidateClickedEvent;
- /** This event is sent if this extension owns the active IME. */
- var onKeyEvent: KeyEventEvent;
- /** This event is sent when an IME is deactivated. It signals that the IME will no longer be receiving onKeyPress events. */
- var onDeactivated: DeactivatedEvent;
- /** This event is sent when the properties of the current InputContext change, such as the the type. It is sent to all extensions that are listening to this event, and enabled by the user. */
- var onInputContextUpdate: InputContextUpdateEvent;
- /** This event is sent when an IME is activated. It signals that the IME will be receiving onKeyPress events. */
- var onActivate: ActivateEvent;
- /** This event is sent when focus enters a text box. It is sent to all extensions that are listening to this event, and enabled by the user. */
- var onFocus: FocusEvent;
- /** Called when the user selects a menu item */
- var onMenuItemActivated: MenuItemActivatedEvent;
- /**
- * Called when the editable string around caret is changed or when the caret position is moved. The text length is limited to 100 characters for each back and forth direction.
- * @since Chrome 27.
- */
- var onSurroundingTextChanged: SurroundingTextChangedEvent;
- /**
- * This event is sent when chrome terminates ongoing text input session.
- * @since Chrome 29.
- */
- var onReset: InputResetEvent;
-}
-
-////////////////////
-// Management
-////////////////////
-/**
- * The chrome.management API provides ways to manage the list of extensions/apps that are installed and running. It is particularly useful for extensions that override the built-in New Tab page.
- * Permissions: "management"
- * @since Chrome 8.
- */
-declare namespace chrome.management {
- /** Information about an installed extension, app, or theme. */
- interface ExtensionInfo {
- /**
- * Optional.
- * A reason the item is disabled.
- * @since Chrome 17.
- */
- disabledReason?: string;
- /** Optional. The launch url (only present for apps). */
- appLaunchUrl?: string;
- /**
- * The description of this extension, app, or theme.
- * @since Chrome 9.
- */
- description: string;
- /**
- * Returns a list of API based permissions.
- * @since Chrome 9.
- */
- permissions: string[];
- /**
- * Optional.
- * A list of icon information. Note that this just reflects what was declared in the manifest, and the actual image at that url may be larger or smaller than what was declared, so you might consider using explicit width and height attributes on img tags referencing these images. See the manifest documentation on icons for more details.
- */
- icons?: IconInfo[];
- /**
- * Returns a list of host based permissions.
- * @since Chrome 9.
- */
- hostPermissions: string[];
- /** Whether it is currently enabled or disabled. */
- enabled: boolean;
- /**
- * Optional.
- * The URL of the homepage of this extension, app, or theme.
- * @since Chrome 11.
- */
- homepageUrl?: string;
- /**
- * Whether this extension can be disabled or uninstalled by the user.
- * @since Chrome 12.
- */
- mayDisable: boolean;
- /**
- * How the extension was installed.
- * @since Chrome 22.
- */
- installType: string;
- /** The version of this extension, app, or theme. */
- version: string;
- /** The extension's unique identifier. */
- id: string;
- /**
- * Whether the extension, app, or theme declares that it supports offline.
- * @since Chrome 15.
- */
- offlineEnabled: boolean;
- /**
- * Optional.
- * The update URL of this extension, app, or theme.
- * @since Chrome 16.
- */
- updateUrl?: string;
- /**
- * The type of this extension, app, or theme.
- * @since Chrome 23.
- */
- type: string;
- /** The url for the item's options page, if it has one. */
- optionsUrl: string;
- /** The name of this extension, app, or theme. */
- name: string;
- /**
- * A short version of the name of this extension, app, or theme.
- * @since Chrome 31.
- */
- shortName: string;
- /**
- * True if this is an app.
- * @deprecated since Chrome 33. Please use management.ExtensionInfo.type.
- */
- isApp: boolean;
- /**
- * Optional.
- * The app launch type (only present for apps).
- * @since Chrome 37.
- */
- launchType?: string;
- /**
- * Optional.
- * The currently available launch types (only present for apps).
- * @since Chrome 37.
- */
- availableLaunchTypes?: string[];
- }
-
- /** Information about an icon belonging to an extension, app, or theme. */
- interface IconInfo {
- /** The URL for this icon image. To display a grayscale version of the icon (to indicate that an extension is disabled, for example), append ?grayscale=true to the URL. */
- url: string;
- /** A number representing the width and height of the icon. Likely values include (but are not limited to) 128, 48, 24, and 16. */
- size: number;
- }
-
- interface UninstallOptions {
- /**
- * Optional.
- * Whether or not a confirm-uninstall dialog should prompt the user. Defaults to false for self uninstalls. If an extension uninstalls another extension, this parameter is ignored and the dialog is always shown.
- */
- showConfirmDialog?: boolean;
- }
-
- interface ManagementDisabledEvent extends chrome.events.Event<(info: ExtensionInfo) => void> {}
-
- interface ManagementUninstalledEvent extends chrome.events.Event<(id: string) => void> {}
-
- interface ManagementInstalledEvent extends chrome.events.Event<(info: ExtensionInfo) => void> {}
-
- interface ManagementEnabledEvent extends chrome.events.Event<(info: ExtensionInfo) => void> {}
-
- /**
- * Enables or disables an app or extension.
- * @param id This should be the id from an item of management.ExtensionInfo.
- * @param enabled Whether this item should be enabled or disabled.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setEnabled(id: string, enabled: boolean, callback?: () => void): void;
- /**
- * Returns a list of permission warnings for the given extension id.
- * @since Chrome 15.
- * @param id The ID of an already installed extension.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(array of string permissionWarnings) {...};
- */
- export function getPermissionWarningsById(id: string, callback?: (permissionWarnings: string[]) => void): void;
- /**
- * Returns information about the installed extension, app, or theme that has the given ID.
- * @since Chrome 9.
- * @param id The ID from an item of management.ExtensionInfo.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function( ExtensionInfo result) {...};
- */
- export function get(id: string, callback?: (result: ExtensionInfo) => void): void;
- /**
- * Returns a list of information about installed extensions and apps.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(array of ExtensionInfo result) {...};
- */
- export function getAll(callback?: (result: ExtensionInfo[]) => void): void;
- /**
- * Returns a list of permission warnings for the given extension manifest string. Note: This function can be used without requesting the 'management' permission in the manifest.
- * @since Chrome 15.
- * @param manifestStr Extension manifest JSON string.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(array of string permissionWarnings) {...};
- */
- export function getPermissionWarningsByManifest(manifestStr: string, callback?: (permissionwarnings: string[]) => void): void;
- /**
- * Launches an application.
- * @param id The extension id of the application.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function launchApp(id: string, callback?: () => void): void;
- /**
- * Uninstalls a currently installed app or extension.
- * @since Chrome 21.
- * @param id This should be the id from an item of management.ExtensionInfo.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function uninstall(id: string, options?: UninstallOptions, callback?: () => void): void;
- /**
- * Uninstalls a currently installed app or extension.
- * @deprecated since Chrome 21. The options parameter was added to this function.
- * @param id This should be the id from an item of management.ExtensionInfo.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function uninstall(id: string, callback?: () => void): void;
- /**
- * Returns information about the calling extension, app, or theme. Note: This function can be used without requesting the 'management' permission in the manifest.
- * @since Chrome 39.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function( ExtensionInfo result) {...};
- */
- export function getSelf(callback?: (result: ExtensionInfo) => void): void;
- /**
- * Uninstalls the calling extension.
- * Note: This function can be used without requesting the 'management' permission in the manifest.
- * @since Chrome 26.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function uninstallSelf(options?: UninstallOptions, callback?: () => void): void;
- /**
- * Uninstalls the calling extension.
- * Note: This function can be used without requesting the 'management' permission in the manifest.
- * @since Chrome 26.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function uninstallSelf(callback?: () => void): void;
- /**
- * Display options to create shortcuts for an app. On Mac, only packaged app shortcuts can be created.
- * @since Chrome 37.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function createAppShortcut(id: string, callback?: () => void): void;
- /**
- * Set the launch type of an app.
- * @since Chrome 37.
- * @param id This should be the id from an app item of management.ExtensionInfo.
- * @param launchType The target launch type. Always check and make sure this launch type is in ExtensionInfo.availableLaunchTypes, because the available launch types vary on different platforms and configurations.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setLaunchType(id: string, launchType: string, callback?: () => void): void;
- /**
- * Generate an app for a URL. Returns the generated bookmark app.
- * @since Chrome 37.
- * @param url The URL of a web page. The scheme of the URL can only be "http" or "https".
- * @param title The title of the generated app.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function( ExtensionInfo result) {...};
- */
- export function generateAppForLink(url: string, title: string, callback?: (result: ExtensionInfo) => void): void;
-
- /** Fired when an app or extension has been disabled. */
- var onDisabled: ManagementDisabledEvent;
- /** Fired when an app or extension has been uninstalled. */
- var onUninstalled: ManagementUninstalledEvent;
- /** Fired when an app or extension has been installed. */
- var onInstalled: ManagementInstalledEvent;
- /** Fired when an app or extension has been enabled. */
- var onEnabled: ManagementEnabledEvent;
-}
-
-////////////////////
-// Notifications
-////////////////////
-/**
- * Use the networking.config API to authenticate to captive portals.
- * Permissions: "networking.config"
- * Important: This API works only on Chrome OS.
- * @since Chrome 43.
- */
-declare namespace chrome.networking.config {
- interface NetworkInfo {
- /** Currently only WiFi supported. */
- Type: string;
- /** Optional. A unique identifier of the network. */
- GUID?: string;
- /** Optional. A hex-encoded byte sequence. */
- HexSSID?: string;
- /** Optional. The decoded SSID of the network (default encoding is UTF-8). To filter for non-UTF-8 SSIDs, use HexSSID instead. */
- SSID?: string;
- /** Optional. The basic service set identification (BSSID) uniquely identifying the basic service set. BSSID is represented as a human readable, hex-encoded string with bytes separated by colons, e.g. 45:67:89:ab:cd:ef. */
- BSSID?: string;
- /** Optional. Identifier indicating the security type of the network. Valid values are None, WEP-PSK, WPA-PSK and WPA-EAP. */
- Security?: string;
- }
-
- interface CaptivePorttalDetectedEvent extends chrome.events.Event<(networkInfo: NetworkInfo) => void> {}
-
- /**
- * Allows an extension to define network filters for the networks it can handle. A call to this function will remove all filters previously installed by the extension before setting the new list.
- * @param networks Network filters to set. Every NetworkInfo must either have the SSID or HexSSID set. Other fields will be ignored.
- * @param callback Called back when this operation is finished.
- * The callback parameter should be a function that looks like this:
- * function() {...};
- */
- export function setNetworkFilter(networks: NetworkInfo[], callback: () => void): void;
- /**
- * Called by the extension to notify the network config API that it finished a captive portal authentication attempt and hand over the result of the attempt. This function must only be called with the GUID of the latest onCaptivePortalDetected event.
- * @param GUID Unique network identifier obtained from onCaptivePortalDetected.
- * @param result The result of the authentication attempt.
- * unhandled: The extension does not handle this network or captive portal (e.g. server end-point not found or not compatible).
- * succeeded: The extension handled this network and authenticated successfully.
- * rejected: The extension handled this network, tried to authenticate, however was rejected by the server.
- * failed: The extension handled this network, tried to authenticate, however failed due to an unspecified error.
- * @param callback Called back when this operation is finished.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function finishAuthentication(GUID: string, result: string, callback?: () => void): void;
-
- /** This event fires everytime a captive portal is detected on a network matching any of the currently registered network filters and the user consents to use the extension for authentication. Network filters may be set using the setNetworkFilter. Upon receiving this event the extension should start its authentication attempt with the captive portal. When the extension finishes its attempt, it must call finishAuthentication with the GUID received with this event and the appropriate authentication result. */
- var onCaptivePortalDetected: CaptivePorttalDetectedEvent;
-}
-
-////////////////////
-// Notifications
-// https://developer.chrome.com/extensions/notifications
-////////////////////
-/**
- * Use the chrome.notifications API to create rich notifications using templates and show these notifications to users in the system tray.
- * Permissions: "notifications"
- * @since Chrome 28.
- */
-declare namespace chrome.notifications {
- interface ButtonOptions {
- title: string;
- iconUrl?: string;
- }
-
- interface ItemOptions {
- /** Title of one item of a list notification. */
- title: string;
- /** Additional details about this item. */
- message: string;
- }
-
- interface NotificationOptions {
- /** Optional. Which type of notification to display. Required for notifications.create method. */
- type?: string;
- /**
- * Optional.
- * A URL to the sender's avatar, app icon, or a thumbnail for image notifications.
- * URLs can be a data URL, a blob URL, or a URL relative to a resource within this extension's .crx file Required for notifications.create method.
- */
- iconUrl?: string;
- /** Optional. Title of the notification (e.g. sender name for email). Required for notifications.create method. */
- title?: string;
- /** Optional. Main notification content. Required for notifications.create method. */
- message?: string;
- /**
- * Optional.
- * Alternate notification content with a lower-weight font.
- * @since Chrome 31.
- */
- contextMessage?: string;
- /** Optional. Priority ranges from -2 to 2. -2 is lowest priority. 2 is highest. Zero is default. */
- priority?: number;
- /** Optional. A timestamp associated with the notification, in milliseconds past the epoch (e.g. Date.now() + n). */
- eventTime?: number;
- /** Optional. Text and icons for up to two notification action buttons. */
- buttons?: ButtonOptions[];
- /** Optional. Items for multi-item notifications. */
- items?: ItemOptions[];
- /**
- * Optional.
- * Current progress ranges from 0 to 100.
- * @since Chrome 30.
- */
- progress?: number;
- /**
- * Optional.
- * Whether to show UI indicating that the app will visibly respond to clicks on the body of a notification.
- * @since Chrome 32.
- */
- isClickable?: boolean;
- /**
- * Optional.
- * A URL to the app icon mask. URLs have the same restrictions as iconUrl. The app icon mask should be in alpha channel, as only the alpha channel of the image will be considered.
- * @since Chrome 38.
- */
- appIconMaskUrl?: string;
- /** Optional. A URL to the image thumbnail for image-type notifications. URLs have the same restrictions as iconUrl. */
- imageUrl?: string;
- }
-
- interface NotificationClosedEvent extends chrome.events.Event<(notificationId: string, byUser: boolean) => void> {}
-
- interface NotificationClickedEvent extends chrome.events.Event<(notificationId: string) => void> {}
-
- interface NotificationButtonClickedEvent extends chrome.events.Event<(notificationId: string, buttonIndex: number) => void> {}
-
- interface NotificationPermissionLevelChangedEvent extends chrome.events.Event<(level: string) => void> {}
-
- interface NotificationShowSettingsEvent extends chrome.events.Event<() => void> {}
-
- /** The notification closed, either by the system or by user action. */
- export var onClosed: NotificationClosedEvent;
- /** The user clicked in a non-button area of the notification. */
- export var onClicked: NotificationClickedEvent;
- /** The user pressed a button in the notification. */
- export var onButtonClicked: NotificationButtonClickedEvent;
- /**
- * The user changes the permission level.
- * @since Chrome 32.
- */
- export var onPermissionLevelChanged: NotificationPermissionLevelChangedEvent;
- /**
- * The user clicked on a link for the app's notification settings.
- * @since Chrome 32.
- */
- export var onShowSettings: NotificationShowSettingsEvent;
-
- /**
- * Creates and displays a notification.
- * @param notificationId Identifier of the notification. If not set or empty, an ID will automatically be generated. If it matches an existing notification, this method first clears that notification before proceeding with the create operation.
- * The notificationId parameter is required before Chrome 42.
- * @param options Contents of the notification.
- * @param callback Returns the notification id (either supplied or generated) that represents the created notification.
- * The callback is required before Chrome 42.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(string notificationId) {...};
- */
- export function create(notificationId: string, options: NotificationOptions, callback?: (notificationId: string) => void): void;
- /**
- * Creates and displays a notification.
- * @param notificationId Identifier of the notification. If not set or empty, an ID will automatically be generated. If it matches an existing notification, this method first clears that notification before proceeding with the create operation.
- * The notificationId parameter is required before Chrome 42.
- * @param options Contents of the notification.
- * @param callback Returns the notification id (either supplied or generated) that represents the created notification.
- * The callback is required before Chrome 42.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(string notificationId) {...};
- */
- export function create(options: NotificationOptions, callback?: (notificationId: string) => void): void;
- /**
- * Updates an existing notification.
- * @param notificationId The id of the notification to be updated. This is returned by notifications.create method.
- * @param options Contents of the notification to update to.
- * @param callback Called to indicate whether a matching notification existed.
- * The callback is required before Chrome 42.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean wasUpdated) {...};
- */
- export function update(notificationId: string, options: NotificationOptions, callback?: (wasUpdated: boolean) => void): void;
- /**
- * Clears the specified notification.
- * @param notificationId The id of the notification to be cleared. This is returned by notifications.create method.
- * @param callback Called to indicate whether a matching notification existed.
- * The callback is required before Chrome 42.
- * If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean wasCleared) {...};
- */
- export function clear(notificationId: string, callback?: (wasCleared: boolean) => void): void;
- /**
- * Retrieves all the notifications.
- * @since Chrome 29.
- * @param callback Returns the set of notification_ids currently in the system.
- * The callback parameter should be a function that looks like this:
- * function(object notifications) {...};
- */
- export function getAll(callback: (notifications: Object) => void): void;
- /**
- * Retrieves whether the user has enabled notifications from this app or extension.
- * @since Chrome 32.
- * @param callback Returns the current permission level.
- * The callback parameter should be a function that looks like this:
- * function( PermissionLevel level) {...};
- */
- export function getPermissionLevel(callback: (level: string) => void): void;
-}
-
-////////////////////
-// Omnibox
-////////////////////
-/**
- * The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
- * Manifest: "omnibox": {...}
- * @since Chrome 9.
- */
-declare namespace chrome.omnibox {
- /** A suggest result. */
- interface SuggestResult {
- /** The text that is put into the URL bar, and that is sent to the extension when the user chooses this entry. */
- content: string;
- /** The text that is displayed in the URL dropdown. Can contain XML-style markup for styling. The supported tags are 'url' (for a literal URL), 'match' (for highlighting text that matched what the user's query), and 'dim' (for dim helper text). The styles can be nested, eg. dimmed match. You must escape the five predefined entities to display them as text: stackoverflow.com/a/1091953/89484 */
- description: string;
- }
-
- interface Suggestion {
- /** The text that is displayed in the URL dropdown. Can contain XML-style markup for styling. The supported tags are 'url' (for a literal URL), 'match' (for highlighting text that matched what the user's query), and 'dim' (for dim helper text). The styles can be nested, eg. dimmed match. */
- description: string;
- }
-
- interface OmniboxInputEnteredEvent extends chrome.events.Event<(text: string) => void> {}
-
- interface OmniboxInputChangedEvent extends chrome.events.Event<(text: string, suggest: (suggestResults: SuggestResult[]) => void) => void> {}
-
- interface OmniboxInputStartedEvent extends chrome.events.Event<() => void> {}
-
- interface OmniboxInputCancelledEvent extends chrome.events.Event<() => void> {}
-
- /**
- * Sets the description and styling for the default suggestion. The default suggestion is the text that is displayed in the first suggestion row underneath the URL bar.
- * @param suggestion A partial SuggestResult object, without the 'content' parameter.
- */
- export function setDefaultSuggestion(suggestion: Suggestion): void;
-
- /** User has accepted what is typed into the omnibox. */
- var onInputEntered: OmniboxInputEnteredEvent;
- /** User has changed what is typed into the omnibox. */
- var onInputChanged: OmniboxInputChangedEvent;
- /** User has started a keyword input session by typing the extension's keyword. This is guaranteed to be sent exactly once per input session, and before any onInputChanged events. */
- var onInputStarted: OmniboxInputStartedEvent;
- /** User has ended the keyword input session without accepting the input. */
- var onInputCancelled: OmniboxInputCancelledEvent;
-}
-
-////////////////////
-// Page Action
-////////////////////
-/**
- * Use the chrome.pageAction API to put icons inside the address bar. Page actions represent actions that can be taken on the current page, but that aren't applicable to all pages.
- * Manifest: "page_action": {...}
- * @since Chrome 5.
- */
-declare namespace chrome.pageAction {
- interface PageActionClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {}
-
- interface TitleDetails {
- /** The id of the tab for which you want to modify the page action. */
- tabId: number;
- /** The tooltip string. */
- title: string;
- }
-
- interface GetDetails {
- /** Specify the tab to get the title from. */
- tabId: number;
- }
-
- interface PopupDetails {
- /** The id of the tab for which you want to modify the page action. */
- tabId: number;
- /** The html file to show in a popup. If set to the empty string (''), no popup is shown. */
- popup: string;
- }
-
- interface IconDetails {
- /** The id of the tab for which you want to modify the page action. */
- tabId: number;
- /**
- * Optional.
- * @deprecated This argument is ignored.
- */
- iconIndex?: number;
- /**
- * Optional.
- * Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'19': foo}'
- */
- imageData?: ImageData;
- /**
- * Optional.
- * Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'19': foo}'
- */
- path?: any;
- }
-
- /**
- * Shows the page action. The page action is shown whenever the tab is selected.
- * @param tabId The id of the tab for which you want to modify the page action.
- */
- export function hide(tabId: number): void;
- /**
- * Shows the page action. The page action is shown whenever the tab is selected.
- * @param tabId The id of the tab for which you want to modify the page action.
- */
- export function show(tabId: number): void;
- /** Sets the title of the page action. This is displayed in a tooltip over the page action. */
- export function setTitle(details: TitleDetails): void;
- /** Sets the html document to be opened as a popup when the user clicks on the page action's icon. */
- export function setPopup(details: PopupDetails): void;
- /**
- * Gets the title of the page action.
- * @since Chrome 19.
- * @param callback The callback parameter should be a function that looks like this:
- * function(string result) {...};
- */
- export function getTitle(details: GetDetails, callback: (result: string) => void): void;
- /**
- * Gets the html document set as the popup for this page action.
- * @since Chrome 19.
- * @param callback The callback parameter should be a function that looks like this:
- * function(string result) {...};
- */
- export function getPopup(details: GetDetails, callback: (result: string) => void): void;
- /**
- * Sets the icon for the page action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the path or the imageData property must be specified.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function() {...};
- */
- export function setIcon(details: IconDetails, callback?: () => void): void;
-
- /** Fired when a page action icon is clicked. This event will not fire if the page action has a popup. */
- var onClicked: PageActionClickedEvent;
-}
-
-////////////////////
-// Page Capture
-////////////////////
-/**
- * Use the chrome.pageCapture API to save a tab as MHTML.
- * Permissions: "pageCapture"
- * @since Chrome 18.
- */
-declare namespace chrome.pageCapture {
- interface SaveDetails {
- /** The id of the tab to save as MHTML. */
- tabId: number;
- }
-
- /**
- * Saves the content of the tab with given id as MHTML.
- * @param callback Called when the MHTML has been generated.
- * The callback parameter should be a function that looks like this:
- * function(binary mhtmlData) {...};
- * Parameter mhtmlData: The MHTML data as a Blob.
- */
- export function saveAsMHTML(details: SaveDetails, callback: (mhtmlData: any) => void): void;
-}
-
-////////////////////
-// Permissions
-////////////////////
-/**
- * Use the chrome.permissions API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
- * @since Chrome 16.
- */
-declare namespace chrome.permissions {
- interface Permissions {
- /**
- * Optional.
- * List of named permissions (does not include hosts or origins). Anything listed here must appear in the optional_permissions list in the manifest.
- */
- origins?: string[];
- /**
- * Optional.
- * List of origin permissions. Anything listed here must be a subset of a host that appears in the optional_permissions list in the manifest. For example, if http://*.example.com/ or http://* appears in optional_permissions, you can request an origin of http://help.example.com/. Any path is ignored.
- */
- permissions?: string[];
- }
-
- interface PermissionsRemovedEvent {
- /**
- * @param callback The callback parameter should be a function that looks like this:
- * function( Permissions permissions) {...};
- * Parameter permissions: The permissions that have been removed.
- */
- addListener(callback: (permissions: Permissions) => void): void;
- }
-
- interface PermissionsAddedEvent {
- /**
- * @param callback The callback parameter should be a function that looks like this:
- * function( Permissions permissions) {...};
- * Parameter permissions: The newly acquired permissions.
- */
- addListener(callback: (permissions: Permissions) => void): void;
- }
-
- /**
- * Checks if the extension has the specified permissions.
- * @param callback The callback parameter should be a function that looks like this:
- * function(boolean result) {...};
- * Parameter result: True if the extension has the specified permissions.
- */
- export function contains(permissions: Permissions, callback: (result: boolean) => void): void;
- /**
- * Gets the extension's current set of permissions.
- * @param callback The callback parameter should be a function that looks like this:
- * function( Permissions permissions) {...};
- * Parameter permissions: The extension's active permissions.
- */
- export function getAll(callback: (permissions: Permissions) => void): void;
- /**
- * Requests access to the specified permissions. These permissions must be defined in the optional_permissions field of the manifest. If there are any problems requesting the permissions, runtime.lastError will be set.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean granted) {...};
- * Parameter granted: True if the user granted the specified permissions.
- */
- export function request(permissions: Permissions, callback?: (granted: boolean) => void): void;
- /**
- * Removes access to the specified permissions. If there are any problems removing the permissions, runtime.lastError will be set.
- * @param callback If you specify the callback parameter, it should be a function that looks like this:
- * function(boolean removed) {...};
- * Parameter removed: True if the permissions were removed.
- */
- export function remove(permissions: Permissions, callback?: (removed: boolean) => void): void;
-
- /** Fired when access to permissions has been removed from the extension. */
- var onRemoved: PermissionsRemovedEvent;
- /** Fired when the extension acquires new permissions. */
- var onAdded: PermissionsAddedEvent;
-}
-
-////////////////////
-// Platform Keys
-////////////////////
-/**
- * Use the chrome.platformKeys API to access client certificates managed by the platform. If the user or policy grants the permission, an extension can use such a certficate in its custom authentication protocol. E.g. this allows usage of platform managed certificates in third party VPNs (see chrome.vpnProvider).
- * Permissions: "platformKeys"
- * Important: This API works only on Chrome OS.
- * @since Chrome 45.
- */
-declare namespace chrome.platformKeys {
- interface Match {
- /** The DER encoding of a X.509 certificate. */
- certificate: ArrayBuffer;
- /** The KeyAlgorithm of the certified key. This contains algorithm parameters that are inherent to the key of the certificate (e.g. the key length). Other parameters like the hash function used by the sign function are not included. */
- keyAlgorithm: KeyAlgorithm;
- }
-
- interface ClientCertificateSelectRequestDetails {
- /** This field is a list of the types of certificates requested, sorted in order of the server's preference. Only certificates of a type contained in this list will be retrieved. If certificateTypes is the empty list, however, certificates of any type will be returned. */
- certificateTypes: string[];
- /** List of distinguished names of certificate authorities allowed by the server. Each entry must be a DER-encoded X.509 DistinguishedName. */
- certificateAuthorities: ArrayBuffer[];
- }
-
- interface ClientCertificateSelectDetails {
- /** Only certificates that match this request will be returned. */
- request: ClientCertificateSelectRequestDetails;
- /**
- * Optional.
- * If given, the selectClientCertificates operates on this list. Otherwise, obtains the list of all certificates from the platform's certificate stores that are available to this extensions. Entries that the extension doesn't have permission for or which doesn't match the request, are removed.
- */
- clientCerts?: ArrayBuffer[];
- /** If true, the filtered list is presented to the user to manually select a certificate and thereby granting the extension access to the certificate(s) and key(s). Only the selected certificate(s) will be returned. If is false, the list is reduced to all certificates that the extension has been granted access to (automatically or manually). */
- interactive: boolean;
- }
-
- interface ServerCertificateVerificationDetails {
- /** Each chain entry must be the DER encoding of a X.509 certificate, the first entry must be the server certificate and each entry must certify the entry preceding it. */
- serverCertificateChain: ArrayBuffer[];
- /** The hostname of the server to verify the certificate for, e.g. the server that presented the serverCertificateChain. */
- hostname: string;
- }
-
- interface ServerCertificateVerificationResult {
- /** The result of the trust verification: true if trust for the given verification details could be established and false if trust is rejected for any reason. */
- trusted: boolean;
- /**
- * If the trust verification failed, this array contains the errors reported by the underlying network layer. Otherwise, this array is empty.
- * Note: This list is meant for debugging only and may not contain all relevant errors. The errors returned may change in future revisions of this API, and are not guaranteed to be forwards or backwards compatible.
- */
- debug_errors: string[];
- }
-
- /**
- * This function filters from a list of client certificates the ones that are known to the platform, match request and for which the extension has permission to access the certificate and its private key. If interactive is true, the user is presented a dialog where he can select from matching certificates and grant the extension access to the certificate. The selected/filtered client certificates will be passed to callback.
- * @param callback The callback parameter should be a function that looks like this:
- * function(array of Match matches) {...};
- * Parameter matches: The list of certificates that match the request, that the extension has permission for and, if interactive is true, that were selected by the user.
- */
- export function selectClientCertificates(details: ClientCertificateSelectDetails, callback: (matches: Match[]) => void): void;
- /**
- * Passes the key pair of certificate for usage with platformKeys.subtleCrypto to callback.
- * @param certificate The certificate of a Match returned by selectClientCertificates.
- * @param parameters Determines signature/hash algorithm parameters additionally to the parameters fixed by the key itself. The same parameters are accepted as by WebCrypto's importKey function, e.g. RsaHashedImportParams for a RSASSA-PKCS1-v1_5 key. For RSASSA-PKCS1-v1_5 keys, additionally the parameters { 'hash': { 'name': 'none' } } are supported. The sign function will then apply PKCS#1 v1.5 padding and but not hash the given data.
- * @param callback The public and private CryptoKey of a certificate which can only be used with platformKeys.subtleCrypto.
- * The callback parameter should be a function that looks like this:
- * function(object publicKey, object privateKey) {...};
- * Optional parameter privateKey: Might be null if this extension does not have access to it.
- */
- export function getKeyPair(certificate: ArrayBuffer, parameters: Object, callback: (publicKey: CryptoKey, privateKey?: CryptoKey) => void): void;
- /** An implementation of WebCrypto's SubtleCrypto that allows crypto operations on keys of client certificates that are available to this extension. */
- export function subtleCrypto(): SubtleCrypto;
- /**
- * Checks whether details.serverCertificateChain can be trusted for details.hostname according to the trust settings of the platform. Note: The actual behavior of the trust verification is not fully specified and might change in the future. The API implementation verifies certificate expiration, validates the certification path and checks trust by a known CA. The implementation is supposed to respect the EKU serverAuth and to support subject alternative names.
- * @param callback The callback parameter should be a function that looks like this:
- * function(object result) {...};
- */
- export function verifyTLSServerCertificate(details: ServerCertificateVerificationDetails, callback: (result: ServerCertificateVerificationResult) => void): void;
-}
-
-////////////////////
-// Power
-////////////////////
-/**
- * Use the chrome.power API to override the system's power management features.
- * Permissions: "power"
- * @since Chrome 27.
- */
-declare namespace chrome.power {
- /** Requests that power management be temporarily disabled. |level| describes the degree to which power management should be disabled. If a request previously made by the same app is still active, it will be replaced by the new request. */
- export function requestKeepAwake(level: string): void;
- /** Releases a request previously made via requestKeepAwake(). */
- export function releaseKeepAwake(): void;
-}
-
-////////////////////
-// Printer Provider
-////////////////////
-/**
- * The chrome.printerProvider API exposes events used by print manager to query printers controlled by extensions, to query their capabilities and to submit print jobs to these printers.
- * Permissions: "printerProvider"
- * @since Chrome 44.
- */
-declare namespace chrome.printerProvider {
- interface PrinterInfo {
- /** Unique printer ID. */
- id: string;
- /** Printer's human readable name. */
- name: string;
- /** Optional. Printer's human readable description. */
- description?: string;
- }
-
- interface PrinterCapabilities {
- /** Device capabilities in CDD format. */
- capabilities: any;
- }
-
- interface PrintJob {
- /** ID of the printer which should handle the job. */
- printerId: string;
- /** The print job title. */
- title: string;
- /** Print ticket in CJT format. */
- ticket: Object;
- /** The document content type. Supported formats are "application/pdf" and "image/pwg-raster". */
- contentType: string;
- /** Blob containing the document data to print. Format must match |contentType|. */
- document: Blob;
- }
-
- interface PrinterRequestedEvent extends chrome.events.Event<(resultCallback: (printerInfo: PrinterInfo[]) => void) => void> {}
-
- interface PrinterInfoRequestedEvent extends chrome.events.Event<(device: any, resultCallback: (printerInfo?: PrinterInfo) => void) => void> {}
-
- interface CapabilityRequestedEvent extends chrome.events.Event<(printerId: string, resultCallback: (capabilities: PrinterCapabilities) => void) => void> {}
-
- interface PrintRequestedEvent extends chrome.events.Event<(printJob: PrintJob, resultCallback: (result: string) => void) => void> {}
-
- /** Event fired when print manager requests printers provided by extensions. */
- export var onGetPrintersRequested: PrinterRequestedEvent;
- /**
- * Event fired when print manager requests information about a USB device that may be a printer.
- * Note: An application should not rely on this event being fired more than once per device. If a connected device is supported it should be returned in the onGetPrintersRequested event.
- * @since Chrome 45.
- */
- export var onGetUsbPrinterInfoRequested: PrinterInfoRequestedEvent;
- /** Event fired when print manager requests printer capabilities. */
- export var onGetCapabilityRequested: CapabilityRequestedEvent;
- /** Event fired when print manager requests printing. */
- export var onPrintRequested: PrintRequestedEvent;
-}
-
-////////////////////
-// Privacy
-////////////////////
-/**
- * Use the chrome.privacy API to control usage of the features in Chrome that can affect a user's privacy. This API relies on the ChromeSetting prototype of the type API for getting and setting Chrome's configuration.
- * Permissions: "privacy"
- * The Chrome Privacy Whitepaper gives background detail regarding the features which this API can control.
- * @since Chrome 18.
- */
-declare namespace chrome.privacy {
- interface Services {
- /** since Chrome 20. */
- spellingServiceEnabled: chrome.types.ChromeSetting;
- searchSuggestEnabled: chrome.types.ChromeSetting;
- instantEnabled: chrome.types.ChromeSetting;
- alternateErrorPagesEnabled: chrome.types.ChromeSetting;
- safeBrowsingEnabled: chrome.types.ChromeSetting;
- autofillEnabled: chrome.types.ChromeSetting;
- translationServiceEnabled: chrome.types.ChromeSetting;
- /** @since Chrome 38. */
- passwordSavingEnabled: chrome.types.ChromeSetting;
- /** @since Chrome 42. */
- hotwordSearchEnabled: chrome.types.ChromeSetting;
- /** @since Chrome 42. */
- safeBrowsingExtendedReportingEnabled: chrome.types.ChromeSetting;
- }
-
- interface Network {
- networkPredictionEnabled: chrome.types.ChromeSetting;
- /** @since Chrome 42. */
- webRTCMultipleRoutesEnabled: chrome.types.ChromeSetting;
- /** @since Chrome 47. Warning: this is the current Dev channel. */
- webRTCNonProxiedUdpEnabled: chrome.types.ChromeSetting;
- }
-
- interface Websites {
- thirdPartyCookiesAllowed: chrome.types.ChromeSetting;
- referrersEnabled: chrome.types.ChromeSetting;
- hyperlinkAuditingEnabled: chrome.types.ChromeSetting;
- /** @since Chrome 21. */
- protectedContentEnabled: chrome.types.ChromeSetting;
- }
-
- /** Settings that enable or disable features that require third-party network services provided by Google and your default search provider. */
- var services: Services;
- /** Settings that influence Chrome's handling of network connections in general. */
- var network: Network;
- /** Settings that determine what information Chrome makes available to websites. */
- var websites: Websites;
-}
-
-////////////////////
-// Proxy
-////////////////////
-/**
- * Use the chrome.proxy API to manage Chrome's proxy settings. This API relies on the ChromeSetting prototype of the type API for getting and setting the proxy configuration.
- * Permissions: "proxy"
- * @since Chrome 13.
- */
-declare namespace chrome.proxy {
- /** An object holding proxy auto-config information. Exactly one of the fields should be non-empty. */
- interface PacScript {
- /** Optional. URL of the PAC file to be used. */
- url?: string;
- /** Optional. If true, an invalid PAC script will prevent the network stack from falling back to direct connections. Defaults to false. */
- mandatory?: boolean;
- /** Optional. A PAC script. */
- data?: string;
- }
-
- /** An object encapsulating a complete proxy configuration. */
- interface ProxyConfig {
- /** Optional. The proxy rules describing this configuration. Use this for 'fixed_servers' mode. */
- rules?: ProxyRules;
- /** Optional. The proxy auto-config (PAC) script for this configuration. Use this for 'pac_script' mode. */
- pacScript?: PacScript;
- /**
- * 'direct' = Never use a proxy
- * 'auto_detect' = Auto detect proxy settings
- * 'pac_script' = Use specified PAC script
- * 'fixed_servers' = Manually specify proxy servers
- * 'system' = Use system proxy settings
- */
- mode: string;
- }
-
- /** An object encapsulating a single proxy server's specification. */
- interface ProxyServer {
- /** The URI of the proxy server. This must be an ASCII hostname (in Punycode format). IDNA is not supported, yet. */
- host: string;
- /** Optional. The scheme (protocol) of the proxy server itself. Defaults to 'http'. */
- scheme?: string;
- /** Optional. The port of the proxy server. Defaults to a port that depends on the scheme. */
- port?: number;
- }
-
- /** An object encapsulating the set of proxy rules for all protocols. Use either 'singleProxy' or (a subset of) 'proxyForHttp', 'proxyForHttps', 'proxyForFtp' and 'fallbackProxy'. */
- interface ProxyRules {
- /** Optional. The proxy server to be used for FTP requests. */
- proxyForFtp?: ProxyServer;
- /** Optional. The proxy server to be used for HTTP requests. */
- proxyForHttp?: ProxyServer;
- /** Optional. The proxy server to be used for everthing else or if any of the specific proxyFor... is not specified. */
- fallbackProxy?: ProxyServer;
- /** Optional. The proxy server to be used for all per-URL requests (that is http, https, and ftp). */
- singleProxy?: ProxyServer;
- /** Optional. The proxy server to be used for HTTPS requests. */
- proxyForHttps?: ProxyServer;
- /** Optional. List of servers to connect to without a proxy server. */
- bypassList?: string[];
- }
-
- interface ErrorDetails {
- /** Additional details about the error such as a JavaScript runtime error. */
- details: string;
- /** The error description. */
- error: string;
- /** If true, the error was fatal and the network transaction was aborted. Otherwise, a direct connection is used instead. */
- fatal: boolean;
- }
-
- interface ProxyErrorEvent extends chrome.events.Event<(details: ErrorDetails) => void> {}
-
- var settings: chrome.types.ChromeSetting;
- /** Notifies about proxy errors. */
- var onProxyError: ProxyErrorEvent;
-}
-
-////////////////////
-// Runtime
-////////////////////
-/**
- * Use the chrome.runtime API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
- * @since Chrome 22
- */
-declare namespace chrome.runtime {
- /** This will be defined during an API method callback if there was an error */
- var lastError: LastError;
- /** The ID of the extension/app. */
- var id: string;
-
- interface LastError {
- /** Optional. Details about the error which occurred. */
- message?: string;
- }
-
- interface ConnectInfo {
- name?: string;
- }
-
- interface InstalledDetails {
- /**
- * The reason that this event is being dispatched.
- * One of: "install", "update", "chrome_update", or "shared_module_update"
- */
- reason: string;
- /**
- * Optional.
- * Indicates the previous version of the extension, which has just been updated. This is present only if 'reason' is 'update'.
- */
- previousVersion?: string;
- /**
- * Optional.
- * Indicates the ID of the imported shared module extension which updated. This is present only if 'reason' is 'shared_module_update'.
- * @since Chrome 29.
- */
- id?: string;
- }
-
- interface MessageOptions {
- /** Whether the TLS channel ID will be passed into onMessageExternal for processes that are listening for the connection event. */
- includeTlsChannelId?: boolean;
- }
-
- /**
- * An object containing information about the script context that sent a message or request.
- * @since Chrome 26.
- */
- interface MessageSender {
- /** The ID of the extension or app that opened the connection, if any. */
- id?: string;
- /** The tabs.Tab which opened the connection, if any. This property will only be present when the connection was opened from a tab (including content scripts), and only if the receiver is an extension, not an app. */
- tab?: chrome.tabs.Tab;
- /**
- * The frame that opened the connection. 0 for top-level frames, positive for child frames. This will only be set when tab is set.
- * @since Chrome 41.
- */
- frameId?: number;
- /**
- * The URL of the page or frame that opened the connection. If the sender is in an iframe, it will be iframe's URL not the URL of the page which hosts it.
- * @since Chrome 28.
- */
- url?: string;
- /**
- * The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available.
- * @since Chrome 32.
- */
- tlsChannelId?: string;
- }
-
- /**
- * An object containing information about the current platform.
- * @since Chrome 36.
- */
- interface PlatformInfo {
- /**
- * The operating system chrome is running on.
- * One of: "mac", "win", "android", "cros", "linux", or "openbsd"
- */
- os: string;
- /**
- * The machine's processor architecture.
- * One of: "arm", "x86-32", or "x86-64"
- */
- arch: string;
- /**
- * The native client architecture. This may be different from arch on some platforms.
- * One of: "arm", "x86-32", or "x86-64"
- */
- nacl_arch: string;
- }
-
- /**
- * An object which allows two way communication with other pages.
- * @since Chrome 26.
- */
- interface Port {
- postMessage: (message: Object) => void;
- disconnect: () => void;
- /**
- * Optional.
- * This property will only be present on ports passed to onConnect/onConnectExternal listeners.
- */
- sender?: MessageSender;
- /** An object which allows the addition and removal of listeners for a Chrome event. */
- onDisconnect: chrome.events.Event<() => void>;
- /** An object which allows the addition and removal of listeners for a Chrome event. */
- onMessage: PortMessageEvent;
- name: string;
- }
-
- interface UpdateAvailableDetails {
- /** The version number of the available update. */
- version: string;
- }
-
- interface UpdateCheckDetails {
- /** The version of the available update. */
- version: string;
- }
-
- interface PortMessageEvent extends chrome.events.Event<(message: Object, port: Port) => void> {}
-
- interface ExtensionMessageEvent extends chrome.events.Event<(message: any, sender: MessageSender, sendResponse: (response: any) => void) => void> {}
-
- interface ExtensionConnectEvent extends chrome.events.Event<(port: Port) => void> {}
-
- interface RuntimeInstalledEvent extends chrome.events.Event<(details: InstalledDetails) => void> {}
-
- interface RuntimeEvent extends chrome.events.Event<() => void> {}
-
- interface RuntimeRestartRequiredEvent extends chrome.events.Event<(reason: string) => void> {}
-
- interface RuntimeUpdateAvailableEvent extends chrome.events.Event<(details: UpdateAvailableDetails) => void> {}
-
- interface ManifestIcons {
- [size: number]: string;
- }
-
- interface ManifestAction {
- default_icon?: ManifestIcons;
- default_title?: string;
- default_popup?: string;
- }
-
- interface SearchProvider {
- name?: string;
- keyword?: string;
- favicon_url?: string;
- search_url: string;
- encoding?: string;
- suggest_url?: string;
- instant_url?: string;
- image_url?: string;
- search_url_post_params?: string;
- suggest_url_post_params?: string;
- instant_url_post_params?: string;
- image_url_post_params?: string;
- alternate_urls?: string[];
- prepopulated_id?: number;
- is_default?: boolean;
- }
-
- interface Manifest {
- // Required
- manifest_version: number;
- name: string;
- version: string;
-
- // Recommended
- default_locale?: string;
- description?: string;
- icons?: ManifestIcons;
-
- // Pick one (or none)
- browser_action?: ManifestAction;
- page_action?: ManifestAction;
-
- // Optional
- author?: any;
- automation?: any;
- background?: {
- scripts?: string[];
- page?: string;
- persistent?: boolean;
- };
- background_page?: string;
- chrome_settings_overrides?: {
- homepage?: string;
- search_provider?: SearchProvider;
- startup_pages?: string[];
- };
- chrome_ui_overrides?: {
- bookmarks_ui?: {
- remove_bookmark_shortcut?: boolean;
- remove_button?: boolean;
- }
- };
- chrome_url_overrides?: {
- bookmarks?: string;
- history?: string;
- newtab?: string;
- };
- commands?: {
- [name: string]: {
- suggested_key?: {
- default?: string;
- windows?: string;
- mac?: string;
- chromeos?: string;
- linux?: string;
- };
- description?: string;
- global?: boolean
- }
- };
- content_capabilities?: {
- matches?: string[];
- permissions?: string[];
- };
- content_scripts?: {
- matches?: string[];
- exclude_matches?: string[];
- css?: string[];
- js?: string[];
- run_at?: string;
- all_frames?: boolean;
- include_globs?: string[];
- exclude_globs?: string[];
- }[];
- content_security_policy?: string;
- converted_from_user_script?: boolean;
- copresence?: any;
- current_locale?: string;
- devtools_page?: string;
- event_rules?: {
- event?: string;
- actions?: {
- type: string;
- }[];
- conditions?: chrome.declarativeContent.PageStateMatcher[]
- }[];
- externally_connectable?: {
- ids?: string[];
- matches?: string[];
- accepts_tls_channel_id?: boolean;
- };
- file_browser_handlers?: {
- id?: string;
- default_title?: string;
- file_filters?: string[];
- }[];
- file_system_provider_capabilities?: {
- configurable?: boolean;
- watchable?: boolean;
- multiple_mounts?: boolean;
- source?: string;
- };
- homepage_url?: string;
- import?: {
- id: string;
- minimum_version?: string
- }[];
- export?: {
- whitelist?: string[]
- };
- incognito?: string;
- input_components?: {
- name?: string;
- type?: string;
- id?: string;
- description?: string;
- language?: string;
- layouts?: any[];
- }[];
- key?: string;
- minimum_chrome_version?: string;
- nacl_modules?: {
- path: string;
- mime_type: string;
- }[];
- oauth2?: {
- client_id: string;
- scopes?: string[];
- };
- offline_enabled?: boolean;
- omnibox?: {
- keyword: string;
- };
- optional_permissions?: string[];
- options_page?: string;
- options_ui?: {
- page?: string;
- chrome_style?: boolean;
- open_in_tab?: boolean;
- };
- permissions?: string[];
- platforms?: {
- nacl_arch?: string;
- sub_package_path: string;
- }[];
- plugins?: {
- path: string;
- }[];
- requirements?: {
- '3D'?: {
- features?: string[]
- };
- plugins?: {
- npapi?: boolean;
- }
- };
- sandbox?: {
- pages: string[];
- content_security_policy?: string;
- };
- short_name?: string;
- signature?: any;
- spellcheck?: {
- dictionary_language?: string;
- dictionary_locale?: string;
- dictionary_format?: string;
- dictionary_path?: string;
- };
- storage?: {
- managed_schema: string
- };
- system_indicator?: any;
- tts_engine?: {
- voices: {
- voice_name: string;
- lang?: string;
- gender?: string;
- event_types?: string[];
- }[]
- };
- update_url?: string;
- version_name?: string;
- web_accessible_resources?: string[];
- [key: string]: any;
- }
-
- /**
- * Attempts to connect to connect listeners within an extension/app (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and web messaging. Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via tabs.connect.
- * @since Chrome 26.
- */
- export function connect(connectInfo?: ConnectInfo): Port;
- /**
- * Attempts to connect to connect listeners within an extension/app (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and web messaging. Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via tabs.connect.
- * @since Chrome 26.
- * @param extensionId Optional.
- * The ID of the extension or app to connect to. If omitted, a connection will be attempted with your own extension. Required if sending messages from a web page for web messaging.
- */
- export function connect(extensionId: string, connectInfo?: ConnectInfo): Port;
- /**
- * Connects to a native application in the host machine.
- * @since Chrome 28.
- * @param application The name of the registered application to connect to.
- */
- export function connectNative(application: string): Port;
- /** Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set. */
- export function getBackgroundPage(callback: (backgroundPage?: Window) => void): void;
- /**
- * Returns details about the app or extension from the manifest. The object returned is a serialization of the full manifest file.
- * @returns The manifest details.
- */
- export function getManifest(): Manifest;
- /**
- * Returns a DirectoryEntry for the package directory.
- * @since Chrome 29.
- */
- export function getPackageDirectoryEntry(callback: (directoryEntry: DirectoryEntry) => void): void;
- /**
- * Returns information about the current platform.
- * @since Chrome 29.
- * @param callback Called with results
- */
- export function getPlatformInfo(callback: (platformInfo: PlatformInfo) => void): void;
- /**
- * Converts a relative path within an app/extension install directory to a fully-qualified URL.
- * @param path A path to a resource within an app/extension expressed relative to its install directory.
- */
- export function getURL(path: string): string;
- /**
- * Reloads the app or extension.
- * @since Chrome 25.
- */
- export function reload(): void;
- /**
- * Requests an update check for this app/extension.
- * @since Chrome 25.
- * @param callback
- * Parameter status: Result of the update check. One of: "throttled", "no_update", or "update_available"
- * Optional parameter details: If an update is available, this contains more information about the available update.
- */
- export function requestUpdateCheck(callback: (status: string, details?: UpdateCheckDetails) => void): void;
- /**
- * Restart the ChromeOS device when the app runs in kiosk mode. Otherwise, it's no-op.
- * @since Chrome 32.
- */
- export function restart(): void;
- /**
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
- * @since Chrome 26.
- * @param responseCallback Optional
- * Parameter response: The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendMessage(message: any, responseCallback?: (response: any) => void): void;
- /**
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
- * @since Chrome 32.
- * @param responseCallback Optional
- * Parameter response: The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendMessage(message: any, options: MessageOptions, responseCallback?: (response: any) => void): void;
- /**
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
- * @since Chrome 26.
- * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for web messaging.
- * @param responseCallback Optional
- * Parameter response: The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendMessage(extensionId: string, message: any, responseCallback?: (response: any) => void): void;
- /**
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to runtime.connect but only sends a single message, with an optional response. If sending to your extension, the runtime.onMessage event will be fired in each page, or runtime.onMessageExternal, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use tabs.sendMessage.
- * @since Chrome 32.
- * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for web messaging.
- * @param responseCallback Optional
- * Parameter response: The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendMessage(extensionId: string, message: any, options: MessageOptions, responseCallback?: (response: any) => void): void;
- /**
- * Send a single message to a native application.
- * @since Chrome 28.
- * @param application The of the native messaging host.
- * @param message The message that will be passed to the native messaging host.
- * @param responseCallback Optional.
- * Parameter response: The response message sent by the native messaging host. If an error occurs while connecting to the native messaging host, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendNativeMessage(application: string, message: Object, responseCallback?: (response: any) => void): void;
- /**
- * Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.
- * @since Chrome 41.
- * @param url Since Chrome 34.
- * URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation.
- * @param callback Called when the uninstall URL is set. If the given URL is invalid, runtime.lastError will be set.
- */
- export function setUninstallURL(url: string, callback?: () => void): void;
- /**
- * Open your Extension's options page, if possible.
- * The precise behavior may depend on your manifest's options_ui or options_page key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
- * If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set lastError.
- * @since Chrome 42.
- */
- export function openOptionsPage(callback?: () => void): void;
-
- /**
- * Fired when a connection is made from either an extension process or a content script.
- * @since Chrome 26.
- */
- var onConnect: ExtensionConnectEvent;
- /**
- * Fired when a connection is made from another extension.
- * @since Chrome 26.
- */
- var onConnectExternal: ExtensionConnectEvent;
- /** Sent to the event page just before it is unloaded. This gives the extension opportunity to do some clean up. Note that since the page is unloading, any asynchronous operations started while handling this event are not guaranteed to complete. If more activity for the event page occurs before it gets unloaded the onSuspendCanceled event will be sent and the page won't be unloaded. */
- var onSuspend: RuntimeEvent;
- /**
- * Fired when a profile that has this extension installed first starts up. This event is not fired when an incognito profile is started, even if this extension is operating in 'split' incognito mode.
- * @since Chrome 23.
- */
- var onStartup: RuntimeEvent;
- /** Fired when the extension is first installed, when the extension is updated to a new version, and when Chrome is updated to a new version. */
- var onInstalled: RuntimeInstalledEvent;
- /** Sent after onSuspend to indicate that the app won't be unloaded after all. */
- var onSuspendCanceled: RuntimeEvent;
- /**
- * Fired when a message is sent from either an extension process or a content script.
- * @since Chrome 26.
- */
- var onMessage: ExtensionMessageEvent;
- /**
- * Fired when a message is sent from another extension/app. Cannot be used in a content script.
- * @since Chrome 26.
- */
- var onMessageExternal: ExtensionMessageEvent;
- /**
- * Fired when an app or the device that it runs on needs to be restarted. The app should close all its windows at its earliest convenient time to let the restart to happen. If the app does nothing, a restart will be enforced after a 24-hour grace period has passed. Currently, this event is only fired for Chrome OS kiosk apps.
- * @since Chrome 29.
- */
- var onRestartRequired: RuntimeRestartRequiredEvent;
- /**
- * Fired when an update is available, but isn't installed immediately because the app is currently running. If you do nothing, the update will be installed the next time the background page gets unloaded, if you want it to be installed sooner you can explicitly call chrome.runtime.reload(). If your extension is using a persistent background page, the background page of course never gets unloaded, so unless you call chrome.runtime.reload() manually in response to this event the update will not get installed until the next time chrome itself restarts. If no handlers are listening for this event, and your extension has a persistent background page, it behaves as if chrome.runtime.reload() is called in response to this event.
- * @since Chrome 25.
- */
- var onUpdateAvailable: RuntimeUpdateAvailableEvent;
- /**
- * @deprecated since Chrome 33. Please use chrome.runtime.onRestartRequired.
- * Fired when a Chrome update is available, but isn't installed immediately because a browser restart is required.
- */
- var onBrowserUpdateAvailable: RuntimeEvent;
-}
-
-////////////////////
-// Script Badge
-////////////////////
-declare namespace chrome.scriptBadge {
- interface GetPopupDetails {
- tabId: number;
- }
-
- interface AttentionDetails {
- tabId: number;
- }
-
- interface SetPopupDetails {
- tabId: number;
- popup: string;
- }
-
- interface ScriptBadgeClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {}
-
- export function getPopup(details: GetPopupDetails, callback: Function): void;
- export function getAttention(details: AttentionDetails): void;
- export function setPopup(details: SetPopupDetails): void;
-
- var onClicked: ScriptBadgeClickedEvent;
-}
-
-////////////////////
-// Sessions
-////////////////////
-/**
- * Use the chrome.sessions API to query and restore tabs and windows from a browsing session.
- * Permissions: "sessions"
- * @since Chrome 37.
- */
-declare namespace chrome.sessions {
- interface Filter {
- /**
- * Optional.
- * The maximum number of entries to be fetched in the requested list. Omit this parameter to fetch the maximum number of entries (sessions.MAX_SESSION_RESULTS).
- */
- maxResults?: number;
- }
-
- interface Session {
- /** The time when the window or tab was closed or modified, represented in milliseconds since the epoch. */
- lastModified: number;
- /**
- * Optional.
- * The tabs.Tab, if this entry describes a tab. Either this or sessions.Session.window will be set.
- */
- tab?: tabs.Tab;
- /**
- * Optional.
- * The windows.Window, if this entry describes a window. Either this or sessions.Session.tab will be set.
- */
- window?: windows.Window;
- }
-
- interface Device {
- /** The name of the foreign device. */
- deviceName: string;
- /** A list of open window sessions for the foreign device, sorted from most recently to least recently modified session. */
- sessions: Session[];
- }
-
- interface SessionChangedEvent extends chrome.events.Event<() => void> {}
-
- /** The maximum number of sessions.Session that will be included in a requested list. */
- export var MAX_SESSION_RESULTS: number;
-
- /**
- * Gets the list of recently closed tabs and/or windows.
- * @param callback
- * Parameter sessions: The list of closed entries in reverse order that they were closed (the most recently closed tab or window will be at index 0). The entries may contain either tabs or windows.
- */
- export function getRecentlyClosed(filter: Filter, callback: (sessions: Session[]) => void): void;
- /**
- * Gets the list of recently closed tabs and/or windows.
- * @param callback
- * Parameter sessions: The list of closed entries in reverse order that they were closed (the most recently closed tab or window will be at index 0). The entries may contain either tabs or windows.
- */
- export function getRecentlyClosed(callback: (sessions: Session[]) => void): void;
- /**
- * Retrieves all devices with synced sessions.
- * @param callback
- * Parameter devices: The list of sessions.Device objects for each synced session, sorted in order from device with most recently modified session to device with least recently modified session. tabs.Tab objects are sorted by recency in the windows.Window of the sessions.Session objects.
- */
- export function getDevices(filter: Filter, callback: (devices: Device[]) => void): void;
- /**
- * Retrieves all devices with synced sessions.
- * @param callback
- * Parameter devices: The list of sessions.Device objects for each synced session, sorted in order from device with most recently modified session to device with least recently modified session. tabs.Tab objects are sorted by recency in the windows.Window of the sessions.Session objects.
- */
- export function getDevices(callback: (devices: Device[]) => void): void;
- /**
- * Reopens a windows.Window or tabs.Tab, with an optional callback to run when the entry has been restored.
- * @param sessionId Optional.
- * The windows.Window.sessionId, or tabs.Tab.sessionId to restore. If this parameter is not specified, the most recently closed session is restored.
- * @param callback Optional.
- * Parameter restoredSession: A sessions.Session containing the restored windows.Window or tabs.Tab object.
- */
- export function restore(sessionId?: string, callback?: (restoredSession: Session) => void): void;
-
- /** Fired when recently closed tabs and/or windows are changed. This event does not monitor synced sessions changes. */
- export var onChanged: SessionChangedEvent;
-}
-
-////////////////////
-// Storage
-////////////////////
-/**
- * Use the chrome.storage API to store, retrieve, and track changes to user data.
- * Permissions: "storage"
- * @since Chrome 20.
- */
-declare namespace chrome.storage {
- interface StorageArea {
- /**
- * Gets the amount of space (in bytes) being used by one or more items.
- * @param callback Callback with the amount of space being used by storage, or on failure (in which case runtime.lastError will be set).
- * Parameter bytesInUse: Amount of space being used in storage, in bytes.
- */
- getBytesInUse(callback: (bytesInUse: number) => void): void;
- /**
- * Gets the amount of space (in bytes) being used by one or more items.
- * @param key A single key to get the total usage for. Pass in null to get the total usage of all of storage.
- * @param callback Callback with the amount of space being used by storage, or on failure (in which case runtime.lastError will be set).
- * Parameter bytesInUse: Amount of space being used in storage, in bytes.
- */
- getBytesInUse(key: string, callback: (bytesInUse: number) => void): void;
- /**
- * Gets the amount of space (in bytes) being used by one or more items.
- * @param keys A list of keys to get the total usage for. An empty list will return 0. Pass in null to get the total usage of all of storage.
- * @param callback Callback with the amount of space being used by storage, or on failure (in which case runtime.lastError will be set).
- * Parameter bytesInUse: Amount of space being used in storage, in bytes.
- */
- getBytesInUse(keys: string[], callback: (bytesInUse: number) => void): void;
- /**
- * Removes all items from storage.
- * @param callback Optional.
- * Callback on success, or on failure (in which case runtime.lastError will be set).
- */
- clear(callback?: () => void): void;
- /**
- * Sets multiple items.
- * @param items An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
- * Primitive values such as numbers will serialize as expected. Values with a typeof "object" and "function" will typically serialize to {}, with the exception of Array (serializes as expected), Date, and Regex (serialize using their String representation).
- * @param callback Optional.
- * Callback on success, or on failure (in which case runtime.lastError will be set).
- */
- set(items: Object, callback?: () => void): void;
- /**
- * Removes one item from storage.
- * @param key A single key for items to remove.
- * @param callback Optional.
- * Callback on success, or on failure (in which case runtime.lastError will be set).
- */
- remove(key: string, callback?: () => void): void;
- /**
- * Removes items from storage.
- * @param keys A list of keys for items to remove.
- * @param callback Optional.
- * Callback on success, or on failure (in which case runtime.lastError will be set).
- */
- remove(keys: string[], callback?: () => void): void;
- /**
- * Gets one or more items from storage.
- * @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
- * Parameter items: Object with items in their key-value mappings.
- */
- get(callback: (items: { [key: string]: any }) => void): void;
- /**
- * Gets one or more items from storage.
- * @param key A single key to get. Pass in null to get the entire contents of storage.
- * @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
- * Parameter items: Object with items in their key-value mappings.
- */
- get(key: string, callback: (items: { [key: string]: any }) => void): void;
- /**
- * Gets one or more items from storage.
- * @param keys A list of keys to get. An empty list or object will return an empty result object. Pass in null to get the entire contents of storage.
- * @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
- * Parameter items: Object with items in their key-value mappings.
- */
- get(keys: string[], callback: (items: { [key: string]: any }) => void): void;
- /**
- * Gets one or more items from storage.
- * @param keys A dictionary specifying default values. Pass in null to get the entire contents of storage.
- * @param callback Callback with storage items, or on failure (in which case runtime.lastError will be set).
- * Parameter items: Object with items in their key-value mappings.
- */
- get(keys: Object, callback: (items: { [key: string]: any }) => void): void;
- }
-
- interface StorageChange {
- /** Optional. The new value of the item, if there is a new value. */
- newValue?: any;
- /** Optional. The old value of the item, if there was an old value. */
- oldValue?: any;
- }
-
- interface LocalStorageArea extends StorageArea {
- /** The maximum amount (in bytes) of data that can be stored in local storage, as measured by the JSON stringification of every value plus every key's length. This value will be ignored if the extension has the unlimitedStorage permission. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError. */
- QUOTA_BYTES: number;
- }
-
- interface SyncStorageArea extends StorageArea {
- /** @deprecated since Chrome 40. The storage.sync API no longer has a sustained write operation quota. */
- MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: number;
- /** The maximum total amount (in bytes) of data that can be stored in sync storage, as measured by the JSON stringification of every value plus every key's length. Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError. */
- QUOTA_BYTES: number;
- /** The maximum size (in bytes) of each individual item in sync storage, as measured by the JSON stringification of its value plus its key length. Updates containing items larger than this limit will fail immediately and set runtime.lastError. */
- QUOTA_BYTES_PER_ITEM: number;
- /** The maximum number of items that can be stored in sync storage. Updates that would cause this limit to be exceeded will fail immediately and set runtime.lastError. */
- MAX_ITEMS: number;
- /**
- * The maximum number of set, remove, or clear operations that can be performed each hour. This is 1 every 2 seconds, a lower ceiling than the short term higher writes-per-minute limit.
- * Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError.
- */
- MAX_WRITE_OPERATIONS_PER_HOUR: number;
- /**
- * The maximum number of set, remove, or clear operations that can be performed each minute. This is 2 per second, providing higher throughput than writes-per-hour over a shorter period of time.
- * Updates that would cause this limit to be exceeded fail immediately and set runtime.lastError.
- * @since Chrome 40.
- */
- MAX_WRITE_OPERATIONS_PER_MINUTE: number;
- }
-
- interface StorageChangedEvent extends chrome.events.Event<(changes: { [key: string]: StorageChange }, areaName: string) => void> {}
-
- /** Items in the local storage area are local to each machine. */
- var local: LocalStorageArea;
- /** Items in the sync storage area are synced using Chrome Sync. */
- var sync: SyncStorageArea;
-
- /**
- * Items in the managed storage area are set by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error.
- * @since Chrome 33.
- */
- var managed: StorageArea;
-
- /** Fired when one or more items change. */
- var onChanged: StorageChangedEvent;
-}
-
-////////////////////
-// Socket
-////////////////////
-declare namespace chrome.socket {
- interface CreateInfo {
- socketId: number;
- }
-
- interface AcceptInfo {
- resultCode: number;
- socketId?: number;
- }
-
- interface ReadInfo {
- resultCode: number;
- data: ArrayBuffer;
- }
-
- interface WriteInfo {
- bytesWritten: number;
- }
-
- interface RecvFromInfo {
- resultCode: number;
- data: ArrayBuffer;
- port: number;
- address: string;
- }
-
- interface SocketInfo {
- socketType: string;
- localPort?: number;
- peerAddress?: string;
- peerPort?: number;
- localAddress?: string;
- connected: boolean;
- }
-
- interface NetworkInterface {
- name: string;
- address: string;
- }
-
- export function create(type: string, options?: Object, callback?: (createInfo: CreateInfo) => void): void;
- export function destroy(socketId: number): void;
- export function connect(socketId: number, hostname: string, port: number, callback: (result: number) => void): void;
- export function bind(socketId: number, address: string, port: number, callback: (result: number) => void): void;
- export function disconnect(socketId: number): void;
- export function read(socketId: number, bufferSize?: number, callback?: (readInfo: ReadInfo) => void): void;
- export function write(socketId: number, data: ArrayBuffer, callback?: (writeInfo: WriteInfo) => void): void;
- export function recvFrom(socketId: number, bufferSize?: number, callback?: (recvFromInfo: RecvFromInfo) => void): void;
- export function sendTo(socketId: number, data: ArrayBuffer, address: string, port: number, callback?: (writeInfo: WriteInfo) => void): void;
- export function listen(socketId: number, address: string, port: number, backlog?: number, callback?: (result: number) => void): void;
- export function accept(socketId: number, callback?: (acceptInfo: AcceptInfo) => void): void;
- export function setKeepAlive(socketId: number, enable: boolean, delay?: number, callback?: (result: boolean) => void): void;
- export function setNoDelay(socketId: number, noDelay: boolean, callback?: (result: boolean) => void): void;
- export function getInfo(socketId: number, callback: (result: SocketInfo) => void): void;
- export function getNetworkList(callback: (result: NetworkInterface[]) => void): void;
-}
-
-////////////////////
-// System CPU
-////////////////////
-/**
- * Use the system.cpu API to query CPU metadata.
- * Permissions: "system.cpu"
- * @since Chrome 32.
- */
-declare namespace chrome.system.cpu {
- interface ProcessorUsage {
- /** The cumulative time used by userspace programs on this processor. */
- user: number;
- /** The cumulative time used by kernel programs on this processor. */
- kernel: number;
- /** The cumulative time spent idle by this processor. */
- idle: number;
- /** The total cumulative time for this processor. This value is equal to user + kernel + idle. */
- total: number;
- }
-
- interface ProcessorInfo {
- /** Cumulative usage info for this logical processor. */
- usage: ProcessorUsage;
- }
-
- interface CpuInfo {
- /** The number of logical processors. */
- numOfProcessors: number;
- /** The architecture name of the processors. */
- archName: string;
- /** The model name of the processors. */
- modelName: string;
- /**
- * A set of feature codes indicating some of the processor's capabilities.
- * The currently supported codes are "mmx", "sse", "sse2", "sse3", "ssse3", "sse4_1", "sse4_2", and "avx".
- */
- features: string[];
- /** Information about each logical processor. */
- processors: ProcessorInfo[];
- }
-
- /** Queries basic CPU information of the system. */
- export function getInfo(callback: (info: CpuInfo) => void): void;
-}
-
-////////////////////
-// System Memory
-////////////////////
-/**
- * The chrome.system.memory API.
- * Permissions: "system.memory"
- * @since Chrome 32.
- */
-declare namespace chrome.system.memory {
- interface MemoryInfo {
- /** The total amount of physical memory capacity, in bytes. */
- capacity: number;
- /** The amount of available capacity, in bytes. */
- availableCapacity: number;
- }
-
- /** Get physical memory information. */
- export function getInfo(callback: (info: MemoryInfo) => void): void;
-}
-
-////////////////////
-// System Storage
-////////////////////
-/**
- * Use the chrome.system.storage API to query storage device information and be notified when a removable storage device is attached and detached.
- * Permissions: "system.storage"
- * @since Chrome 30.
- */
-declare namespace chrome.system.storage {
- interface StorageUnitInfo {
- /** The transient ID that uniquely identifies the storage device. This ID will be persistent within the same run of a single application. It will not be a persistent identifier between different runs of an application, or between different applications. */
- id: string;
- /** The name of the storage unit. */
- name: string;
- /**
- * The media type of the storage unit.
- * fixed: The storage has fixed media, e.g. hard disk or SSD.
- * removable: The storage is removable, e.g. USB flash drive.
- * unknown: The storage type is unknown.
- */
- type: string;
- /** The total amount of the storage space, in bytes. */
- capacity: number;
- }
-
- interface StorageCapacityInfo {
- /** A copied |id| of getAvailableCapacity function parameter |id|. */
- id: string;
- /** The available capacity of the storage device, in bytes. */
- availableCapacity: number;
- }
-
- interface SystemStorageAttachedEvent extends chrome.events.Event<(info: StorageUnitInfo) => void> {}
-
- interface SystemStorageDetachedEvent extends chrome.events.Event<(id: string) => void> {}
-
- /** Get the storage information from the system. The argument passed to the callback is an array of StorageUnitInfo objects. */
- export function getInfo(callback: (info: StorageUnitInfo[]) => void): void;
- /**
- * Ejects a removable storage device.
- * @param callback
- * Parameter result: success: The ejection command is successful -- the application can prompt the user to remove the device; in_use: The device is in use by another application. The ejection did not succeed; the user should not remove the device until the other application is done with the device; no_such_device: There is no such device known. failure: The ejection command failed.
- */
- export function ejectDevice(id: string, callback: (result: string) => void): void;
- /**
- * Get the available capacity of a specified |id| storage device. The |id| is the transient device ID from StorageUnitInfo.
- * @since Dev channel only.
- */
- export function getAvailableCapacity(id: string, callback: (info: StorageCapacityInfo) => void): void;
-
- /** Fired when a new removable storage is attached to the system. */
- export var onAttached: SystemStorageAttachedEvent;
- /** Fired when a removable storage is detached from the system. */
- export var onDetached: SystemStorageDetachedEvent;
-}
-
-////////////////////
-// TabCapture
-////////////////////
-/**
- * Use the chrome.tabCapture API to interact with tab media streams.
- * Permissions: "tabCapture"
- * @since Chrome 31.
- */
-declare namespace chrome.tabCapture {
- interface CaptureInfo {
- /** The id of the tab whose status changed. */
- tabId: number;
- /**
- * The new capture status of the tab.
- * One of: "pending", "active", "stopped", or "error"
- */
- status: string;
- /** Whether an element in the tab being captured is in fullscreen mode. */
- fullscreen: boolean;
- }
-
- interface CaptureOptions {
- /** Optional. */
- audio?: boolean;
- /** Optional. */
- video?: boolean;
- /** Optional. */
- audioConstraints?: MediaStreamConstraints;
- /** Optional. */
- videoConstraints?: MediaStreamConstraints;
- }
-
- interface CaptureStatusChangedEvent extends chrome.events.Event<(info: CaptureInfo) => void> {}
-
- /**
- * Captures the visible area of the currently active tab. Capture can only be started on the currently active tab after the extension has been invoked. Capture is maintained across page navigations within the tab, and stops when the tab is closed, or the media stream is closed by the extension.
- * @param options Configures the returned media stream.
- * @param callback Callback with either the tab capture stream or null.
- */
- export function capture(options: CaptureOptions, callback: (stream: MediaStream) => void): void;
- /**
- * Returns a list of tabs that have requested capture or are being captured, i.e. status != stopped and status != error. This allows extensions to inform the user that there is an existing tab capture that would prevent a new tab capture from succeeding (or to prevent redundant requests for the same tab).
- * @param callback Callback invoked with CaptureInfo[] for captured tabs.
- */
- export function getCapturedTabs(callback: (result: CaptureInfo[]) => void): void;
-
- /** Event fired when the capture status of a tab changes. This allows extension authors to keep track of the capture status of tabs to keep UI elements like page actions in sync. */
- var onStatusChanged: CaptureStatusChangedEvent;
-}
-
-////////////////////
-// Tabs
-////////////////////
-/**
- * Use the chrome.tabs API to interact with the browser's tab system. You can use this API to create, modify, and rearrange tabs in the browser.
- * Permissions: The majority of the chrome.tabs API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab.
- * @since Chrome 5.
- */
-declare namespace chrome.tabs {
- /**
- * Tab muted state and the reason for the last state change.
- * @since Chrome 46. Warning: this is the current Beta channel.
- */
- interface MutedInfo {
- /** Whether the tab is prevented from playing sound (but hasn't necessarily recently produced sound). Equivalent to whether the muted audio indicator is showing. */
- muted: boolean;
- /**
- * Optional.
- * The reason the tab was muted or unmuted. Not set if the tab's mute state has never been changed.
- * "user": A user input action has set/overridden the muted state.
- * "capture": Tab capture started, forcing a muted state change.
- * "extension": An extension, identified by the extensionId field, set the muted state.
- */
- reason?: string;
- /**
- * Optional.
- * The ID of the extension that changed the muted state. Not set if an extension was not the reason the muted state last changed.
- */
- extensionId?: string;
- }
-
- interface Tab {
- /**
- * Optional.
- * Either loading or complete.
- */
- status?: string;
- /** The zero-based index of the tab within its window. */
- index: number;
- /**
- * Optional.
- * The ID of the tab that opened this tab, if any. This property is only present if the opener tab still exists.
- * @since Chrome 18.
- */
- openerTabId?: number;
- /**
- * Optional.
- * The title of the tab. This property is only present if the extension's manifest includes the "tabs" permission.
- */
- title?: string;
- /**
- * Optional.
- * The URL the tab is displaying. This property is only present if the extension's manifest includes the "tabs" permission.
- */
- url?: string;
- /**
- * Whether the tab is pinned.
- * @since Chrome 9.
- */
- pinned: boolean;
- /**
- * Whether the tab is highlighted.
- * @since Chrome 16.
- */
- highlighted: boolean;
- /** The ID of the window the tab is contained within. */
- windowId: number;
- /**
- * Whether the tab is active in its window. (Does not necessarily mean the window is focused.)
- * @since Chrome 16.
- */
- active: boolean;
- /**
- * Optional.
- * The URL of the tab's favicon. This property is only present if the extension's manifest includes the "tabs" permission. It may also be an empty string if the tab is loading.
- */
- favIconUrl?: string;
- /**
- * Optional.
- * The ID of the tab. Tab IDs are unique within a browser session. Under some circumstances a Tab may not be assigned an ID, for example when querying foreign tabs using the sessions API, in which case a session ID may be present. Tab ID can also be set to chrome.tabs.TAB_ID_NONE for apps and devtools windows.
- */
- id?: number;
- /** Whether the tab is in an incognito window. */
- incognito: boolean;
- /**
- * Whether the tab is selected.
- * @deprecated since Chrome 33. Please use tabs.Tab.highlighted.
- */
- selected: boolean;
- /**
- * Optional.
- * Whether the tab has produced sound over the past couple of seconds (but it might not be heard if also muted). Equivalent to whether the speaker audio indicator is showing.
- * @since Chrome 45.
- */
- audible?: boolean;
- /**
- * Optional.
- * Current tab muted state and the reason for the last state change.
- * @since Chrome 46. Warning: this is the current Beta channel.
- */
- mutedInfo?: MutedInfo;
- /**
- * Optional. The width of the tab in pixels.
- * @since Chrome 31.
- */
- width?: number;
- /**
- * Optional. The height of the tab in pixels.
- * @since Chrome 31.
- */
- height?: number;
- /**
- * Optional. The session ID used to uniquely identify a Tab obtained from the sessions API.
- * @since Chrome 31.
- */
- sessionId?: string;
- }
-
- /**
- * Defines how zoom changes in a tab are handled and at what scope.
- * @since Chrome 38.
- */
- interface ZoomSettings {
- /**
- * Optional.
- * Defines how zoom changes are handled, i.e. which entity is responsible for the actual scaling of the page; defaults to "automatic".
- * "automatic": Zoom changes are handled automatically by the browser.
- * "manual": Overrides the automatic handling of zoom changes. The onZoomChange event will still be dispatched, and it is the responsibility of the extension to listen for this event and manually scale the page. This mode does not support per-origin zooming, and will thus ignore the scope zoom setting and assume per-tab.
- * "disabled": Disables all zooming in the tab. The tab will revert to the default zoom level, and all attempted zoom changes will be ignored.
- */
- mode?: string;
- /**
- * Optional.
- * Defines whether zoom changes will persist for the page's origin, or only take effect in this tab; defaults to per-origin when in automatic mode, and per-tab otherwise.
- * "per-origin": Zoom changes will persist in the zoomed page's origin, i.e. all other tabs navigated to that same origin will be zoomed as well. Moreover, per-origin zoom changes are saved with the origin, meaning that when navigating to other pages in the same origin, they will all be zoomed to the same zoom factor. The per-origin scope is only available in the automatic mode.
- * "per-tab": Zoom changes only take effect in this tab, and zoom changes in other tabs will not affect the zooming of this tab. Also, per-tab zoom changes are reset on navigation; navigating a tab will always load pages with their per-origin zoom factors.
- */
- scope?: string;
- /**
- * Optional.
- * Used to return the default zoom level for the current tab in calls to tabs.getZoomSettings.
- * @since Chrome 43.
- */
- defaultZoomFactor?: number;
- }
-
- interface InjectDetails {
- /**
- * Optional.
- * If allFrames is true, implies that the JavaScript or CSS should be injected into all frames of current page. By default, it's false and is only injected into the top frame.
- */
- allFrames?: boolean;
- /**
- * Optional. JavaScript or CSS code to inject.
- * Warning: Be careful using the code parameter. Incorrect use of it may open your extension to cross site scripting attacks.
- */
- code?: string;
- /**
- * Optional. The soonest that the JavaScript or CSS will be injected into the tab.
- * One of: "document_start", "document_end", or "document_idle"
- * @since Chrome 20.
- */
- runAt?: string;
- /** Optional. JavaScript or CSS file to inject. */
- file?: string;
- /**
- * Optional.
- * If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Code cannot be inserted in top-level about:-frames. By default it is false.
- * @since Chrome 39.
- */
- matchAboutBlank?: boolean;
- }
-
- interface CreateProperties {
- /** Optional. The position the tab should take in the window. The provided value will be clamped to between zero and the number of tabs in the window. */
- index?: number;
- /**
- * Optional.
- * The ID of the tab that opened this tab. If specified, the opener tab must be in the same window as the newly created tab.
- * @since Chrome 18.
- */
- openerTabId?: number;
- /**
- * Optional.
- * The URL to navigate the tab to initially. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.
- */
- url?: string;
- /**
- * Optional. Whether the tab should be pinned. Defaults to false
- * @since Chrome 9.
- */
- pinned?: boolean;
- /** Optional. The window to create the new tab in. Defaults to the current window. */
- windowId?: number;
- /**
- * Optional.
- * Whether the tab should become the active tab in the window. Does not affect whether the window is focused (see windows.update). Defaults to true.
- * @since Chrome 16.
- */
- active?: boolean;
- /**
- * Optional. Whether the tab should become the selected tab in the window. Defaults to true
- * @deprecated since Chrome 33. Please use active.
- */
- selected?: boolean;
- }
-
- interface MoveProperties {
- /** The position to move the window to. -1 will place the tab at the end of the window. */
- index: number;
- /** Optional. Defaults to the window the tab is currently in. */
- windowId?: number;
- }
-
- interface UpdateProperties {
- /**
- * Optional. Whether the tab should be pinned.
- * @since Chrome 9.
- */
- pinned?: boolean;
- /**
- * Optional. The ID of the tab that opened this tab. If specified, the opener tab must be in the same window as this tab.
- * @since Chrome 18.
- */
- openerTabId?: number;
- /** Optional. A URL to navigate the tab to. */
- url?: string;
- /**
- * Optional. Adds or removes the tab from the current selection.
- * @since Chrome 16.
- */
- highlighted?: boolean;
- /**
- * Optional. Whether the tab should be active. Does not affect whether the window is focused (see windows.update).
- * @since Chrome 16.
- */
- active?: boolean;
- /**
- * Optional. Whether the tab should be selected.
- * @deprecated since Chrome 33. Please use highlighted.
- */
- selected?: boolean;
- /**
- * Optional. Whether the tab should be muted.
- * @since Chrome 45.
- */
- muted?: boolean;
- }
-
- interface CaptureVisibleTabOptions {
- /**
- * Optional.
- * When format is "jpeg", controls the quality of the resulting image. This value is ignored for PNG images. As quality is decreased, the resulting image will have more visual artifacts, and the number of bytes needed to store it will decrease.
- */
- quality?: number;
- /**
- * Optional. The format of an image.
- * One of: "jpeg", or "png"
- */
- format?: string;
- }
-
- interface ReloadProperties {
- /** Optional. Whether using any local cache. Default is false. */
- bypassCache?: boolean;
- }
-
- interface ConnectInfo {
- /** Optional. Will be passed into onConnect for content scripts that are listening for the connection event. */
- name?: string;
- /**
- * Open a port to a specific frame identified by frameId instead of all frames in the tab.
- * @since Chrome 41.
- */
- frameId?: number;
- }
-
- interface MessageSendOptions {
- /** Optional. Send a message to a specific frame identified by frameId instead of all frames in the tab. */
- frameId?: number;
- }
-
- interface HighlightInfo {
- /** One or more tab indices to highlight. */
- tabs: number | number[];
- /** Optional. The window that contains the tabs. */
- windowId?: number;
- }
-
- interface QueryInfo {
- /**
- * Optional. Whether the tabs have completed loading.
- * One of: "loading", or "complete"
- */
- status?: string;
- /**
- * Optional. Whether the tabs are in the last focused window.
- * @since Chrome 19.
- */
- lastFocusedWindow?: boolean;
- /** Optional. The ID of the parent window, or windows.WINDOW_ID_CURRENT for the current window. */
- windowId?: number;
- /**
- * Optional. The type of window the tabs are in.
- * One of: "normal", "popup", "panel", "app", or "devtools"
- */
- windowType?: string;
- /** Optional. Whether the tabs are active in their windows. */
- active?: boolean;
- /**
- * Optional. The position of the tabs within their windows.
- * @since Chrome 18.
- */
- index?: number;
- /** Optional. Match page titles against a pattern. */
- title?: string;
- /** Optional. Match tabs against one or more URL patterns. Note that fragment identifiers are not matched. */
- url?: string | string[];
- /**
- * Optional. Whether the tabs are in the current window.
- * @since Chrome 19.
- */
- currentWindow?: boolean;
- /** Optional. Whether the tabs are highlighted. */
- highlighted?: boolean;
- /** Optional. Whether the tabs are pinned. */
- pinned?: boolean;
- /**
- * Optional. Whether the tabs are audible.
- * @since Chrome 45.
- */
- audible?: boolean;
- /**
- * Optional. Whether the tabs are muted.
- * @since Chrome 45.
- */
- muted?: boolean;
- }
-
- interface TabHighlightInfo {
- windowId: number;
- tabIds: number[];
- }
-
- interface TabRemoveInfo {
- /**
- * The window whose tab is closed.
- * @since Chrome 25.
- */
- windowId: number;
- /** True when the tab is being closed because its window is being closed. */
- isWindowClosing: boolean;
- }
-
- interface TabAttachInfo {
- newPosition: number;
- newWindowId: number;
- }
-
- interface TabChangeInfo {
- /** Optional. The status of the tab. Can be either loading or complete. */
- status?: string;
- /**
- * The tab's new pinned state.
- * @since Chrome 9.
- */
- pinned?: boolean;
- /** Optional. The tab's URL if it has changed. */
- url?: string;
- /**
- * The tab's new audible state.
- * @since Chrome 45.
- */
- audible?: boolean;
- /**
- * The tab's new muted state and the reason for the change.
- * @since Chrome 46. Warning: this is the current Beta channel.
- */
- mutedInfo?: MutedInfo;
- /**
- * The tab's new favicon URL.
- * @since Chrome 27.
- */
- favIconUrl?: string;
- /**
- * The tab's new title.
- * @since Chrome 48.
- */
- title?: string;
- }
-
- interface TabMoveInfo {
- toIndex: number;
- windowId: number;
- fromIndex: number;
- }
-
- interface TabDetachInfo {
- oldWindowId: number;
- oldPosition: number;
- }
-
- interface TabActiveInfo {
- /** The ID of the tab that has become active. */
- tabId: number;
- /** The ID of the window the active tab changed inside of. */
- windowId: number;
- }
-
- interface TabWindowInfo {
- /** The ID of the window of where the tab is located. */
- windowId: number;
- }
-
- interface ZoomChangeInfo {
- tabId: number;
- oldZoomFactor: number;
- newZoomFactor: number;
- zoomSettings: ZoomSettings;
- }
-
- interface TabHighlightedEvent extends chrome.events.Event<(highlightInfo: HighlightInfo) => void> {}
-
- interface TabRemovedEvent extends chrome.events.Event<(tabId: number, removeInfo: TabRemoveInfo) => void> {}
-
- interface TabUpdatedEvent extends chrome.events.Event<(tabId: number, changeInfo: TabChangeInfo, tab: Tab) => void> {}
-
- interface TabAttachedEvent extends chrome.events.Event<(tabId: number, attachInfo: TabAttachInfo) => void> {}
-
- interface TabMovedEvent extends chrome.events.Event<(tabId: number, moveInfo: TabMoveInfo) => void> {}
-
- interface TabDetachedEvent extends chrome.events.Event<(tabId: number, detachInfo: TabDetachInfo) => void> {}
-
- interface TabCreatedEvent extends chrome.events.Event<(tab: Tab) => void> {}
-
- interface TabActivatedEvent extends chrome.events.Event<(activeInfo: TabActiveInfo) => void> {}
-
- interface TabReplacedEvent extends chrome.events.Event<(addedTabId: number, removedTabId: number) => void> {}
-
- interface TabSelectedEvent extends chrome.events.Event<(tabId: number, selectInfo: TabWindowInfo) => void> {}
-
- interface TabZoomChangeEvent extends chrome.events.Event<(ZoomChangeInfo: ZoomChangeInfo) => void> {}
-
- /**
- * Injects JavaScript code into a page. For details, see the programmatic injection section of the content scripts doc.
- * @param details Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.
- * @param callback Optional. Called after all the JavaScript has been executed.
- * Parameter result: The result of the script in every injected frame.
- */
- export function executeScript(details: InjectDetails, callback?: (result: any[]) => void): void;
- /**
- * Injects JavaScript code into a page. For details, see the programmatic injection section of the content scripts doc.
- * @param tabId Optional. The ID of the tab in which to run the script; defaults to the active tab of the current window.
- * @param details Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.
- * @param callback Optional. Called after all the JavaScript has been executed.
- * Parameter result: The result of the script in every injected frame.
- */
- export function executeScript(tabId: number, details: InjectDetails, callback?: (result: any[]) => void): void;
- /** Retrieves details about the specified tab. */
- export function get(tabId: number, callback: (tab: Tab) => void): void;
- /**
- * Gets details about all tabs in the specified window.
- * @deprecated since Chrome 33. Please use tabs.query {windowId: windowId}.
- */
- export function getAllInWindow(callback: (tab: Tab) => void): void;
- /**
- * Gets details about all tabs in the specified window.
- * @deprecated since Chrome 33. Please use tabs.query {windowId: windowId}.
- * @param windowId Optional. Defaults to the current window.
- */
- export function getAllInWindow(windowId: number, callback: (tab: Tab) => void): void;
- /** Gets the tab that this script call is being made from. May be undefined if called from a non-tab context (for example: a background page or popup view). */
- export function getCurrent(callback: (tab?: Tab) => void): void;
- /**
- * Gets the tab that is selected in the specified window.
- * @deprecated since Chrome 33. Please use tabs.query {active: true}.
- */
- export function getSelected(callback: (tab: Tab) => void): void;
- /**
- * Gets the tab that is selected in the specified window.
- * @deprecated since Chrome 33. Please use tabs.query {active: true}.
- * @param windowId Optional. Defaults to the current window.
- */
- export function getSelected(windowId: number, callback: (tab: Tab) => void): void;
- /**
- * Creates a new tab.
- * @param callback Optional.
- * Parameter tab: Details about the created tab. Will contain the ID of the new tab.
- */
- export function create(createProperties: CreateProperties, callback?: (tab: Tab) => void): void;
- /**
- * Moves one or more tabs to a new position within its window, or to a new window. Note that tabs can only be moved to and from normal (window.type === "normal") windows.
- * @param tabId The tab to move.
- * @param callback Optional.
- * Parameter tab: Details about the moved tab.
- */
- export function move(tabId: number, moveProperties: MoveProperties, callback?: (tab: Tab) => void): void;
- /**
- * Moves one or more tabs to a new position within its window, or to a new window. Note that tabs can only be moved to and from normal (window.type === "normal") windows.
- * @param tabIds The tabs to move.
- * @param callback Optional.
- * Parameter tabs: Details about the moved tabs.
- */
- export function move(tabIds: number[], moveProperties: MoveProperties, callback?: (tabs: Tab[]) => void): void;
- /**
- * Modifies the properties of a tab. Properties that are not specified in updateProperties are not modified.
- * @param callback Optional.
- * Optional parameter tab: Details about the updated tab. The tabs.Tab object doesn't contain url, title and favIconUrl if the "tabs" permission has not been requested.
- */
- export function update(updateProperties: UpdateProperties, callback?: (tab?: Tab) => void): void;
- /**
- * Modifies the properties of a tab. Properties that are not specified in updateProperties are not modified.
- * @param tabId Defaults to the selected tab of the current window.
- * @param callback Optional.
- * Optional parameter tab: Details about the updated tab. The tabs.Tab object doesn't contain url, title and favIconUrl if the "tabs" permission has not been requested.
- */
- export function update(tabId: number, updateProperties: UpdateProperties, callback?: (tab?: Tab) => void): void;
- /**
- * Closes a tab.
- * @param tabId The tab to close.
- */
- export function remove(tabId: number, callback?: Function): void;
- /**
- * Closes several tabs.
- * @param tabIds The list of tabs to close.
- */
- export function remove(tabIds: number[], callback?: Function): void;
- /**
- * Captures the visible area of the currently active tab in the specified window. You must have <all_urls> permission to use this method.
- * @param callback
- * Parameter dataUrl: A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display.
- */
- export function captureVisibleTab(callback: (dataUrl: string) => void): void;
- /**
- * Captures the visible area of the currently active tab in the specified window. You must have <all_urls> permission to use this method.
- * @param windowId Optional. The target window. Defaults to the current window.
- * @param callback
- * Parameter dataUrl: A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display.
- */
- export function captureVisibleTab(windowId: number, callback: (dataUrl: string) => void): void;
- /**
- * Captures the visible area of the currently active tab in the specified window. You must have <all_urls> permission to use this method.
- * @param options Optional. Details about the format and quality of an image.
- * @param callback
- * Parameter dataUrl: A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display.
- */
- export function captureVisibleTab(options: CaptureVisibleTabOptions, callback: (dataUrl: string) => void): void;
- /**
- * Captures the visible area of the currently active tab in the specified window. You must have <all_urls> permission to use this method.
- * @param windowId Optional. The target window. Defaults to the current window.
- * @param options Optional. Details about the format and quality of an image.
- * @param callback
- * Parameter dataUrl: A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display.
- */
- export function captureVisibleTab(windowId: number, options: CaptureVisibleTabOptions, callback: (dataUrl: string) => void): void;
- /**
- * Reload a tab.
- * @since Chrome 16.
- * @param tabId The ID of the tab to reload; defaults to the selected tab of the current window.
- */
- export function reload(tabId: number, reloadProperties?: ReloadProperties, callback?: () => void): void;
- /**
- * Reload the selected tab of the current window.
- * @since Chrome 16.
- */
- export function reload(reloadProperties: ReloadProperties, callback?: () => void): void;
- /**
- * Reload the selected tab of the current window.
- * @since Chrome 16.
- */
- export function reload(callback?: () => void): void;
- /**
- * Duplicates a tab.
- * @since Chrome 23.
- * @param tabId The ID of the tab which is to be duplicated.
- * @param callback Optional.
- * Optional parameter tab: Details about the duplicated tab. The tabs.Tab object doesn't contain url, title and favIconUrl if the "tabs" permission has not been requested.
- */
- export function duplicate(tabId: number, callback?: (tab?: Tab) => void): void;
- /**
- * Sends a single message to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The runtime.onMessage event is fired in each content script running in the specified tab for the current extension.
- * @since Chrome 20.
- */
- export function sendMessage(tabId: number, message: any, responseCallback?: (response: any) => void): void;
- /**
- * Sends a single message to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The runtime.onMessage event is fired in each content script running in the specified tab for the current extension.
- * @since Chrome 41.
- * @param responseCallback Optional.
- * Parameter response: The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendMessage(tabId: number, message: any, options: MessageSendOptions, responseCallback?: (response: any) => void): void;
- /**
- * Sends a single request to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The extension.onRequest event is fired in each content script running in the specified tab for the current extension.
- * @deprecated since Chrome 33. Please use runtime.sendMessage.
- * @param responseCallback Optional.
- * Parameter response: The JSON response object sent by the handler of the request. If an error occurs while connecting to the specified tab, the callback will be called with no arguments and runtime.lastError will be set to the error message.
- */
- export function sendRequest(tabId: number, request: any, responseCallback?: (response: any) => void): void;
- /** Connects to the content script(s) in the specified tab. The runtime.onConnect event is fired in each content script running in the specified tab for the current extension. */
- export function connect(tabId: number, connectInfo?: ConnectInfo): runtime.Port;
- /**
- * Injects CSS into a page. For details, see the programmatic injection section of the content scripts doc.
- * @param details Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.
- * @param callback Optional. Called when all the CSS has been inserted.
- */
- export function insertCSS(details: InjectDetails, callback?: Function): void;
- /**
- * Injects CSS into a page. For details, see the programmatic injection section of the content scripts doc.
- * @param tabId Optional. The ID of the tab in which to insert the CSS; defaults to the active tab of the current window.
- * @param details Details of the script or CSS to inject. Either the code or the file property must be set, but both may not be set at the same time.
- * @param callback Optional. Called when all the CSS has been inserted.
- */
- export function insertCSS(tabId: number, details: InjectDetails, callback?: Function): void;
- /**
- * Highlights the given tabs.
- * @since Chrome 16.
- * @param callback Optional.
- * Parameter window: Contains details about the window whose tabs were highlighted.
- */
- export function highlight(highlightInfo: HighlightInfo, callback: (window: chrome.windows.Window) => void): void;
- /**
- * Gets all tabs that have the specified properties, or all tabs if no properties are specified.
- * @since Chrome 16.
- */
- export function query(queryInfo: QueryInfo, callback: (result: Tab[]) => void): void;
- /**
- * Detects the primary language of the content in a tab.
- * @param callback
- * Parameter language: An ISO language code such as en or fr. For a complete list of languages supported by this method, see kLanguageInfoTable. The 2nd to 4th columns will be checked and the first non-NULL value will be returned except for Simplified Chinese for which zh-CN will be returned. For an unknown language, und will be returned.
- */
- export function detectLanguage(callback: (language: string) => void): void;
- /**
- * Detects the primary language of the content in a tab.
- * @param tabId Optional. Defaults to the active tab of the current window.
- * @param callback
- * Parameter language: An ISO language code such as en or fr. For a complete list of languages supported by this method, see kLanguageInfoTable. The 2nd to 4th columns will be checked and the first non-NULL value will be returned except for Simplified Chinese for which zh-CN will be returned. For an unknown language, und will be returned.
- */
- export function detectLanguage(tabId: number, callback: (language: string) => void): void;
- /**
- * Zooms a specified tab.
- * @since Chrome 42.
- * @param zoomFactor The new zoom factor. Use a value of 0 here to set the tab to its current default zoom factor. Values greater than zero specify a (possibly non-default) zoom factor for the tab.
- * @param callback Optional. Called after the zoom factor has been changed.
- */
- export function setZoom(zoomFactor: number, callback?: () => void): void;
- /**
- * Zooms a specified tab.
- * @since Chrome 42.
- * @param tabId Optional. The ID of the tab to zoom; defaults to the active tab of the current window.
- * @param zoomFactor The new zoom factor. Use a value of 0 here to set the tab to its current default zoom factor. Values greater than zero specify a (possibly non-default) zoom factor for the tab.
- * @param callback Optional. Called after the zoom factor has been changed.
- */
- export function setZoom(tabId: number, zoomFactor: number, callback?: () => void): void;
- /**
- * Gets the current zoom factor of a specified tab.
- * @since Chrome 42.
- * @param callback Called with the tab's current zoom factor after it has been fetched.
- * Parameter zoomFactor: The tab's current zoom factor.
- */
- export function getZoom(callback: (zoomFactor: number) => void): void;
- /**
- * Gets the current zoom factor of a specified tab.
- * @since Chrome 42.
- * @param tabId Optional. The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window.
- * @param callback Called with the tab's current zoom factor after it has been fetched.
- * Parameter zoomFactor: The tab's current zoom factor.
- */
- export function getZoom(tabId: number, callback: (zoomFactor: number) => void): void;
- /**
- * Sets the zoom settings for a specified tab, which define how zoom changes are handled. These settings are reset to defaults upon navigating the tab.
- * @since Chrome 42.
- * @param zoomSettings Defines how zoom changes are handled and at what scope.
- * @param callback Optional. Called after the zoom settings have been changed.
- */
- export function setZoomSettings(zoomSettings: ZoomSettings, callback?: () => void): void;
- /**
- * Sets the zoom settings for a specified tab, which define how zoom changes are handled. These settings are reset to defaults upon navigating the tab.
- * @since Chrome 42.
- * @param tabId Optional. The ID of the tab to change the zoom settings for; defaults to the active tab of the current window.
- * @param zoomSettings Defines how zoom changes are handled and at what scope.
- * @param callback Optional. Called after the zoom settings have been changed.
- */
- export function setZoomSettings(tabId: number, zoomSettings: ZoomSettings, callback?: () => void): void;
- /**
- * Gets the current zoom settings of a specified tab.
- * @since Chrome 42.
- * @param callback Called with the tab's current zoom settings.
- * Paramater zoomSettings: The tab's current zoom settings.
- */
- export function getZoomSettings(callback: (zoomSettings: ZoomSettings) => void): void;
- /**
- * Gets the current zoom settings of a specified tab.
- * @since Chrome 42.
- * @param tabId Optional. The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
- * @param callback Called with the tab's current zoom settings.
- * Paramater zoomSettings: The tab's current zoom settings.
- */
- export function getZoomSettings(tabId: number, callback: (zoomSettings: ZoomSettings) => void): void;
-
- /**
- * Fired when the highlighted or selected tabs in a window changes.
- * @since Chrome 18.
- */
- var onHighlighted: TabHighlightedEvent;
- /** Fired when a tab is closed. */
- var onRemoved: TabRemovedEvent;
- /** Fired when a tab is updated. */
- var onUpdated: TabUpdatedEvent;
- /** Fired when a tab is attached to a window, for example because it was moved between windows. */
- var onAttached: TabAttachedEvent;
- /**
- * Fired when a tab is moved within a window. Only one move event is fired, representing the tab the user directly moved. Move events are not fired for the other tabs that must move in response. This event is not fired when a tab is moved between windows. For that, see tabs.onDetached.
- */
- var onMoved: TabMovedEvent;
- /** Fired when a tab is detached from a window, for example because it is being moved between windows. */
- var onDetached: TabDetachedEvent;
- /** Fired when a tab is created. Note that the tab's URL may not be set at the time this event fired, but you can listen to onUpdated events to be notified when a URL is set. */
- var onCreated: TabCreatedEvent;
- /**
- * Fires when the active tab in a window changes. Note that the tab's URL may not be set at the time this event fired, but you can listen to onUpdated events to be notified when a URL is set.
- * @since Chrome 18.
- */
- var onActivated: TabActivatedEvent;
- /**
- * Fired when a tab is replaced with another tab due to prerendering or instant.
- * @since Chrome 26.
- */
- var onReplaced: TabReplacedEvent;
- /**
- * @deprecated since Chrome 33. Please use tabs.onActivated.
- * Fires when the selected tab in a window changes.
- */
- var onSelectionChanged: TabSelectedEvent;
- /**
- * @deprecated since Chrome 33. Please use tabs.onActivated.
- * Fires when the selected tab in a window changes. Note that the tab's URL may not be set at the time this event fired, but you can listen to tabs.onUpdated events to be notified when a URL is set.
- */
- var onActiveChanged: TabSelectedEvent;
- /**
- * @deprecated since Chrome 33. Please use tabs.onHighlighted.
- * Fired when the highlighted or selected tabs in a window changes.
- */
- var onHighlightChanged: TabHighlightedEvent;
- /**
- * Fired when a tab is zoomed.
- * @since Chrome 38.
- */
- var onZoomChange: TabZoomChangeEvent;
-}
-
-////////////////////
-// Top Sites
-////////////////////
-/**
- * Use the chrome.topSites API to access the top sites that are displayed on the new tab page.
- * Permissions: "topSites"
- * @since Chrome 19.
- */
-declare namespace chrome.topSites {
- /** An object encapsulating a most visited URL, such as the URLs on the new tab page. */
- interface MostVisitedURL {
- /** The most visited URL. */
- url: string;
- /** The title of the page */
- title: string;
- }
-
- /** Gets a list of top sites. */
- export function get(callback: (data: MostVisitedURL[]) => void): void;
-}
-
-////////////////////
-// Text to Speech
-////////////////////
-/**
- * Use the chrome.tts API to play synthesized text-to-speech (TTS). See also the related ttsEngine API, which allows an extension to implement a speech engine.
- * Permissions: "tts"
- * @since Chrome 14.
- */
-declare namespace chrome.tts {
- /** An event from the TTS engine to communicate the status of an utterance. */
- interface TtsEvent {
- /** Optional. The index of the current character in the utterance. */
- charIndex?: number;
- /** Optional. The error description, if the event type is 'error'. */
- errorMessage?: string;
- /**
- * The type can be 'start' as soon as speech has started, 'word' when a word boundary is reached, 'sentence' when a sentence boundary is reached, 'marker' when an SSML mark element is reached, 'end' when the end of the utterance is reached, 'interrupted' when the utterance is stopped or interrupted before reaching the end, 'cancelled' when it's removed from the queue before ever being synthesized, or 'error' when any other error occurs. When pausing speech, a 'pause' event is fired if a particular utterance is paused in the middle, and 'resume' if an utterance resumes speech. Note that pause and resume events may not fire if speech is paused in-between utterances.
- * One of: "start", "end", "word", "sentence", "marker", "interrupted", "cancelled", "error", "pause", or "resume"
- */
- type: string;
- }
-
- /** A description of a voice available for speech synthesis. */
- interface TtsVoice {
- /** Optional. The language that this voice supports, in the form language-region. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. */
- lang?: string;
- /**
- * Optional. This voice's gender.
- * One of: "male", or "female"
- */
- gender?: string;
- /** Optional. The name of the voice. */
- voiceName?: string;
- /** The ID of the extension providing this voice. */
- extensionsId?: string;
- /** All of the callback event types that this voice is capable of sending. */
- eventTypes?: string[];
- /**
- * If true, the synthesis engine is a remote network resource. It may be higher latency and may incur bandwidth costs.
- * @since Chrome 33.
- */
- remote?: boolean;
- }
-
- interface SpeakOptions {
- /** Optional. Speaking volume between 0 and 1 inclusive, with 0 being lowest and 1 being highest, with a default of 1.0. */
- volume?: number;
- /**
- * Optional.
- * If true, enqueues this utterance if TTS is already in progress. If false (the default), interrupts any current speech and flushes the speech queue before speaking this new utterance.
- */
- enqueue?: boolean;
- /**
- * Optional.
- * Speaking rate relative to the default rate for this voice. 1.0 is the default rate, normally around 180 to 220 words per minute. 2.0 is twice as fast, and 0.5 is half as fast. Values below 0.1 or above 10.0 are strictly disallowed, but many voices will constrain the minimum and maximum rates further—for example a particular voice may not actually speak faster than 3 times normal even if you specify a value larger than 3.0.
- */
- rate?: number;
- /**
- * Optional. This function is called with events that occur in the process of speaking the utterance.
- * @param event The update event from the text-to-speech engine indicating the status of this utterance.
- */
- onEvent?: (event: TtsEvent) => void;
- /**
- * Optional.
- * Speaking pitch between 0 and 2 inclusive, with 0 being lowest and 2 being highest. 1.0 corresponds to a voice's default pitch.
- */
- pitch?: number;
- /** Optional. The language to be used for synthesis, in the form language-region. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. */
- lang?: string;
- /** Optional. The name of the voice to use for synthesis. If empty, uses any available voice. */
- voiceName?: string;
- /** Optional. The extension ID of the speech engine to use, if known. */
- extensionId?: string;
- /**
- * Optional. Gender of voice for synthesized speech.
- * One of: "male", or "female"
- */
- gender?: string;
- /** Optional. The TTS event types the voice must support. */
- requiredEventTypes?: string[];
- /** Optional. The TTS event types that you are interested in listening to. If missing, all event types may be sent. */
- desiredEventTypes?: string[];
- }
-
- /** Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome. */
- export function isSpeaking(callback?: (speaking: boolean) => void): void;
- /** Stops any current speech and flushes the queue of any pending utterances. In addition, if speech was paused, it will now be un-paused for the next call to speak. */
- export function stop(): void;
- /** Gets an array of all available voices. */
- export function getVoices(callback?: (voices: TtsVoice[]) => void): void;
- /**
- * Speaks text using a text-to-speech engine.
- * @param utterance The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters.
- * @param callback Optional. Called right away, before speech finishes. Check chrome.runtime.lastError to make sure there were no errors. Use options.onEvent to get more detailed feedback.
- */
- export function speak(utterance: string, callback?: Function): void;
- /**
- * Speaks text using a text-to-speech engine.
- * @param utterance The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters.
- * @param options Optional. The speech options.
- * @param callback Optional. Called right away, before speech finishes. Check chrome.runtime.lastError to make sure there were no errors. Use options.onEvent to get more detailed feedback.
- */
- export function speak(utterance: string, options: SpeakOptions, callback?: Function): void;
- /**
- * Pauses speech synthesis, potentially in the middle of an utterance. A call to resume or stop will un-pause speech.
- * @since Chrome 29.
- */
- export function pause(): void;
- /**
- * If speech was paused, resumes speaking where it left off.
- * @since Chrome 29.
- */
- export function resume(): void;
-}
-
-////////////////////
-// Text to Speech Engine
-////////////////////
-/**
- * Use the chrome.ttsEngine API to implement a text-to-speech(TTS) engine using an extension. If your extension registers using this API, it will receive events containing an utterance to be spoken and other parameters when any extension or Chrome App uses the tts API to generate speech. Your extension can then use any available web technology to synthesize and output the speech, and send events back to the calling function to report the status.
- * Permissions: "ttsEngine"
- * @since Chrome 14.
- */
-declare namespace chrome.ttsEngine {
- interface SpeakOptions {
- /** Optional. The language to be used for synthesis, in the form language-region. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. */
- lang?: string;
- /** Optional. The name of the voice to use for synthesis. */
- voiceName?: string;
- /**
- * Optional. Gender of voice for synthesized speech.
- * One of: "male", or "female"
- */
- gender?: string;
- /** Optional. Speaking volume between 0 and 1 inclusive, with 0 being lowest and 1 being highest, with a default of 1.0. */
- volume?: number;
- /**
- * Optional.
- * Speaking rate relative to the default rate for this voice. 1.0 is the default rate, normally around 180 to 220 words per minute. 2.0 is twice as fast, and 0.5 is half as fast. This value is guaranteed to be between 0.1 and 10.0, inclusive. When a voice does not support this full range of rates, don't return an error. Instead, clip the rate to the range the voice supports.
- */
- rate?: number;
- /** Optional. Speaking pitch between 0 and 2 inclusive, with 0 being lowest and 2 being highest. 1.0 corresponds to this voice's default pitch. */
- pitch?: number;
- }
-
- interface TtsEngineSpeakEvent extends chrome.events.Event<(utterance: string, options: SpeakOptions, sendTtsEvent: (event: chrome.tts.TtsEvent) => void) => void> {}
-
- /** Called when the user makes a call to tts.speak() and one of the voices from this extension's manifest is the first to match the options object. */
- var onSpeak: TtsEngineSpeakEvent;
- /** Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error). If speech is in the paused state, this should cancel the paused state. */
- var onStop: chrome.events.Event<() => void>;
- /**
- * Optional: if an engine supports the pause event, it should pause the current utterance being spoken, if any, until it receives a resume event or stop event. Note that a stop event should also clear the paused state.
- * @since Chrome 29.
- */
- var onPause: chrome.events.Event<() => void>;
- /**
- * Optional: if an engine supports the pause event, it should also support the resume event, to continue speaking the current utterance, if any. Note that a stop event should also clear the paused state.
- * @since Chrome 29.
- */
- var onResume: chrome.events.Event<() => void>;
-}
-
-////////////////////
-// Types
-////////////////////
-/**
- * The chrome.types API contains type declarations for Chrome.
- * @since Chrome 13.
- */
-declare namespace chrome.types {
- interface ChromeSettingClearDetails {
- /**
- * Optional.
- * The scope of the ChromeSetting. One of
- * • regular: setting for the regular profile (which is inherited by the incognito profile if not overridden elsewhere),
- * • regular_only: setting for the regular profile only (not inherited by the incognito profile),
- * • incognito_persistent: setting for the incognito profile that survives browser restarts (overrides regular preferences),
- * • incognito_session_only: setting for the incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular and incognito_persistent preferences).
- */
- scope?: string;
- }
-
- interface ChromeSettingSetDetails extends ChromeSettingClearDetails {
- /**
- * The value of the setting.
- * Note that every setting has a specific value type, which is described together with the setting. An extension should not set a value of a different type.
- */
- value: any;
- /**
- * Optional.
- * The scope of the ChromeSetting. One of
- * • regular: setting for the regular profile (which is inherited by the incognito profile if not overridden elsewhere),
- * • regular_only: setting for the regular profile only (not inherited by the incognito profile),
- * • incognito_persistent: setting for the incognito profile that survives browser restarts (overrides regular preferences),
- * • incognito_session_only: setting for the incognito profile that can only be set during an incognito session and is deleted when the incognito session ends (overrides regular and incognito_persistent preferences).
- */
- scope?: string;
- }
-
- interface ChromeSettingGetDetails {
- /** Optional. Whether to return the value that applies to the incognito session (default false). */
- incognito?: boolean;
- }
-
- /**
- * @param details Details of the currently effective value.
- */
- type DetailsCallback = (details: ChromeSettingGetResultDetails) => void;
-
- interface ChromeSettingGetResultDetails {
- /**
- * One of
- * • not_controllable: cannot be controlled by any extension
- * • controlled_by_other_extensions: controlled by extensions with higher precedence
- * • controllable_by_this_extension: can be controlled by this extension
- * • controlled_by_this_extension: controlled by this extension
- */
- levelOfControl: string;
- /** The value of the setting. */
- value: any;
- /**
- * Optional.
- * Whether the effective value is specific to the incognito session.
- * This property will only be present if the incognito property in the details parameter of get() was true.
- */
- incognitoSpecific?: boolean;
- }
-
- interface ChromeSettingChangedEvent extends chrome.events.Event<DetailsCallback> {}
-
- /** An interface that allows access to a Chrome browser setting. See accessibilityFeatures for an example. */
- interface ChromeSetting {
- /**
- * Sets the value of a setting.
- * @param details Which setting to change.
- * @param callback Optional. Called at the completion of the set operation.
- */
- set(details: ChromeSettingSetDetails, callback?: Function): void;
- /**
- * Gets the value of a setting.
- * @param details Which setting to consider.
- */
- get(details: ChromeSettingGetDetails, callback?: DetailsCallback): void;
- /**
- * Clears the setting, restoring any default value.
- * @param details Which setting to clear.
- * @param callback Optional. Called at the completion of the clear operation.
- */
- clear(details: ChromeSettingClearDetails, callback?: Function): void;
- /** Fired after the setting changes. */
- onChange: ChromeSettingChangedEvent;
- }
-}
-
-////////////////////
-// VPN Provider
-////////////////////
-/**
- * Use the chrome.vpnProvider API to implement a VPN client.
- * Permissions: "vpnProvider"
- * Important: This API works only on Chrome OS.
- * @since Chrome 43.
- */
-declare namespace chrome.vpnProvider {
- interface VpnSessionParameters {
- /** IP address for the VPN interface in CIDR notation. IPv4 is currently the only supported mode. */
- address: string;
- /** Optional. Broadcast address for the VPN interface. (default: deduced from IP address and mask) */
- broadcastAddress?: string;
- /** Optional. MTU setting for the VPN interface. (default: 1500 bytes) */
- mtu?: string;
- /**
- * Exclude network traffic to the list of IP blocks in CIDR notation from the tunnel. This can be used to bypass traffic to and from the VPN server. When many rules match a destination, the rule with the longest matching prefix wins. Entries that correspond to the same CIDR block are treated as duplicates. Such duplicates in the collated (exclusionList + inclusionList) list are eliminated and the exact duplicate entry that will be eliminated is undefined.
- */
- exclusionList: string[];
- /**
- * Include network traffic to the list of IP blocks in CIDR notation to the tunnel. This parameter can be used to set up a split tunnel. By default no traffic is directed to the tunnel. Adding the entry "0.0.0.0/0" to this list gets all the user traffic redirected to the tunnel. When many rules match a destination, the rule with the longest matching prefix wins. Entries that correspond to the same CIDR block are treated as duplicates. Such duplicates in the collated (exclusionList + inclusionList) list are eliminated and the exact duplicate entry that will be eliminated is undefined.
- */
- inclusionList: string[];
- /** Optional. A list of search domains. (default: no search domain) */
- domainSearch?: string[];
- /** A list of IPs for the DNS servers. */
- dnsServer: string[];
- }
-
- interface VpnPlatformMessageEvent extends chrome.events.Event<(id: string, message: string, error: string) => void> {}
-
- interface VpnPacketReceptionEvent extends chrome.events.Event<(data: ArrayBuffer) => void> {}
-
- interface VpnConfigRemovalEvent extends chrome.events.Event<(id: string) => void> {}
-
- interface VpnConfigCreationEvent extends chrome.events.Event<(id: string, name: string, data: Object) => void> {}
-
- interface VpnUiEvent extends chrome.events.Event<(event: string, id?: string) => void> {}
-
- /**
- * Creates a new VPN configuration that persists across multiple login sessions of the user.
- * @param name The name of the VPN configuration.
- * @param callback Called when the configuration is created or if there is an error.
- * Parameter id: A unique ID for the created configuration, empty string on failure.
- */
- export function createConfig(name: string, callback: (id: string) => void): void;
- /**
- * Destroys a VPN configuration created by the extension.
- * @param id ID of the VPN configuration to destroy.
- * @param callback Optional. Called when the configuration is destroyed or if there is an error.
- */
- export function destroyConfig(id: string, callback?: Function): void;
- /**
- * Sets the parameters for the VPN session. This should be called immediately after "connected" is received from the platform. This will succeed only when the VPN session is owned by the extension.
- * @param parameters The parameters for the VPN session.
- * @param callback Called when the parameters are set or if there is an error.
- */
- export function setParameters(parameters: VpnSessionParameters, callback: Function): void;
- /**
- * Sends an IP packet through the tunnel created for the VPN session. This will succeed only when the VPN session is owned by the extension.
- * @param data The IP packet to be sent to the platform.
- * @param callback Optional. Called when the packet is sent or if there is an error.
- */
- export function sendPacket(data: ArrayBuffer, callback?: Function): void;
- /**
- * Notifies the VPN session state to the platform. This will succeed only when the VPN session is owned by the extension.
- * @param state The VPN session state of the VPN client.
- * connected: VPN connection was successful.
- * failure: VPN connection failed.
- * @param callback Optional. Called when the notification is complete or if there is an error.
- */
- export function notifyConnectionStateChanged(state: string, callback?: Function): void;
-
- /** Triggered when a message is received from the platform for a VPN configuration owned by the extension. */
- var onPlatformMessage: VpnPlatformMessageEvent;
- /** Triggered when an IP packet is received via the tunnel for the VPN session owned by the extension. */
- var onPacketReceived: VpnPacketReceptionEvent;
- /** Triggered when a configuration created by the extension is removed by the platform. */
- var onConfigRemoved: VpnConfigRemovalEvent;
- /** Triggered when a configuration is created by the platform for the extension. */
- var onConfigCreated: VpnConfigCreationEvent;
- /** Triggered when there is a UI event for the extension. UI events are signals from the platform that indicate to the app that a UI dialog needs to be shown to the user. */
- var onUIEvent: VpnUiEvent;
-}
-
-////////////////////
-// Wallpaper
-////////////////////
-/**
- * Use the chrome.wallpaper API to change the ChromeOS wallpaper.
- * Permissions: "wallpaper"
- * Important: This API works only on Chrome OS.
- * @since Chrome 43.
- */
-declare namespace chrome.wallpaper {
- interface WallpaperDetails {
- /** Optional. The jpeg or png encoded wallpaper image. */
- data?: any;
- /** Optional. The URL of the wallpaper to be set. */
- url?: string;
- /**
- * The supported wallpaper layouts.
- * One of: "STRETCH", "CENTER", or "CENTER_CROPPED"
- */
- layout: string;
- /** The file name of the saved wallpaper. */
- filename: string;
- /** Optional. True if a 128x60 thumbnail should be generated. */
- thumbnail?: boolean;
- }
-
- /**
- * Sets wallpaper to the image at url or wallpaperData with the specified layout
- * @param callback
- * Optional parameter thumbnail: The jpeg encoded wallpaper thumbnail. It is generated by resizing the wallpaper to 128x60.
- */
- export function setWallpaper(details: WallpaperDetails, callback: (thumbnail: any) => void): void;
-}
-
-////////////////////
-// Web Navigation
-////////////////////
-/**
- * Use the chrome.webNavigation API to receive notifications about the status of navigation requests in-flight.
- * Permissions: "webNavigation"
- * @since Chrome 16.
- */
-declare namespace chrome.webNavigation {
- interface GetFrameDetails {
- /**
- * The ID of the process runs the renderer for this tab.
- * @since Chrome 22.
- */
- processId: number;
- /** The ID of the tab in which the frame is. */
- tabId: number;
- /** The ID of the frame in the given tab. */
- frameId: number;
- }
-
- interface GetFrameResultDetails {
- /** The URL currently associated with this frame, if the frame identified by the frameId existed at one point in the given tab. The fact that an URL is associated with a given frameId does not imply that the corresponding frame still exists. */
- url: string;
- /** True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired. */
- errorOccurred: boolean;
- /** ID of frame that wraps the frame. Set to -1 of no parent frame exists. */
- parentFrameId: number;
- }
-
- interface GetAllFrameDetails {
- /** The ID of the tab. */
- tabId: number;
- }
-
- interface GetAllFrameResultDetails extends GetFrameResultDetails {
- /** The ID of the process runs the renderer for this tab. */
- processId: number;
- /** The ID of the frame. 0 indicates that this is the main frame; a positive value indicates the ID of a subframe. */
- frameId: number;
- }
-
- interface WebNavigationCallbackDetails {
- /** The ID of the tab in which the navigation is about to occur. */
- tabId: number;
- /** The time when the browser was about to start the navigation, in milliseconds since the epoch. */
- timeStamp: number;
- }
-
- interface WebNavigationUrlCallbackDetails extends WebNavigationCallbackDetails {
- url: string;
- }
-
- interface WebNavigationReplacementCallbackDetails extends WebNavigationCallbackDetails {
- /** The ID of the tab that was replaced. */
- replacedTabId: number;
- }
-
- interface WebNavigationFramedCallbackDetails extends WebNavigationUrlCallbackDetails {
- /** 0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique for a given tab and process. */
- frameId: number;
- /**
- * The ID of the process runs the renderer for this tab.
- * @since Chrome 22.
- */
- processId: number;
- }
-
- interface WebNavigationFramedErrorCallbackDetails extends WebNavigationFramedCallbackDetails {
- /** The error description. */
- error: string;
- }
-
- interface WebNavigationSourceCallbackDetails extends WebNavigationUrlCallbackDetails {
- /** The ID of the tab in which the navigation is triggered. */
- sourceTabId: number;
- /**
- * The ID of the process runs the renderer for the source tab.
- * @since Chrome 22.
- */
- sourceProcessId: number;
- /** The ID of the frame with sourceTabId in which the navigation is triggered. 0 indicates the main frame. */
- sourceFrameId: number;
- }
-
- interface WebNavigationParentedCallbackDetails extends WebNavigationFramedCallbackDetails {
- /**
- * ID of frame that wraps the frame. Set to -1 of no parent frame exists.
- * @since Chrome 24.
- */
- parentFrameId: number;
- }
-
- interface WebNavigationTransitionCallbackDetails extends WebNavigationFramedCallbackDetails {
- /**
- * Cause of the navigation.
- * One of: "link", "typed", "auto_bookmark", "auto_subframe", "manual_subframe", "generated", "start_page", "form_submit", "reload", "keyword", or "keyword_generated"
- */
- transitionType: string;
- /**
- * A list of transition qualifiers.
- * Each element one of: "client_redirect", "server_redirect", "forward_back", or "from_address_bar"
- */
- transitionQualifiers: string[];
- }
-
- interface WebNavigationEventFilter {
- /** Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event. */
- url: chrome.events.UrlFilter[];
- }
-
- interface WebNavigationEvent<T extends WebNavigationCallbackDetails> extends chrome.events.Event<(details: T) => void> {
- addListener(callback: (details: T) => void, filters?: WebNavigationEventFilter): void;
- }
-
- interface WebNavigationFramedEvent extends WebNavigationEvent<WebNavigationFramedCallbackDetails> {}
-
- interface WebNavigationFramedErrorEvent extends WebNavigationEvent<WebNavigationFramedErrorCallbackDetails> {}
-
- interface WebNavigationSourceEvent extends WebNavigationEvent<WebNavigationSourceCallbackDetails> {}
-
- interface WebNavigationParentedEvent extends WebNavigationEvent<WebNavigationParentedCallbackDetails> {}
-
- interface WebNavigationTransitionalEvent extends WebNavigationEvent<WebNavigationTransitionCallbackDetails> {}
-
- interface WebNavigationReplacementEvent extends WebNavigationEvent<WebNavigationReplacementCallbackDetails> {}
-
- /**
- * Retrieves information about the given frame. A frame refers to an <iframe> or a <frame> of a web page and is identified by a tab ID and a frame ID.
- * @param details Information about the frame to retrieve information about.
- * @param callback
- * Optional parameter details: Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.
- */
- export function getFrame(details: GetFrameDetails, callback: (details?: GetFrameResultDetails) => void): void;
- /**
- * Retrieves information about all frames of a given tab.
- * @param details Information about the tab to retrieve all frames from.
- * @param callback
- * Optional parameter details: A list of frames in the given tab, null if the specified tab ID is invalid.
- */
- export function getAllFrames(details: GetAllFrameDetails, callback: (details?: GetAllFrameResultDetails[]) => void): void;
-
- /** Fired when the reference fragment of a frame was updated. All future events for that frame will use the updated URL. */
- var onReferenceFragmentUpdated: WebNavigationTransitionalEvent;
- /** Fired when a document, including the resources it refers to, is completely loaded and initialized. */
- var onCompleted: WebNavigationFramedEvent;
- /**
- * Fired when the frame's history was updated to a new URL. All future events for that frame will use the updated URL.
- * @since Chrome 22.
- */
- var onHistoryStateUpdated: WebNavigationTransitionalEvent;
- /** Fired when a new window, or a new tab in an existing window, is created to host a navigation. */
- var onCreatedNavigationTarget: WebNavigationSourceEvent;
- /**
- * Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab.
- * @since Chrome 22.
- */
- var onTabReplaced: WebNavigationReplacementEvent;
- /** Fired when a navigation is about to occur. */
- var onBeforeNavigate: WebNavigationParentedEvent;
- /** Fired when a navigation is committed. The document (and the resources it refers to, such as images and subframes) might still be downloading, but at least part of the document has been received from the server and the browser has decided to switch to the new document. */
- var onCommitted: WebNavigationTransitionalEvent;
- /** Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading. */
- var onDOMContentLoaded: WebNavigationFramedEvent;
- /** Fired when an error occurs and the navigation is aborted. This can happen if either a network error occurred, or the user aborted the navigation. */
- var onErrorOccurred: WebNavigationFramedErrorEvent;
-}
-
-////////////////////
-// Web Request
-////////////////////
-/**
- * Use the chrome.webRequest API to observe and analyze traffic and to intercept, block, or modify requests in-flight.
- * Permissions: "webRequest", host permissions
- * @since Chrome 17.
- */
-declare namespace chrome.webRequest {
- interface AuthCredentials {
- username: string;
- password: string;
- }
-
- /** An HTTP Header, represented as an object containing a key and either a value or a binaryValue. */
- interface HttpHeader {
- name: string;
- value?: string;
- binaryValue?: ArrayBuffer;
- }
-
- /** Returns value for event handlers that have the 'blocking' extraInfoSpec applied. Allows the event handler to modify network requests. */
- interface BlockingResponse {
- /** Optional. If true, the request is cancelled. Used in onBeforeRequest, this prevents the request from being sent. */
- cancel?: boolean;
- /**
- * Optional.
- * Only used as a response to the onBeforeRequest and onHeadersReceived events. If set, the original request is prevented from being sent/completed and is instead redirected to the given URL. Redirections to non-HTTP schemes such as data: are allowed. Redirects initiated by a redirect action use the original request method for the redirect, with one exception: If the redirect is initiated at the onHeadersReceived stage, then the redirect will be issued using the GET method.
- */
- redirectUrl?: string;
- /**
- * Optional.
- * Only used as a response to the onHeadersReceived event. If set, the server is assumed to have responded with these response headers instead. Only return responseHeaders if you really want to modify the headers in order to limit the number of conflicts (only one extension may modify responseHeaders for each request).
- */
- responseHeaders?: HttpHeader[];
- /** Optional. Only used as a response to the onAuthRequired event. If set, the request is made using the supplied credentials. */
- authCredentials?: AuthCredentials;
- /**
- * Optional.
- * Only used as a response to the onBeforeSendHeaders event. If set, the request is made with these request headers instead.
- */
- requestHeaders?: HttpHeader[];
- }
-
- /** An object describing filters to apply to webRequest events. */
- interface RequestFilter {
- /** Optional. */
- tabId?: number;
- /**
- * A list of request types. Requests that cannot match any of the types will be filtered out.
- * Each element one of: "main_frame", "sub_frame", "stylesheet", "script", "image", "object", "xmlhttprequest", or "other"
- */
- types?: string[];
- /** A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out. */
- urls: string[];
- /** Optional. */
- windowId?: number;
- }
-
- /**
- * Contains data uploaded in a URL request.
- * @since Chrome 23.
- */
- interface UploadData {
- /** Optional. An ArrayBuffer with a copy of the data. */
- bytes?: ArrayBuffer;
- /** Optional. A string with the file's path and name. */
- file?: string;
- }
-
- interface WebRequestBody {
- /** Optional. Errors when obtaining request body data. */
- error?: string;
- /**
- * Optional.
- * If the request method is POST and the body is a sequence of key-value pairs encoded in UTF8, encoded as either multipart/form-data, or application/x-www-form-urlencoded, this dictionary is present and for each key contains the list of all values for that key. If the data is of another media type, or if it is malformed, the dictionary is not present. An example value of this dictionary is {'key': ['value1', 'value2']}.
- */
- formData?: { [key: string]: string[] };
- /**
- * Optional.
- * If the request method is PUT or POST, and the body is not already parsed in formData, then the unparsed request body elements are contained in this array.
- */
- raw?: UploadData[];
- }
-
- interface WebAuthChallenger {
- host: string;
- port: number;
- }
-
- interface ResourceRequest {
- url: string;
- /** The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request. */
- requestId: string;
- /** The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (type is main_frame or sub_frame), frameId indicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab. */
- frameId: number;
- /** ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists. */
- parentFrameId: number;
- /** The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab. */
- tabId: number;
- /**
- * How the requested resource will be used.
- * One of: "main_frame", "sub_frame", "stylesheet", "script", "image", "object", "xmlhttprequest", or "other"
- */
- type: string;
- /** The time when this signal is triggered, in milliseconds since the epoch. */
- timeStamp: number;
- }
-
- interface WebRequestDetails extends ResourceRequest {
- /** Standard HTTP method. */
- method: string;
- }
-
- interface WebRequestHeadersDetails extends WebRequestDetails {
- /** Optional. The HTTP request headers that are going to be sent out with this request. */
- requestHeaders?: HttpHeader[];
- }
-
- interface WebRequestBodyDetails extends WebRequestDetails {
- /**
- * Contains the HTTP request body data. Only provided if extraInfoSpec contains 'requestBody'.
- * @since Chrome 23.
- */
- requestBody: WebRequestBody;
- }
-
- interface WebRequestFullDetails extends WebRequestHeadersDetails, WebRequestBodyDetails {
- }
-
- interface WebResponseDetails extends ResourceRequest {
- /** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line). */
- statusLine: string;
- /**
- * Standard HTTP status code returned by the server.
- * @since Chrome 43.
- */
- statusCode: number;
- }
-
- interface WebResponseHeadersDetails extends WebResponseDetails {
- /** Optional. The HTTP response headers that have been received with this response. */
- responseHeaders?: HttpHeader[];
- }
-
- interface WebResponseCacheDetails extends WebResponseHeadersDetails {
- /**
- * Optional.
- * The server IP address that the request was actually sent to. Note that it may be a literal IPv6 address.
- */
- ip?: string;
- /** Indicates if this response was fetched from disk cache. */
- fromCache: boolean;
- }
-
- interface WebRedirectionResponseDetails extends WebResponseCacheDetails {
- /** The new URL. */
- redirectUrl: string;
- }
-
- interface WebAuthenticationChallengeDetails extends WebResponseHeadersDetails {
- /** The authentication scheme, e.g. Basic or Digest. */
- scheme: string;
- /** The authentication realm provided by the server, if there is one. */
- realm?: string;
- /** The server requesting authentication. */
- challenger: WebAuthChallenger;
- /** True for Proxy-Authenticate, false for WWW-Authenticate. */
- isProxy: boolean;
- }
-
- interface WebResponseErrorDetails extends WebResponseCacheDetails {
- /** The error description. This string is not guaranteed to remain backwards compatible between releases. You must not parse and act based upon its content. */
- error: string;
- }
-
- interface WebRequestBodyEvent extends chrome.events.Event<(details: WebRequestBodyDetails) => void> {
- addListener(callback: (details: WebRequestBodyDetails) => void, filter?: RequestFilter, opt_extraInfoSpec?: string[]): void;
- }
-
- interface WebRequestHeadersEvent extends chrome.events.Event<(details: WebRequestHeadersDetails) => void> {
- addListener(callback: (details: WebRequestHeadersDetails) => void, filter?: RequestFilter, opt_extraInfoSpec?: string[]): void;
- }
-
- interface _WebResponseHeadersEvent<T extends WebResponseHeadersDetails> extends chrome.events.Event<(details: T) => void> {
- addListener(callback: (details: T) => void, filter?: RequestFilter, opt_extraInfoSpec?: string[]): void;
- }
-
- interface WebResponseHeadersEvent extends _WebResponseHeadersEvent<WebResponseHeadersDetails> {}
-
- interface WebResponseCacheEvent extends _WebResponseHeadersEvent<WebResponseCacheDetails> {}
-
- interface WebRedirectionResponseEvent extends _WebResponseHeadersEvent<WebRedirectionResponseDetails> {}
-
- interface WebAuthenticationChallengeEvent extends chrome.events.Event<(details: WebAuthenticationChallengeDetails, callback?: (response: BlockingResponse) => void) => void> {
- addListener(callback: (details: WebAuthenticationChallengeDetails) => void, filter?: RequestFilter, opt_extraInfoSpec?: string[]): void;
- }
-
- interface WebResponseErrorEvent extends _WebResponseHeadersEvent<WebResponseErrorDetails> {}
-
- /**
- * The maximum number of times that handlerBehaviorChanged can be called per 10 minute sustained interval. handlerBehaviorChanged is an expensive function call that shouldn't be called often.
- * @since Chrome 23.
- */
- var MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES: number;
-
- /** Needs to be called when the behavior of the webRequest handlers has changed to prevent incorrect handling due to caching. This function call is expensive. Don't call it often. */
- export function handlerBehaviorChanged(callback?: Function): void;
-
- /** Fired when a request is about to occur. */
- var onBeforeRequest: WebRequestBodyEvent;
- /** Fired before sending an HTTP request, once the request headers are available. This may occur after a TCP connection is made to the server, but before any HTTP data is sent. */
- var onBeforeSendHeaders: WebRequestHeadersEvent;
- /** Fired just before a request is going to be sent to the server (modifications of previous onBeforeSendHeaders callbacks are visible by the time onSendHeaders is fired). */
- var onSendHeaders: WebRequestHeadersEvent;
- /** Fired when HTTP response headers of a request have been received. */
- var onHeadersReceived: WebResponseHeadersEvent;
- /** Fired when an authentication failure is received. The listener has three options: it can provide authentication credentials, it can cancel the request and display the error page, or it can take no action on the challenge. If bad user credentials are provided, this may be called multiple times for the same request. */
- var onAuthRequired: WebAuthenticationChallengeEvent;
- /** Fired when the first byte of the response body is received. For HTTP requests, this means that the status line and response headers are available. */
- var onResponseStarted: WebResponseCacheEvent;
- /** Fired when a server-initiated redirect is about to occur. */
- var onBeforeRedirect: WebRedirectionResponseEvent;
- /** Fired when a request is completed. */
- var onCompleted: WebResponseCacheEvent;
- /** Fired when an error occurs. */
- var onErrorOccurred: WebResponseErrorEvent;
-}
-
-////////////////////
-// Web Store
-////////////////////
-/**
- * Use the chrome.webstore API to initiate app and extension installations "inline" from your site.
- * @since Chrome 15.
- */
-declare namespace chrome.webstore {
- /**
- * @param url Optional. If you have more than one <link> tag on your page with the chrome-webstore-item relation, you can choose which item you'd like to install by passing in its URL here. If it is omitted, then the first (or only) link will be used. An exception will be thrown if the passed in URL does not exist on the page.
- * @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension.
- * @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
- * Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
- * Optional parameter errorCode: The error code from the stable set of possible errors.
- * * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
- * * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
- * * * "aborted": The operation was aborted as the requestor is no longer alive.
- * * * "installInProgress": An installation of the same extension is in progress.
- * * * "notPermitted": The installation is not permitted.
- * * * "invalidId": Invalid Chrome Web Store item ID.
- * * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
- * * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
- * * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
- * * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
- * * * "userCanceled": The user canceled the operation.
- * * * "blacklisted": The extension is blacklisted.
- * * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
- * * * "requirementViolations": Unsatisfied requirements, such as webgl.
- * * * "blockedByPolicy": The extension is blocked by management policies.
- * * * "launchFeatureDisabled": The launch feature is not available.
- * * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
- * * * "launchInProgress": A launch of the same extension is in progress.
- */
- export function install(url: string, successCallback?: Function, failureCallback?: (error: string, errorCode?: string) => void): void;
- /**
- * @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension.
- * @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
- * Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
- * Optional parameter errorCode: The error code from the stable set of possible errors.
- * * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
- * * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
- * * * "aborted": The operation was aborted as the requestor is no longer alive.
- * * * "installInProgress": An installation of the same extension is in progress.
- * * * "notPermitted": The installation is not permitted.
- * * * "invalidId": Invalid Chrome Web Store item ID.
- * * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
- * * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
- * * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
- * * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
- * * * "userCanceled": The user canceled the operation.
- * * * "blacklisted": The extension is blacklisted.
- * * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
- * * * "requirementViolations": Unsatisfied requirements, such as webgl.
- * * * "blockedByPolicy": The extension is blocked by management policies.
- * * * "launchFeatureDisabled": The launch feature is not available.
- * * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
- * * * "launchInProgress": A launch of the same extension is in progress.
- */
- export function install(successCallback: Function, failureCallback?: (error: string, errorCode?: string) => void): void;
- /**
- * @param failureCallback Optional. This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site.
- * Parameter error: The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back.
- * Optional parameter errorCode: The error code from the stable set of possible errors.
- * * Enum of the possible install results, including error codes sent back in the event that an inline installation has failed.
- * * * "otherError": An uncommon, unrecognized, or unexpected error. In some cases, the readable error string can provide more information.
- * * * "aborted": The operation was aborted as the requestor is no longer alive.
- * * * "installInProgress": An installation of the same extension is in progress.
- * * * "notPermitted": The installation is not permitted.
- * * * "invalidId": Invalid Chrome Web Store item ID.
- * * * "webstoreRequestError": Failed to retrieve extension metadata from the Web Store.
- * * * "invalidWebstoreResponse": The extension metadata retrieved from the Web Store was invalid.
- * * * "invalidManifest": An error occurred while parsing the extension manifest retrieved from the Web Store.
- * * * "iconError": Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.
- * * * "userCanceled": The user canceled the operation.
- * * * "blacklisted": The extension is blacklisted.
- * * * "missingDependencies": Unsatisfied dependencies, such as shared modules.
- * * * "requirementViolations": Unsatisfied requirements, such as webgl.
- * * * "blockedByPolicy": The extension is blocked by management policies.
- * * * "launchFeatureDisabled": The launch feature is not available.
- * * * "launchUnsupportedExtensionType": The launch feature is not supported for the extension type.
- * * * "launchInProgress": A launch of the same extension is in progress.
- */
- export function install(failureCallback?: (error: string, errorCode?: string) => void): void;
-
- interface InstallationStageEvent extends chrome.events.Event<(stage: string) => void> {}
-
- interface DownloadProgressEvent extends chrome.events.Event<(percentDownloaded: number) => void> {}
-
- /**
- * Fired when an inline installation enters a new InstallStage. In order to receive notifications about this event, listeners must be registered before the inline installation begins.
- * @since Chrome 35.
- */
- var onInstallStageChanged: InstallationStageEvent;
- /**
- * Fired periodically with the download progress of an inline install. In order to receive notifications about this event, listeners must be registered before the inline installation begins.
- * @since Chrome 35.
- */
- var onDownloadProgress: DownloadProgressEvent;
-}
-
-////////////////////
-// Windows
-////////////////////
-/**
- * Use the chrome.windows API to interact with browser windows. You can use this API to create, modify, and rearrange windows in the browser.
- * Permissions: The chrome.windows API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab objects.
- * @since Chrome 5.
- */
-declare namespace chrome.windows {
- interface Window {
- /** Array of tabs.Tab objects representing the current tabs in the window. */
- tabs?: chrome.tabs.Tab[];
- /** Optional. The offset of the window from the top edge of the screen in pixels. Under some circumstances a Window may not be assigned top property, for example when querying closed windows from the sessions API. */
- top?: number;
- /** Optional. The height of the window, including the frame, in pixels. Under some circumstances a Window may not be assigned height property, for example when querying closed windows from the sessions API. */
- height?: number;
- /** Optional. The width of the window, including the frame, in pixels. Under some circumstances a Window may not be assigned width property, for example when querying closed windows from the sessions API. */
- width?: number;
- /**
- * The state of this browser window.
- * One of: "normal", "minimized", "maximized", "fullscreen", or "docked"
- * @since Chrome 17.
- */
- state: string;
- /** Whether the window is currently the focused window. */
- focused: boolean;
- /**
- * Whether the window is set to be always on top.
- * @since Chrome 19.
- */
- alwaysOnTop: boolean;
- /** Whether the window is incognito. */
- incognito: boolean;
- /**
- * The type of browser window this is.
- * One of: "normal", "popup", "panel", "app", or "devtools"
- */
- type: string;
- /** Optional. The ID of the window. Window IDs are unique within a browser session. Under some circumstances a Window may not be assigned an ID, for example when querying windows using the sessions API, in which case a session ID may be present. */
- id: number;
- /** Optional. The offset of the window from the left edge of the screen in pixels. Under some circumstances a Window may not be assigned left property, for example when querying closed windows from the sessions API. */
- left?: number;
- /**
- * The session ID used to uniquely identify a Window obtained from the sessions API.
- * @since Chrome 31.
- */
- sessionId?: string;
- }
-
- interface GetInfo {
- /**
- * Optional.
- * If true, the windows.Window object will have a tabs property that contains a list of the tabs.Tab objects. The Tab objects only contain the url, title and favIconUrl properties if the extension's manifest file includes the "tabs" permission.
- */
- populate?: boolean;
- /**
- * If set, the windows.Window returned will be filtered based on its type. If unset the default filter is set to ['app', 'normal', 'panel', 'popup'], with 'app' and 'panel' window types limited to the extension's own windows.
- * Each one of: "normal", "popup", "panel", "app", or "devtools"
- * @since Chrome 46. Warning: this is the current Beta channel.
- */
- windowTypes?: string[];
- }
-
- interface CreateData {
- /**
- * Optional. The id of the tab for which you want to adopt to the new window.
- * @since Chrome 10.
- */
- tabId?: number;
- /**
- * Optional.
- * A URL or array of URLs to open as tabs in the window. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.
- */
- url?: string | string[];
- /**
- * Optional.
- * The number of pixels to position the new window from the top edge of the screen. If not specified, the new window is offset naturally from the last focused window. This value is ignored for panels.
- */
- top?: number;
- /**
- * Optional.
- * The height in pixels of the new window, including the frame. If not specified defaults to a natural height.
- */
- height?: number;
- /**
- * Optional.
- * The width in pixels of the new window, including the frame. If not specified defaults to a natural width.
- */
- width?: number;
- /**
- * Optional. If true, opens an active window. If false, opens an inactive window.
- * @since Chrome 12.
- */
- focused?: boolean;
- /** Optional. Whether the new window should be an incognito window. */
- incognito?: boolean;
- /**
- * Optional. Specifies what type of browser window to create. The 'panel' and 'detached_panel' types create a popup unless the '--enable-panels' flag is set.
- * One of: "normal", "popup", "panel", or "detached_panel"
- */
- type?: string;
- /**
- * Optional.
- * The number of pixels to position the new window from the left edge of the screen. If not specified, the new window is offset naturally from the last focused window. This value is ignored for panels.
- */
- left?: number;
- /**
- * Optional. The initial state of the window. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'.
- * One of: "normal", "minimized", "maximized", "fullscreen", or "docked"
- * @since Chrome 44.
- */
- state?: string;
- }
-
- interface UpdateInfo {
- /** Optional. The offset from the top edge of the screen to move the window to in pixels. This value is ignored for panels. */
- top?: number;
- /**
- * Optional. If true, causes the window to be displayed in a manner that draws the user's attention to the window, without changing the focused window. The effect lasts until the user changes focus to the window. This option has no effect if the window already has focus. Set to false to cancel a previous draw attention request.
- * @since Chrome 14.
- */
- drawAttention?: boolean;
- /** Optional. The height to resize the window to in pixels. This value is ignored for panels. */
- height?: number;
- /** Optional. The width to resize the window to in pixels. This value is ignored for panels. */
- width?: number;
- /**
- * Optional. The new state of the window. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'.
- * One of: "normal", "minimized", "maximized", "fullscreen", or "docked"
- * @since Chrome 17.
- */
- state?: string;
- /**
- * Optional. If true, brings the window to the front. If false, brings the next window in the z-order to the front.
- * @since Chrome 8.
- */
- focused?: boolean;
- /** Optional. The offset from the left edge of the screen to move the window to in pixels. This value is ignored for panels. */
- left?: number;
- }
-
- interface WindowEventFilter {
- /**
- * Conditions that the window's type being created must satisfy. By default it will satisfy ['app', 'normal', 'panel', 'popup'], with 'app' and 'panel' window types limited to the extension's own windows.
- * Each one of: "normal", "popup", "panel", "app", or "devtools"
- */
- windowTypes: string[];
- }
-
- interface WindowIdEvent extends chrome.events.Event<(windowId: number, filters?: WindowEventFilter) => void> {}
-
- interface WindowReferenceEvent extends chrome.events.Event<(window: Window, filters?: WindowEventFilter) => void> {}
-
- /**
- * The windowId value that represents the current window.
- * @since Chrome 18.
- */
- var WINDOW_ID_CURRENT: number;
- /**
- * The windowId value that represents the absence of a chrome browser window.
- * @since Chrome 6.
- */
- var WINDOW_ID_NONE: number;
-
- /** Gets details about a window. */
- export function get(windowId: number, callback: (window: chrome.windows.Window) => void): void;
- /**
- * Gets details about a window.
- * @since Chrome 18.
- */
- export function get(windowId: number, getInfo: GetInfo, callback: (window: chrome.windows.Window) => void): void;
- /**
- * Gets the current window.
- */
- export function getCurrent(callback: (window: chrome.windows.Window) => void): void;
- /**
- * Gets the current window.
- * @since Chrome 18.
- */
- export function getCurrent(getInfo: GetInfo, callback: (window: chrome.windows.Window) => void): void;
- /**
- * Creates (opens) a new browser with any optional sizing, position or default URL provided.
- * @param callback
- * Optional parameter window: Contains details about the created window.
- */
- export function create(callback?: (window?: chrome.windows.Window) => void): void;
- /**
- * Creates (opens) a new browser with any optional sizing, position or default URL provided.
- * @param callback
- * Optional parameter window: Contains details about the created window.
- */
- export function create(createData: CreateData, callback?: (window?: chrome.windows.Window) => void): void;
- /**
- * Gets all windows.
- */
- export function getAll(callback: (windows: chrome.windows.Window[]) => void): void;
- /**
- * Gets all windows.
- * @since Chrome 18.
- */
- export function getAll(getInfo: GetInfo, callback: (windows: chrome.windows.Window[]) => void): void;
- /** Updates the properties of a window. Specify only the properties that you want to change; unspecified properties will be left unchanged. */
- export function update(windowId: number, updateInfo: UpdateInfo, callback?: (window: chrome.windows.Window) => void): void;
- /** Removes (closes) a window, and all the tabs inside it. */
- export function remove(windowId: number, callback?: Function): void;
- /**
- * Gets the window that was most recently focused — typically the window 'on top'.
- */
- export function getLastFocused(callback: (window: chrome.windows.Window) => void): void;
- /**
- * Gets the window that was most recently focused — typically the window 'on top'.
- * @since Chrome 18.
- */
- export function getLastFocused(getInfo: GetInfo, callback: (window: chrome.windows.Window) => void): void;
-
- /** Fired when a window is removed (closed). */
- var onRemoved: WindowIdEvent;
- /** Fired when a window is created. */
- var onCreated: WindowReferenceEvent;
- /**
- * Fired when the currently focused window changes. Will be chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus.
- * Note: On some Linux window managers, WINDOW_ID_NONE will always be sent immediately preceding a switch from one chrome window to another.
- */
- var onFocusChanged: WindowIdEvent;
-}
diff --git a/lib/decl/filesystem/filesystem.d.ts b/lib/decl/filesystem/filesystem.d.ts
deleted file mode 100644
index 1b76846b4..000000000
--- a/lib/decl/filesystem/filesystem.d.ts
+++ /dev/null
@@ -1,548 +0,0 @@
-// Type definitions for File System API
-// Project: http://www.w3.org/TR/file-system-api/
-// Definitions by: Kon <http://phyzkit.net/>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-/// <reference path="../filewriter/filewriter.d.ts" />
-
-interface LocalFileSystem {
-
- /**
- * Used for storage with no guarantee of persistence.
- */
- TEMPORARY:number;
-
- /**
- * Used for storage that should not be removed by the user agent without application or user permission.
- */
- PERSISTENT:number;
-
- /**
- * Requests a filesystem in which to store application data.
- * @param type Whether the filesystem requested should be persistent, as defined above. Use one of TEMPORARY or PERSISTENT.
- * @param size This is an indicator of how much storage space, in bytes, the application expects to need.
- * @param successCallback The callback that is called when the user agent provides a filesystem.
- * @param errorCallback A callback that is called when errors happen, or when the request to obtain the filesystem is denied.
- */
- requestFileSystem(type:number, size:number, successCallback:FileSystemCallback, errorCallback?:ErrorCallback):void;
-
- /**
- * Allows the user to look up the Entry for a file or directory referred to by a local URL.
- * @param url A URL referring to a local file in a filesystem accessable via this API.
- * @param successCallback A callback that is called to report the Entry to which the supplied URL refers.
- * @param errorCallback A callback that is called when errors happen, or when the request to obtain the Entry is denied.
- */
- resolveLocalFileSystemURL(url:string, successCallback:EntryCallback, errorCallback?:ErrorCallback):void;
-
- /**
- * see requestFileSystem.
- */
- webkitRequestFileSystem(type:number, size:number, successCallback:FileSystemCallback, errorCallback?:ErrorCallback):void;
-}
-
-interface LocalFileSystemSync {
- /**
- * Used for storage with no guarantee of persistence.
- */
- TEMPORARY:number;
-
- /**
- * Used for storage that should not be removed by the user agent without application or user permission.
- */
- PERSISTENT:number;
-
- /**
- * Requests a filesystem in which to store application data.
- * @param type Whether the filesystem requested should be persistent, as defined above. Use one of TEMPORARY or PERSISTENT.
- * @param size This is an indicator of how much storage space, in bytes, the application expects to need.
- */
- requestFileSystemSync(type:number, size:number):FileSystemSync;
-
- /**
- * Allows the user to look up the Entry for a file or directory referred to by a local URL.
- * @param url A URL referring to a local file in a filesystem accessable via this API.
- */
- resolveLocalFileSystemSyncURL(url:string):EntrySync;
-
- /**
- * see requestFileSystemSync
- */
- webkitRequestFileSystemSync(type:number, size:number):FileSystemSync;
-}
-
-interface Metadata {
- /**
- * This is the time at which the file or directory was last modified.
- * @readonly
- */
- modificationTime:Date;
-
- /**
- * The size of the file, in bytes. This must return 0 for directories.
- * @readonly
- */
- size:number;
-}
-
-interface Flags {
- /**
- * Used to indicate that the user wants to create a file or directory if it was not previously there.
- */
- create?:boolean;
-
- /**
- * By itself, exclusive must have no effect. Used with create, it must cause getFile and getDirectory to fail if the target path already exists.
- */
- exclusive?:boolean;
-}
-
-/**
- * This interface represents a file system.
- */
-interface FileSystem{
- /**
- * This is the name of the file system. The specifics of naming filesystems is unspecified, but a name must be unique across the list of exposed file systems.
- * @readonly
- */
- name: string;
-
- /**
- * The root directory of the file system.
- * @readonly
- */
- root: DirectoryEntry;
-}
-
-interface Entry {
-
- /**
- * Entry is a file.
- */
- isFile:boolean;
-
- /**
- * Entry is a directory.
- */
- isDirectory:boolean;
-
- /**
- * Look up metadata about this entry.
- * @param successCallback A callback that is called with the time of the last modification.
- * @param errorCallback ErrorCallback A callback that is called when errors happen.
- */
- getMetadata(successCallback:MetadataCallback, errorCallback?:ErrorCallback):void;
-
- /**
- * The name of the entry, excluding the path leading to it.
- */
- name:string;
-
- /**
- * The full absolute path from the root to the entry.
- */
- fullPath:string;
-
- /**
- * The file system on which the entry resides.
- */
- filesystem:FileSystem;
-
- /**
- * Move an entry to a different location on the file system. It is an error to try to:
- *
- * <ui>
- * <li>move a directory inside itself or to any child at any depth;</li>
- * <li>move an entry into its parent if a name different from its current one isn't provided;</li>
- * <li>move a file to a path occupied by a directory;</li>
- * <li>move a directory to a path occupied by a file;</li>
- * <li>move any element to a path occupied by a directory which is not empty.</li>
- * <ul>
- *
- * A move of a file on top of an existing file must attempt to delete and replace that file.
- * A move of a directory on top of an existing empty directory must attempt to delete and replace that directory.
- */
- moveTo(parent:DirectoryEntry, newName?:string, successCallback?:EntryCallback, errorCallback?:ErrorCallback):string;
-
- /**
- * Copy an entry to a different location on the file system. It is an error to try to:
- *
- * <ul>
- * <li> copy a directory inside itself or to any child at any depth;</li>
- * <li> copy an entry into its parent if a name different from its current one isn't provided;</li>
- * <li> copy a file to a path occupied by a directory;</li>
- * <li> copy a directory to a path occupied by a file;</li>
- * <li> copy any element to a path occupied by a directory which is not empty.</li>
- * <li> A copy of a file on top of an existing file must attempt to delete and replace that file.</li>
- * <li> A copy of a directory on top of an existing empty directory must attempt to delete and replace that directory.</li>
- * </ul>
- *
- * Directory copies are always recursive--that is, they copy all contents of the directory.
- */
- copyTo(parent:DirectoryEntry, newName?:string, successCallback?:EntryCallback, errorCallback?:ErrorCallback):string;
-
- /**
- * Returns a URL that can be used to identify this entry. Unlike the URN defined in [FILE-API-ED], it has no specific expiration; as it describes a location on disk, it should be valid at least as long as that location exists.
- */
- toURL():string;
-
- /**
- * Deletes a file or directory. It is an error to attempt to delete a directory that is not empty. It is an error to attempt to delete the root directory of a filesystem.
- * @param successCallback A callback that is called on success.
- * @param errorCallback A callback that is called when errors happen.
- */
- remove(successCallback:VoidCallback, errorCallback?:ErrorCallback):void;
-
- /**
- * Look up the parent DirectoryEntry containing this Entry. If this Entry is the root of its filesystem, its parent is itself.
- * @param successCallback A callback that is called to return the parent Entry.
- * @param errorCallback A callback that is called when errors happen.
- */
- getParent(successCallback:DirectoryEntryCallback, errorCallback?:ErrorCallback):void;
-}
-
-/**
- * This interface represents a directory on a file system.
- */
-interface DirectoryEntry extends Entry {
- /**
- * Creates a new DirectoryReader to read Entries from this Directory.
- */
- createReader():DirectoryReader;
-
- /**
- * Creates or looks up a file.
- * @param path Either an absolute path or a relative path from this DirectoryEntry to the file to be looked up or created. It is an error to attempt to create a file whose immediate parent does not yet exist.
- * @param options
- * <ul>
- * <li>If create and exclusive are both true, and the path already exists, getFile must fail.</li>
- * <li>If create is true, the path doesn't exist, and no other error occurs, getFile must create it as a zero-length file and return a corresponding FileEntry.</li>
- * <li>If create is not true and the path doesn't exist, getFile must fail.</li>
- * <li>If create is not true and the path exists, but is a directory, getFile must fail.</li>
- * <li>Otherwise, if no other error occurs, getFile must return a FileEntry corresponding to path.</li>
- * </ul>
- * @param successCallback A callback that is called to return the File selected or created.
- * @param errorCallback A callback that is called when errors happen.
- */
- getFile(path:string, options?:Flags, successCallback?:FileEntryCallback, errorCallback?:ErrorCallback):void;
-
- /**
- * Creates or looks up a directory.
- * @param path Either an absolute path or a relative path from this DirectoryEntry to the directory to be looked up or created. It is an error to attempt to create a directory whose immediate parent does not yet exist.
- * @param options
- * <ul>
- * <li>If create and exclusive are both true and the path already exists, getDirectory must fail.</li>
- * <li>If create is true, the path doesn't exist, and no other error occurs, getDirectory must create and return a corresponding DirectoryEntry.</li>
- * <li>If create is not true and the path doesn't exist, getDirectory must fail.</li>
- * <li>If create is not true and the path exists, but is a file, getDirectory must fail.</li>
- * <li>Otherwise, if no other error occurs, getDirectory must return a DirectoryEntry corresponding to path.</li>
- * </ul>
- * @param successCallback A callback that is called to return the DirectoryEntry selected or created.
- * @param errorCallback A callback that is called when errors happen.
- *
- */
- getDirectory(path:string, options?:Flags, successCallback?:DirectoryEntryCallback, errorCallback?:ErrorCallback):void;
-
- /**
- * Deletes a directory and all of its contents, if any. In the event of an error [e.g. trying to delete a directory that contains a file that cannot be removed], some of the contents of the directory may be deleted. It is an error to attempt to delete the root directory of a filesystem.
- * @param successCallback A callback that is called on success.
- * @param errorCallback A callback that is called when errors happen.
- */
- removeRecursively(successCallback:VoidCallback, errorCallback?:ErrorCallback):void;
-}
-
-/**
- * This interface lets a user list files and directories in a directory. If there are no additions to or deletions from a directory between the first and last call to readEntries, and no errors occur, then:
- * <ul>
- * <li> A series of calls to readEntries must return each entry in the directory exactly once.</li>
- * <li> Once all entries have been returned, the next call to readEntries must produce an empty array.</li>
- * <li> If not all entries have been returned, the array produced by readEntries must not be empty.</li>
- * <li> The entries produced by readEntries must not include the directory itself ["."] or its parent [".."].</li>
- * </ul>
- */
-interface DirectoryReader {
- /**
- * Read the next block of entries from this directory.
- * @param successCallback Called once per successful call to readEntries to deliver the next previously-unreported set of Entries in the associated Directory. If all Entries have already been returned from previous invocations of readEntries, successCallback must be called with a zero-length array as an argument.
- * @param errorCallback A callback indicating that there was an error reading from the Directory.
- */
- readEntries(successCallback:EntriesCallback, errorCallback?:ErrorCallback):void;
-}
-
-/**
- * This interface represents a file on a file system.
- */
-interface FileEntry extends Entry {
- /**
- * Creates a new FileWriter associated with the file that this FileEntry represents.
- * @param successCallback A callback that is called with the new FileWriter.
- * @param errorCallback A callback that is called when errors happen.
- */
- createWriter(successCallback:FileWriterCallback, errorCallback?:ErrorCallback):void;
-
- /**
- * Returns a File that represents the current state of the file that this FileEntry represents.
- * @param successCallback A callback that is called with the File.
- * @param errorCallback A callback that is called when errors happen.
- */
- file(successCallback:FileCallback, errorCallback?:ErrorCallback):void;
-}
-
-/**
- * When requestFileSystem() succeeds, the following callback is made.
- */
-interface FileSystemCallback {
- /**
- * @param filesystem The file systems to which the app is granted access.
- */
- (filesystem:FileSystem):void;
-}
-
-/**
- * This interface is the callback used to look up Entry objects.
- */
-interface EntryCallback {
- /**
- * @param entry
- */
- (entry:Entry):void;
-}
-
-/**
- * This interface is the callback used to look up FileEntry objects.
- */
-interface FileEntryCallback {
- /**
- * @param entry
- */
- (entry:FileEntry):void;
-}
-
-/**
- * This interface is the callback used to look up DirectoryEntry objects.
- */
-interface DirectoryEntryCallback {
- /**
- * @param entry
- */
- (entry:DirectoryEntry):void;
-}
-
-/**
- * When readEntries() succeeds, the following callback is made.
- */
-interface EntriesCallback {
- (entries:Entry[]):void;
-}
-
-/**
- * This interface is the callback used to look up file and directory metadata.
- */
-interface MetadataCallback {
- (metadata:Metadata):void;
-}
-
-/**
- * This interface is the callback used to create a FileWriter.
- */
-interface FileWriterCallback {
- (fileWriter:FileWriter):void;
-}
-
-/**
- * This interface is the callback used to obtain a File.
- */
-interface FileCallback {
- (file:File):void;
-}
-
-/**
- * This interface is the generic callback used to indicate success of an asynchronous method.
- */
-interface VoidCallback {
- ():void;
-}
-
-/**
- * When an error occurs, the following callback is made.
- */
-interface ErrorCallback {
- (err:DOMError):void;
-}
-
-
-/**
- * This interface represents a file system.
- */
-interface FileSystemSync {
- /**
- * This is the name of the file system. The specifics of naming filesystems is unspecified, but a name must be unique across the list of exposed file systems.
- */
- name:string;
-
- /**
- * root The root directory of the file system.
- */
- root:DirectoryEntrySync;
-}
-
-/**
- * An abstract interface representing entries in a file system, each of which may be a FileEntrySync or DirectoryEntrySync.
- */
-interface EntrySync{
- /**
- * EntrySync is a file.
- * @readonly
- */
- isFile:boolean;
-
- /**
- * EntrySync is a directory.
- * @readonly
- */
- isDirectory:boolean;
-
- /**
- * Look up metadata about this entry.
- */
- getMetadata():Metadata;
-
- /**
- * The name of the entry, excluding the path leading to it.
- */
- name:string;
-
- /**
- * The full absolute path from the root to the entry.
- */
- fullPath:string;
-
- /**
- * The file system on which the entry resides.
- */
- filesystem:FileSystemSync;
-
- /**
- * Move an entry to a different location on the file system. It is an error to try to:
- * <ul>
- * <li> move a directory inside itself or to any child at any depth;</li>
- * <li> move an entry into its parent if a name different from its current one isn't provided;</li>
- * <li> move a file to a path occupied by a directory;</li>
- * <li> move a directory to a path occupied by a file;</li>
- * <li> move any element to a path occupied by a directory which is not empty.</li>
- * </ui>
- * A move of a file on top of an existing file must attempt to delete and replace that file. A move of a directory on top of an existing empty directory must attempt to delete and replace that directory.
- * @param parent The directory to which to move the entry.
- * @param newName The new name of the entry. Defaults to the EntrySync's current name if unspecified.
- */
- moveTo(parent:DirectoryEntrySync, newName?:string):EntrySync;
-
- /**
- * Copy an entry to a different location on the file system. It is an error to try to:
- * <ul>
- * <li> copy a directory inside itself or to any child at any depth;</li>
- * <li> copy an entry into its parent if a name different from its current one isn't provided;</li>
- * <li> copy a file to a path occupied by a directory;</li>
- * <li> copy a directory to a path occupied by a file;</li>
- * <li> copy any element to a path occupied by a directory which is not empty.</li>
- * </ui>
- * A copy of a file on top of an existing file must attempt to delete and replace that file.
- * A copy of a directory on top of an existing empty directory must attempt to delete and replace that directory.
- * Directory copies are always recursive--that is, they copy all contents of the directory.
- */
- copyTo(parent:DirectoryEntrySync, newName?:string):EntrySync;
-
- /**
- * Returns a URL that can be used to identify this entry. Unlike the URN defined in [FILE-API-ED], it has no specific expiration; as it describes a location on disk, it should be valid at least as long as that location exists.
- */
- toURL():string;
-
- /**
- * Deletes a file or directory. It is an error to attempt to delete a directory that is not empty. It is an error to attempt to delete the root directory of a filesystem.
- */
- remove ():void;
-
- /**
- * Look up the parent DirectoryEntrySync containing this Entry. If this EntrySync is the root of its filesystem, its parent is itself.
- */
- getParent():DirectoryEntrySync;
-}
-
-/**
- * This interface represents a directory on a file system.
- */
-interface DirectoryEntrySync extends EntrySync {
- /**
- * Creates a new DirectoryReaderSync to read EntrySyncs from this DirectorySync.
- */
- createReader():DirectoryReaderSync;
-
- /**
- * Creates or looks up a directory.
- * @param path Either an absolute path or a relative path from this DirectoryEntrySync to the file to be looked up or created. It is an error to attempt to create a file whose immediate parent does not yet exist.
- * @param options
- * <ul>
- * <li> If create and exclusive are both true and the path already exists, getFile must fail.</li>
- * <li> If create is true, the path doesn't exist, and no other error occurs, getFile must create it as a zero-length file and return a corresponding FileEntry.</li>
- * <li> If create is not true and the path doesn't exist, getFile must fail.</li>
- * <li> If create is not true and the path exists, but is a directory, getFile must fail.</li>
- * <li> Otherwise, if no other error occurs, getFile must return a FileEntrySync corresponding to path.</li>
- * </ul>
- */
- getFile(path:string, options?:Flags):FileEntrySync;
-
- /**
- * Creates or looks up a directory.
- * @param path Either an absolute path or a relative path from this DirectoryEntrySync to the directory to be looked up or created. It is an error to attempt to create a directory whose immediate parent does not yet exist.
- * @param options
- * <ul>
- * <li> If create and exclusive are both true and the path already exists, getDirectory must fail.</li>
- * <li> If create is true, the path doesn't exist, and no other error occurs, getDirectory must create and return a corresponding DirectoryEntry.</li>
- * <li> If create is not true and the path doesn't exist, getDirectory must fail.</li>
- * <li> If create is not true and the path exists, but is a file, getDirectory must fail.</li>
- * <li> Otherwise, if no other error occurs, getDirectory must return a DirectoryEntrySync corresponding to path.</li>
- * </ul>
- */
- getDirectory(path:string, options?:Flags):DirectoryEntrySync;
-
- /**
- * Deletes a directory and all of its contents, if any. In the event of an error [e.g. trying to delete a directory that contains a file that cannot be removed], some of the contents of the directory may be deleted. It is an error to attempt to delete the root directory of a filesystem.
- */
- removeRecursively():void;
-}
-
-/**
- * This interface lets a user list files and directories in a directory. If there are no additions to or deletions from a directory between the first and last call to readEntries, and no errors occur, then:
- * <ul>
- * <li> A series of calls to readEntries must return each entry in the directory exactly once.</li>
- * <li> Once all entries have been returned, the next call to readEntries must produce an empty array.</li>
- * <li> If not all entries have been returned, the array produced by readEntries must not be empty.</li>
- * <li> The entries produced by readEntries must not include the directory itself ["."] or its parent [".."].</li>
- * </ul>
- */
-interface DirectoryReaderSync {
- /**
- * Read the next block of entries from this directory.
- */
- readEntries():EntrySync[];
-}
-
-/**
- * This interface represents a file on a file system.
- */
-interface FileEntrySync extends EntrySync {
- /**
- * Creates a new FileWriterSync associated with the file that this FileEntrySync represents.
- */
- createWriter():FileWriterSync;
-
- /**
- * Returns a File that represents the current state of the file that this FileEntrySync represents.
- */
- file():File;
-}
-
-interface Window extends LocalFileSystem, LocalFileSystemSync{
-}
-
-interface WorkerGlobalScope extends LocalFileSystem, LocalFileSystemSync{
-}
diff --git a/lib/decl/filewriter/filewriter.d.ts b/lib/decl/filewriter/filewriter.d.ts
deleted file mode 100644
index 78370f1d8..000000000
--- a/lib/decl/filewriter/filewriter.d.ts
+++ /dev/null
@@ -1,176 +0,0 @@
-// Type definitions for File API: Writer
-// Project: http://www.w3.org/TR/file-writer-api/
-// Definitions by: Kon <http://phyzkit.net/>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-/**
- * This interface provides methods to monitor the asynchronous writing of blobs to disk using progress events [PROGRESS-EVENTS] and event handler attributes.
- * This interface is specified to be used within the context of the global object (Window [HTML5]) and within Web Workers (WorkerUtils [WEBWORKERS-ED]).
- */
-interface FileSaver extends EventTarget {
- /**
- * When the abort method is called, user agents must run the steps below:
- * <ol>
- * <li> If readyState == DONE or readyState == INIT, terminate this overall series of steps without doing anything else. </li>
- * <li> Set readyState to DONE. </li>
- * <li> If there are any tasks from the object's FileSaver task source in one of the task queues, then remove those tasks. </li>
- * <li> Terminate the write algorithm being processed. </li>
- * <li> Set the error attribute to a DOMError object of type "AbortError". </li>
- * <li> Fire a progress event called abort </li>
- * <li> Fire a progress event called writeend </li>
- * <li> Terminate this algorithm. </li>
- * </ol>
- */
- abort():void;
-
- /**
- * The blob is being written.
- * @readonly
- */
- INIT:number;
-
- /**
- * The object has been constructed, but there is no pending write.
- * @readonly
- */
- WRITING:number;
-
- /**
- * The entire Blob has been written to the file, an error occurred during the write, or the write was aborted using abort(). The FileSaver is no longer writing the blob.
- * @readonly
- */
- DONE:number;
-
- /**
- * The FileSaver object can be in one of 3 states. The readyState attribute, on getting, must return the current state, which must be one of the following values:
- * <ul>
- * <li>INIT</li>
- * <li>WRITING</li>
- * <li>DONE</li>
- * <ul>
- * @readonly
- */
- readyState:number;
-
- /**
- * The last error that occurred on the FileSaver.
- * @readonly
- */
- error:DOMError;
-
- /**
- * Handler for writestart events
- */
- onwritestart:Function;
-
- /**
- * Handler for progress events.
- */
- onprogress:Function;
-
- /**
- * Handler for write events.
- */
- onwrite:Function;
-
- /**
- * Handler for abort events.
- */
- onabort:Function;
-
- /**
- * Handler for error events.
- */
- onerror:Function;
-
- /**
- * Handler for writeend events.
- */
- onwriteend:Function;
-}
-
-declare var FileSaver: {
- /**
- * When the FileSaver constructor is called, the user agent must return a new FileSaver object with readyState set to INIT.
- * This constructor must be visible when the script's global object is either a Window object or an object implementing the WorkerUtils interface.
- */
- new(data:Blob): FileSaver;
-};
-
-/**
- * This interface expands on the FileSaver interface to allow for multiple write actions, rather than just saving a single Blob.
- */
-interface FileWriter extends FileSaver {
- /**
- * The byte offset at which the next write to the file will occur. This must be no greater than length.
- * A newly-created FileWriter must have position set to 0.
- */
- position:number;
-
- /**
- * The length of the file. If the user does not have read access to the file, this must be the highest byte offset at which the user has written.
- */
- length:number;
-
- /**
- * Write the supplied data to the file at position.
- * @param data The blob to write.
- */
- write(data:Blob):void;
-
- /**
- * Seek sets the file position at which the next write will occur.
- * @param offset If nonnegative, an absolute byte offset into the file. If negative, an offset back from the end of the file.
- */
- seek(offset:number):void;
-
- /**
- * Changes the length of the file to that specified. If shortening the file, data beyond the new length must be discarded. If extending the file, the existing data must be zero-padded up to the new length.
- * @param size The size to which the length of the file is to be adjusted, measured in bytes.
- */
- truncate(size:number):void;
-}
-
-/**
- * This interface lets users write, truncate, and append to files using simple synchronous calls.
- * This interface is specified to be used only within Web Workers (WorkerUtils [WEBWORKERS]).
- */
-interface FileWriterSync {
- /**
- * The byte offset at which the next write to the file will occur. This must be no greater than length.
- */
- position:number;
-
- /**
- * The length of the file. If the user does not have read access to the file, this must be the highest byte offset at which the user has written.
- */
- length:number;
-
- /**
- * Write the supplied data to the file at position. Upon completion, position will increase by data.size.
- * @param data The blob to write.
- */
- write(data:Blob):void;
-
- /**
- * Seek sets the file position at which the next write will occur.
- * @param offset An absolute byte offset into the file. If offset is greater than length, length is used instead. If offset is less than zero, length is added to it, so that it is treated as an offset back from the end of the file. If it is still less than zero, zero is used.
- */
- seek(offset:number):void;
-
- /**
- * Changes the length of the file to that specified. If shortening the file, data beyond the new length must be discarded. If extending the file, the existing data must be zero-padded up to the new length.
- * Upon successful completion:
- * <ul>
- * <li>length must be equal to size.</li>
- * <li>position must be the lesser of
- * <ul>
- * <li>its pre-truncate value,</li>
- * <li>size.</li>
- * </ul>
- * </li>
- * </ul>
- * @param size The size to which the length of the file is to be adjusted, measured in bytes.
- */
- truncate(size:number):void;
-}
diff --git a/lib/decl/handlebars/handlebars-1.0.0.d.ts b/lib/decl/handlebars/handlebars-1.0.0.d.ts
deleted file mode 100644
index c118760c5..000000000
--- a/lib/decl/handlebars/handlebars-1.0.0.d.ts
+++ /dev/null
@@ -1,184 +0,0 @@
-// Type definitions for Handlebars 1.0
-// Project: http://handlebarsjs.com/
-// Definitions by: Boris Yankov <https://github.com/borisyankov/>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-
-// Use either HandlebarsStatic or HandlebarsRuntimeStatic
-declare var Handlebars: HandlebarsStatic;
-//declare var Handlebars: HandlebarsRuntimeStatic;
-
-/**
-* Implement this interface on your MVW/MVVM/MVC views such as Backbone.View
-**/
-interface HandlebarsTemplatable {
- template: HandlebarsTemplateDelegate;
-}
-
-interface HandlebarsTemplateDelegate {
- (context: any, options?: any): string;
-}
-
-interface HandlebarsCommon {
- registerHelper(name: string, fn: Function, inverse?: boolean): void;
- registerPartial(name: string, str: any): void;
- K(): void;
- createFrame(object: any): any;
-
- Exception(message: string): void;
- SafeString: typeof hbs.SafeString;
- Utils: typeof hbs.Utils;
-
- logger: Logger;
- log(level: number, obj: any): void;
-}
-
-interface HandlebarsStatic extends HandlebarsCommon {
- parse(input: string): hbs.AST.ProgramNode;
- compile(input: any, options?: any): HandlebarsTemplateDelegate;
-}
-
-interface HandlebarsTemplates {
- [index: string]: HandlebarsTemplateDelegate;
-}
-
-interface HandlebarsRuntimeStatic extends HandlebarsCommon {
- // Handlebars.templates is the default template namespace in precompiler.
- templates: HandlebarsTemplates;
-}
-
-declare module hbs {
- class SafeString {
- constructor(str: string);
- static toString(): string;
- }
-
- module Utils {
- function escapeExpression(str: string): string;
- }
-}
-
-interface Logger {
- DEBUG: number;
- INFO: number;
- WARN: number;
- ERROR: number;
- level: number;
-
- methodMap: { [level: number]: string };
-
- log(level: number, obj: string): void;
-}
-
-declare module hbs {
- module AST {
- interface IStripInfo {
- left?: boolean;
- right?: boolean;
- inlineStandalone?: boolean;
- }
-
- class NodeBase {
- firstColumn: number;
- firstLine: number;
- lastColumn: number;
- lastLine: number;
- type: string;
- }
-
- class ProgramNode extends NodeBase {
- statements: NodeBase[];
- }
-
- class IdNode extends NodeBase {
- original: string;
- parts: string[];
- string: string;
- depth: number;
- idName: string;
- isSimple: boolean;
- stringModeValue: string;
- }
-
- class HashNode extends NodeBase {
- pairs: {0: string;
- 1: NodeBase}[];
- }
-
- class SexprNode extends NodeBase {
- hash: HashNode;
- id: NodeBase;
- params: NodeBase[];
- isHelper: boolean;
- eligibleHelper: boolean;
- }
-
- class MustacheNode extends NodeBase {
- strip: IStripInfo;
- escaped: boolean;
- sexpr: SexprNode;
-
- }
-
- class BlockNode extends NodeBase {
- mustache: MustacheNode;
- program: ProgramNode;
- inverse: ProgramNode;
- strip: IStripInfo;
- isInverse: boolean;
- }
-
- class PartialNameNode extends NodeBase {
- name: string;
- }
-
- class PartialNode extends NodeBase {
- partialName: PartialNameNode;
- context: NodeBase;
- hash: HashNode;
- strip: IStripInfo;
- }
-
- class RawBlockNode extends NodeBase {
- mustache: MustacheNode;
- program: ProgramNode;
- }
-
- class ContentNode extends NodeBase {
- original: string;
- string: string;
- }
-
- class DataNode extends NodeBase {
- id: IdNode;
- stringModeValue: string;
- idName: string;
- }
-
- class StringNode extends NodeBase {
- original: string;
- string: string;
- stringModeValue: string;
- }
-
- class NumberNode extends NodeBase {
- original: string;
- number: string;
- stringModeValue: number;
- }
-
- class BooleanNode extends NodeBase {
- bool: string;
- stringModeValue: boolean;
- }
-
- class CommentNode extends NodeBase {
- comment: string;
- strip: IStripInfo;
- }
- }
-}
-
-declare module "handlebars" {
- export = Handlebars;
-}
diff --git a/lib/decl/handlebars/handlebars.d.ts b/lib/decl/handlebars/handlebars.d.ts
deleted file mode 100644
index 54dc7e9ae..000000000
--- a/lib/decl/handlebars/handlebars.d.ts
+++ /dev/null
@@ -1,227 +0,0 @@
-// Type definitions for Handlebars v3.0.3
-// Project: http://handlebarsjs.com/
-// Definitions by: Boris Yankov <https://github.com/borisyankov/>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-
-declare module Handlebars {
- export function registerHelper(name: string, fn: Function, inverse?: boolean): void;
- export function registerPartial(name: string, str: any): void;
- export function unregisterHelper(name: string): void;
- export function unregisterPartial(name: string): void;
- export function K(): void;
- export function createFrame(object: any): any;
- export function Exception(message: string): void;
- export function log(level: number, obj: any): void;
- export function parse(input: string): hbs.AST.Program;
- export function compile(input: any, options?: any): HandlebarsTemplateDelegate;
-
- export var SafeString: typeof hbs.SafeString;
- export var Utils: typeof hbs.Utils;
- export var logger: Logger;
- export var templates: HandlebarsTemplates;
- export var helpers: any;
-
- export module AST {
- export var helpers: hbs.AST.helpers;
- }
-
- interface ICompiler {
- accept(node: hbs.AST.Node): void;
- Program(program: hbs.AST.Program): void;
- BlockStatement(block: hbs.AST.BlockStatement): void;
- PartialStatement(partial: hbs.AST.PartialStatement): void;
- MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
- ContentStatement(content: hbs.AST.ContentStatement): void;
- CommentStatement(comment?: hbs.AST.CommentStatement): void;
- SubExpression(sexpr: hbs.AST.SubExpression): void;
- PathExpression(path: hbs.AST.PathExpression): void;
- StringLiteral(str: hbs.AST.StringLiteral): void;
- NumberLiteral(num: hbs.AST.NumberLiteral): void;
- BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
- UndefinedLiteral(): void;
- NullLiteral(): void;
- Hash(hash: hbs.AST.Hash): void;
- }
-
- export class Visitor implements ICompiler {
- accept(node: hbs.AST.Node): void;
- acceptKey(node: hbs.AST.Node, name: string): void;
- acceptArray(arr: hbs.AST.Expression[]): void;
- Program(program: hbs.AST.Program): void;
- BlockStatement(block: hbs.AST.BlockStatement): void;
- PartialStatement(partial: hbs.AST.PartialStatement): void;
- MustacheStatement(mustache: hbs.AST.MustacheStatement): void;
- ContentStatement(content: hbs.AST.ContentStatement): void;
- CommentStatement(comment?: hbs.AST.CommentStatement): void;
- SubExpression(sexpr: hbs.AST.SubExpression): void;
- PathExpression(path: hbs.AST.PathExpression): void;
- StringLiteral(str: hbs.AST.StringLiteral): void;
- NumberLiteral(num: hbs.AST.NumberLiteral): void;
- BooleanLiteral(bool: hbs.AST.BooleanLiteral): void;
- UndefinedLiteral(): void;
- NullLiteral(): void;
- Hash(hash: hbs.AST.Hash): void;
- }
-}
-
-/**
-* Implement this interface on your MVW/MVVM/MVC views such as Backbone.View
-**/
-interface HandlebarsTemplatable {
- template: HandlebarsTemplateDelegate;
-}
-
-interface HandlebarsTemplateDelegate {
- (context: any, options?: any): string;
-}
-
-interface HandlebarsTemplates {
- [index: string]: HandlebarsTemplateDelegate;
-}
-
-declare module hbs {
- class SafeString {
- constructor(str: string);
- static toString(): string;
- }
-
- module Utils {
- function escapeExpression(str: string): string;
- }
-}
-
-interface Logger {
- DEBUG: number;
- INFO: number;
- WARN: number;
- ERROR: number;
- level: number;
-
- methodMap: { [level: number]: string };
-
- log(level: number, obj: string): void;
-}
-
-declare module hbs {
- module AST {
- interface Node {
- type: string;
- loc: SourceLocation;
- }
-
- interface SourceLocation {
- source: string;
- start: Position;
- end: Position;
- }
-
- interface Position {
- line: number;
- column: number;
- }
-
- interface Program extends Node {
- body: Statement[];
- blockParams: string[];
- }
-
- interface Statement extends Node {}
-
- interface MustacheStatement extends Statement {
- path: PathExpression | Literal;
- params: Expression[];
- hash: Hash;
- escaped: boolean;
- strip: StripFlags;
- }
-
- interface BlockStatement extends Statement {
- path: PathExpression;
- params: Expression[];
- hash: Hash;
- program: Program;
- inverse: Program;
- openStrip: StripFlags;
- inverseStrip: StripFlags;
- closeStrip: StripFlags;
- }
-
- interface PartialStatement extends Statement {
- name: PathExpression | SubExpression;
- params: Expression[];
- hash: Hash;
- indent: string;
- strip: StripFlags;
- }
-
- interface ContentStatement extends Statement {
- value: string;
- original: StripFlags;
- }
-
- interface CommentStatement extends Statement {
- value: string;
- strip: StripFlags;
- }
-
- interface Expression extends Node {}
-
- interface SubExpression extends Expression {
- path: PathExpression;
- params: Expression[];
- hash: Hash;
- }
-
- interface PathExpression extends Expression {
- data: boolean;
- depth: number;
- parts: string[];
- original: string;
- }
-
- interface Literal extends Expression {}
- interface StringLiteral extends Literal {
- value: string;
- original: string;
- }
-
- interface BooleanLiteral extends Literal {
- value: boolean;
- original: boolean;
- }
-
- interface NumberLiteral extends Literal {
- value: number;
- original: number;
- }
-
- interface UndefinedLiteral extends Literal {}
-
- interface NullLiteral extends Literal {}
-
- interface Hash extends Node {
- pairs: HashPair[];
- }
-
- interface HashPair extends Node {
- key: string;
- value: Expression;
- }
-
- interface StripFlags {
- open: boolean;
- close: boolean;
- }
-
- interface helpers {
- helperExpression(node: Node): boolean;
- scopeId(path: PathExpression): boolean;
- simpleId(path: PathExpression): boolean;
- }
- }
-}
-
-declare module "handlebars" {
- export = Handlebars;
-}
diff --git a/lib/decl/jquery/jquery.d.ts b/lib/decl/jquery/jquery.d.ts
deleted file mode 100644
index 8401753e3..000000000
--- a/lib/decl/jquery/jquery.d.ts
+++ /dev/null
@@ -1,3190 +0,0 @@
-// Type definitions for jQuery 1.10.x / 2.0.x
-// Project: http://jquery.com/
-// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Christian Hoffmeister <https://github.com/choffmeister>, Steve Fenton <https://github.com/Steve-Fenton>, Diullei Gomes <https://github.com/Diullei>, Tass Iliopoulos <https://github.com/tasoili>, Jason Swearingen <https://github.com/jasons-novaleaf>, Sean Hill <https://github.com/seanski>, Guus Goossens <https://github.com/Guuz>, Kelly Summerlin <https://github.com/ksummerlin>, Basarat Ali Syed <https://github.com/basarat>, Nicholas Wolverson <https://github.com/nwolverson>, Derek Cicerone <https://github.com/derekcicerone>, Andrew Gaspar <https://github.com/AndrewGaspar>, James Harrison Fisher <https://github.com/jameshfisher>, Seikichi Kondo <https://github.com/seikichi>, Benjamin Jackman <https://github.com/benjaminjackman>, Poul Sorensen <https://github.com/s093294>, Josh Strobl <https://github.com/JoshStrobl>, John Reilly <https://github.com/johnnyreilly/>, Dick van den Brink <https://github.com/DickvdBrink>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-/* *****************************************************************************
-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 *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.
-***************************************************************************** */
-
-
-/**
- * Interface for the AJAX setting that will configure the AJAX request
- */
-interface JQueryAjaxSettings {
- /**
- * The content type sent in the request header that tells the server what kind of response it will accept in return. If the accepts setting needs modification, it is recommended to do so once in the $.ajaxSetup() method.
- */
- accepts?: any;
- /**
- * By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active. As of jQuery 1.8, the use of async: false with jqXHR ($.Deferred) is deprecated; you must use the success/error/complete callback options instead of the corresponding methods of the jqXHR object such as jqXHR.done() or the deprecated jqXHR.success().
- */
- async?: boolean;
- /**
- * A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless of the type of request.
- */
- beforeSend? (jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any;
- /**
- * If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET.
- */
- cache?: boolean;
- /**
- * A function to be called when the request finishes (after success and error callbacks are executed). The function gets passed two arguments: The jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object and a string categorizing the status of the request ("success", "notmodified", "error", "timeout", "abort", or "parsererror"). As of jQuery 1.5, the complete setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event.
- */
- complete? (jqXHR: JQueryXHR, textStatus: string): any;
- /**
- * An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
- */
- contents?: { [key: string]: any; };
- //According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
- // https://github.com/borisyankov/DefinitelyTyped/issues/742
- /**
- * When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded; charset=UTF-8", which is fine for most cases. If you explicitly pass in a content-type to $.ajax(), then it is always sent to the server (even if no data is sent). The W3C XMLHttpRequest specification dictates that the charset is always UTF-8; specifying another charset will not force the browser to change the encoding.
- */
- contentType?: any;
- /**
- * This object will be made the context of all Ajax-related callbacks. By default, the context is an object that represents the ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax).
- */
- context?: any;
- /**
- * An object containing dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response. (version added: 1.5)
- */
- converters?: { [key: string]: any; };
- /**
- * If you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true. This allows, for example, server-side redirection to another domain. (version added: 1.5)
- */
- crossDomain?: boolean;
- /**
- * Data to be sent to the server. It is converted to a query string, if not already a string. It's appended to the url for GET-requests. See processData option to prevent this automatic processing. Object must be Key/Value pairs. If value is an Array, jQuery serializes multiple values with same key based on the value of the traditional setting (described below).
- */
- data?: any;
- /**
- * A function to be used to handle the raw response data of XMLHttpRequest.This is a pre-filtering function to sanitize the response. You should return the sanitized data. The function accepts two arguments: The raw data returned from the server and the 'dataType' parameter.
- */
- dataFilter? (data: any, ty: any): any;
- /**
- * The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string).
- */
- dataType?: string;
- /**
- * A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides null) are "timeout", "error", "abort", and "parsererror". When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." As of jQuery 1.5, the error setting can accept an array of functions. Each function will be called in turn. Note: This handler is not called for cross-domain script and cross-domain JSONP requests. This is an Ajax Event.
- */
- error? (jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any;
- /**
- * Whether to trigger global Ajax event handlers for this request. The default is true. Set to false to prevent the global handlers like ajaxStart or ajaxStop from being triggered. This can be used to control various Ajax Events.
- */
- global?: boolean;
- /**
- * An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport. The header X-Requested-With: XMLHttpRequest is always added, but its default XMLHttpRequest value can be changed here. Values in the headers setting can also be overwritten from within the beforeSend function. (version added: 1.5)
- */
- headers?: { [key: string]: any; };
- /**
- * Allow the request to be successful only if the response has changed since the last request. This is done by checking the Last-Modified header. Default value is false, ignoring the header. In jQuery 1.4 this technique also checks the 'etag' specified by the server to catch unmodified data.
- */
- ifModified?: boolean;
- /**
- * Allow the current environment to be recognized as "local," (e.g. the filesystem), even if jQuery does not recognize it as such by default. The following protocols are currently recognized as local: file, *-extension, and widget. If the isLocal setting needs modification, it is recommended to do so once in the $.ajaxSetup() method. (version added: 1.5.1)
- */
- isLocal?: boolean;
- /**
- * Override the callback function name in a jsonp request. This value will be used instead of 'callback' in the 'callback=?' part of the query string in the url. So {jsonp:'onJSONPLoad'} would result in 'onJSONPLoad=?' passed to the server. As of jQuery 1.5, setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation. In this case, you should also explicitly set the jsonpCallback setting. For example, { jsonp: false, jsonpCallback: "callbackName" }
- */
- jsonp?: any;
- /**
- * Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. As of jQuery 1.5, you can also use a function for this setting, in which case the value of jsonpCallback is set to the return value of that function.
- */
- jsonpCallback?: any;
- /**
- * The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). (version added: 1.9.0)
- */
- method?: string;
- /**
- * A mime type to override the XHR mime type. (version added: 1.5.1)
- */
- mimeType?: string;
- /**
- * A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
- */
- password?: string;
- /**
- * By default, data passed in to the data option as an object (technically, anything other than a string) will be processed and transformed into a query string, fitting to the default content-type "application/x-www-form-urlencoded". If you want to send a DOMDocument, or other non-processed data, set this option to false.
- */
- processData?: boolean;
- /**
- * Only applies when the "script" transport is used (e.g., cross-domain requests with "jsonp" or "script" dataType and "GET" type). Sets the charset attribute on the script tag used in the request. Used when the character set on the local page is not the same as the one on the remote script.
- */
- scriptCharset?: string;
- /**
- * An object of numeric HTTP codes and functions to be called when the response has the corresponding code. f the request is successful, the status code functions take the same parameters as the success callback; if it results in an error (including 3xx redirect), they take the same parameters as the error callback. (version added: 1.5)
- */
- statusCode?: { [key: string]: any; };
- /**
- * A function to be called if the request succeeds. The function gets passed three arguments: The data returned from the server, formatted according to the dataType parameter; a string describing the status; and the jqXHR (in jQuery 1.4.x, XMLHttpRequest) object. As of jQuery 1.5, the success setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event.
- */
- success? (data: any, textStatus: string, jqXHR: JQueryXHR): any;
- /**
- * Set a timeout (in milliseconds) for the request. This will override any global timeout set with $.ajaxSetup(). The timeout period starts at the point the $.ajax call is made; if several other requests are in progress and the browser has no connections available, it is possible for a request to time out before it can be sent. In jQuery 1.4.x and below, the XMLHttpRequest object will be in an invalid state if the request times out; accessing any object members may throw an exception. In Firefox 3.0+ only, script and JSONP requests cannot be cancelled by a timeout; the script will run even if it arrives after the timeout period.
- */
- timeout?: number;
- /**
- * Set this to true if you wish to use the traditional style of param serialization.
- */
- traditional?: boolean;
- /**
- * The type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.
- */
- type?: string;
- /**
- * A string containing the URL to which the request is sent.
- */
- url?: string;
- /**
- * A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
- */
- username?: string;
- /**
- * Callback for creating the XMLHttpRequest object. Defaults to the ActiveXObject when available (IE), the XMLHttpRequest otherwise. Override to provide your own implementation for XMLHttpRequest or enhancements to the factory.
- */
- xhr?: any;
- /**
- * An object of fieldName-fieldValue pairs to set on the native XHR object. For example, you can use it to set withCredentials to true for cross-domain requests if needed. In jQuery 1.5, the withCredentials property was not propagated to the native XHR and thus CORS requests requiring it would ignore this flag. For this reason, we recommend using jQuery 1.5.1+ should you require the use of it. (version added: 1.5.1)
- */
- xhrFields?: { [key: string]: any; };
-}
-
-/**
- * Interface for the jqXHR object
- */
-interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
- /**
- * The .overrideMimeType() method may be used in the beforeSend() callback function, for example, to modify the response content-type header. As of jQuery 1.5.1, the jqXHR object also contains the overrideMimeType() method (it was available in jQuery 1.4.x, as well, but was temporarily removed in jQuery 1.5).
- */
- overrideMimeType(mimeType: string): any;
- /**
- * Cancel the request.
- *
- * @param statusText A string passed as the textStatus parameter for the done callback. Default value: "canceled"
- */
- abort(statusText?: string): void;
- /**
- * Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to deferred.then() for implementation details.
- */
- then(doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => void, failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void): JQueryPromise<any>;
- /**
- * Property containing the parsed response if the response Content-Type is json
- */
- responseJSON?: any;
- /**
- * A function to be called if the request fails.
- */
- error(xhr: JQueryXHR, textStatus: string, errorThrown: string): void;
-}
-
-/**
- * Interface for the JQuery callback
- */
-interface JQueryCallback {
- /**
- * Add a callback or a collection of callbacks to a callback list.
- *
- * @param callbacks A function, or array of functions, that are to be added to the callback list.
- */
- add(callbacks: Function): JQueryCallback;
- /**
- * Add a callback or a collection of callbacks to a callback list.
- *
- * @param callbacks A function, or array of functions, that are to be added to the callback list.
- */
- add(callbacks: Function[]): JQueryCallback;
-
- /**
- * Disable a callback list from doing anything more.
- */
- disable(): JQueryCallback;
-
- /**
- * Determine if the callbacks list has been disabled.
- */
- disabled(): boolean;
-
- /**
- * Remove all of the callbacks from a list.
- */
- empty(): JQueryCallback;
-
- /**
- * Call all of the callbacks with the given arguments
- *
- * @param arguments The argument or list of arguments to pass back to the callback list.
- */
- fire(...arguments: any[]): JQueryCallback;
-
- /**
- * Determine if the callbacks have already been called at least once.
- */
- fired(): boolean;
-
- /**
- * Call all callbacks in a list with the given context and arguments.
- *
- * @param context A reference to the context in which the callbacks in the list should be fired.
- * @param arguments An argument, or array of arguments, to pass to the callbacks in the list.
- */
- fireWith(context?: any, args?: any[]): JQueryCallback;
-
- /**
- * Determine whether a supplied callback is in a list
- *
- * @param callback The callback to search for.
- */
- has(callback: Function): boolean;
-
- /**
- * Lock a callback list in its current state.
- */
- lock(): JQueryCallback;
-
- /**
- * Determine if the callbacks list has been locked.
- */
- locked(): boolean;
-
- /**
- * Remove a callback or a collection of callbacks from a callback list.
- *
- * @param callbacks A function, or array of functions, that are to be removed from the callback list.
- */
- remove(callbacks: Function): JQueryCallback;
- /**
- * Remove a callback or a collection of callbacks from a callback list.
- *
- * @param callbacks A function, or array of functions, that are to be removed from the callback list.
- */
- remove(callbacks: Function[]): JQueryCallback;
-}
-
-/**
- * Allows jQuery Promises to interop with non-jQuery promises
- */
-interface JQueryGenericPromise<T> {
- /**
- * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
- *
- * @param doneFilter A function that is called when the Deferred is resolved.
- * @param failFilter An optional function that is called when the Deferred is rejected.
- */
- then<U>(doneFilter: (value?: T, ...values: any[]) => U|JQueryPromise<U>, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise<U>;
-
- /**
- * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
- *
- * @param doneFilter A function that is called when the Deferred is resolved.
- * @param failFilter An optional function that is called when the Deferred is rejected.
- */
- then(doneFilter: (value?: T, ...values: any[]) => void, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise<void>;
-}
-
-/**
- * Interface for the JQuery promise/deferred callbacks
- */
-interface JQueryPromiseCallback<T> {
- (value?: T, ...args: any[]): void;
-}
-
-interface JQueryPromiseOperator<T, U> {
- (callback1: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...callbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<U>;
-}
-
-/**
- * Interface for the JQuery promise, part of callbacks
- */
-interface JQueryPromise<T> extends JQueryGenericPromise<T> {
- /**
- * Determine the current state of a Deferred object.
- */
- state(): string;
- /**
- * Add handlers to be called when the Deferred object is either resolved or rejected.
- *
- * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
- * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
- */
- always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
- /**
- * Add handlers to be called when the Deferred object is resolved.
- *
- * @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
- * @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
- */
- done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryPromise<T>;
- /**
- * Add handlers to be called when the Deferred object is rejected.
- *
- * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
- * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
- */
- fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
- /**
- * Add handlers to be called when the Deferred object generates progress notifications.
- *
- * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
- */
- progress(progressCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
-
- // Deprecated - given no typings
- pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
-}
-
-/**
- * Interface for the JQuery deferred, part of callbacks
- */
-interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
- /**
- * Determine the current state of a Deferred object.
- */
- state(): string;
- /**
- * Add handlers to be called when the Deferred object is either resolved or rejected.
- *
- * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
- * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
- */
- always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
- /**
- * Add handlers to be called when the Deferred object is resolved.
- *
- * @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
- * @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
- */
- done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryDeferred<T>;
- /**
- * Add handlers to be called when the Deferred object is rejected.
- *
- * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
- * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
- */
- fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
- /**
- * Add handlers to be called when the Deferred object generates progress notifications.
- *
- * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
- */
- progress(progressCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
-
- /**
- * Call the progressCallbacks on a Deferred object with the given args.
- *
- * @param args Optional arguments that are passed to the progressCallbacks.
- */
- notify(value?: any, ...args: any[]): JQueryDeferred<T>;
-
- /**
- * Call the progressCallbacks on a Deferred object with the given context and args.
- *
- * @param context Context passed to the progressCallbacks as the this object.
- * @param args Optional arguments that are passed to the progressCallbacks.
- */
- notifyWith(context: any, value?: any[]): JQueryDeferred<T>;
-
- /**
- * Reject a Deferred object and call any failCallbacks with the given args.
- *
- * @param args Optional arguments that are passed to the failCallbacks.
- */
- reject(value?: any, ...args: any[]): JQueryDeferred<T>;
- /**
- * Reject a Deferred object and call any failCallbacks with the given context and args.
- *
- * @param context Context passed to the failCallbacks as the this object.
- * @param args An optional array of arguments that are passed to the failCallbacks.
- */
- rejectWith(context: any, value?: any[]): JQueryDeferred<T>;
-
- /**
- * Resolve a Deferred object and call any doneCallbacks with the given args.
- *
- * @param value First argument passed to doneCallbacks.
- * @param args Optional subsequent arguments that are passed to the doneCallbacks.
- */
- resolve(value?: T, ...args: any[]): JQueryDeferred<T>;
-
- /**
- * Resolve a Deferred object and call any doneCallbacks with the given context and args.
- *
- * @param context Context passed to the doneCallbacks as the this object.
- * @param args An optional array of arguments that are passed to the doneCallbacks.
- */
- resolveWith(context: any, value?: T[]): JQueryDeferred<T>;
-
- /**
- * Return a Deferred's Promise object.
- *
- * @param target Object onto which the promise methods have to be attached
- */
- promise(target?: any): JQueryPromise<T>;
-
- // Deprecated - given no typings
- pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
-}
-
-/**
- * Interface of the JQuery extension of the W3C event object
- */
-interface BaseJQueryEventObject extends Event {
- data: any;
- delegateTarget: Element;
- isDefaultPrevented(): boolean;
- isImmediatePropagationStopped(): boolean;
- isPropagationStopped(): boolean;
- namespace: string;
- originalEvent: Event;
- preventDefault(): any;
- relatedTarget: Element;
- result: any;
- stopImmediatePropagation(): void;
- stopPropagation(): void;
- target: Element;
- pageX: number;
- pageY: number;
- which: number;
- metaKey: boolean;
-}
-
-interface JQueryInputEventObject extends BaseJQueryEventObject {
- altKey: boolean;
- ctrlKey: boolean;
- metaKey: boolean;
- shiftKey: boolean;
-}
-
-interface JQueryMouseEventObject extends JQueryInputEventObject {
- button: number;
- clientX: number;
- clientY: number;
- offsetX: number;
- offsetY: number;
- pageX: number;
- pageY: number;
- screenX: number;
- screenY: number;
-}
-
-interface JQueryKeyEventObject extends JQueryInputEventObject {
- char: any;
- charCode: number;
- key: any;
- keyCode: number;
-}
-
-interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject{
-}
-
-/*
- Collection of properties of the current browser
-*/
-
-interface JQuerySupport {
- ajax?: boolean;
- boxModel?: boolean;
- changeBubbles?: boolean;
- checkClone?: boolean;
- checkOn?: boolean;
- cors?: boolean;
- cssFloat?: boolean;
- hrefNormalized?: boolean;
- htmlSerialize?: boolean;
- leadingWhitespace?: boolean;
- noCloneChecked?: boolean;
- noCloneEvent?: boolean;
- opacity?: boolean;
- optDisabled?: boolean;
- optSelected?: boolean;
- scriptEval? (): boolean;
- style?: boolean;
- submitBubbles?: boolean;
- tbody?: boolean;
-}
-
-interface JQueryParam {
- /**
- * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
- *
- * @param obj An array or object to serialize.
- */
- (obj: any): string;
-
- /**
- * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
- *
- * @param obj An array or object to serialize.
- * @param traditional A Boolean indicating whether to perform a traditional "shallow" serialization.
- */
- (obj: any, traditional: boolean): string;
-}
-
-/**
- * The interface used to construct jQuery events (with $.Event). It is
- * defined separately instead of inline in JQueryStatic to allow
- * overriding the construction function with specific strings
- * returning specific event objects.
- */
-interface JQueryEventConstructor {
- (name: string, eventProperties?: any): JQueryEventObject;
- new (name: string, eventProperties?: any): JQueryEventObject;
-}
-
-/**
- * The interface used to specify coordinates.
- */
-interface JQueryCoordinates {
- left: number;
- top: number;
-}
-
-/**
- * Elements in the array returned by serializeArray()
- */
-interface JQuerySerializeArrayElement {
- name: string;
- value: string;
-}
-
-interface JQueryAnimationOptions {
- /**
- * A string or number determining how long the animation will run.
- */
- duration?: any;
- /**
- * A string indicating which easing function to use for the transition.
- */
- easing?: string;
- /**
- * A function to call once the animation is complete.
- */
- complete?: Function;
- /**
- * A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set.
- */
- step?: (now: number, tween: any) => any;
- /**
- * A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties. (version added: 1.8)
- */
- progress?: (animation: JQueryPromise<any>, progress: number, remainingMs: number) => any;
- /**
- * A function to call when the animation begins. (version added: 1.8)
- */
- start?: (animation: JQueryPromise<any>) => any;
- /**
- * A function to be called when the animation completes (its Promise object is resolved). (version added: 1.8)
- */
- done?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
- /**
- * A function to be called when the animation fails to complete (its Promise object is rejected). (version added: 1.8)
- */
- fail?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
- /**
- * A function to be called when the animation completes or stops without completing (its Promise object is either resolved or rejected). (version added: 1.8)
- */
- always?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
- /**
- * A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call .dequeue("queuename") to start it.
- */
- queue?: any;
- /**
- * A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: 1.4)
- */
- specialEasing?: Object;
-}
-
-/**
- * Static members of jQuery (those on $ and jQuery themselves)
- */
-interface JQueryStatic {
-
- /**
- * Perform an asynchronous HTTP (Ajax) request.
- *
- * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().
- */
- ajax(settings: JQueryAjaxSettings): JQueryXHR;
- /**
- * Perform an asynchronous HTTP (Ajax) request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().
- */
- ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR;
-
- /**
- * Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
- *
- * @param dataTypes An optional string containing one or more space-separated dataTypes
- * @param handler A handler to set default values for future Ajax requests.
- */
- ajaxPrefilter(dataTypes: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
- /**
- * Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
- *
- * @param handler A handler to set default values for future Ajax requests.
- */
- ajaxPrefilter(handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
-
- ajaxSettings: JQueryAjaxSettings;
-
- /**
- * Set default values for future Ajax requests. Its use is not recommended.
- *
- * @param options A set of key/value pairs that configure the default Ajax request. All options are optional.
- */
- ajaxSetup(options: JQueryAjaxSettings): void;
-
- /**
- * Load data from the server using a HTTP GET request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success A callback function that is executed if the request succeeds.
- * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).
- */
- get(url: string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
- /**
- * Load data from the server using a HTTP GET request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param data A plain object or string that is sent to the server with the request.
- * @param success A callback function that is executed if the request succeeds.
- * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).
- */
- get(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
- /**
- * Load JSON-encoded data from the server using a GET HTTP request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success A callback function that is executed if the request succeeds.
- */
- getJSON(url: string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR;
- /**
- * Load JSON-encoded data from the server using a GET HTTP request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param data A plain object or string that is sent to the server with the request.
- * @param success A callback function that is executed if the request succeeds.
- */
- getJSON(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR;
- /**
- * Load a JavaScript file from the server using a GET HTTP request, then execute it.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success A callback function that is executed if the request succeeds.
- */
- getScript(url: string, success?: (script: string, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR;
-
- /**
- * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
- */
- param: JQueryParam;
-
- /**
- * Load data from the server using a HTTP POST request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.
- * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
- */
- post(url: string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
- /**
- * Load data from the server using a HTTP POST request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param data A plain object or string that is sent to the server with the request.
- * @param success A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.
- * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
- */
- post(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
-
- /**
- * A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
- *
- * @param flags An optional list of space-separated flags that change how the callback list behaves.
- */
- Callbacks(flags?: string): JQueryCallback;
-
- /**
- * Holds or releases the execution of jQuery's ready event.
- *
- * @param hold Indicates whether the ready hold is being requested or released
- */
- holdReady(hold: boolean): void;
-
- /**
- * Accepts a string containing a CSS selector which is then used to match a set of elements.
- *
- * @param selector A string containing a selector expression
- * @param context A DOM Element, Document, or jQuery to use as context
- */
- (selector: string, context?: Element|JQuery): JQuery;
-
- /**
- * Accepts a string containing a CSS selector which is then used to match a set of elements.
- *
- * @param element A DOM element to wrap in a jQuery object.
- */
- (element: Element): JQuery;
-
- /**
- * Accepts a string containing a CSS selector which is then used to match a set of elements.
- *
- * @param elementArray An array containing a set of DOM elements to wrap in a jQuery object.
- */
- (elementArray: Element[]): JQuery;
-
- /**
- * Binds a function to be executed when the DOM has finished loading.
- *
- * @param callback A function to execute after the DOM is ready.
- */
- (callback: (jQueryAlias?: JQueryStatic) => any): JQuery;
-
- /**
- * Accepts a string containing a CSS selector which is then used to match a set of elements.
- *
- * @param object A plain object to wrap in a jQuery object.
- */
- (object: {}): JQuery;
-
- /**
- * Accepts a string containing a CSS selector which is then used to match a set of elements.
- *
- * @param object An existing jQuery object to clone.
- */
- (object: JQuery): JQuery;
-
- /**
- * Specify a function to execute when the DOM is fully loaded.
- */
- (): JQuery;
-
- /**
- * Creates DOM elements on the fly from the provided string of raw HTML.
- *
- * @param html A string of HTML to create on the fly. Note that this parses HTML, not XML.
- * @param ownerDocument A document in which the new elements will be created.
- */
- (html: string, ownerDocument?: Document): JQuery;
-
- /**
- * Creates DOM elements on the fly from the provided string of raw HTML.
- *
- * @param html A string defining a single, standalone, HTML element (e.g. <div/> or <div></div>).
- * @param attributes An object of attributes, events, and methods to call on the newly-created element.
- */
- (html: string, attributes: Object): JQuery;
-
- /**
- * Relinquish jQuery's control of the $ variable.
- *
- * @param removeAll A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself).
- */
- noConflict(removeAll?: boolean): Object;
-
- /**
- * Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events.
- *
- * @param deferreds One or more Deferred objects, or plain JavaScript objects.
- */
- when<T>(...deferreds: Array<T|JQueryPromise<T>/* as JQueryDeferred<T> */>): JQueryPromise<T>;
-
- /**
- * Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
- */
- cssHooks: { [key: string]: any; };
- cssNumber: any;
-
- /**
- * Store arbitrary data associated with the specified element. Returns the value that was set.
- *
- * @param element The DOM element to associate with the data.
- * @param key A string naming the piece of data to set.
- * @param value The new data value.
- */
- data<T>(element: Element, key: string, value: T): T;
- /**
- * Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element.
- *
- * @param element The DOM element to associate with the data.
- * @param key A string naming the piece of data to set.
- */
- data(element: Element, key: string): any;
- /**
- * Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element.
- *
- * @param element The DOM element to associate with the data.
- */
- data(element: Element): any;
-
- /**
- * Execute the next function on the queue for the matched element.
- *
- * @param element A DOM element from which to remove and execute a queued function.
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- */
- dequeue(element: Element, queueName?: string): void;
-
- /**
- * Determine whether an element has any jQuery data associated with it.
- *
- * @param element A DOM element to be checked for data.
- */
- hasData(element: Element): boolean;
-
- /**
- * Show the queue of functions to be executed on the matched element.
- *
- * @param element A DOM element to inspect for an attached queue.
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- */
- queue(element: Element, queueName?: string): any[];
- /**
- * Manipulate the queue of functions to be executed on the matched element.
- *
- * @param element A DOM element where the array of queued functions is attached.
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- * @param newQueue An array of functions to replace the current queue contents.
- */
- queue(element: Element, queueName: string, newQueue: Function[]): JQuery;
- /**
- * Manipulate the queue of functions to be executed on the matched element.
- *
- * @param element A DOM element on which to add a queued function.
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- * @param callback The new function to add to the queue.
- */
- queue(element: Element, queueName: string, callback: Function): JQuery;
-
- /**
- * Remove a previously-stored piece of data.
- *
- * @param element A DOM element from which to remove data.
- * @param name A string naming the piece of data to remove.
- */
- removeData(element: Element, name?: string): JQuery;
-
- /**
- * A constructor function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
- *
- * @param beforeStart A function that is called just before the constructor returns.
- */
- Deferred<T>(beforeStart?: (deferred: JQueryDeferred<T>) => any): JQueryDeferred<T>;
-
- /**
- * Effects
- */
- fx: {
- tick: () => void;
- /**
- * The rate (in milliseconds) at which animations fire.
- */
- interval: number;
- stop: () => void;
- speeds: { slow: number; fast: number; };
- /**
- * Globally disable all animations.
- */
- off: boolean;
- step: any;
- };
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fnction The function whose context will be changed.
- * @param context The object to which the context (this) of the function should be set.
- * @param additionalArguments Any number of arguments to be passed to the function referenced in the function argument.
- */
- proxy(fnction: (...args: any[]) => any, context: Object, ...additionalArguments: any[]): any;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param context The object to which the context (this) of the function should be set.
- * @param name The name of the function whose context will be changed (should be a property of the context object).
- * @param additionalArguments Any number of arguments to be passed to the function named in the name argument.
- */
- proxy(context: Object, name: string, ...additionalArguments: any[]): any;
-
- Event: JQueryEventConstructor;
-
- /**
- * Takes a string and throws an exception containing it.
- *
- * @param message The message to send out.
- */
- error(message: any): JQuery;
-
- expr: any;
- fn: any; //TODO: Decide how we want to type this
-
- isReady: boolean;
-
- // Properties
- support: JQuerySupport;
-
- /**
- * Check to see if a DOM element is a descendant of another DOM element.
- *
- * @param container The DOM element that may contain the other element.
- * @param contained The DOM element that may be contained by (a descendant of) the other element.
- */
- contains(container: Element, contained: Element): boolean;
-
- /**
- * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
- *
- * @param collection The object or array to iterate over.
- * @param callback The function that will be executed on every object.
- */
- each<T>(
- collection: T[],
- callback: (indexInArray: number, valueOfElement: T) => any
- ): any;
-
- /**
- * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
- *
- * @param collection The object or array to iterate over.
- * @param callback The function that will be executed on every object.
- */
- each(
- collection: any,
- callback: (indexInArray: any, valueOfElement: any) => any
- ): any;
-
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument.
- * @param object1 An object containing additional properties to merge in.
- * @param objectN Additional objects containing properties to merge in.
- */
- extend(target: any, object1?: any, ...objectN: any[]): any;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy).
- * @param target The object to extend. It will receive the new properties.
- * @param object1 An object containing additional properties to merge in.
- * @param objectN Additional objects containing properties to merge in.
- */
- extend(deep: boolean, target: any, object1?: any, ...objectN: any[]): any;
-
- /**
- * Execute some JavaScript code globally.
- *
- * @param code The JavaScript code to execute.
- */
- globalEval(code: string): any;
-
- /**
- * Finds the elements of an array which satisfy a filter function. The original array is not affected.
- *
- * @param array The array to search through.
- * @param func The function to process each item against. The first argument to the function is the item, and the second argument is the index. The function should return a Boolean value. this will be the global window object.
- * @param invert If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false.
- */
- grep<T>(array: T[], func: (elementOfArray: T, indexInArray: number) => boolean, invert?: boolean): T[];
-
- /**
- * Search for a specified value within an array and return its index (or -1 if not found).
- *
- * @param value The value to search for.
- * @param array An array through which to search.
- * @param fromIndex he index of the array at which to begin the search. The default is 0, which will search the whole array.
- */
- inArray<T>(value: T, array: T[], fromIndex?: number): number;
-
- /**
- * Determine whether the argument is an array.
- *
- * @param obj Object to test whether or not it is an array.
- */
- isArray(obj: any): boolean;
- /**
- * Check to see if an object is empty (contains no enumerable properties).
- *
- * @param obj The object that will be checked to see if it's empty.
- */
- isEmptyObject(obj: any): boolean;
- /**
- * Determine if the argument passed is a Javascript function object.
- *
- * @param obj Object to test whether or not it is a function.
- */
- isFunction(obj: any): boolean;
- /**
- * Determines whether its argument is a number.
- *
- * @param obj The value to be tested.
- */
- isNumeric(value: any): boolean;
- /**
- * Check to see if an object is a plain object (created using "{}" or "new Object").
- *
- * @param obj The object that will be checked to see if it's a plain object.
- */
- isPlainObject(obj: any): boolean;
- /**
- * Determine whether the argument is a window.
- *
- * @param obj Object to test whether or not it is a window.
- */
- isWindow(obj: any): boolean;
- /**
- * Check to see if a DOM node is within an XML document (or is an XML document).
- *
- * @param node he DOM node that will be checked to see if it's in an XML document.
- */
- isXMLDoc(node: Node): boolean;
-
- /**
- * Convert an array-like object into a true JavaScript array.
- *
- * @param obj Any object to turn into a native Array.
- */
- makeArray(obj: any): any[];
-
- /**
- * Translate all items in an array or object to new array of items.
- *
- * @param array The Array to translate.
- * @param callback The function to process each item against. The first argument to the function is the array item, the second argument is the index in array The function can return any value. Within the function, this refers to the global (window) object.
- */
- map<T, U>(array: T[], callback: (elementOfArray: T, indexInArray: number) => U): U[];
- /**
- * Translate all items in an array or object to new array of items.
- *
- * @param arrayOrObject The Array or Object to translate.
- * @param callback The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property. The function can return any value to add to the array. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object.
- */
- map(arrayOrObject: any, callback: (value: any, indexOrKey: any) => any): any;
-
- /**
- * Merge the contents of two arrays together into the first array.
- *
- * @param first The first array to merge, the elements of second added.
- * @param second The second array to merge into the first, unaltered.
- */
- merge<T>(first: T[], second: T[]): T[];
-
- /**
- * An empty function.
- */
- noop(): any;
-
- /**
- * Return a number representing the current time.
- */
- now(): number;
-
- /**
- * Takes a well-formed JSON string and returns the resulting JavaScript object.
- *
- * @param json The JSON string to parse.
- */
- parseJSON(json: string): any;
-
- /**
- * Parses a string into an XML document.
- *
- * @param data a well-formed XML string to be parsed
- */
- parseXML(data: string): XMLDocument;
-
- /**
- * Remove the whitespace from the beginning and end of a string.
- *
- * @param str Remove the whitespace from the beginning and end of a string.
- */
- trim(str: string): string;
-
- /**
- * Determine the internal JavaScript [[Class]] of an object.
- *
- * @param obj Object to get the internal JavaScript [[Class]] of.
- */
- type(obj: any): string;
-
- /**
- * Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
- *
- * @param array The Array of DOM elements.
- */
- unique(array: Element[]): Element[];
-
- /**
- * Parses a string into an array of DOM nodes.
- *
- * @param data HTML string to be parsed
- * @param context DOM element to serve as the context in which the HTML fragment will be created
- * @param keepScripts A Boolean indicating whether to include scripts passed in the HTML string
- */
- parseHTML(data: string, context?: HTMLElement, keepScripts?: boolean): any[];
-
- /**
- * Parses a string into an array of DOM nodes.
- *
- * @param data HTML string to be parsed
- * @param context DOM element to serve as the context in which the HTML fragment will be created
- * @param keepScripts A Boolean indicating whether to include scripts passed in the HTML string
- */
- parseHTML(data: string, context?: Document, keepScripts?: boolean): any[];
-}
-
-/**
- * The jQuery instance members
- */
-interface JQuery {
- /**
- * Register a handler to be called when Ajax requests complete. This is an AjaxEvent.
- *
- * @param handler The function to be invoked.
- */
- ajaxComplete(handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: any) => any): JQuery;
- /**
- * Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
- *
- * @param handler The function to be invoked.
- */
- ajaxError(handler: (event: JQueryEventObject, jqXHR: JQueryXHR, ajaxSettings: JQueryAjaxSettings, thrownError: any) => any): JQuery;
- /**
- * Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
- *
- * @param handler The function to be invoked.
- */
- ajaxSend(handler: (event: JQueryEventObject, jqXHR: JQueryXHR, ajaxOptions: JQueryAjaxSettings) => any): JQuery;
- /**
- * Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
- *
- * @param handler The function to be invoked.
- */
- ajaxStart(handler: () => any): JQuery;
- /**
- * Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
- *
- * @param handler The function to be invoked.
- */
- ajaxStop(handler: () => any): JQuery;
- /**
- * Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
- *
- * @param handler The function to be invoked.
- */
- ajaxSuccess(handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any): JQuery;
-
- /**
- * Load data from the server and place the returned HTML into the matched element.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param data A plain object or string that is sent to the server with the request.
- * @param complete A callback function that is executed when the request completes.
- */
- load(url: string, data?: string|Object, complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any): JQuery;
-
- /**
- * Encode a set of form elements as a string for submission.
- */
- serialize(): string;
- /**
- * Encode a set of form elements as an array of names and values.
- */
- serializeArray(): JQuerySerializeArrayElement[];
-
- /**
- * Adds the specified class(es) to each of the set of matched elements.
- *
- * @param className One or more space-separated classes to be added to the class attribute of each matched element.
- */
- addClass(className: string): JQuery;
- /**
- * Adds the specified class(es) to each of the set of matched elements.
- *
- * @param function A function returning one or more space-separated class names to be added to the existing class name(s). Receives the index position of the element in the set and the existing class name(s) as arguments. Within the function, this refers to the current element in the set.
- */
- addClass(func: (index: number, className: string) => string): JQuery;
-
- /**
- * Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
- */
- addBack(selector?: string): JQuery;
-
- /**
- * Get the value of an attribute for the first element in the set of matched elements.
- *
- * @param attributeName The name of the attribute to get.
- */
- attr(attributeName: string): string;
- /**
- * Set one or more attributes for the set of matched elements.
- *
- * @param attributeName The name of the attribute to set.
- * @param value A value to set for the attribute.
- */
- attr(attributeName: string, value: string|number): JQuery;
- /**
- * Set one or more attributes for the set of matched elements.
- *
- * @param attributeName The name of the attribute to set.
- * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old attribute value as arguments.
- */
- attr(attributeName: string, func: (index: number, attr: string) => string|number): JQuery;
- /**
- * Set one or more attributes for the set of matched elements.
- *
- * @param attributes An object of attribute-value pairs to set.
- */
- attr(attributes: Object): JQuery;
-
- /**
- * Determine whether any of the matched elements are assigned the given class.
- *
- * @param className The class name to search for.
- */
- hasClass(className: string): boolean;
-
- /**
- * Get the HTML contents of the first element in the set of matched elements.
- */
- html(): string;
- /**
- * Set the HTML contents of each element in the set of matched elements.
- *
- * @param htmlString A string of HTML to set as the content of each matched element.
- */
- html(htmlString: string): JQuery;
- /**
- * Set the HTML contents of each element in the set of matched elements.
- *
- * @param func A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content. Within the function, this refers to the current element in the set.
- */
- html(func: (index: number, oldhtml: string) => string): JQuery;
- /**
- * Set the HTML contents of each element in the set of matched elements.
- *
- * @param func A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content. Within the function, this refers to the current element in the set.
- */
-
- /**
- * Get the value of a property for the first element in the set of matched elements.
- *
- * @param propertyName The name of the property to get.
- */
- prop(propertyName: string): any;
- /**
- * Set one or more properties for the set of matched elements.
- *
- * @param propertyName The name of the property to set.
- * @param value A value to set for the property.
- */
- prop(propertyName: string, value: string|number|boolean): JQuery;
- /**
- * Set one or more properties for the set of matched elements.
- *
- * @param properties An object of property-value pairs to set.
- */
- prop(properties: Object): JQuery;
- /**
- * Set one or more properties for the set of matched elements.
- *
- * @param propertyName The name of the property to set.
- * @param func A function returning the value to set. Receives the index position of the element in the set and the old property value as arguments. Within the function, the keyword this refers to the current element.
- */
- prop(propertyName: string, func: (index: number, oldPropertyValue: any) => any): JQuery;
-
- /**
- * Remove an attribute from each element in the set of matched elements.
- *
- * @param attributeName An attribute to remove; as of version 1.7, it can be a space-separated list of attributes.
- */
- removeAttr(attributeName: string): JQuery;
-
- /**
- * Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
- *
- * @param className One or more space-separated classes to be removed from the class attribute of each matched element.
- */
- removeClass(className?: string): JQuery;
- /**
- * Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
- *
- * @param function A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments.
- */
- removeClass(func: (index: number, className: string) => string): JQuery;
-
- /**
- * Remove a property for the set of matched elements.
- *
- * @param propertyName The name of the property to remove.
- */
- removeProp(propertyName: string): JQuery;
-
- /**
- * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
- *
- * @param className One or more class names (separated by spaces) to be toggled for each element in the matched set.
- * @param swtch A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.
- */
- toggleClass(className: string, swtch?: boolean): JQuery;
- /**
- * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
- *
- * @param swtch A boolean value to determine whether the class should be added or removed.
- */
- toggleClass(swtch?: boolean): JQuery;
- /**
- * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
- *
- * @param func A function that returns class names to be toggled in the class attribute of each element in the matched set. Receives the index position of the element in the set, the old class value, and the switch as arguments.
- * @param swtch A boolean value to determine whether the class should be added or removed.
- */
- toggleClass(func: (index: number, className: string, swtch: boolean) => string, swtch?: boolean): JQuery;
-
- /**
- * Get the current value of the first element in the set of matched elements.
- */
- val(): any;
- /**
- * Set the value of each element in the set of matched elements.
- *
- * @param value A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked.
- */
- val(value: string|string[]): JQuery;
- /**
- * Set the value of each element in the set of matched elements.
- *
- * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
- */
- val(func: (index: number, value: string) => string): JQuery;
-
-
- /**
- * Get the value of style properties for the first element in the set of matched elements.
- *
- * @param propertyName A CSS property.
- */
- css(propertyName: string): string;
- /**
- * Set one or more CSS properties for the set of matched elements.
- *
- * @param propertyName A CSS property name.
- * @param value A value to set for the property.
- */
- css(propertyName: string, value: string|number): JQuery;
- /**
- * Set one or more CSS properties for the set of matched elements.
- *
- * @param propertyName A CSS property name.
- * @param value A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
- */
- css(propertyName: string, value: (index: number, value: string) => string|number): JQuery;
- /**
- * Set one or more CSS properties for the set of matched elements.
- *
- * @param properties An object of property-value pairs to set.
- */
- css(properties: Object): JQuery;
-
- /**
- * Get the current computed height for the first element in the set of matched elements.
- */
- height(): number;
- /**
- * Set the CSS height of every matched element.
- *
- * @param value An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).
- */
- height(value: number|string): JQuery;
- /**
- * Set the CSS height of every matched element.
- *
- * @param func A function returning the height to set. Receives the index position of the element in the set and the old height as arguments. Within the function, this refers to the current element in the set.
- */
- height(func: (index: number, height: number) => number|string): JQuery;
-
- /**
- * Get the current computed height for the first element in the set of matched elements, including padding but not border.
- */
- innerHeight(): number;
-
- /**
- * Sets the inner height on elements in the set of matched elements, including padding but not border.
- *
- * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
- */
- innerHeight(height: number|string): JQuery;
-
- /**
- * Get the current computed width for the first element in the set of matched elements, including padding but not border.
- */
- innerWidth(): number;
-
- /**
- * Sets the inner width on elements in the set of matched elements, including padding but not border.
- *
- * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
- */
- innerWidth(width: number|string): JQuery;
-
- /**
- * Get the current coordinates of the first element in the set of matched elements, relative to the document.
- */
- offset(): JQueryCoordinates;
- /**
- * An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
- *
- * @param coordinates An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
- */
- offset(coordinates: JQueryCoordinates): JQuery;
- /**
- * An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
- *
- * @param func A function to return the coordinates to set. Receives the index of the element in the collection as the first argument and the current coordinates as the second argument. The function should return an object with the new top and left properties.
- */
- offset(func: (index: number, coords: JQueryCoordinates) => JQueryCoordinates): JQuery;
-
- /**
- * Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements.
- *
- * @param includeMargin A Boolean indicating whether to include the element's margin in the calculation.
- */
- outerHeight(includeMargin?: boolean): number;
-
- /**
- * Sets the outer height on elements in the set of matched elements, including padding and border.
- *
- * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
- */
- outerHeight(height: number|string): JQuery;
-
- /**
- * Get the current computed width for the first element in the set of matched elements, including padding and border.
- *
- * @param includeMargin A Boolean indicating whether to include the element's margin in the calculation.
- */
- outerWidth(includeMargin?: boolean): number;
-
- /**
- * Sets the outer width on elements in the set of matched elements, including padding and border.
- *
- * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
- */
- outerWidth(width: number|string): JQuery;
-
- /**
- * Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
- */
- position(): JQueryCoordinates;
-
- /**
- * Get the current horizontal position of the scroll bar for the first element in the set of matched elements or set the horizontal position of the scroll bar for every matched element.
- */
- scrollLeft(): number;
- /**
- * Set the current horizontal position of the scroll bar for each of the set of matched elements.
- *
- * @param value An integer indicating the new position to set the scroll bar to.
- */
- scrollLeft(value: number): JQuery;
-
- /**
- * Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.
- */
- scrollTop(): number;
- /**
- * Set the current vertical position of the scroll bar for each of the set of matched elements.
- *
- * @param value An integer indicating the new position to set the scroll bar to.
- */
- scrollTop(value: number): JQuery;
-
- /**
- * Get the current computed width for the first element in the set of matched elements.
- */
- width(): number;
- /**
- * Set the CSS width of each element in the set of matched elements.
- *
- * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
- */
- width(value: number|string): JQuery;
- /**
- * Set the CSS width of each element in the set of matched elements.
- *
- * @param func A function returning the width to set. Receives the index position of the element in the set and the old width as arguments. Within the function, this refers to the current element in the set.
- */
- width(func: (index: number, width: number) => number|string): JQuery;
-
- /**
- * Remove from the queue all items that have not yet been run.
- *
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- */
- clearQueue(queueName?: string): JQuery;
-
- /**
- * Store arbitrary data associated with the matched elements.
- *
- * @param key A string naming the piece of data to set.
- * @param value The new data value; it can be any Javascript type including Array or Object.
- */
- data(key: string, value: any): JQuery;
- /**
- * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
- *
- * @param key Name of the data stored.
- */
- data(key: string): any;
- /**
- * Store arbitrary data associated with the matched elements.
- *
- * @param obj An object of key-value pairs of data to update.
- */
- data(obj: { [key: string]: any; }): JQuery;
- /**
- * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
- */
- data(): any;
-
- /**
- * Execute the next function on the queue for the matched elements.
- *
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- */
- dequeue(queueName?: string): JQuery;
-
- /**
- * Remove a previously-stored piece of data.
- *
- * @param name A string naming the piece of data to delete or space-separated string naming the pieces of data to delete.
- */
- removeData(name: string): JQuery;
- /**
- * Remove a previously-stored piece of data.
- *
- * @param list An array of strings naming the pieces of data to delete.
- */
- removeData(list: string[]): JQuery;
- /**
- * Remove all previously-stored piece of data.
- */
- removeData(): JQuery;
-
- /**
- * Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
- *
- * @param type The type of queue that needs to be observed. (default: fx)
- * @param target Object onto which the promise methods have to be attached
- */
- promise(type?: string, target?: Object): JQueryPromise<any>;
-
- /**
- * Perform a custom animation of a set of CSS properties.
- *
- * @param properties An object of CSS properties and values that the animation will move toward.
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- animate(properties: Object, duration?: string|number, complete?: Function): JQuery;
- /**
- * Perform a custom animation of a set of CSS properties.
- *
- * @param properties An object of CSS properties and values that the animation will move toward.
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition. (default: swing)
- * @param complete A function to call once the animation is complete.
- */
- animate(properties: Object, duration?: string|number, easing?: string, complete?: Function): JQuery;
- /**
- * Perform a custom animation of a set of CSS properties.
- *
- * @param properties An object of CSS properties and values that the animation will move toward.
- * @param options A map of additional options to pass to the method.
- */
- animate(properties: Object, options: JQueryAnimationOptions): JQuery;
-
- /**
- * Set a timer to delay execution of subsequent items in the queue.
- *
- * @param duration An integer indicating the number of milliseconds to delay execution of the next item in the queue.
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- */
- delay(duration: number, queueName?: string): JQuery;
-
- /**
- * Display the matched elements by fading them to opaque.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- fadeIn(duration?: number|string, complete?: Function): JQuery;
- /**
- * Display the matched elements by fading them to opaque.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- fadeIn(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Display the matched elements by fading them to opaque.
- *
- * @param options A map of additional options to pass to the method.
- */
- fadeIn(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Hide the matched elements by fading them to transparent.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- fadeOut(duration?: number|string, complete?: Function): JQuery;
- /**
- * Hide the matched elements by fading them to transparent.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- fadeOut(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Hide the matched elements by fading them to transparent.
- *
- * @param options A map of additional options to pass to the method.
- */
- fadeOut(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Adjust the opacity of the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param opacity A number between 0 and 1 denoting the target opacity.
- * @param complete A function to call once the animation is complete.
- */
- fadeTo(duration: string|number, opacity: number, complete?: Function): JQuery;
- /**
- * Adjust the opacity of the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param opacity A number between 0 and 1 denoting the target opacity.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- fadeTo(duration: string|number, opacity: number, easing?: string, complete?: Function): JQuery;
-
- /**
- * Display or hide the matched elements by animating their opacity.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- fadeToggle(duration?: number|string, complete?: Function): JQuery;
- /**
- * Display or hide the matched elements by animating their opacity.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- fadeToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Display or hide the matched elements by animating their opacity.
- *
- * @param options A map of additional options to pass to the method.
- */
- fadeToggle(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements.
- *
- * @param queue The name of the queue in which to stop animations.
- */
- finish(queue?: string): JQuery;
-
- /**
- * Hide the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- hide(duration?: number|string, complete?: Function): JQuery;
- /**
- * Hide the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- hide(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Hide the matched elements.
- *
- * @param options A map of additional options to pass to the method.
- */
- hide(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Display the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- show(duration?: number|string, complete?: Function): JQuery;
- /**
- * Display the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- show(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Display the matched elements.
- *
- * @param options A map of additional options to pass to the method.
- */
- show(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Display the matched elements with a sliding motion.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- slideDown(duration?: number|string, complete?: Function): JQuery;
- /**
- * Display the matched elements with a sliding motion.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- slideDown(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Display the matched elements with a sliding motion.
- *
- * @param options A map of additional options to pass to the method.
- */
- slideDown(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Display or hide the matched elements with a sliding motion.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- slideToggle(duration?: number|string, complete?: Function): JQuery;
- /**
- * Display or hide the matched elements with a sliding motion.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- slideToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Display or hide the matched elements with a sliding motion.
- *
- * @param options A map of additional options to pass to the method.
- */
- slideToggle(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Hide the matched elements with a sliding motion.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- slideUp(duration?: number|string, complete?: Function): JQuery;
- /**
- * Hide the matched elements with a sliding motion.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- slideUp(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Hide the matched elements with a sliding motion.
- *
- * @param options A map of additional options to pass to the method.
- */
- slideUp(options: JQueryAnimationOptions): JQuery;
-
- /**
- * Stop the currently-running animation on the matched elements.
- *
- * @param clearQueue A Boolean indicating whether to remove queued animation as well. Defaults to false.
- * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. Defaults to false.
- */
- stop(clearQueue?: boolean, jumpToEnd?: boolean): JQuery;
- /**
- * Stop the currently-running animation on the matched elements.
- *
- * @param queue The name of the queue in which to stop animations.
- * @param clearQueue A Boolean indicating whether to remove queued animation as well. Defaults to false.
- * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. Defaults to false.
- */
- stop(queue?: string, clearQueue?: boolean, jumpToEnd?: boolean): JQuery;
-
- /**
- * Display or hide the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param complete A function to call once the animation is complete.
- */
- toggle(duration?: number|string, complete?: Function): JQuery;
- /**
- * Display or hide the matched elements.
- *
- * @param duration A string or number determining how long the animation will run.
- * @param easing A string indicating which easing function to use for the transition.
- * @param complete A function to call once the animation is complete.
- */
- toggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
- /**
- * Display or hide the matched elements.
- *
- * @param options A map of additional options to pass to the method.
- */
- toggle(options: JQueryAnimationOptions): JQuery;
- /**
- * Display or hide the matched elements.
- *
- * @param showOrHide A Boolean indicating whether to show or hide the elements.
- */
- toggle(showOrHide: boolean): JQuery;
-
- /**
- * Attach a handler to an event for the elements.
- *
- * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- bind(eventType: string, eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Attach a handler to an event for the elements.
- *
- * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
- * @param handler A function to execute each time the event is triggered.
- */
- bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Attach a handler to an event for the elements.
- *
- * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
- * @param eventData An object containing data that will be passed to the event handler.
- * @param preventBubble Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true.
- */
- bind(eventType: string, eventData: any, preventBubble: boolean): JQuery;
- /**
- * Attach a handler to an event for the elements.
- *
- * @param eventType A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
- * @param preventBubble Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true.
- */
- bind(eventType: string, preventBubble: boolean): JQuery;
- /**
- * Attach a handler to an event for the elements.
- *
- * @param events An object containing one or more DOM event types and functions to execute for them.
- */
- bind(events: any): JQuery;
-
- /**
- * Trigger the "blur" event on an element
- */
- blur(): JQuery;
- /**
- * Bind an event handler to the "blur" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- blur(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "blur" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- blur(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "change" event on an element.
- */
- change(): JQuery;
- /**
- * Bind an event handler to the "change" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- change(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "change" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- change(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "click" event on an element.
- */
- click(): JQuery;
- /**
- * Bind an event handler to the "click" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- */
- click(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "click" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- click(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "dblclick" event on an element.
- */
- dblclick(): JQuery;
- /**
- * Bind an event handler to the "dblclick" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- dblclick(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "dblclick" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- dblclick(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- delegate(selector: any, eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
- delegate(selector: any, eventType: string, eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "focus" event on an element.
- */
- focus(): JQuery;
- /**
- * Bind an event handler to the "focus" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- focus(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "focus" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- focus(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "focusin" event on an element.
- */
- focusin(): JQuery;
- /**
- * Bind an event handler to the "focusin" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- focusin(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "focusin" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- focusin(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "focusout" event on an element.
- */
- focusout(): JQuery;
- /**
- * Bind an event handler to the "focusout" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- focusout(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "focusout" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- focusout(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
- *
- * @param handlerIn A function to execute when the mouse pointer enters the element.
- * @param handlerOut A function to execute when the mouse pointer leaves the element.
- */
- hover(handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
- *
- * @param handlerInOut A function to execute when the mouse pointer enters or leaves the element.
- */
- hover(handlerInOut: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "keydown" event on an element.
- */
- keydown(): JQuery;
- /**
- * Bind an event handler to the "keydown" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- keydown(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "keydown" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- keydown(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
-
- /**
- * Trigger the "keypress" event on an element.
- */
- keypress(): JQuery;
- /**
- * Bind an event handler to the "keypress" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- keypress(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "keypress" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- keypress(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
-
- /**
- * Trigger the "keyup" event on an element.
- */
- keyup(): JQuery;
- /**
- * Bind an event handler to the "keyup" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- keyup(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "keyup" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- keyup(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
-
- /**
- * Bind an event handler to the "load" JavaScript event.
- *
- * @param handler A function to execute when the event is triggered.
- */
- load(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "load" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- load(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "mousedown" event on an element.
- */
- mousedown(): JQuery;
- /**
- * Bind an event handler to the "mousedown" JavaScript event.
- *
- * @param handler A function to execute when the event is triggered.
- */
- mousedown(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "mousedown" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- mousedown(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
-
- /**
- * Trigger the "mouseenter" event on an element.
- */
- mouseenter(): JQuery;
- /**
- * Bind an event handler to be fired when the mouse enters an element.
- *
- * @param handler A function to execute when the event is triggered.
- */
- mouseenter(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
- /**
- * Bind an event handler to be fired when the mouse enters an element.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- mouseenter(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
-
- /**
- * Trigger the "mouseleave" event on an element.
- */
- mouseleave(): JQuery;
- /**
- * Bind an event handler to be fired when the mouse leaves an element.
- *
- * @param handler A function to execute when the event is triggered.
- */
- mouseleave(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
- /**
- * Bind an event handler to be fired when the mouse leaves an element.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- mouseleave(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
-
- /**
- * Trigger the "mousemove" event on an element.
- */
- mousemove(): JQuery;
- /**
- * Bind an event handler to the "mousemove" JavaScript event.
- *
- * @param handler A function to execute when the event is triggered.
- */
- mousemove(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "mousemove" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- mousemove(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
-
- /**
- * Trigger the "mouseout" event on an element.
- */
- mouseout(): JQuery;
- /**
- * Bind an event handler to the "mouseout" JavaScript event.
- *
- * @param handler A function to execute when the event is triggered.
- */
- mouseout(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "mouseout" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- mouseout(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
-
- /**
- * Trigger the "mouseover" event on an element.
- */
- mouseover(): JQuery;
- /**
- * Bind an event handler to the "mouseover" JavaScript event.
- *
- * @param handler A function to execute when the event is triggered.
- */
- mouseover(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "mouseover" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- mouseover(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
-
- /**
- * Trigger the "mouseup" event on an element.
- */
- mouseup(): JQuery;
- /**
- * Bind an event handler to the "mouseup" JavaScript event.
- *
- * @param handler A function to execute when the event is triggered.
- */
- mouseup(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "mouseup" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- mouseup(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
-
- /**
- * Remove an event handler.
- */
- off(): JQuery;
- /**
- * Remove an event handler.
- *
- * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
- * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
- * @param handler A handler function previously attached for the event(s), or the special value false.
- */
- off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Remove an event handler.
- *
- * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
- * @param handler A handler function previously attached for the event(s), or the special value false.
- */
- off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Remove an event handler.
- *
- * @param events An object where the string keys represent one or more space-separated event types and optional namespaces, and the values represent handler functions previously attached for the event(s).
- * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
- */
- off(events: { [key: string]: any; }, selector?: string): JQuery;
-
- /**
- * Attach an event handler function for one or more events to the selected elements.
- *
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. Rest parameter args is for optional parameters passed to jQuery.trigger(). Note that the actual parameters on the event handler function must be marked as optional (? syntax).
- */
- on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
- /**
- * Attach an event handler function for one or more events to the selected elements.
- *
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
- * @param data Data to be passed to the handler in event.data when an event is triggered.
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
- */
- on(events: string, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
- /**
- * Attach an event handler function for one or more events to the selected elements.
- *
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
- * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
- */
- on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery;
- /**
- * Attach an event handler function for one or more events to the selected elements.
- *
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
- * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
- * @param data Data to be passed to the handler in event.data when an event is triggered.
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
- */
- on(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery;
- /**
- * Attach an event handler function for one or more events to the selected elements.
- *
- * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
- * @param selector A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element.
- * @param data Data to be passed to the handler in event.data when an event occurs.
- */
- on(events: { [key: string]: any; }, selector?: string, data?: any): JQuery;
- /**
- * Attach an event handler function for one or more events to the selected elements.
- *
- * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
- * @param data Data to be passed to the handler in event.data when an event occurs.
- */
- on(events: { [key: string]: any; }, data?: any): JQuery;
-
- /**
- * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
- *
- * @param events A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names.
- * @param handler A function to execute at the time the event is triggered.
- */
- one(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
- *
- * @param events A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names.
- * @param data An object containing data that will be passed to the event handler.
- * @param handler A function to execute at the time the event is triggered.
- */
- one(events: string, data: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
- *
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
- * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
- */
- one(events: string, selector: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
- *
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
- * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
- * @param data Data to be passed to the handler in event.data when an event is triggered.
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
- */
- one(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
- *
- * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
- * @param selector A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element.
- * @param data Data to be passed to the handler in event.data when an event occurs.
- */
- one(events: { [key: string]: any; }, selector?: string, data?: any): JQuery;
-
- /**
- * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
- *
- * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
- * @param data Data to be passed to the handler in event.data when an event occurs.
- */
- one(events: { [key: string]: any; }, data?: any): JQuery;
-
-
- /**
- * Specify a function to execute when the DOM is fully loaded.
- *
- * @param handler A function to execute after the DOM is ready.
- */
- ready(handler: (jQueryAlias?: JQueryStatic) => any): JQuery;
-
- /**
- * Trigger the "resize" event on an element.
- */
- resize(): JQuery;
- /**
- * Bind an event handler to the "resize" JavaScript event.
- *
- * @param handler A function to execute each time the event is triggered.
- */
- resize(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "resize" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- resize(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "scroll" event on an element.
- */
- scroll(): JQuery;
- /**
- * Bind an event handler to the "scroll" JavaScript event.
- *
- * @param handler A function to execute each time the event is triggered.
- */
- scroll(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "scroll" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- scroll(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "select" event on an element.
- */
- select(): JQuery;
- /**
- * Bind an event handler to the "select" JavaScript event.
- *
- * @param handler A function to execute each time the event is triggered.
- */
- select(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "select" JavaScript event.
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- select(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Trigger the "submit" event on an element.
- */
- submit(): JQuery;
- /**
- * Bind an event handler to the "submit" JavaScript event
- *
- * @param handler A function to execute each time the event is triggered.
- */
- submit(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "submit" JavaScript event
- *
- * @param eventData An object containing data that will be passed to the event handler.
- * @param handler A function to execute each time the event is triggered.
- */
- submit(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Execute all handlers and behaviors attached to the matched elements for the given event type.
- *
- * @param eventType A string containing a JavaScript event type, such as click or submit.
- * @param extraParameters Additional parameters to pass along to the event handler.
- */
- trigger(eventType: string, extraParameters?: any[]|Object): JQuery;
- /**
- * Execute all handlers and behaviors attached to the matched elements for the given event type.
- *
- * @param event A jQuery.Event object.
- * @param extraParameters Additional parameters to pass along to the event handler.
- */
- trigger(event: JQueryEventObject, extraParameters?: any[]|Object): JQuery;
-
- /**
- * Execute all handlers attached to an element for an event.
- *
- * @param eventType A string containing a JavaScript event type, such as click or submit.
- * @param extraParameters An array of additional parameters to pass along to the event handler.
- */
- triggerHandler(eventType: string, ...extraParameters: any[]): Object;
-
- /**
- * Execute all handlers attached to an element for an event.
- *
- * @param event A jQuery.Event object.
- * @param extraParameters An array of additional parameters to pass along to the event handler.
- */
- triggerHandler(event: JQueryEventObject, ...extraParameters: any[]): Object;
-
- /**
- * Remove a previously-attached event handler from the elements.
- *
- * @param eventType A string containing a JavaScript event type, such as click or submit.
- * @param handler The function that is to be no longer executed.
- */
- unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Remove a previously-attached event handler from the elements.
- *
- * @param eventType A string containing a JavaScript event type, such as click or submit.
- * @param fls Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ).
- */
- unbind(eventType: string, fls: boolean): JQuery;
- /**
- * Remove a previously-attached event handler from the elements.
- *
- * @param evt A JavaScript event object as passed to an event handler.
- */
- unbind(evt: any): JQuery;
-
- /**
- * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
- */
- undelegate(): JQuery;
- /**
- * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
- *
- * @param selector A selector which will be used to filter the event results.
- * @param eventType A string containing a JavaScript event type, such as "click" or "keydown"
- * @param handler A function to execute at the time the event is triggered.
- */
- undelegate(selector: string, eventType: string, handler?: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
- *
- * @param selector A selector which will be used to filter the event results.
- * @param events An object of one or more event types and previously bound functions to unbind from them.
- */
- undelegate(selector: string, events: Object): JQuery;
- /**
- * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
- *
- * @param namespace A string containing a namespace to unbind all events from.
- */
- undelegate(namespace: string): JQuery;
-
- /**
- * Bind an event handler to the "unload" JavaScript event. (DEPRECATED from v1.8)
- *
- * @param handler A function to execute when the event is triggered.
- */
- unload(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "unload" JavaScript event. (DEPRECATED from v1.8)
- *
- * @param eventData A plain object of data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- unload(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. (DEPRECATED from v1.10)
- */
- context: Element;
-
- jquery: string;
-
- /**
- * Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8)
- *
- * @param handler A function to execute when the event is triggered.
- */
- error(handler: (eventObject: JQueryEventObject) => any): JQuery;
- /**
- * Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8)
- *
- * @param eventData A plain object of data that will be passed to the event handler.
- * @param handler A function to execute when the event is triggered.
- */
- error(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
-
- /**
- * Add a collection of DOM elements onto the jQuery stack.
- *
- * @param elements An array of elements to push onto the stack and make into a new jQuery object.
- */
- pushStack(elements: any[]): JQuery;
- /**
- * Add a collection of DOM elements onto the jQuery stack.
- *
- * @param elements An array of elements to push onto the stack and make into a new jQuery object.
- * @param name The name of a jQuery method that generated the array of elements.
- * @param arguments The arguments that were passed in to the jQuery method (for serialization).
- */
- pushStack(elements: any[], name: string, arguments: any[]): JQuery;
-
- /**
- * Insert content, specified by the parameter, after each element in the set of matched elements.
- *
- * param content1 HTML string, DOM element, array of elements, or jQuery object to insert after each element in the set of matched elements.
- * param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.
- */
- after(content1: JQuery|any[]|Element|Text|string, ...content2: any[]): JQuery;
- /**
- * Insert content, specified by the parameter, after each element in the set of matched elements.
- *
- * param func A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
- */
- after(func: (index: number, html: string) => string|Element|JQuery): JQuery;
-
- /**
- * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
- *
- * param content1 DOM element, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.
- * param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.
- */
- append(content1: JQuery|any[]|Element|Text|string, ...content2: any[]): JQuery;
- /**
- * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
- *
- * param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
- */
- append(func: (index: number, html: string) => string|Element|JQuery): JQuery;
-
- /**
- * Insert every element in the set of matched elements to the end of the target.
- *
- * @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.
- */
- appendTo(target: JQuery|any[]|Element|string): JQuery;
-
- /**
- * Insert content, specified by the parameter, before each element in the set of matched elements.
- *
- * param content1 HTML string, DOM element, array of elements, or jQuery object to insert before each element in the set of matched elements.
- * param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.
- */
- before(content1: JQuery|any[]|Element|Text|string, ...content2: any[]): JQuery;
- /**
- * Insert content, specified by the parameter, before each element in the set of matched elements.
- *
- * param func A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
- */
- before(func: (index: number, html: string) => string|Element|JQuery): JQuery;
-
- /**
- * Create a deep copy of the set of matched elements.
- *
- * param withDataAndEvents A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false.
- * param deepWithDataAndEvents A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false).
- */
- clone(withDataAndEvents?: boolean, deepWithDataAndEvents?: boolean): JQuery;
-
- /**
- * Remove the set of matched elements from the DOM.
- *
- * param selector A selector expression that filters the set of matched elements to be removed.
- */
- detach(selector?: string): JQuery;
-
- /**
- * Remove all child nodes of the set of matched elements from the DOM.
- */
- empty(): JQuery;
-
- /**
- * Insert every element in the set of matched elements after the target.
- *
- * param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.
- */
- insertAfter(target: JQuery|any[]|Element|Text|string): JQuery;
-
- /**
- * Insert every element in the set of matched elements before the target.
- *
- * param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.
- */
- insertBefore(target: JQuery|any[]|Element|Text|string): JQuery;
-
- /**
- * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
- *
- * param content1 DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.
- * param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.
- */
- prepend(content1: JQuery|any[]|Element|Text|string, ...content2: any[]): JQuery;
- /**
- * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
- *
- * param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
- */
- prepend(func: (index: number, html: string) => string|Element|JQuery): JQuery;
-
- /**
- * Insert every element in the set of matched elements to the beginning of the target.
- *
- * @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.
- */
- prependTo(target: JQuery|any[]|Element|string): JQuery;
-
- /**
- * Remove the set of matched elements from the DOM.
- *
- * @param selector A selector expression that filters the set of matched elements to be removed.
- */
- remove(selector?: string): JQuery;
-
- /**
- * Replace each target element with the set of matched elements.
- *
- * @param target A selector string, jQuery object, DOM element, or array of elements indicating which element(s) to replace.
- */
- replaceAll(target: JQuery|any[]|Element|string): JQuery;
-
- /**
- * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
- *
- * param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
- */
- replaceWith(newContent: JQuery|any[]|Element|Text|string): JQuery;
- /**
- * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
- *
- * param func A function that returns content with which to replace the set of matched elements.
- */
- replaceWith(func: () => Element|JQuery): JQuery;
-
- /**
- * Get the combined text contents of each element in the set of matched elements, including their descendants.
- */
- text(): string;
- /**
- * Set the content of each element in the set of matched elements to the specified text.
- *
- * @param text The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation.
- */
- text(text: string|number|boolean): JQuery;
- /**
- * Set the content of each element in the set of matched elements to the specified text.
- *
- * @param func A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments.
- */
- text(func: (index: number, text: string) => string): JQuery;
-
- /**
- * Retrieve all the elements contained in the jQuery set, as an array.
- */
- toArray(): any[];
-
- /**
- * Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.
- */
- unwrap(): JQuery;
-
- /**
- * Wrap an HTML structure around each element in the set of matched elements.
- *
- * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
- */
- wrap(wrappingElement: JQuery|Element|string): JQuery;
- /**
- * Wrap an HTML structure around each element in the set of matched elements.
- *
- * @param func A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
- */
- wrap(func: (index: number) => string|JQuery): JQuery;
-
- /**
- * Wrap an HTML structure around all elements in the set of matched elements.
- *
- * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
- */
- wrapAll(wrappingElement: JQuery|Element|string): JQuery;
- wrapAll(func: (index: number) => string): JQuery;
-
- /**
- * Wrap an HTML structure around the content of each element in the set of matched elements.
- *
- * @param wrappingElement An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements.
- */
- wrapInner(wrappingElement: JQuery|Element|string): JQuery;
- /**
- * Wrap an HTML structure around the content of each element in the set of matched elements.
- *
- * @param func A callback function which generates a structure to wrap around the content of the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
- */
- wrapInner(func: (index: number) => string): JQuery;
-
- /**
- * Iterate over a jQuery object, executing a function for each matched element.
- *
- * @param func A function to execute for each matched element.
- */
- each(func: (index: number, elem: Element) => any): JQuery;
-
- /**
- * Retrieve one of the elements matched by the jQuery object.
- *
- * @param index A zero-based integer indicating which element to retrieve.
- */
- get(index: number): HTMLElement;
- /**
- * Retrieve the elements matched by the jQuery object.
- */
- get(): any[];
-
- /**
- * Search for a given element from among the matched elements.
- */
- index(): number;
- /**
- * Search for a given element from among the matched elements.
- *
- * @param selector A selector representing a jQuery collection in which to look for an element.
- */
- index(selector: string|JQuery|Element): number;
-
- /**
- * The number of elements in the jQuery object.
- */
- length: number;
- /**
- * A selector representing selector passed to jQuery(), if any, when creating the original set.
- * version deprecated: 1.7, removed: 1.9
- */
- selector: string;
- [index: string]: any;
- [index: number]: HTMLElement;
-
- /**
- * Add elements to the set of matched elements.
- *
- * @param selector A string representing a selector expression to find additional elements to add to the set of matched elements.
- * @param context The point in the document at which the selector should begin matching; similar to the context argument of the $(selector, context) method.
- */
- add(selector: string, context?: Element): JQuery;
- /**
- * Add elements to the set of matched elements.
- *
- * @param elements One or more elements to add to the set of matched elements.
- */
- add(...elements: Element[]): JQuery;
- /**
- * Add elements to the set of matched elements.
- *
- * @param html An HTML fragment to add to the set of matched elements.
- */
- add(html: string): JQuery;
- /**
- * Add elements to the set of matched elements.
- *
- * @param obj An existing jQuery object to add to the set of matched elements.
- */
- add(obj: JQuery): JQuery;
-
- /**
- * Get the children of each element in the set of matched elements, optionally filtered by a selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- children(selector?: string): JQuery;
-
- /**
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- closest(selector: string): JQuery;
- /**
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
- *
- * @param selector A string containing a selector expression to match elements against.
- * @param context A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead.
- */
- closest(selector: string, context?: Element): JQuery;
- /**
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
- *
- * @param obj A jQuery object to match elements against.
- */
- closest(obj: JQuery): JQuery;
- /**
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
- *
- * @param element An element to match elements against.
- */
- closest(element: Element): JQuery;
-
- /**
- * Get an array of all the elements and selectors matched against the current element up through the DOM tree.
- *
- * @param selectors An array or string containing a selector expression to match elements against (can also be a jQuery object).
- * @param context A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead.
- */
- closest(selectors: any, context?: Element): any[];
-
- /**
- * Get the children of each element in the set of matched elements, including text and comment nodes.
- */
- contents(): JQuery;
-
- /**
- * End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
- */
- end(): JQuery;
-
- /**
- * Reduce the set of matched elements to the one at the specified index.
- *
- * @param index An integer indicating the 0-based position of the element. OR An integer indicating the position of the element, counting backwards from the last element in the set.
- *
- */
- eq(index: number): JQuery;
-
- /**
- * Reduce the set of matched elements to those that match the selector or pass the function's test.
- *
- * @param selector A string containing a selector expression to match the current set of elements against.
- */
- filter(selector: string): JQuery;
- /**
- * Reduce the set of matched elements to those that match the selector or pass the function's test.
- *
- * @param func A function used as a test for each element in the set. this is the current DOM element.
- */
- filter(func: (index: number, element: Element) => any): JQuery;
- /**
- * Reduce the set of matched elements to those that match the selector or pass the function's test.
- *
- * @param element An element to match the current set of elements against.
- */
- filter(element: Element): JQuery;
- /**
- * Reduce the set of matched elements to those that match the selector or pass the function's test.
- *
- * @param obj An existing jQuery object to match the current set of elements against.
- */
- filter(obj: JQuery): JQuery;
-
- /**
- * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- find(selector: string): JQuery;
- /**
- * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
- *
- * @param element An element to match elements against.
- */
- find(element: Element): JQuery;
- /**
- * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
- *
- * @param obj A jQuery object to match elements against.
- */
- find(obj: JQuery): JQuery;
-
- /**
- * Reduce the set of matched elements to the first in the set.
- */
- first(): JQuery;
-
- /**
- * Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- has(selector: string): JQuery;
- /**
- * Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
- *
- * @param contained A DOM element to match elements against.
- */
- has(contained: Element): JQuery;
-
- /**
- * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- is(selector: string): boolean;
- /**
- * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
- *
- * @param func A function used as a test for the set of elements. It accepts one argument, index, which is the element's index in the jQuery collection.Within the function, this refers to the current DOM element.
- */
- is(func: (index: number, element: Element) => boolean): boolean;
- /**
- * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
- *
- * @param obj An existing jQuery object to match the current set of elements against.
- */
- is(obj: JQuery): boolean;
- /**
- * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
- *
- * @param elements One or more elements to match the current set of elements against.
- */
- is(elements: any): boolean;
-
- /**
- * Reduce the set of matched elements to the final one in the set.
- */
- last(): JQuery;
-
- /**
- * Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.
- *
- * @param callback A function object that will be invoked for each element in the current set.
- */
- map(callback: (index: number, domElement: Element) => any): JQuery;
-
- /**
- * Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- next(selector?: string): JQuery;
-
- /**
- * Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- nextAll(selector?: string): JQuery;
-
- /**
- * Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
- *
- * @param selector A string containing a selector expression to indicate where to stop matching following sibling elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- nextUntil(selector?: string, filter?: string): JQuery;
- /**
- * Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
- *
- * @param element A DOM node or jQuery object indicating where to stop matching following sibling elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- nextUntil(element?: Element, filter?: string): JQuery;
- /**
- * Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
- *
- * @param obj A DOM node or jQuery object indicating where to stop matching following sibling elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- nextUntil(obj?: JQuery, filter?: string): JQuery;
-
- /**
- * Remove elements from the set of matched elements.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- not(selector: string): JQuery;
- /**
- * Remove elements from the set of matched elements.
- *
- * @param func A function used as a test for each element in the set. this is the current DOM element.
- */
- not(func: (index: number, element: Element) => boolean): JQuery;
- /**
- * Remove elements from the set of matched elements.
- *
- * @param elements One or more DOM elements to remove from the matched set.
- */
- not(elements: Element|Element[]): JQuery;
- /**
- * Remove elements from the set of matched elements.
- *
- * @param obj An existing jQuery object to match the current set of elements against.
- */
- not(obj: JQuery): JQuery;
-
- /**
- * Get the closest ancestor element that is positioned.
- */
- offsetParent(): JQuery;
-
- /**
- * Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- parent(selector?: string): JQuery;
-
- /**
- * Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- parents(selector?: string): JQuery;
-
- /**
- * Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
- *
- * @param selector A string containing a selector expression to indicate where to stop matching ancestor elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- parentsUntil(selector?: string, filter?: string): JQuery;
- /**
- * Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
- *
- * @param element A DOM node or jQuery object indicating where to stop matching ancestor elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- parentsUntil(element?: Element, filter?: string): JQuery;
- /**
- * Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
- *
- * @param obj A DOM node or jQuery object indicating where to stop matching ancestor elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- parentsUntil(obj?: JQuery, filter?: string): JQuery;
-
- /**
- * Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- prev(selector?: string): JQuery;
-
- /**
- * Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- prevAll(selector?: string): JQuery;
-
- /**
- * Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
- *
- * @param selector A string containing a selector expression to indicate where to stop matching preceding sibling elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- prevUntil(selector?: string, filter?: string): JQuery;
- /**
- * Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
- *
- * @param element A DOM node or jQuery object indicating where to stop matching preceding sibling elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- prevUntil(element?: Element, filter?: string): JQuery;
- /**
- * Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
- *
- * @param obj A DOM node or jQuery object indicating where to stop matching preceding sibling elements.
- * @param filter A string containing a selector expression to match elements against.
- */
- prevUntil(obj?: JQuery, filter?: string): JQuery;
-
- /**
- * Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
- *
- * @param selector A string containing a selector expression to match elements against.
- */
- siblings(selector?: string): JQuery;
-
- /**
- * Reduce the set of matched elements to a subset specified by a range of indices.
- *
- * @param start An integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set.
- * @param end An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set.
- */
- slice(start: number, end?: number): JQuery;
-
- /**
- * Show the queue of functions to be executed on the matched elements.
- *
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- */
- queue(queueName?: string): any[];
- /**
- * Manipulate the queue of functions to be executed, once for each matched element.
- *
- * @param newQueue An array of functions to replace the current queue contents.
- */
- queue(newQueue: Function[]): JQuery;
- /**
- * Manipulate the queue of functions to be executed, once for each matched element.
- *
- * @param callback The new function to add to the queue, with a function to call that will dequeue the next item.
- */
- queue(callback: Function): JQuery;
- /**
- * Manipulate the queue of functions to be executed, once for each matched element.
- *
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- * @param newQueue An array of functions to replace the current queue contents.
- */
- queue(queueName: string, newQueue: Function[]): JQuery;
- /**
- * Manipulate the queue of functions to be executed, once for each matched element.
- *
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- * @param callback The new function to add to the queue, with a function to call that will dequeue the next item.
- */
- queue(queueName: string, callback: Function): JQuery;
-}
-declare module "jquery" {
- export = $;
-}
-declare var jQuery: JQueryStatic;
-declare var $: JQueryStatic;
diff --git a/lib/decl/lib.es6.d.ts b/lib/decl/lib.es6.d.ts
deleted file mode 100644
index 084ed4e8a..000000000
--- a/lib/decl/lib.es6.d.ts
+++ /dev/null
@@ -1,20674 +0,0 @@
-/*! *****************************************************************************
-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.
-***************************************************************************** */
-
-/// <reference no-default-lib="true"/>
-/////////////////////////////
-/// ECMAScript APIs
-/////////////////////////////
-
-declare const NaN: number;
-declare const 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. */
- readonly 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 null prototype.
- * @param o Object to use as a prototype. May be null
- */
- create(o: null): any;
-
- /**
- * 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
- */
- create<T>(o: T): T;
-
- /**
- * 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<T>(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<T>(o: T): T;
-
- /**
- * Prevents the addition of new properties to an object.
- * @param o Object to make non-extensible.
- */
- preventExtensions<T>(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 const 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(this: Function, 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(this: Function, 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(this: Function, thisArg: any, ...argArray: any[]): any;
-
- prototype: any;
- readonly 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;
- readonly prototype: Function;
-}
-
-declare const 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 | null;
-
- /**
- * 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 | null;
-
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string that represents the regular expression.
- * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
- */
- replace(searchValue: string, replaceValue: string): string;
-
- /**
- * Replaces text in a string, using a regular expression or search string.
- * @param searchValue A string that represents the regular expression.
- * @param replacer A function that returns the replacement text.
- */
- replace(searchValue: string, replacer: (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 containing the text to replace for every successful match of searchValue in this string.
- */
- 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 replacer A function that returns the replacement text.
- */
- replace(searchValue: RegExp, replacer: (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. */
- readonly 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;
-
- readonly [index: number]: string;
-}
-
-interface StringConstructor {
- new (value?: any): String;
- (value?: any): string;
- readonly prototype: String;
- fromCharCode(...codes: number[]): string;
-}
-
-/**
- * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
- */
-declare const String: StringConstructor;
-
-interface Boolean {
- /** Returns the primitive value of the specified object. */
- valueOf(): boolean;
-}
-
-interface BooleanConstructor {
- new (value?: any): Boolean;
- (value?: any): boolean;
- readonly prototype: Boolean;
-}
-
-declare const 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;
- readonly prototype: Number;
-
- /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
- readonly MAX_VALUE: number;
-
- /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
- readonly 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.
- */
- readonly 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.
- */
- readonly NEGATIVE_INFINITY: number;
-
- /**
- * A value greater than the largest number that can be represented in JavaScript.
- * JavaScript displays POSITIVE_INFINITY values as infinity.
- */
- readonly POSITIVE_INFINITY: number;
-}
-
-/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
-declare const Number: NumberConstructor;
-
-interface TemplateStringsArray extends ReadonlyArray<string> {
- readonly raw: ReadonlyArray<string>
-}
-
-interface Math {
- /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
- readonly E: number;
- /** The natural logarithm of 10. */
- readonly LN10: number;
- /** The natural logarithm of 2. */
- readonly LN2: number;
- /** The base-2 logarithm of e. */
- readonly LOG2E: number;
- /** The base-10 logarithm of e. */
- readonly LOG10E: number;
- /** Pi. This is the ratio of the circumference of a circle to its diameter. */
- readonly PI: number;
- /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
- readonly SQRT1_2: number;
- /** The square root of 2. */
- readonly 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 const 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;
- readonly 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 const Date: DateConstructor;
-
-interface RegExpMatchArray extends Array<string> {
- index?: number;
- input?: string;
-}
-
-interface RegExpExecArray extends Array<string> {
- 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 | null;
-
- /**
- * 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. */
- readonly source: string;
-
- /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
- readonly global: boolean;
-
- /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
- readonly ignoreCase: boolean;
-
- /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
- readonly multiline: boolean;
-
- lastIndex: number;
-
- // Non-standard extensions
- compile(): this;
-}
-
-interface RegExpConstructor {
- new (pattern: RegExp): RegExp;
- new (pattern: string, flags?: string): RegExp;
- (pattern: RegExp): RegExp;
- (pattern: string, flags?: string): RegExp;
- readonly 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 const RegExp: RegExpConstructor;
-
-interface Error {
- name: string;
- message: string;
- stack?: string;
-}
-
-interface ErrorConstructor {
- new (message?: string): Error;
- (message?: string): Error;
- readonly prototype: Error;
-}
-
-declare const Error: ErrorConstructor;
-
-interface EvalError extends Error {
-}
-
-interface EvalErrorConstructor {
- new (message?: string): EvalError;
- (message?: string): EvalError;
- readonly prototype: EvalError;
-}
-
-declare const EvalError: EvalErrorConstructor;
-
-interface RangeError extends Error {
-}
-
-interface RangeErrorConstructor {
- new (message?: string): RangeError;
- (message?: string): RangeError;
- readonly prototype: RangeError;
-}
-
-declare const RangeError: RangeErrorConstructor;
-
-interface ReferenceError extends Error {
-}
-
-interface ReferenceErrorConstructor {
- new (message?: string): ReferenceError;
- (message?: string): ReferenceError;
- readonly prototype: ReferenceError;
-}
-
-declare const ReferenceError: ReferenceErrorConstructor;
-
-interface SyntaxError extends Error {
-}
-
-interface SyntaxErrorConstructor {
- new (message?: string): SyntaxError;
- (message?: string): SyntaxError;
- readonly prototype: SyntaxError;
-}
-
-declare const SyntaxError: SyntaxErrorConstructor;
-
-interface TypeError extends Error {
-}
-
-interface TypeErrorConstructor {
- new (message?: string): TypeError;
- (message?: string): TypeError;
- readonly prototype: TypeError;
-}
-
-declare const TypeError: TypeErrorConstructor;
-
-interface URIError extends Error {
-}
-
-interface URIErrorConstructor {
- new (message?: string): URIError;
- (message?: string): URIError;
- readonly prototype: URIError;
-}
-
-declare const 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.
- * @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?: string | number): 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 An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
- * @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?: (number | string)[] | null, space?: string | number): string;
-}
-
-/**
- * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
- */
-declare const JSON: JSON;
-
-
-/////////////////////////////
-/// ECMAScript Array API (specially handled by compiler)
-/////////////////////////////
-
-interface ReadonlyArray<T> {
- /**
- * Gets the length of the array. This is a number one higher than the highest element defined in an array.
- */
- readonly length: number;
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
- toLocaleString(): string;
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat<U extends ReadonlyArray<T>>(...items: U[]): T[];
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: T[][]): T[];
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: (T | 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;
- /**
- * 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[];
- /**
- * 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: ReadonlyArray<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: ReadonlyArray<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: ReadonlyArray<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<U>(callbackfn: (value: T, index: number, array: ReadonlyArray<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: ReadonlyArray<T>) => any, 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: ReadonlyArray<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<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<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: ReadonlyArray<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<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;
-
- readonly [n: number]: T;
-}
-
-interface Array<T> {
- /**
- * 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 | undefined;
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: T[][]): T[];
- /**
- * Combines two or more arrays.
- * @param items Additional items to add to the end of array1.
- */
- concat(...items: (T | 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 | undefined;
- /**
- * 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): this;
- /**
- * 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<U>(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[]) => any, 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<U>(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<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
-
- [n: number]: T;
-}
-
-interface ArrayConstructor {
- new (arrayLength?: number): any[];
- new <T>(arrayLength: number): T[];
- new <T>(...items: T[]): T[];
- (arrayLength?: number): any[];
- <T>(arrayLength: number): T[];
- <T>(...items: T[]): T[];
- isArray(arg: any): arg is Array<any>;
- readonly prototype: Array<any>;
-}
-
-declare const Array: ArrayConstructor;
-
-interface TypedPropertyDescriptor<T> {
- enumerable?: boolean;
- configurable?: boolean;
- writable?: boolean;
- value?: T;
- get?: () => T;
- set?: (value: T) => void;
-}
-
-declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
-declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
-declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
-declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
-
-declare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
-
-interface PromiseLike<T> {
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): PromiseLike<TResult>;
- then<TResult>(onfulfilled?: (value: T) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): PromiseLike<TResult>;
-}
-
-interface ArrayLike<T> {
- readonly length: number;
- readonly [n: number]: T;
-}
-
-/**
- * Represents a raw buffer of binary data, which is used to store data for the
- * different typed arrays. ArrayBuffers cannot be read from or written to directly,
- * but can be passed to a typed array or DataView Object to interpret the raw
- * buffer as needed.
- */
-interface ArrayBuffer {
- /**
- * Read-only. The length of the ArrayBuffer (in bytes).
- */
- readonly byteLength: number;
-
- /**
- * Returns a section of an ArrayBuffer.
- */
- slice(begin:number, end?:number): ArrayBuffer;
-}
-
-interface ArrayBufferConstructor {
- readonly prototype: ArrayBuffer;
- new (byteLength: number): ArrayBuffer;
- isView(arg: any): arg is ArrayBufferView;
-}
-declare const ArrayBuffer: ArrayBufferConstructor;
-
-interface ArrayBufferView {
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- byteOffset: number;
-}
-
-interface DataView {
- readonly buffer: ArrayBuffer;
- readonly byteLength: number;
- readonly byteOffset: number;
- /**
- * Gets the Float32 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getFloat32(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Float64 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getFloat64(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Int8 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getInt8(byteOffset: number): number;
-
- /**
- * Gets the Int16 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getInt16(byteOffset: number, littleEndian?: boolean): number;
- /**
- * Gets the Int32 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getInt32(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Uint8 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getUint8(byteOffset: number): number;
-
- /**
- * Gets the Uint16 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getUint16(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Gets the Uint32 value at the specified byte offset from the start of the view. There is
- * no alignment constraint; multi-byte values may be fetched from any offset.
- * @param byteOffset The place in the buffer at which the value should be retrieved.
- */
- getUint32(byteOffset: number, littleEndian?: boolean): number;
-
- /**
- * Stores an Float32 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written,
- * otherwise a little-endian value should be written.
- */
- setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Float64 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written,
- * otherwise a little-endian value should be written.
- */
- setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Int8 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- */
- setInt8(byteOffset: number, value: number): void;
-
- /**
- * Stores an Int16 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written,
- * otherwise a little-endian value should be written.
- */
- setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Int32 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written,
- * otherwise a little-endian value should be written.
- */
- setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Uint8 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- */
- setUint8(byteOffset: number, value: number): void;
-
- /**
- * Stores an Uint16 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written,
- * otherwise a little-endian value should be written.
- */
- setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
-
- /**
- * Stores an Uint32 value at the specified byte offset from the start of the view.
- * @param byteOffset The place in the buffer at which the value should be set.
- * @param value The value to set.
- * @param littleEndian If false or undefined, a big-endian value should be written,
- * otherwise a little-endian value should be written.
- */
- setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
-}
-
-interface DataViewConstructor {
- new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
-}
-declare const DataView: DataViewConstructor;
-
-/**
- * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Int8Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Int8Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => 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: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int8Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Int8Array;
-
- /**
- * 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: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Int8Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-interface Int8ArrayConstructor {
- readonly prototype: Int8Array;
- new (length: number): Int8Array;
- new (array: ArrayLike<number>): Int8Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Int8Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
-
-}
-declare const Int8Array: Int8ArrayConstructor;
-
-/**
- * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint8Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => 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: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint8Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Uint8Array;
-
- /**
- * 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: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Uint8Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint8ArrayConstructor {
- readonly prototype: Uint8Array;
- new (length: number): Uint8Array;
- new (array: ArrayLike<number>): Uint8Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint8Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
-
-}
-declare const Uint8Array: Uint8ArrayConstructor;
-
-/**
- * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
- * If the requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint8ClampedArray {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => 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: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint8ClampedArray;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: Uint8ClampedArray, offset?: number): void;
-
- /**
- * 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): Uint8ClampedArray;
-
- /**
- * 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: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Uint8ClampedArray;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint8ClampedArrayConstructor {
- readonly prototype: Uint8ClampedArray;
- new (length: number): Uint8ClampedArray;
- new (array: ArrayLike<number>): Uint8ClampedArray;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint8ClampedArray;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
-}
-declare const Uint8ClampedArray: Uint8ClampedArrayConstructor;
-
-/**
- * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Int16Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Int16Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => 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: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int16Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Int16Array;
-
- /**
- * 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: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Int16Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Int16ArrayConstructor {
- readonly prototype: Int16Array;
- new (length: number): Int16Array;
- new (array: ArrayLike<number>): Int16Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Int16Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
-
-}
-declare const Int16Array: Int16ArrayConstructor;
-
-/**
- * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint16Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => 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: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint16Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Uint16Array;
-
- /**
- * 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: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Uint16Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint16ArrayConstructor {
- readonly prototype: Uint16Array;
- new (length: number): Uint16Array;
- new (array: ArrayLike<number>): Uint16Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint16Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
-
-}
-declare const Uint16Array: Uint16ArrayConstructor;
-/**
- * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Int32Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Int32Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => 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: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Int32Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Int32Array;
-
- /**
- * 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: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Int32Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Int32ArrayConstructor {
- readonly prototype: Int32Array;
- new (length: number): Int32Array;
- new (array: ArrayLike<number>): Int32Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Int32Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
-}
-declare const Int32Array: Int32ArrayConstructor;
-
-/**
- * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint32Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => 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: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Uint32Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Uint32Array;
-
- /**
- * 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: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Uint32Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Uint32ArrayConstructor {
- readonly prototype: Uint32Array;
- new (length: number): Uint32Array;
- new (array: ArrayLike<number>): Uint32Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Uint32Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
-}
-declare const Uint32Array: Uint32ArrayConstructor;
-
-/**
- * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
- * of bytes could not be allocated an exception is raised.
- */
-interface Float32Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Float32Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => 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: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Float32Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Float32Array;
-
- /**
- * 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: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Float32Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Float32ArrayConstructor {
- readonly prototype: Float32Array;
- new (length: number): Float32Array;
- new (array: ArrayLike<number>): Float32Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Float32Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
-
-}
-declare const Float32Array: Float32ArrayConstructor;
-
-/**
- * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Float64Array {
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * The ArrayBuffer instance referenced by the array.
- */
- readonly buffer: ArrayBuffer;
-
- /**
- * The length in bytes of the array.
- */
- readonly byteLength: number;
-
- /**
- * The offset in bytes of the array.
- */
- readonly byteOffset: number;
-
- /**
- * 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): this;
-
- /**
- * 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: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, start?: number, end?: number): this;
-
- /**
- * 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: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
-
- /**
- * 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: number, index: number, obj: Array<number>) => boolean, thisArg?: any): number | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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: number) => boolean, thisArg?: any): number;
-
- /**
- * 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: number, index: number, array: Float64Array) => void, thisArg?: any): void;
-
- /**
- * 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: number, fromIndex?: number): number;
-
- /**
- * 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;
-
- /**
- * Returns the index of the last 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.
- */
- lastIndexOf(searchElement: number, fromIndex?: number): number;
-
- /**
- * The length of the array.
- */
- readonly length: number;
-
- /**
- * 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: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
-
- /**
- * 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: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => 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: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number;
-
- /**
- * 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<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
-
- /**
- * Reverses the elements in an Array.
- */
- reverse(): Float64Array;
-
- /**
- * Sets a value or an array of values.
- * @param index The index of the location to set.
- * @param value The value to set.
- */
- set(index: number, value: number): void;
-
- /**
- * Sets a value or an array of values.
- * @param array A typed or untyped array of values to set.
- * @param offset The index in the current array at which the values are to be written.
- */
- set(array: ArrayLike<number>, offset?: number): void;
-
- /**
- * 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): Float64Array;
-
- /**
- * 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: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;
-
- /**
- * 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: number, b: number) => number): this;
-
- /**
- * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
- * at begin, inclusive, up to end, exclusive.
- * @param begin The index of the beginning of the array.
- * @param end The index of the end of the array.
- */
- subarray(begin: number, end?: number): Float64Array;
-
- /**
- * Converts a number to a string by using the current locale.
- */
- toLocaleString(): string;
-
- /**
- * Returns a string representation of an array.
- */
- toString(): string;
-
- [index: number]: number;
-}
-
-interface Float64ArrayConstructor {
- readonly prototype: Float64Array;
- new (length: number): Float64Array;
- new (array: ArrayLike<number>): Float64Array;
- new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
-
- /**
- * The size in bytes of each element in the array.
- */
- readonly BYTES_PER_ELEMENT: number;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of(...items: number[]): Float64Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
-}
-declare const Float64Array: Float64ArrayConstructor;
-
-/////////////////////////////
-/// ECMAScript Internationalization API
-/////////////////////////////
-
-declare module Intl {
- interface CollatorOptions {
- usage?: string;
- localeMatcher?: string;
- numeric?: boolean;
- caseFirst?: string;
- sensitivity?: string;
- ignorePunctuation?: boolean;
- }
-
- interface ResolvedCollatorOptions {
- locale: string;
- usage: string;
- sensitivity: string;
- ignorePunctuation: boolean;
- collation: string;
- caseFirst: string;
- numeric: boolean;
- }
-
- interface Collator {
- compare(x: string, y: string): number;
- resolvedOptions(): ResolvedCollatorOptions;
- }
- var Collator: {
- new (locales?: string[], options?: CollatorOptions): Collator;
- new (locale?: string, options?: CollatorOptions): Collator;
- (locales?: string[], options?: CollatorOptions): Collator;
- (locale?: string, options?: CollatorOptions): Collator;
- supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
- supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
- }
-
- interface NumberFormatOptions {
- localeMatcher?: string;
- style?: string;
- currency?: string;
- currencyDisplay?: string;
- useGrouping?: boolean;
- minimumIntegerDigits?: number;
- minimumFractionDigits?: number;
- maximumFractionDigits?: number;
- minimumSignificantDigits?: number;
- maximumSignificantDigits?: number;
- }
-
- interface ResolvedNumberFormatOptions {
- locale: string;
- numberingSystem: string;
- style: string;
- currency?: string;
- currencyDisplay?: string;
- minimumIntegerDigits: number;
- minimumFractionDigits: number;
- maximumFractionDigits: number;
- minimumSignificantDigits?: number;
- maximumSignificantDigits?: number;
- useGrouping: boolean;
- }
-
- interface NumberFormat {
- format(value: number): string;
- resolvedOptions(): ResolvedNumberFormatOptions;
- }
- var NumberFormat: {
- new (locales?: string[], options?: NumberFormatOptions): NumberFormat;
- new (locale?: string, options?: NumberFormatOptions): NumberFormat;
- (locales?: string[], options?: NumberFormatOptions): NumberFormat;
- (locale?: string, options?: NumberFormatOptions): NumberFormat;
- supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
- supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
- }
-
- interface DateTimeFormatOptions {
- localeMatcher?: string;
- weekday?: string;
- era?: string;
- year?: string;
- month?: string;
- day?: string;
- hour?: string;
- minute?: string;
- second?: string;
- timeZoneName?: string;
- formatMatcher?: string;
- hour12?: boolean;
- timeZone?: string;
- }
-
- interface ResolvedDateTimeFormatOptions {
- locale: string;
- calendar: string;
- numberingSystem: string;
- timeZone: string;
- hour12?: boolean;
- weekday?: string;
- era?: string;
- year?: string;
- month?: string;
- day?: string;
- hour?: string;
- minute?: string;
- second?: string;
- timeZoneName?: string;
- }
-
- interface DateTimeFormat {
- format(date?: Date | number): string;
- resolvedOptions(): ResolvedDateTimeFormatOptions;
- }
- var DateTimeFormat: {
- new (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
- new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
- (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat;
- (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat;
- supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
- supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
- }
-}
-
-interface String {
- /**
- * Determines whether two strings are equivalent in the current locale.
- * @param that String to compare to target string
- * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
- * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
- */
- localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
-
- /**
- * Determines whether two strings are equivalent in the current locale.
- * @param that String to compare to target string
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
- * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
- */
- localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
-}
-
-interface Number {
- /**
- * Converts a number to a string by using the current or specified locale.
- * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
-
- /**
- * Converts a number to a string by using the current or specified locale.
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
-}
-
-interface Date {
- /**
- * Converts a date and time to a string by using the current or specified locale.
- * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
- /**
- * Converts a date to a string by using the current or specified locale.
- * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
-
- /**
- * Converts a time to a string by using the current or specified locale.
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string;
-
- /**
- * Converts a date and time to a string by using the current or specified locale.
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
-
- /**
- * Converts a date to a string by using the current or specified locale.
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
-
- /**
- * Converts a time to a string by using the current or specified locale.
- * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
- * @param options An object that contains one or more properties that specify comparison options.
- */
- toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
-}
-declare type PropertyKey = string | number | symbol;
-
-interface Array<T> {
- /**
- * 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<T>) => boolean, thisArg?: any): T | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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): this;
-
- /**
- * 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): this;
-}
-
-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<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
-
-
- /**
- * Creates an array from an array-like object.
- * @param arrayLike An array-like object to convert to an array.
- */
- from<T>(arrayLike: ArrayLike<T>): Array<T>;
-
- /**
- * Returns a new array from a set of elements.
- * @param items A set of elements to include in the new array object.
- */
- of<T>(...items: T[]): Array<T>;
-}
-
-interface DateConstructor {
- new (value: Date): Date;
-}
-
-interface Function {
- /**
- * Returns the name of the function. Function names are read-only and can not be changed.
- */
- readonly name: string;
-}
-
-interface Math {
- /**
- * Returns the number of leading zero bits in the 32-bit binary representation of a number.
- * @param x A numeric expression.
- */
- clz32(x: number): number;
-
- /**
- * Returns the result of 32-bit multiplication of two numbers.
- * @param x First number
- * @param y Second number
- */
- imul(x: number, y: number): number;
-
- /**
- * Returns the sign of the x, indicating whether x is positive, negative or zero.
- * @param x The numeric expression to test
- */
- sign(x: number): number;
-
- /**
- * Returns the base 10 logarithm of a number.
- * @param x A numeric expression.
- */
- log10(x: number): number;
-
- /**
- * Returns the base 2 logarithm of a number.
- * @param x A numeric expression.
- */
- log2(x: number): number;
-
- /**
- * Returns the natural logarithm of 1 + x.
- * @param x A numeric expression.
- */
- log1p(x: number): number;
-
- /**
- * Returns the result of (e^x - 1) of x (e raised to the power of x, where e is the base of
- * the natural logarithms).
- * @param x A numeric expression.
- */
- expm1(x: number): number;
-
- /**
- * Returns the hyperbolic cosine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- cosh(x: number): number;
-
- /**
- * Returns the hyperbolic sine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- sinh(x: number): number;
-
- /**
- * Returns the hyperbolic tangent of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- tanh(x: number): number;
-
- /**
- * Returns the inverse hyperbolic cosine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- acosh(x: number): number;
-
- /**
- * Returns the inverse hyperbolic sine of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- asinh(x: number): number;
-
- /**
- * Returns the inverse hyperbolic tangent of a number.
- * @param x A numeric expression that contains an angle measured in radians.
- */
- atanh(x: number): number;
-
- /**
- * Returns the square root of the sum of squares of its arguments.
- * @param values Values to compute the square root for.
- * If no arguments are passed, the result is +0.
- * If there is only one argument, the result is the absolute value.
- * If any argument is +Infinity or -Infinity, the result is +Infinity.
- * If any argument is NaN, the result is NaN.
- * If all arguments are either +0 or −0, the result is +0.
- */
- hypot(...values: number[] ): number;
-
- /**
- * Returns the integral part of the a numeric expression, x, removing any fractional digits.
- * If x is already an integer, the result is x.
- * @param x A numeric expression.
- */
- trunc(x: number): number;
-
- /**
- * Returns the nearest single precision float representation of a number.
- * @param x A numeric expression.
- */
- fround(x: number): number;
-
- /**
- * Returns an implementation-dependent approximation to the cube root of number.
- * @param x A numeric expression.
- */
- cbrt(x: number): number;
-}
-
-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.
- */
- readonly 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.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
- */
- readonly 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)).
- */
- readonly 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 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 source The source object from which to copy properties.
- */
- assign<T, U>(target: T, source: U): T & U;
-
- /**
- * 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 source1 The first source object from which to copy properties.
- * @param source2 The second source object from which to copy properties.
- */
- assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
-
- /**
- * 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 source1 The first source object from which to copy properties.
- * @param source2 The second source object from which to copy properties.
- * @param source3 The third source object from which to copy properties.
- */
- assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
-
- /**
- * 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 from which to copy properties
- */
- 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 ReadonlyArray<T> {
- /**
- * 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: ReadonlyArray<T>) => boolean, thisArg?: any): T | undefined;
-
- /**
- * 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,
- * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
- * @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;
-}
-
-interface RegExp {
- /**
- * Returns a string indicating the flags of the regular expression in question. This field is read-only.
- * The characters in this string are sequenced and concatenated in the following order:
- *
- * - "g" for global
- * - "i" for ignoreCase
- * - "m" for multiline
- * - "u" for unicode
- * - "y" for sticky
- *
- * If no flags are set, the value is the empty string.
- */
- readonly flags: string;
-
- /**
- * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
- * expression. Default is false. Read-only.
- */
- readonly sticky: boolean;
-
- /**
- * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
- * expression. Default is false. Read-only.
- */
- readonly unicode: boolean;
-}
-
-interface RegExpConstructor {
- new (pattern: RegExp, flags?: string): RegExp;
- (pattern: RegExp, flags?: string): RegExp;
-}
-
-interface String {
- /**
- * 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 | undefined;
-
- /**
- * 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.
- */
- includes(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: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
-
- /**
- * 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 <a> HTML anchor element and sets the name attribute to the text value
- * @param name
- */
- anchor(name: string): string;
-
- /** Returns a <big> HTML element */
- big(): string;
-
- /** Returns a <blink> HTML element */
- blink(): string;
-
- /** Returns a <b> HTML element */
- bold(): string;
-
- /** Returns a <tt> HTML element */
- fixed(): string
-
- /** Returns a <font> HTML element and sets the color attribute value */
- fontcolor(color: string): string
-
- /** Returns a <font> HTML element and sets the size attribute value */
- fontsize(size: number): string;
-
- /** Returns a <font> HTML element and sets the size attribute value */
- fontsize(size: string): string;
-
- /** Returns an <i> HTML element */
- italics(): string;
-
- /** Returns an <a> HTML element and sets the href attribute value */
- link(url: string): string;
-
- /** Returns a <small> HTML element */
- small(): string;
-
- /** Returns a <strike> HTML element */
- strike(): string;
-
- /** Returns a <sub> HTML element */
- sub(): string;
-
- /** Returns a <sup> HTML element */
- sup(): string;
-}
-
-interface StringConstructor {
- /**
- * Return the String value whose elements are, in order, the elements in the List elements.
- * If length is 0, the empty string is returned.
- */
- fromCodePoint(...codePoints: number[]): string;
-
- /**
- * String.raw is intended for use as a tag function of a Tagged Template String. When called
- * as such the first argument will be a well formed template call site object and the rest
- * parameter will contain the substitution values.
- * @param template A well-formed template string call site representation.
- * @param substitutions A set of substitution values.
- */
- raw(template: TemplateStringsArray, ...substitutions: any[]): string;
-}
-interface Map<K, V> {
- clear(): void;
- delete(key: K): boolean;
- forEach(callbackfn: (value: V, index: K, map: Map<K, V>) => void, thisArg?: any): void;
- get(key: K): V | undefined;
- has(key: K): boolean;
- set(key: K, value?: V): this;
- readonly size: number;
-}
-
-interface MapConstructor {
- new (): Map<any, any>;
- new <K, V>(entries?: [K, V][]): Map<K, V>;
- readonly prototype: Map<any, any>;
-}
-declare var Map: MapConstructor;
-
-interface WeakMap<K, V> {
- clear(): void;
- delete(key: K): boolean;
- get(key: K): V | undefined;
- has(key: K): boolean;
- set(key: K, value?: V): this;
-}
-
-interface WeakMapConstructor {
- new (): WeakMap<any, any>;
- new <K, V>(entries?: [K, V][]): WeakMap<K, V>;
- readonly prototype: WeakMap<any, any>;
-}
-declare var WeakMap: WeakMapConstructor;
-
-interface Set<T> {
- add(value: T): this;
- clear(): void;
- delete(value: T): boolean;
- forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;
- has(value: T): boolean;
- readonly size: number;
-}
-
-interface SetConstructor {
- new (): Set<any>;
- new <T>(values?: T[]): Set<T>;
- readonly prototype: Set<any>;
-}
-declare var Set: SetConstructor;
-
-interface WeakSet<T> {
- add(value: T): this;
- clear(): void;
- delete(value: T): boolean;
- has(value: T): boolean;
-}
-
-interface WeakSetConstructor {
- new (): WeakSet<any>;
- new <T>(values?: T[]): WeakSet<T>;
- readonly prototype: WeakSet<any>;
-}
-declare var WeakSet: WeakSetConstructor;
-interface GeneratorFunction extends Function { }
-
-interface GeneratorFunctionConstructor {
- /**
- * Creates a new Generator function.
- * @param args A list of arguments the function accepts.
- */
- new (...args: string[]): GeneratorFunction;
- (...args: string[]): GeneratorFunction;
- readonly prototype: GeneratorFunction;
-}
-declare var GeneratorFunction: GeneratorFunctionConstructor;
-/// <reference path="lib.es2015.symbol.d.ts" />
-
-interface SymbolConstructor {
- /**
- * A method that returns the default iterator for an object. Called by the semantics of the
- * for-of statement.
- */
- readonly iterator: symbol;
-}
-
-interface IteratorResult<T> {
- done: boolean;
- value: T;
-}
-
-interface Iterator<T> {
- next(value?: any): IteratorResult<T>;
- return?(value?: any): IteratorResult<T>;
- throw?(e?: any): IteratorResult<T>;
-}
-
-interface Iterable<T> {
- [Symbol.iterator](): Iterator<T>;
-}
-
-interface IterableIterator<T> extends Iterator<T> {
- [Symbol.iterator](): IterableIterator<T>;
-}
-
-interface Array<T> {
- /** Iterator */
- [Symbol.iterator](): IterableIterator<T>;
-
- /**
- * 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<number>;
-
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<T>;
-}
-
-interface ArrayConstructor {
- /**
- * 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<T, U>(iterable: Iterable<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
-
- /**
- * Creates an array from an iterable object.
- * @param iterable An iterable object to convert to an array.
- */
- from<T>(iterable: Iterable<T>): Array<T>;
-}
-
-interface ReadonlyArray<T> {
- /** Iterator */
- [Symbol.iterator](): IterableIterator<T>;
-
- /**
- * 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<number>;
-
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<T>;
-}
-
-interface IArguments {
- /** Iterator */
- [Symbol.iterator](): IterableIterator<any>;
-}
-
-interface Map<K, V> {
- [Symbol.iterator](): IterableIterator<[K,V]>;
- entries(): IterableIterator<[K, V]>;
- keys(): IterableIterator<K>;
- values(): IterableIterator<V>;
-}
-
-interface MapConstructor {
- new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
-}
-
-interface WeakMap<K, V> { }
-
-interface WeakMapConstructor {
- new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
-}
-
-interface Set<T> {
- [Symbol.iterator](): IterableIterator<T>;
- entries(): IterableIterator<[T, T]>;
- keys(): IterableIterator<T>;
- values(): IterableIterator<T>;
-}
-
-interface SetConstructor {
- new <T>(iterable: Iterable<T>): Set<T>;
-}
-
-interface WeakSet<T> { }
-
-interface WeakSetConstructor {
- new <T>(iterable: Iterable<T>): WeakSet<T>;
-}
-
-interface Promise<T> { }
-
-interface PromiseConstructor {
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;
-
- /**
- * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
- * or rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
-}
-
-declare namespace Reflect {
- function enumerate(target: any): IterableIterator<any>;
-}
-
-interface String {
- /** Iterator */
- [Symbol.iterator](): IterableIterator<string>;
-}
-
-/**
- * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Int8Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Int8ArrayConstructor {
- new (elements: Iterable<number>): Int8Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
-}
-
-/**
- * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint8Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Uint8ArrayConstructor {
- new (elements: Iterable<number>): Uint8Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
-}
-
-/**
- * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
- * If the requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint8ClampedArray {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
-
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
-
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Uint8ClampedArrayConstructor {
- new (elements: Iterable<number>): Uint8ClampedArray;
-
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
-}
-
-/**
- * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Int16Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
-
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
-
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Int16ArrayConstructor {
- new (elements: Iterable<number>): Int16Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
-}
-
-/**
- * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint16Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Uint16ArrayConstructor {
- new (elements: Iterable<number>): Uint16Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
-}
-
-/**
- * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Int32Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Int32ArrayConstructor {
- new (elements: Iterable<number>): Int32Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
-}
-
-/**
- * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint32Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Uint32ArrayConstructor {
- new (elements: Iterable<number>): Uint32Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
-}
-
-/**
- * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
- * of bytes could not be allocated an exception is raised.
- */
-interface Float32Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Float32ArrayConstructor {
- new (elements: Iterable<number>): Float32Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
-}
-
-/**
- * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Float64Array {
- [Symbol.iterator](): IterableIterator<number>;
- /**
- * Returns an array of key, value pairs for every entry in the array
- */
- entries(): IterableIterator<[number, number]>;
- /**
- * Returns an list of keys in the array
- */
- keys(): IterableIterator<number>;
- /**
- * Returns an list of values in the array
- */
- values(): IterableIterator<number>;
-}
-
-interface Float64ArrayConstructor {
- new (elements: Iterable<number>): Float64Array;
-
- /**
- * Creates an array from an array-like or iterable object.
- * @param arrayLike An array-like or 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(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
-}/**
- * Represents the completion of an asynchronous operation
- */
-interface Promise<T> {
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then<TResult1, TResult2>(onfulfilled: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>;
-
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>, onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>;
-
- /**
- * Attaches callbacks for the resolution and/or rejection of the Promise.
- * @param onfulfilled The callback to execute when the Promise is resolved.
- * @returns A Promise for the completion of which ever callback is executed.
- */
- then<TResult>(onfulfilled: (value: T) => TResult | PromiseLike<TResult>): Promise<TResult>;
-
- /**
- * Creates a new Promise with the same internal state of this Promise.
- * @returns A Promise.
- */
- then(): Promise<T>;
-
- /**
- * Attaches a callback for only the rejection of the Promise.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of the callback.
- */
- catch<TResult>(onrejected: (reason: any) => TResult | PromiseLike<TResult>): Promise<T | TResult>;
-
- /**
- * Attaches a callback for only the rejection of the Promise.
- * @param onrejected The callback to execute when the Promise is rejected.
- * @returns A Promise for the completion of the callback.
- */
- catch(onrejected: (reason: any) => T | PromiseLike<T>): Promise<T>;
-}
-
-interface PromiseConstructor {
- /**
- * A reference to the prototype.
- */
- readonly prototype: Promise<any>;
-
- /**
- * Creates a new Promise.
- * @param executor A callback used to initialize the promise. This callback is passed two arguments:
- * a resolve callback used resolve the promise with a value or the result of another promise,
- * and a reject callback used to reject the promise with a provided reason or error.
- */
- new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
-
- /**
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
- * resolve, or rejected when any Promise is rejected.
- * @param values An array of Promises.
- * @returns A new Promise.
- */
- all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;
-
- /**
- * Creates a new rejected promise for the provided reason.
- * @param reason The reason the promise was rejected.
- * @returns A new rejected Promise.
- */
- reject(reason: any): Promise<never>;
-
- /**
- * Creates a new rejected promise for the provided reason.
- * @param reason The reason the promise was rejected.
- * @returns A new rejected Promise.
- */
- reject<T>(reason: any): Promise<T>;
-
- /**
- * Creates a new resolved promise for the provided value.
- * @param value A promise.
- * @returns A promise whose internal state matches the provided promise.
- */
- resolve<T>(value: T | PromiseLike<T>): Promise<T>;
-
- /**
- * Creates a new resolved promise .
- * @returns A resolved promise.
- */
- resolve(): Promise<void>;
-}
-
-declare var Promise: PromiseConstructor;interface ProxyHandler<T> {
- getPrototypeOf? (target: T): any;
- setPrototypeOf? (target: T, v: any): boolean;
- isExtensible? (target: T): boolean;
- preventExtensions? (target: T): boolean;
- getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor;
- has? (target: T, p: PropertyKey): boolean;
- get? (target: T, p: PropertyKey, receiver: any): any;
- set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
- deleteProperty? (target: T, p: PropertyKey): boolean;
- defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;
- enumerate? (target: T): PropertyKey[];
- ownKeys? (target: T): PropertyKey[];
- apply? (target: T, thisArg: any, argArray?: any): any;
- construct? (target: T, thisArg: any, argArray?: any): any;
-}
-
-interface ProxyConstructor {
- revocable<T>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
- new <T>(target: T, handler: ProxyHandler<T>): T
-}
-declare var Proxy: ProxyConstructor;declare namespace Reflect {
- function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
- function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;
- function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
- function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
- function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
- function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor;
- function getPrototypeOf(target: any): any;
- function has(target: any, propertyKey: string): boolean;
- function has(target: any, propertyKey: symbol): boolean;
- function isExtensible(target: any): boolean;
- function ownKeys(target: any): Array<PropertyKey>;
- function preventExtensions(target: any): boolean;
- function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
- function setPrototypeOf(target: any, proto: any): boolean;
-}interface Symbol {
- /** Returns a string representation of an object. */
- toString(): string;
-
- /** Returns the primitive value of the specified object. */
- valueOf(): Object;
-}
-
-interface SymbolConstructor {
- /**
- * A reference to the prototype.
- */
- readonly 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 | undefined;
-}
-
-declare var Symbol: SymbolConstructor;/// <reference path="lib.es2015.symbol.d.ts" />
-
-interface SymbolConstructor {
- /**
- * 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.
- */
- readonly hasInstance: symbol;
-
- /**
- * A Boolean value that if true indicates that an object should flatten to its array elements
- * by Array.prototype.concat.
- */
- readonly isConcatSpreadable: symbol;
-
- /**
- * A regular expression method that matches the regular expression against a string. Called
- * by the String.prototype.match method.
- */
- readonly match: symbol;
-
- /**
- * A regular expression method that replaces matched substrings of a string. Called by the
- * String.prototype.replace method.
- */
- readonly 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.
- */
- readonly search: symbol;
-
- /**
- * A function valued property that is the constructor function that is used to create
- * derived objects.
- */
- readonly 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.
- */
- readonly split: symbol;
-
- /**
- * A method that converts an object to a corresponding primitive value.
- * Called by the ToPrimitive abstract operation.
- */
- readonly 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.
- */
- readonly toStringTag: symbol;
-
- /**
- * An Object whose own property names are property names that are excluded from the 'with'
- * environment bindings of the associated objects.
- */
- readonly unscopables: symbol;
-}
-
-interface Symbol {
- readonly [Symbol.toStringTag]: "Symbol";
-}
-
-interface Array<T> {
- /**
- * Returns an object whose properties have the value 'true'
- * when they will be absent when used in a 'with' statement.
- */
- [Symbol.unscopables](): {
- copyWithin: boolean;
- entries: boolean;
- fill: boolean;
- find: boolean;
- findIndex: boolean;
- keys: boolean;
- values: boolean;
- };
-}
-
-interface Date {
- /**
- * Converts a Date object to a string.
- */
- [Symbol.toPrimitive](hint: "default"): string;
- /**
- * Converts a Date object to a string.
- */
- [Symbol.toPrimitive](hint: "string"): string;
- /**
- * Converts a Date object to a number.
- */
- [Symbol.toPrimitive](hint: "number"): number;
- /**
- * Converts a Date object to a string or number.
- *
- * @param hint The strings "number", "string", or "default" to specify what primitive to return.
- *
- * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
- * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
- */
- [Symbol.toPrimitive](hint: string): string | number;
-}
-
-interface Map<K, V> {
- readonly [Symbol.toStringTag]: "Map";
-}
-
-interface WeakMap<K, V>{
- readonly [Symbol.toStringTag]: "WeakMap";
-}
-
-interface Set<T> {
- readonly [Symbol.toStringTag]: "Set";
-}
-
-interface WeakSet<T> {
- readonly [Symbol.toStringTag]: "WeakSet";
-}
-
-interface JSON {
- readonly [Symbol.toStringTag]: "JSON";
-}
-
-interface Function {
- /**
- * Determines whether the given value inherits from this function if this function was used
- * as a constructor function.
- *
- * A constructor function can control which objects are recognized as its instances by
- * 'instanceof' by overriding this method.
- */
- [Symbol.hasInstance](value: any): boolean;
-}
-
-interface GeneratorFunction extends Function {
- readonly [Symbol.toStringTag]: "GeneratorFunction";
-}
-
-interface Math {
- readonly [Symbol.toStringTag]: "Math";
-}
-
-interface Promise<T> {
- readonly [Symbol.toStringTag]: "Promise";
-}
-
-interface PromiseConstructor {
- readonly [Symbol.species]: Function;
-}
-
-interface RegExp {
- /**
- * Matches a string with this regular expression, and returns an array containing the results of
- * that search.
- * @param string A string to search within.
- */
- [Symbol.match](string: string): RegExpMatchArray | null;
-
- /**
- * Replaces text in a string, using this regular expression.
- * @param string A String object or string literal whose contents matching against
- * this regular expression will be replaced
- * @param replaceValue A String object or string literal containing the text to replace for every
- * successful match of this regular expression.
- */
- [Symbol.replace](string: string, replaceValue: string): string;
-
- /**
- * Replaces text in a string, using this regular expression.
- * @param string A String object or string literal whose contents matching against
- * this regular expression will be replaced
- * @param replacer A function that returns the replacement text.
- */
- [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
-
- /**
- * Finds the position beginning first substring match in a regular expression search
- * using this regular expression.
- *
- * @param string The string to search within.
- */
- [Symbol.search](string: string): number;
-
- /**
- * Returns an array of substrings that were delimited by strings in the original input that
- * match against this regular expression.
- *
- * If the regular expression contains capturing parentheses, then each time this
- * regular expression matches, the results (including any undefined results) of the
- * capturing parentheses are spliced.
- *
- * @param string string value to split
- * @param limit if not undefined, the output array is truncated so that it contains no more
- * than 'limit' elements.
- */
- [Symbol.split](string: string, limit?: number): string[];
-}
-
-interface RegExpConstructor {
- [Symbol.species](): RegExpConstructor;
-}
-
-interface String {
- /**
- * Matches a string an object that supports being matched against, and returns an array containing the results of that search.
- * @param matcher An object that supports being matched against.
- */
- match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
-
- /**
- * Replaces text in a string, using an object that supports replacement within a string.
- * @param searchValue A object can search for and replace matches within a string.
- * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
- */
- replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
-
- /**
- * Replaces text in a string, using an object that supports replacement within a string.
- * @param searchValue A object can search for and replace matches within a string.
- * @param replacer A function that returns the replacement text.
- */
- replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
-
- /**
- * Finds the first substring match in a regular expression search.
- * @param searcher An object which supports searching within a string.
- */
- search(searcher: { [Symbol.search](string: string): number; }): number;
-
- /**
- * Split a string into substrings using the specified separator and return them as an array.
- * @param splitter An object that can split a string.
- * @param limit A value used to limit the number of elements returned in the array.
- */
- split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
-}
-
-/**
- * Represents a raw buffer of binary data, which is used to store data for the
- * different typed arrays. ArrayBuffers cannot be read from or written to directly,
- * but can be passed to a typed array or DataView Object to interpret the raw
- * buffer as needed.
- */
-interface ArrayBuffer {
- readonly [Symbol.toStringTag]: "ArrayBuffer";
-}
-
-interface DataView {
- readonly [Symbol.toStringTag]: "DataView";
-}
-
-/**
- * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Int8Array {
- readonly [Symbol.toStringTag]: "Int8Array";
-}
-
-/**
- * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint8Array {
- readonly [Symbol.toStringTag]: "UInt8Array";
-}
-
-/**
- * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
- * If the requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint8ClampedArray {
- readonly [Symbol.toStringTag]: "Uint8ClampedArray";
-}
-
-/**
- * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Int16Array {
- readonly [Symbol.toStringTag]: "Int16Array";
-}
-
-/**
- * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint16Array {
- readonly [Symbol.toStringTag]: "Uint16Array";
-}
-
-/**
- * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Int32Array {
- readonly [Symbol.toStringTag]: "Int32Array";
-}
-
-/**
- * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
- * requested number of bytes could not be allocated an exception is raised.
- */
-interface Uint32Array {
- readonly [Symbol.toStringTag]: "Uint32Array";
-}
-
-/**
- * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
- * of bytes could not be allocated an exception is raised.
- */
-interface Float32Array {
- readonly [Symbol.toStringTag]: "Float32Array";
-}
-
-/**
- * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
- * number of bytes could not be allocated an exception is raised.
- */
-interface Float64Array {
- readonly [Symbol.toStringTag]: "Float64Array";
-}
-/////////////////////////////
-/// IE DOM APIs
-/////////////////////////////
-
-interface Algorithm {
- name: string;
-}
-
-interface AriaRequestEventInit extends EventInit {
- attributeName?: string;
- attributeValue?: string;
-}
-
-interface CommandEventInit extends EventInit {
- commandName?: string;
- detail?: string;
-}
-
-interface CompositionEventInit extends UIEventInit {
- data?: string;
-}
-
-interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
- arrayOfDomainStrings?: string[];
-}
-
-interface ConstrainBooleanParameters {
- exact?: boolean;
- ideal?: boolean;
-}
-
-interface ConstrainDOMStringParameters {
- exact?: string | string[];
- ideal?: string | string[];
-}
-
-interface ConstrainDoubleRange extends DoubleRange {
- exact?: number;
- ideal?: number;
-}
-
-interface ConstrainLongRange extends LongRange {
- exact?: number;
- ideal?: number;
-}
-
-interface ConstrainVideoFacingModeParameters {
- exact?: string | string[];
- ideal?: string | string[];
-}
-
-interface CustomEventInit extends EventInit {
- detail?: any;
-}
-
-interface DeviceAccelerationDict {
- x?: number;
- y?: number;
- z?: number;
-}
-
-interface DeviceLightEventInit extends EventInit {
- value?: number;
-}
-
-interface DeviceRotationRateDict {
- alpha?: number;
- beta?: number;
- gamma?: number;
-}
-
-interface DoubleRange {
- max?: number;
- min?: number;
-}
-
-interface EventInit {
- bubbles?: boolean;
- cancelable?: boolean;
-}
-
-interface EventModifierInit extends UIEventInit {
- ctrlKey?: boolean;
- shiftKey?: boolean;
- altKey?: boolean;
- metaKey?: boolean;
- modifierAltGraph?: boolean;
- modifierCapsLock?: boolean;
- modifierFn?: boolean;
- modifierFnLock?: boolean;
- modifierHyper?: boolean;
- modifierNumLock?: boolean;
- modifierOS?: boolean;
- modifierScrollLock?: boolean;
- modifierSuper?: boolean;
- modifierSymbol?: boolean;
- modifierSymbolLock?: boolean;
-}
-
-interface ExceptionInformation {
- domain?: string;
-}
-
-interface FocusEventInit extends UIEventInit {
- relatedTarget?: EventTarget;
-}
-
-interface HashChangeEventInit extends EventInit {
- newURL?: string;
- oldURL?: string;
-}
-
-interface IDBIndexParameters {
- multiEntry?: boolean;
- unique?: boolean;
-}
-
-interface IDBObjectStoreParameters {
- autoIncrement?: boolean;
- keyPath?: IDBKeyPath;
-}
-
-interface KeyAlgorithm {
- name?: string;
-}
-
-interface KeyboardEventInit extends EventModifierInit {
- code?: string;
- key?: string;
- location?: number;
- repeat?: boolean;
-}
-
-interface LongRange {
- max?: number;
- min?: number;
-}
-
-interface MSAccountInfo {
- rpDisplayName?: string;
- userDisplayName?: string;
- accountName?: string;
- userId?: string;
- accountImageUri?: string;
-}
-
-interface MSAudioLocalClientEvent extends MSLocalClientEventBase {
- networkSendQualityEventRatio?: number;
- networkDelayEventRatio?: number;
- cpuInsufficientEventRatio?: number;
- deviceHalfDuplexAECEventRatio?: number;
- deviceRenderNotFunctioningEventRatio?: number;
- deviceCaptureNotFunctioningEventRatio?: number;
- deviceGlitchesEventRatio?: number;
- deviceLowSNREventRatio?: number;
- deviceLowSpeechLevelEventRatio?: number;
- deviceClippingEventRatio?: number;
- deviceEchoEventRatio?: number;
- deviceNearEndToEchoRatioEventRatio?: number;
- deviceRenderZeroVolumeEventRatio?: number;
- deviceRenderMuteEventRatio?: number;
- deviceMultipleEndpointsEventCount?: number;
- deviceHowlingEventCount?: number;
-}
-
-interface MSAudioRecvPayload extends MSPayloadBase {
- samplingRate?: number;
- signal?: MSAudioRecvSignal;
- packetReorderRatio?: number;
- packetReorderDepthAvg?: number;
- packetReorderDepthMax?: number;
- burstLossLength1?: number;
- burstLossLength2?: number;
- burstLossLength3?: number;
- burstLossLength4?: number;
- burstLossLength5?: number;
- burstLossLength6?: number;
- burstLossLength7?: number;
- burstLossLength8OrHigher?: number;
- fecRecvDistance1?: number;
- fecRecvDistance2?: number;
- fecRecvDistance3?: number;
- ratioConcealedSamplesAvg?: number;
- ratioStretchedSamplesAvg?: number;
- ratioCompressedSamplesAvg?: number;
-}
-
-interface MSAudioRecvSignal {
- initialSignalLevelRMS?: number;
- recvSignalLevelCh1?: number;
- recvNoiseLevelCh1?: number;
- renderSignalLevel?: number;
- renderNoiseLevel?: number;
- renderLoopbackSignalLevel?: number;
-}
-
-interface MSAudioSendPayload extends MSPayloadBase {
- samplingRate?: number;
- signal?: MSAudioSendSignal;
- audioFECUsed?: boolean;
- sendMutePercent?: number;
-}
-
-interface MSAudioSendSignal {
- noiseLevel?: number;
- sendSignalLevelCh1?: number;
- sendNoiseLevelCh1?: number;
-}
-
-interface MSConnectivity {
- iceType?: string;
- iceWarningFlags?: MSIceWarningFlags;
- relayAddress?: MSRelayAddress;
-}
-
-interface MSCredentialFilter {
- accept?: MSCredentialSpec[];
-}
-
-interface MSCredentialParameters {
- type?: string;
-}
-
-interface MSCredentialSpec {
- type?: string;
- id?: string;
-}
-
-interface MSDelay {
- roundTrip?: number;
- roundTripMax?: number;
-}
-
-interface MSDescription extends RTCStats {
- connectivity?: MSConnectivity;
- transport?: string;
- networkconnectivity?: MSNetworkConnectivityInfo;
- localAddr?: MSIPAddressInfo;
- remoteAddr?: MSIPAddressInfo;
- deviceDevName?: string;
- reflexiveLocalIPAddr?: MSIPAddressInfo;
-}
-
-interface MSFIDOCredentialParameters extends MSCredentialParameters {
- algorithm?: string | Algorithm;
- authenticators?: AAGUID[];
-}
-
-interface MSIPAddressInfo {
- ipAddr?: string;
- port?: number;
- manufacturerMacAddrMask?: string;
-}
-
-interface MSIceWarningFlags {
- turnTcpTimedOut?: boolean;
- turnUdpAllocateFailed?: boolean;
- turnUdpSendFailed?: boolean;
- turnTcpAllocateFailed?: boolean;
- turnTcpSendFailed?: boolean;
- udpLocalConnectivityFailed?: boolean;
- udpNatConnectivityFailed?: boolean;
- udpRelayConnectivityFailed?: boolean;
- tcpNatConnectivityFailed?: boolean;
- tcpRelayConnectivityFailed?: boolean;
- connCheckMessageIntegrityFailed?: boolean;
- allocationMessageIntegrityFailed?: boolean;
- connCheckOtherError?: boolean;
- turnAuthUnknownUsernameError?: boolean;
- noRelayServersConfigured?: boolean;
- multipleRelayServersAttempted?: boolean;
- portRangeExhausted?: boolean;
- alternateServerReceived?: boolean;
- pseudoTLSFailure?: boolean;
- turnTurnTcpConnectivityFailed?: boolean;
- useCandidateChecksFailed?: boolean;
- fipsAllocationFailure?: boolean;
-}
-
-interface MSJitter {
- interArrival?: number;
- interArrivalMax?: number;
- interArrivalSD?: number;
-}
-
-interface MSLocalClientEventBase extends RTCStats {
- networkReceiveQualityEventRatio?: number;
- networkBandwidthLowEventRatio?: number;
-}
-
-interface MSNetwork extends RTCStats {
- jitter?: MSJitter;
- delay?: MSDelay;
- packetLoss?: MSPacketLoss;
- utilization?: MSUtilization;
-}
-
-interface MSNetworkConnectivityInfo {
- vpn?: boolean;
- linkspeed?: number;
- networkConnectionDetails?: string;
-}
-
-interface MSNetworkInterfaceType {
- interfaceTypeEthernet?: boolean;
- interfaceTypeWireless?: boolean;
- interfaceTypePPP?: boolean;
- interfaceTypeTunnel?: boolean;
- interfaceTypeWWAN?: boolean;
-}
-
-interface MSOutboundNetwork extends MSNetwork {
- appliedBandwidthLimit?: number;
-}
-
-interface MSPacketLoss {
- lossRate?: number;
- lossRateMax?: number;
-}
-
-interface MSPayloadBase extends RTCStats {
- payloadDescription?: string;
-}
-
-interface MSRelayAddress {
- relayAddress?: string;
- port?: number;
-}
-
-interface MSSignatureParameters {
- userPrompt?: string;
-}
-
-interface MSTransportDiagnosticsStats extends RTCStats {
- baseAddress?: string;
- localAddress?: string;
- localSite?: string;
- networkName?: string;
- remoteAddress?: string;
- remoteSite?: string;
- localMR?: string;
- remoteMR?: string;
- iceWarningFlags?: MSIceWarningFlags;
- portRangeMin?: number;
- portRangeMax?: number;
- localMRTCPPort?: number;
- remoteMRTCPPort?: number;
- stunVer?: number;
- numConsentReqSent?: number;
- numConsentReqReceived?: number;
- numConsentRespSent?: number;
- numConsentRespReceived?: number;
- interfaces?: MSNetworkInterfaceType;
- baseInterface?: MSNetworkInterfaceType;
- protocol?: string;
- localInterface?: MSNetworkInterfaceType;
- localAddrType?: string;
- remoteAddrType?: string;
- iceRole?: string;
- rtpRtcpMux?: boolean;
- allocationTimeInMs?: number;
- msRtcEngineVersion?: string;
-}
-
-interface MSUtilization {
- packets?: number;
- bandwidthEstimation?: number;
- bandwidthEstimationMin?: number;
- bandwidthEstimationMax?: number;
- bandwidthEstimationStdDev?: number;
- bandwidthEstimationAvg?: number;
-}
-
-interface MSVideoPayload extends MSPayloadBase {
- resoluton?: string;
- videoBitRateAvg?: number;
- videoBitRateMax?: number;
- videoFrameRateAvg?: number;
- videoPacketLossRate?: number;
- durationSeconds?: number;
-}
-
-interface MSVideoRecvPayload extends MSVideoPayload {
- videoFrameLossRate?: number;
- recvCodecType?: string;
- recvResolutionWidth?: number;
- recvResolutionHeight?: number;
- videoResolutions?: MSVideoResolutionDistribution;
- recvFrameRateAverage?: number;
- recvBitRateMaximum?: number;
- recvBitRateAverage?: number;
- recvVideoStreamsMax?: number;
- recvVideoStreamsMin?: number;
- recvVideoStreamsMode?: number;
- videoPostFECPLR?: number;
- lowBitRateCallPercent?: number;
- lowFrameRateCallPercent?: number;
- reorderBufferTotalPackets?: number;
- recvReorderBufferReorderedPackets?: number;
- recvReorderBufferPacketsDroppedDueToBufferExhaustion?: number;
- recvReorderBufferMaxSuccessfullyOrderedExtent?: number;
- recvReorderBufferMaxSuccessfullyOrderedLateTime?: number;
- recvReorderBufferPacketsDroppedDueToTimeout?: number;
- recvFpsHarmonicAverage?: number;
- recvNumResSwitches?: number;
-}
-
-interface MSVideoResolutionDistribution {
- cifQuality?: number;
- vgaQuality?: number;
- h720Quality?: number;
- h1080Quality?: number;
- h1440Quality?: number;
- h2160Quality?: number;
-}
-
-interface MSVideoSendPayload extends MSVideoPayload {
- sendFrameRateAverage?: number;
- sendBitRateMaximum?: number;
- sendBitRateAverage?: number;
- sendVideoStreamsMax?: number;
- sendResolutionWidth?: number;
- sendResolutionHeight?: number;
-}
-
-interface MediaEncryptedEventInit extends EventInit {
- initDataType?: string;
- initData?: ArrayBuffer;
-}
-
-interface MediaKeyMessageEventInit extends EventInit {
- messageType?: string;
- message?: ArrayBuffer;
-}
-
-interface MediaKeySystemConfiguration {
- initDataTypes?: string[];
- audioCapabilities?: MediaKeySystemMediaCapability[];
- videoCapabilities?: MediaKeySystemMediaCapability[];
- distinctiveIdentifier?: string;
- persistentState?: string;
-}
-
-interface MediaKeySystemMediaCapability {
- contentType?: string;
- robustness?: string;
-}
-
-interface MediaStreamConstraints {
- video?: boolean | MediaTrackConstraints;
- audio?: boolean | MediaTrackConstraints;
-}
-
-interface MediaStreamErrorEventInit extends EventInit {
- error?: MediaStreamError;
-}
-
-interface MediaStreamTrackEventInit extends EventInit {
- track?: MediaStreamTrack;
-}
-
-interface MediaTrackCapabilities {
- width?: number | LongRange;
- height?: number | LongRange;
- aspectRatio?: number | DoubleRange;
- frameRate?: number | DoubleRange;
- facingMode?: string;
- volume?: number | DoubleRange;
- sampleRate?: number | LongRange;
- sampleSize?: number | LongRange;
- echoCancellation?: boolean[];
- deviceId?: string;
- groupId?: string;
-}
-
-interface MediaTrackConstraintSet {
- width?: number | ConstrainLongRange;
- height?: number | ConstrainLongRange;
- aspectRatio?: number | ConstrainDoubleRange;
- frameRate?: number | ConstrainDoubleRange;
- facingMode?: string | string[] | ConstrainDOMStringParameters;
- volume?: number | ConstrainDoubleRange;
- sampleRate?: number | ConstrainLongRange;
- sampleSize?: number | ConstrainLongRange;
- echoCancelation?: boolean | ConstrainBooleanParameters;
- deviceId?: string | string[] | ConstrainDOMStringParameters;
- groupId?: string | string[] | ConstrainDOMStringParameters;
-}
-
-interface MediaTrackConstraints extends MediaTrackConstraintSet {
- advanced?: MediaTrackConstraintSet[];
-}
-
-interface MediaTrackSettings {
- width?: number;
- height?: number;
- aspectRatio?: number;
- frameRate?: number;
- facingMode?: string;
- volume?: number;
- sampleRate?: number;
- sampleSize?: number;
- echoCancellation?: boolean;
- deviceId?: string;
- groupId?: string;
-}
-
-interface MediaTrackSupportedConstraints {
- width?: boolean;
- height?: boolean;
- aspectRatio?: boolean;
- frameRate?: boolean;
- facingMode?: boolean;
- volume?: boolean;
- sampleRate?: boolean;
- sampleSize?: boolean;
- echoCancellation?: boolean;
- deviceId?: boolean;
- groupId?: boolean;
-}
-
-interface MouseEventInit extends EventModifierInit {
- screenX?: number;
- screenY?: number;
- clientX?: number;
- clientY?: number;
- button?: number;
- buttons?: number;
- relatedTarget?: EventTarget;
-}
-
-interface MsZoomToOptions {
- contentX?: number;
- contentY?: number;
- viewportX?: string;
- viewportY?: string;
- scaleFactor?: number;
- animate?: string;
-}
-
-interface MutationObserverInit {
- childList?: boolean;
- attributes?: boolean;
- characterData?: boolean;
- subtree?: boolean;
- attributeOldValue?: boolean;
- characterDataOldValue?: boolean;
- attributeFilter?: string[];
-}
-
-interface ObjectURLOptions {
- oneTimeOnly?: boolean;
-}
-
-interface PeriodicWaveConstraints {
- disableNormalization?: boolean;
-}
-
-interface PointerEventInit extends MouseEventInit {
- pointerId?: number;
- width?: number;
- height?: number;
- pressure?: number;
- tiltX?: number;
- tiltY?: number;
- pointerType?: string;
- isPrimary?: boolean;
-}
-
-interface PositionOptions {
- enableHighAccuracy?: boolean;
- timeout?: number;
- maximumAge?: number;
-}
-
-interface RTCDTMFToneChangeEventInit extends EventInit {
- tone?: string;
-}
-
-interface RTCDtlsFingerprint {
- algorithm?: string;
- value?: string;
-}
-
-interface RTCDtlsParameters {
- role?: string;
- fingerprints?: RTCDtlsFingerprint[];
-}
-
-interface RTCIceCandidate {
- foundation?: string;
- priority?: number;
- ip?: string;
- protocol?: string;
- port?: number;
- type?: string;
- tcpType?: string;
- relatedAddress?: string;
- relatedPort?: number;
-}
-
-interface RTCIceCandidateAttributes extends RTCStats {
- ipAddress?: string;
- portNumber?: number;
- transport?: string;
- candidateType?: string;
- priority?: number;
- addressSourceUrl?: string;
-}
-
-interface RTCIceCandidateComplete {
-}
-
-interface RTCIceCandidatePair {
- local?: RTCIceCandidate;
- remote?: RTCIceCandidate;
-}
-
-interface RTCIceCandidatePairStats extends RTCStats {
- transportId?: string;
- localCandidateId?: string;
- remoteCandidateId?: string;
- state?: string;
- priority?: number;
- nominated?: boolean;
- writable?: boolean;
- readable?: boolean;
- bytesSent?: number;
- bytesReceived?: number;
- roundTripTime?: number;
- availableOutgoingBitrate?: number;
- availableIncomingBitrate?: number;
-}
-
-interface RTCIceGatherOptions {
- gatherPolicy?: string;
- iceservers?: RTCIceServer[];
-}
-
-interface RTCIceParameters {
- usernameFragment?: string;
- password?: string;
-}
-
-interface RTCIceServer {
- urls?: any;
- username?: string;
- credential?: string;
-}
-
-interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
- packetsReceived?: number;
- bytesReceived?: number;
- packetsLost?: number;
- jitter?: number;
- fractionLost?: number;
-}
-
-interface RTCMediaStreamTrackStats extends RTCStats {
- trackIdentifier?: string;
- remoteSource?: boolean;
- ssrcIds?: string[];
- frameWidth?: number;
- frameHeight?: number;
- framesPerSecond?: number;
- framesSent?: number;
- framesReceived?: number;
- framesDecoded?: number;
- framesDropped?: number;
- framesCorrupted?: number;
- audioLevel?: number;
- echoReturnLoss?: number;
- echoReturnLossEnhancement?: number;
-}
-
-interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
- packetsSent?: number;
- bytesSent?: number;
- targetBitrate?: number;
- roundTripTime?: number;
-}
-
-interface RTCRTPStreamStats extends RTCStats {
- ssrc?: string;
- associateStatsId?: string;
- isRemote?: boolean;
- mediaTrackId?: string;
- transportId?: string;
- codecId?: string;
- firCount?: number;
- pliCount?: number;
- nackCount?: number;
- sliCount?: number;
-}
-
-interface RTCRtcpFeedback {
- type?: string;
- parameter?: string;
-}
-
-interface RTCRtcpParameters {
- ssrc?: number;
- cname?: string;
- reducedSize?: boolean;
- mux?: boolean;
-}
-
-interface RTCRtpCapabilities {
- codecs?: RTCRtpCodecCapability[];
- headerExtensions?: RTCRtpHeaderExtension[];
- fecMechanisms?: string[];
-}
-
-interface RTCRtpCodecCapability {
- name?: string;
- kind?: string;
- clockRate?: number;
- preferredPayloadType?: number;
- maxptime?: number;
- numChannels?: number;
- rtcpFeedback?: RTCRtcpFeedback[];
- parameters?: any;
- options?: any;
- maxTemporalLayers?: number;
- maxSpatialLayers?: number;
- svcMultiStreamSupport?: boolean;
-}
-
-interface RTCRtpCodecParameters {
- name?: string;
- payloadType?: any;
- clockRate?: number;
- maxptime?: number;
- numChannels?: number;
- rtcpFeedback?: RTCRtcpFeedback[];
- parameters?: any;
-}
-
-interface RTCRtpContributingSource {
- timestamp?: number;
- csrc?: number;
- audioLevel?: number;
-}
-
-interface RTCRtpEncodingParameters {
- ssrc?: number;
- codecPayloadType?: number;
- fec?: RTCRtpFecParameters;
- rtx?: RTCRtpRtxParameters;
- priority?: number;
- maxBitrate?: number;
- minQuality?: number;
- framerateBias?: number;
- resolutionScale?: number;
- framerateScale?: number;
- active?: boolean;
- encodingId?: string;
- dependencyEncodingIds?: string[];
- ssrcRange?: RTCSsrcRange;
-}
-
-interface RTCRtpFecParameters {
- ssrc?: number;
- mechanism?: string;
-}
-
-interface RTCRtpHeaderExtension {
- kind?: string;
- uri?: string;
- preferredId?: number;
- preferredEncrypt?: boolean;
-}
-
-interface RTCRtpHeaderExtensionParameters {
- uri?: string;
- id?: number;
- encrypt?: boolean;
-}
-
-interface RTCRtpParameters {
- muxId?: string;
- codecs?: RTCRtpCodecParameters[];
- headerExtensions?: RTCRtpHeaderExtensionParameters[];
- encodings?: RTCRtpEncodingParameters[];
- rtcp?: RTCRtcpParameters;
-}
-
-interface RTCRtpRtxParameters {
- ssrc?: number;
-}
-
-interface RTCRtpUnhandled {
- ssrc?: number;
- payloadType?: number;
- muxId?: string;
-}
-
-interface RTCSrtpKeyParam {
- keyMethod?: string;
- keySalt?: string;
- lifetime?: string;
- mkiValue?: number;
- mkiLength?: number;
-}
-
-interface RTCSrtpSdesParameters {
- tag?: number;
- cryptoSuite?: string;
- keyParams?: RTCSrtpKeyParam[];
- sessionParams?: string[];
-}
-
-interface RTCSsrcRange {
- min?: number;
- max?: number;
-}
-
-interface RTCStats {
- timestamp?: number;
- type?: string;
- id?: string;
- msType?: string;
-}
-
-interface RTCStatsReport {
-}
-
-interface RTCTransportStats extends RTCStats {
- bytesSent?: number;
- bytesReceived?: number;
- rtcpTransportStatsId?: string;
- activeConnection?: boolean;
- selectedCandidatePairId?: string;
- localCertificateId?: string;
- remoteCertificateId?: string;
-}
-
-interface StoreExceptionsInformation extends ExceptionInformation {
- siteName?: string;
- explanationString?: string;
- detailURI?: string;
-}
-
-interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
- arrayOfDomainStrings?: string[];
-}
-
-interface UIEventInit extends EventInit {
- view?: Window;
- detail?: number;
-}
-
-interface WebGLContextAttributes {
- failIfMajorPerformanceCaveat?: boolean;
- alpha?: boolean;
- depth?: boolean;
- stencil?: boolean;
- antialias?: boolean;
- premultipliedAlpha?: boolean;
- preserveDrawingBuffer?: boolean;
-}
-
-interface WebGLContextEventInit extends EventInit {
- statusMessage?: string;
-}
-
-interface WheelEventInit extends MouseEventInit {
- deltaX?: number;
- deltaY?: number;
- deltaZ?: number;
- deltaMode?: number;
-}
-
-interface EventListener {
- (evt: Event): void;
-}
-
-interface ANGLE_instanced_arrays {
- drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;
- drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;
- vertexAttribDivisorANGLE(index: number, divisor: number): void;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-declare var ANGLE_instanced_arrays: {
- prototype: ANGLE_instanced_arrays;
- new(): ANGLE_instanced_arrays;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;
-}
-
-interface AnalyserNode extends AudioNode {
- fftSize: number;
- readonly frequencyBinCount: number;
- maxDecibels: number;
- minDecibels: number;
- smoothingTimeConstant: number;
- getByteFrequencyData(array: Uint8Array): void;
- getByteTimeDomainData(array: Uint8Array): void;
- getFloatFrequencyData(array: Float32Array): void;
- getFloatTimeDomainData(array: Float32Array): void;
-}
-
-declare var AnalyserNode: {
- prototype: AnalyserNode;
- new(): AnalyserNode;
-}
-
-interface AnimationEvent extends Event {
- readonly animationName: string;
- readonly elapsedTime: number;
- initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var AnimationEvent: {
- prototype: AnimationEvent;
- new(): AnimationEvent;
-}
-
-interface ApplicationCache extends EventTarget {
- oncached: (this: this, ev: Event) => any;
- onchecking: (this: this, ev: Event) => any;
- ondownloading: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- onnoupdate: (this: this, ev: Event) => any;
- onobsolete: (this: this, ev: Event) => any;
- onprogress: (this: this, ev: ProgressEvent) => any;
- onupdateready: (this: this, ev: Event) => any;
- readonly status: number;
- abort(): void;
- swapCache(): void;
- update(): void;
- readonly CHECKING: number;
- readonly DOWNLOADING: number;
- readonly IDLE: number;
- readonly OBSOLETE: number;
- readonly UNCACHED: number;
- readonly UPDATEREADY: number;
- addEventListener(type: "cached", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "checking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "downloading", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "noupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "obsolete", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "updateready", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ApplicationCache: {
- prototype: ApplicationCache;
- new(): ApplicationCache;
- readonly CHECKING: number;
- readonly DOWNLOADING: number;
- readonly IDLE: number;
- readonly OBSOLETE: number;
- readonly UNCACHED: number;
- readonly UPDATEREADY: number;
-}
-
-interface AriaRequestEvent extends Event {
- readonly attributeName: string;
- attributeValue: string | null;
-}
-
-declare var AriaRequestEvent: {
- prototype: AriaRequestEvent;
- new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent;
-}
-
-interface Attr extends Node {
- readonly name: string;
- readonly ownerElement: Element;
- readonly prefix: string | null;
- readonly specified: boolean;
- value: string;
-}
-
-declare var Attr: {
- prototype: Attr;
- new(): Attr;
-}
-
-interface AudioBuffer {
- readonly duration: number;
- readonly length: number;
- readonly numberOfChannels: number;
- readonly sampleRate: number;
- copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void;
- copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;
- getChannelData(channel: number): Float32Array;
-}
-
-declare var AudioBuffer: {
- prototype: AudioBuffer;
- new(): AudioBuffer;
-}
-
-interface AudioBufferSourceNode extends AudioNode {
- buffer: AudioBuffer | null;
- readonly detune: AudioParam;
- loop: boolean;
- loopEnd: number;
- loopStart: number;
- onended: (this: this, ev: MediaStreamErrorEvent) => any;
- readonly playbackRate: AudioParam;
- start(when?: number, offset?: number, duration?: number): void;
- stop(when?: number): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var AudioBufferSourceNode: {
- prototype: AudioBufferSourceNode;
- new(): AudioBufferSourceNode;
-}
-
-interface AudioContext extends EventTarget {
- readonly currentTime: number;
- readonly destination: AudioDestinationNode;
- readonly listener: AudioListener;
- readonly sampleRate: number;
- state: string;
- createAnalyser(): AnalyserNode;
- createBiquadFilter(): BiquadFilterNode;
- createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
- createBufferSource(): AudioBufferSourceNode;
- createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
- createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
- createConvolver(): ConvolverNode;
- createDelay(maxDelayTime?: number): DelayNode;
- createDynamicsCompressor(): DynamicsCompressorNode;
- createGain(): GainNode;
- createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
- createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
- createOscillator(): OscillatorNode;
- createPanner(): PannerNode;
- createPeriodicWave(real: Float32Array, imag: Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
- createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
- createStereoPanner(): StereoPannerNode;
- createWaveShaper(): WaveShaperNode;
- decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): PromiseLike<AudioBuffer>;
-}
-
-declare var AudioContext: {
- prototype: AudioContext;
- new(): AudioContext;
-}
-
-interface AudioDestinationNode extends AudioNode {
- readonly maxChannelCount: number;
-}
-
-declare var AudioDestinationNode: {
- prototype: AudioDestinationNode;
- new(): AudioDestinationNode;
-}
-
-interface AudioListener {
- dopplerFactor: number;
- speedOfSound: number;
- setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
- setPosition(x: number, y: number, z: number): void;
- setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var AudioListener: {
- prototype: AudioListener;
- new(): AudioListener;
-}
-
-interface AudioNode extends EventTarget {
- channelCount: number;
- channelCountMode: string;
- channelInterpretation: string;
- readonly context: AudioContext;
- readonly numberOfInputs: number;
- readonly numberOfOutputs: number;
- connect(destination: AudioNode, output?: number, input?: number): void;
- disconnect(output?: number): void;
- disconnect(destination: AudioNode, output?: number, input?: number): void;
- disconnect(destination: AudioParam, output?: number): void;
-}
-
-declare var AudioNode: {
- prototype: AudioNode;
- new(): AudioNode;
-}
-
-interface AudioParam {
- readonly defaultValue: number;
- value: number;
- cancelScheduledValues(startTime: number): void;
- exponentialRampToValueAtTime(value: number, endTime: number): void;
- linearRampToValueAtTime(value: number, endTime: number): void;
- setTargetAtTime(target: number, startTime: number, timeConstant: number): void;
- setValueAtTime(value: number, startTime: number): void;
- setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): void;
-}
-
-declare var AudioParam: {
- prototype: AudioParam;
- new(): AudioParam;
-}
-
-interface AudioProcessingEvent extends Event {
- readonly inputBuffer: AudioBuffer;
- readonly outputBuffer: AudioBuffer;
- readonly playbackTime: number;
-}
-
-declare var AudioProcessingEvent: {
- prototype: AudioProcessingEvent;
- new(): AudioProcessingEvent;
-}
-
-interface AudioTrack {
- enabled: boolean;
- readonly id: string;
- kind: string;
- readonly label: string;
- language: string;
- readonly sourceBuffer: SourceBuffer;
-}
-
-declare var AudioTrack: {
- prototype: AudioTrack;
- new(): AudioTrack;
-}
-
-interface AudioTrackList extends EventTarget {
- readonly length: number;
- onaddtrack: (this: this, ev: TrackEvent) => any;
- onchange: (this: this, ev: Event) => any;
- onremovetrack: (this: this, ev: TrackEvent) => any;
- getTrackById(id: string): AudioTrack | null;
- item(index: number): AudioTrack;
- addEventListener(type: "addtrack", listener: (this: this, ev: TrackEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "removetrack", listener: (this: this, ev: TrackEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
- [index: number]: AudioTrack;
-}
-
-declare var AudioTrackList: {
- prototype: AudioTrackList;
- new(): AudioTrackList;
-}
-
-interface BarProp {
- readonly visible: boolean;
-}
-
-declare var BarProp: {
- prototype: BarProp;
- new(): BarProp;
-}
-
-interface BeforeUnloadEvent extends Event {
- returnValue: any;
-}
-
-declare var BeforeUnloadEvent: {
- prototype: BeforeUnloadEvent;
- new(): BeforeUnloadEvent;
-}
-
-interface BiquadFilterNode extends AudioNode {
- readonly Q: AudioParam;
- readonly detune: AudioParam;
- readonly frequency: AudioParam;
- readonly gain: AudioParam;
- type: string;
- getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
-}
-
-declare var BiquadFilterNode: {
- prototype: BiquadFilterNode;
- new(): BiquadFilterNode;
-}
-
-interface Blob {
- readonly size: number;
- readonly type: string;
- msClose(): void;
- msDetachStream(): any;
- slice(start?: number, end?: number, contentType?: string): Blob;
-}
-
-declare var Blob: {
- prototype: Blob;
- new (blobParts?: any[], options?: BlobPropertyBag): Blob;
-}
-
-interface CDATASection extends Text {
-}
-
-declare var CDATASection: {
- prototype: CDATASection;
- new(): CDATASection;
-}
-
-interface CSS {
- supports(property: string, value?: string): boolean;
-}
-declare var CSS: CSS;
-
-interface CSSConditionRule extends CSSGroupingRule {
- conditionText: string;
-}
-
-declare var CSSConditionRule: {
- prototype: CSSConditionRule;
- new(): CSSConditionRule;
-}
-
-interface CSSFontFaceRule extends CSSRule {
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSFontFaceRule: {
- prototype: CSSFontFaceRule;
- new(): CSSFontFaceRule;
-}
-
-interface CSSGroupingRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- deleteRule(index: number): void;
- insertRule(rule: string, index: number): number;
-}
-
-declare var CSSGroupingRule: {
- prototype: CSSGroupingRule;
- new(): CSSGroupingRule;
-}
-
-interface CSSImportRule extends CSSRule {
- readonly href: string;
- readonly media: MediaList;
- readonly styleSheet: CSSStyleSheet;
-}
-
-declare var CSSImportRule: {
- prototype: CSSImportRule;
- new(): CSSImportRule;
-}
-
-interface CSSKeyframeRule extends CSSRule {
- keyText: string;
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSKeyframeRule: {
- prototype: CSSKeyframeRule;
- new(): CSSKeyframeRule;
-}
-
-interface CSSKeyframesRule extends CSSRule {
- readonly cssRules: CSSRuleList;
- name: string;
- appendRule(rule: string): void;
- deleteRule(rule: string): void;
- findRule(rule: string): CSSKeyframeRule;
-}
-
-declare var CSSKeyframesRule: {
- prototype: CSSKeyframesRule;
- new(): CSSKeyframesRule;
-}
-
-interface CSSMediaRule extends CSSConditionRule {
- readonly media: MediaList;
-}
-
-declare var CSSMediaRule: {
- prototype: CSSMediaRule;
- new(): CSSMediaRule;
-}
-
-interface CSSNamespaceRule extends CSSRule {
- readonly namespaceURI: string;
- readonly prefix: string;
-}
-
-declare var CSSNamespaceRule: {
- prototype: CSSNamespaceRule;
- new(): CSSNamespaceRule;
-}
-
-interface CSSPageRule extends CSSRule {
- readonly pseudoClass: string;
- readonly selector: string;
- selectorText: string;
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSPageRule: {
- prototype: CSSPageRule;
- new(): CSSPageRule;
-}
-
-interface CSSRule {
- cssText: string;
- readonly parentRule: CSSRule;
- readonly parentStyleSheet: CSSStyleSheet;
- readonly type: number;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
- readonly UNKNOWN_RULE: number;
- readonly VIEWPORT_RULE: number;
-}
-
-declare var CSSRule: {
- prototype: CSSRule;
- new(): CSSRule;
- readonly CHARSET_RULE: number;
- readonly FONT_FACE_RULE: number;
- readonly IMPORT_RULE: number;
- readonly KEYFRAMES_RULE: number;
- readonly KEYFRAME_RULE: number;
- readonly MEDIA_RULE: number;
- readonly NAMESPACE_RULE: number;
- readonly PAGE_RULE: number;
- readonly STYLE_RULE: number;
- readonly SUPPORTS_RULE: number;
- readonly UNKNOWN_RULE: number;
- readonly VIEWPORT_RULE: number;
-}
-
-interface CSSRuleList {
- readonly length: number;
- item(index: number): CSSRule;
- [index: number]: CSSRule;
-}
-
-declare var CSSRuleList: {
- prototype: CSSRuleList;
- new(): CSSRuleList;
-}
-
-interface CSSStyleDeclaration {
- alignContent: string | null;
- alignItems: string | null;
- alignSelf: string | null;
- alignmentBaseline: string | null;
- animation: string | null;
- animationDelay: string | null;
- animationDirection: string | null;
- animationDuration: string | null;
- animationFillMode: string | null;
- animationIterationCount: string | null;
- animationName: string | null;
- animationPlayState: string | null;
- animationTimingFunction: string | null;
- backfaceVisibility: string | null;
- background: string | null;
- backgroundAttachment: string | null;
- backgroundClip: string | null;
- backgroundColor: string | null;
- backgroundImage: string | null;
- backgroundOrigin: string | null;
- backgroundPosition: string | null;
- backgroundPositionX: string | null;
- backgroundPositionY: string | null;
- backgroundRepeat: string | null;
- backgroundSize: string | null;
- baselineShift: string | null;
- border: string | null;
- borderBottom: string | null;
- borderBottomColor: string | null;
- borderBottomLeftRadius: string | null;
- borderBottomRightRadius: string | null;
- borderBottomStyle: string | null;
- borderBottomWidth: string | null;
- borderCollapse: string | null;
- borderColor: string | null;
- borderImage: string | null;
- borderImageOutset: string | null;
- borderImageRepeat: string | null;
- borderImageSlice: string | null;
- borderImageSource: string | null;
- borderImageWidth: string | null;
- borderLeft: string | null;
- borderLeftColor: string | null;
- borderLeftStyle: string | null;
- borderLeftWidth: string | null;
- borderRadius: string | null;
- borderRight: string | null;
- borderRightColor: string | null;
- borderRightStyle: string | null;
- borderRightWidth: string | null;
- borderSpacing: string | null;
- borderStyle: string | null;
- borderTop: string | null;
- borderTopColor: string | null;
- borderTopLeftRadius: string | null;
- borderTopRightRadius: string | null;
- borderTopStyle: string | null;
- borderTopWidth: string | null;
- borderWidth: string | null;
- bottom: string | null;
- boxShadow: string | null;
- boxSizing: string | null;
- breakAfter: string | null;
- breakBefore: string | null;
- breakInside: string | null;
- captionSide: string | null;
- clear: string | null;
- clip: string | null;
- clipPath: string | null;
- clipRule: string | null;
- color: string | null;
- colorInterpolationFilters: string | null;
- columnCount: any;
- columnFill: string | null;
- columnGap: any;
- columnRule: string | null;
- columnRuleColor: any;
- columnRuleStyle: string | null;
- columnRuleWidth: any;
- columnSpan: string | null;
- columnWidth: any;
- columns: string | null;
- content: string | null;
- counterIncrement: string | null;
- counterReset: string | null;
- cssFloat: string | null;
- cssText: string;
- cursor: string | null;
- direction: string | null;
- display: string | null;
- dominantBaseline: string | null;
- emptyCells: string | null;
- enableBackground: string | null;
- fill: string | null;
- fillOpacity: string | null;
- fillRule: string | null;
- filter: string | null;
- flex: string | null;
- flexBasis: string | null;
- flexDirection: string | null;
- flexFlow: string | null;
- flexGrow: string | null;
- flexShrink: string | null;
- flexWrap: string | null;
- floodColor: string | null;
- floodOpacity: string | null;
- font: string | null;
- fontFamily: string | null;
- fontFeatureSettings: string | null;
- fontSize: string | null;
- fontSizeAdjust: string | null;
- fontStretch: string | null;
- fontStyle: string | null;
- fontVariant: string | null;
- fontWeight: string | null;
- glyphOrientationHorizontal: string | null;
- glyphOrientationVertical: string | null;
- height: string | null;
- imeMode: string | null;
- justifyContent: string | null;
- kerning: string | null;
- left: string | null;
- readonly length: number;
- letterSpacing: string | null;
- lightingColor: string | null;
- lineHeight: string | null;
- listStyle: string | null;
- listStyleImage: string | null;
- listStylePosition: string | null;
- listStyleType: string | null;
- margin: string | null;
- marginBottom: string | null;
- marginLeft: string | null;
- marginRight: string | null;
- marginTop: string | null;
- marker: string | null;
- markerEnd: string | null;
- markerMid: string | null;
- markerStart: string | null;
- mask: string | null;
- maxHeight: string | null;
- maxWidth: string | null;
- minHeight: string | null;
- minWidth: string | null;
- msContentZoomChaining: string | null;
- msContentZoomLimit: string | null;
- msContentZoomLimitMax: any;
- msContentZoomLimitMin: any;
- msContentZoomSnap: string | null;
- msContentZoomSnapPoints: string | null;
- msContentZoomSnapType: string | null;
- msContentZooming: string | null;
- msFlowFrom: string | null;
- msFlowInto: string | null;
- msFontFeatureSettings: string | null;
- msGridColumn: any;
- msGridColumnAlign: string | null;
- msGridColumnSpan: any;
- msGridColumns: string | null;
- msGridRow: any;
- msGridRowAlign: string | null;
- msGridRowSpan: any;
- msGridRows: string | null;
- msHighContrastAdjust: string | null;
- msHyphenateLimitChars: string | null;
- msHyphenateLimitLines: any;
- msHyphenateLimitZone: any;
- msHyphens: string | null;
- msImeAlign: string | null;
- msOverflowStyle: string | null;
- msScrollChaining: string | null;
- msScrollLimit: string | null;
- msScrollLimitXMax: any;
- msScrollLimitXMin: any;
- msScrollLimitYMax: any;
- msScrollLimitYMin: any;
- msScrollRails: string | null;
- msScrollSnapPointsX: string | null;
- msScrollSnapPointsY: string | null;
- msScrollSnapType: string | null;
- msScrollSnapX: string | null;
- msScrollSnapY: string | null;
- msScrollTranslation: string | null;
- msTextCombineHorizontal: string | null;
- msTextSizeAdjust: any;
- msTouchAction: string | null;
- msTouchSelect: string | null;
- msUserSelect: string | null;
- msWrapFlow: string;
- msWrapMargin: any;
- msWrapThrough: string;
- opacity: string | null;
- order: string | null;
- orphans: string | null;
- outline: string | null;
- outlineColor: string | null;
- outlineStyle: string | null;
- outlineWidth: string | null;
- overflow: string | null;
- overflowX: string | null;
- overflowY: string | null;
- padding: string | null;
- paddingBottom: string | null;
- paddingLeft: string | null;
- paddingRight: string | null;
- paddingTop: string | null;
- pageBreakAfter: string | null;
- pageBreakBefore: string | null;
- pageBreakInside: string | null;
- readonly parentRule: CSSRule;
- perspective: string | null;
- perspectiveOrigin: string | null;
- pointerEvents: string | null;
- position: string | null;
- quotes: string | null;
- right: string | null;
- rubyAlign: string | null;
- rubyOverhang: string | null;
- rubyPosition: string | null;
- stopColor: string | null;
- stopOpacity: string | null;
- stroke: string | null;
- strokeDasharray: string | null;
- strokeDashoffset: string | null;
- strokeLinecap: string | null;
- strokeLinejoin: string | null;
- strokeMiterlimit: string | null;
- strokeOpacity: string | null;
- strokeWidth: string | null;
- tableLayout: string | null;
- textAlign: string | null;
- textAlignLast: string | null;
- textAnchor: string | null;
- textDecoration: string | null;
- textIndent: string | null;
- textJustify: string | null;
- textKashida: string | null;
- textKashidaSpace: string | null;
- textOverflow: string | null;
- textShadow: string | null;
- textTransform: string | null;
- textUnderlinePosition: string | null;
- top: string | null;
- touchAction: string | null;
- transform: string | null;
- transformOrigin: string | null;
- transformStyle: string | null;
- transition: string | null;
- transitionDelay: string | null;
- transitionDuration: string | null;
- transitionProperty: string | null;
- transitionTimingFunction: string | null;
- unicodeBidi: string | null;
- verticalAlign: string | null;
- visibility: string | null;
- webkitAlignContent: string | null;
- webkitAlignItems: string | null;
- webkitAlignSelf: string | null;
- webkitAnimation: string | null;
- webkitAnimationDelay: string | null;
- webkitAnimationDirection: string | null;
- webkitAnimationDuration: string | null;
- webkitAnimationFillMode: string | null;
- webkitAnimationIterationCount: string | null;
- webkitAnimationName: string | null;
- webkitAnimationPlayState: string | null;
- webkitAnimationTimingFunction: string | null;
- webkitAppearance: string | null;
- webkitBackfaceVisibility: string | null;
- webkitBackgroundClip: string | null;
- webkitBackgroundOrigin: string | null;
- webkitBackgroundSize: string | null;
- webkitBorderBottomLeftRadius: string | null;
- webkitBorderBottomRightRadius: string | null;
- webkitBorderImage: string | null;
- webkitBorderRadius: string | null;
- webkitBorderTopLeftRadius: string | null;
- webkitBorderTopRightRadius: string | null;
- webkitBoxAlign: string | null;
- webkitBoxDirection: string | null;
- webkitBoxFlex: string | null;
- webkitBoxOrdinalGroup: string | null;
- webkitBoxOrient: string | null;
- webkitBoxPack: string | null;
- webkitBoxSizing: string | null;
- webkitColumnBreakAfter: string | null;
- webkitColumnBreakBefore: string | null;
- webkitColumnBreakInside: string | null;
- webkitColumnCount: any;
- webkitColumnGap: any;
- webkitColumnRule: string | null;
- webkitColumnRuleColor: any;
- webkitColumnRuleStyle: string | null;
- webkitColumnRuleWidth: any;
- webkitColumnSpan: string | null;
- webkitColumnWidth: any;
- webkitColumns: string | null;
- webkitFilter: string | null;
- webkitFlex: string | null;
- webkitFlexBasis: string | null;
- webkitFlexDirection: string | null;
- webkitFlexFlow: string | null;
- webkitFlexGrow: string | null;
- webkitFlexShrink: string | null;
- webkitFlexWrap: string | null;
- webkitJustifyContent: string | null;
- webkitOrder: string | null;
- webkitPerspective: string | null;
- webkitPerspectiveOrigin: string | null;
- webkitTapHighlightColor: string | null;
- webkitTextFillColor: string | null;
- webkitTextSizeAdjust: any;
- webkitTransform: string | null;
- webkitTransformOrigin: string | null;
- webkitTransformStyle: string | null;
- webkitTransition: string | null;
- webkitTransitionDelay: string | null;
- webkitTransitionDuration: string | null;
- webkitTransitionProperty: string | null;
- webkitTransitionTimingFunction: string | null;
- webkitUserModify: string | null;
- webkitUserSelect: string | null;
- webkitWritingMode: string | null;
- whiteSpace: string | null;
- widows: string | null;
- width: string | null;
- wordBreak: string | null;
- wordSpacing: string | null;
- wordWrap: string | null;
- writingMode: string | null;
- zIndex: string | null;
- zoom: string | null;
- getPropertyPriority(propertyName: string): string;
- getPropertyValue(propertyName: string): string;
- item(index: number): string;
- removeProperty(propertyName: string): string;
- setProperty(propertyName: string, value: string | null, priority?: string): void;
- [index: number]: string;
-}
-
-declare var CSSStyleDeclaration: {
- prototype: CSSStyleDeclaration;
- new(): CSSStyleDeclaration;
-}
-
-interface CSSStyleRule extends CSSRule {
- readonly readOnly: boolean;
- selectorText: string;
- readonly style: CSSStyleDeclaration;
-}
-
-declare var CSSStyleRule: {
- prototype: CSSStyleRule;
- new(): CSSStyleRule;
-}
-
-interface CSSStyleSheet extends StyleSheet {
- readonly cssRules: CSSRuleList;
- cssText: string;
- readonly href: string;
- readonly id: string;
- readonly imports: StyleSheetList;
- readonly isAlternate: boolean;
- readonly isPrefAlternate: boolean;
- readonly ownerRule: CSSRule;
- readonly owningElement: Element;
- readonly pages: StyleSheetPageList;
- readonly readOnly: boolean;
- readonly rules: CSSRuleList;
- addImport(bstrURL: string, lIndex?: number): number;
- addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
- addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
- deleteRule(index?: number): void;
- insertRule(rule: string, index?: number): number;
- removeImport(lIndex: number): void;
- removeRule(lIndex: number): void;
-}
-
-declare var CSSStyleSheet: {
- prototype: CSSStyleSheet;
- new(): CSSStyleSheet;
-}
-
-interface CSSSupportsRule extends CSSConditionRule {
-}
-
-declare var CSSSupportsRule: {
- prototype: CSSSupportsRule;
- new(): CSSSupportsRule;
-}
-
-interface CanvasGradient {
- addColorStop(offset: number, color: string): void;
-}
-
-declare var CanvasGradient: {
- prototype: CanvasGradient;
- new(): CanvasGradient;
-}
-
-interface CanvasPattern {
-}
-
-declare var CanvasPattern: {
- prototype: CanvasPattern;
- new(): CanvasPattern;
-}
-
-interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
- readonly canvas: HTMLCanvasElement;
- fillStyle: string | CanvasGradient | CanvasPattern;
- font: string;
- globalAlpha: number;
- globalCompositeOperation: string;
- lineCap: string;
- lineDashOffset: number;
- lineJoin: string;
- lineWidth: number;
- miterLimit: number;
- msFillRule: string;
- msImageSmoothingEnabled: boolean;
- shadowBlur: number;
- shadowColor: string;
- shadowOffsetX: number;
- shadowOffsetY: number;
- strokeStyle: string | CanvasGradient | CanvasPattern;
- textAlign: string;
- textBaseline: string;
- mozImageSmoothingEnabled: boolean;
- webkitImageSmoothingEnabled: boolean;
- oImageSmoothingEnabled: boolean;
- beginPath(): void;
- clearRect(x: number, y: number, w: number, h: number): void;
- clip(fillRule?: string): void;
- createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
- createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
- createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
- createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
- drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void;
- fill(fillRule?: string): void;
- fillRect(x: number, y: number, w: number, h: number): void;
- fillText(text: string, x: number, y: number, maxWidth?: number): void;
- getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
- getLineDash(): number[];
- isPointInPath(x: number, y: number, fillRule?: string): boolean;
- measureText(text: string): TextMetrics;
- putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
- restore(): void;
- rotate(angle: number): void;
- save(): void;
- scale(x: number, y: number): void;
- setLineDash(segments: number[]): void;
- setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
- stroke(): void;
- strokeRect(x: number, y: number, w: number, h: number): void;
- strokeText(text: string, x: number, y: number, maxWidth?: number): void;
- transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
- translate(x: number, y: number): void;
-}
-
-declare var CanvasRenderingContext2D: {
- prototype: CanvasRenderingContext2D;
- new(): CanvasRenderingContext2D;
-}
-
-interface ChannelMergerNode extends AudioNode {
-}
-
-declare var ChannelMergerNode: {
- prototype: ChannelMergerNode;
- new(): ChannelMergerNode;
-}
-
-interface ChannelSplitterNode extends AudioNode {
-}
-
-declare var ChannelSplitterNode: {
- prototype: ChannelSplitterNode;
- new(): ChannelSplitterNode;
-}
-
-interface CharacterData extends Node, ChildNode {
- data: string;
- readonly length: number;
- appendData(arg: string): void;
- deleteData(offset: number, count: number): void;
- insertData(offset: number, arg: string): void;
- replaceData(offset: number, count: number, arg: string): void;
- substringData(offset: number, count: number): string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var CharacterData: {
- prototype: CharacterData;
- new(): CharacterData;
-}
-
-interface ClientRect {
- bottom: number;
- readonly height: number;
- left: number;
- right: number;
- top: number;
- readonly width: number;
-}
-
-declare var ClientRect: {
- prototype: ClientRect;
- new(): ClientRect;
-}
-
-interface ClientRectList {
- readonly length: number;
- item(index: number): ClientRect;
- [index: number]: ClientRect;
-}
-
-declare var ClientRectList: {
- prototype: ClientRectList;
- new(): ClientRectList;
-}
-
-interface ClipboardEvent extends Event {
- readonly clipboardData: DataTransfer;
-}
-
-declare var ClipboardEvent: {
- prototype: ClipboardEvent;
- new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
-}
-
-interface CloseEvent extends Event {
- readonly code: number;
- readonly reason: string;
- readonly wasClean: boolean;
- initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
-}
-
-declare var CloseEvent: {
- prototype: CloseEvent;
- new(): CloseEvent;
-}
-
-interface CommandEvent extends Event {
- readonly commandName: string;
- readonly detail: string | null;
-}
-
-declare var CommandEvent: {
- prototype: CommandEvent;
- new(type: string, eventInitDict?: CommandEventInit): CommandEvent;
-}
-
-interface Comment extends CharacterData {
- text: string;
-}
-
-declare var Comment: {
- prototype: Comment;
- new(): Comment;
-}
-
-interface CompositionEvent extends UIEvent {
- readonly data: string;
- readonly locale: string;
- initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
-}
-
-declare var CompositionEvent: {
- prototype: CompositionEvent;
- new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;
-}
-
-interface Console {
- assert(test?: boolean, message?: string, ...optionalParams: any[]): void;
- clear(): void;
- count(countTitle?: string): void;
- debug(message?: string, ...optionalParams: any[]): void;
- dir(value?: any, ...optionalParams: any[]): void;
- dirxml(value: any): void;
- error(message?: any, ...optionalParams: any[]): void;
- exception(message?: string, ...optionalParams: any[]): void;
- group(groupTitle?: string): void;
- groupCollapsed(groupTitle?: string): void;
- groupEnd(): void;
- info(message?: any, ...optionalParams: any[]): void;
- log(message?: any, ...optionalParams: any[]): void;
- msIsIndependentlyComposed(element: Element): boolean;
- profile(reportName?: string): void;
- profileEnd(): void;
- select(element: Element): void;
- table(...data: any[]): void;
- time(timerName?: string): void;
- timeEnd(timerName?: string): void;
- trace(message?: any, ...optionalParams: any[]): void;
- warn(message?: any, ...optionalParams: any[]): void;
-}
-
-declare var Console: {
- prototype: Console;
- new(): Console;
-}
-
-interface ConvolverNode extends AudioNode {
- buffer: AudioBuffer | null;
- normalize: boolean;
-}
-
-declare var ConvolverNode: {
- prototype: ConvolverNode;
- new(): ConvolverNode;
-}
-
-interface Coordinates {
- readonly accuracy: number;
- readonly altitude: number | null;
- readonly altitudeAccuracy: number | null;
- readonly heading: number | null;
- readonly latitude: number;
- readonly longitude: number;
- readonly speed: number | null;
-}
-
-declare var Coordinates: {
- prototype: Coordinates;
- new(): Coordinates;
-}
-
-interface Crypto extends Object, RandomSource {
- readonly subtle: SubtleCrypto;
-}
-
-declare var Crypto: {
- prototype: Crypto;
- new(): Crypto;
-}
-
-interface CryptoKey {
- readonly algorithm: KeyAlgorithm;
- readonly extractable: boolean;
- readonly type: string;
- readonly usages: string[];
-}
-
-declare var CryptoKey: {
- prototype: CryptoKey;
- new(): CryptoKey;
-}
-
-interface CryptoKeyPair {
- privateKey: CryptoKey;
- publicKey: CryptoKey;
-}
-
-declare var CryptoKeyPair: {
- prototype: CryptoKeyPair;
- new(): CryptoKeyPair;
-}
-
-interface CustomEvent extends Event {
- readonly detail: any;
- initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void;
-}
-
-declare var CustomEvent: {
- prototype: CustomEvent;
- new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;
-}
-
-interface DOMError {
- readonly name: string;
- toString(): string;
-}
-
-declare var DOMError: {
- prototype: DOMError;
- new(): DOMError;
-}
-
-interface DOMException {
- readonly code: number;
- readonly message: string;
- readonly name: string;
- toString(): string;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly PARSE_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SERIALIZE_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
-}
-
-declare var DOMException: {
- prototype: DOMException;
- new(): DOMException;
- readonly ABORT_ERR: number;
- readonly DATA_CLONE_ERR: number;
- readonly DOMSTRING_SIZE_ERR: number;
- readonly HIERARCHY_REQUEST_ERR: number;
- readonly INDEX_SIZE_ERR: number;
- readonly INUSE_ATTRIBUTE_ERR: number;
- readonly INVALID_ACCESS_ERR: number;
- readonly INVALID_CHARACTER_ERR: number;
- readonly INVALID_MODIFICATION_ERR: number;
- readonly INVALID_NODE_TYPE_ERR: number;
- readonly INVALID_STATE_ERR: number;
- readonly NAMESPACE_ERR: number;
- readonly NETWORK_ERR: number;
- readonly NOT_FOUND_ERR: number;
- readonly NOT_SUPPORTED_ERR: number;
- readonly NO_DATA_ALLOWED_ERR: number;
- readonly NO_MODIFICATION_ALLOWED_ERR: number;
- readonly PARSE_ERR: number;
- readonly QUOTA_EXCEEDED_ERR: number;
- readonly SECURITY_ERR: number;
- readonly SERIALIZE_ERR: number;
- readonly SYNTAX_ERR: number;
- readonly TIMEOUT_ERR: number;
- readonly TYPE_MISMATCH_ERR: number;
- readonly URL_MISMATCH_ERR: number;
- readonly VALIDATION_ERR: number;
- readonly WRONG_DOCUMENT_ERR: number;
-}
-
-interface DOMImplementation {
- createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType): Document;
- createDocumentType(qualifiedName: string, publicId: string | null, systemId: string | null): DocumentType;
- createHTMLDocument(title: string): Document;
- hasFeature(feature: string | null, version: string | null): boolean;
-}
-
-declare var DOMImplementation: {
- prototype: DOMImplementation;
- new(): DOMImplementation;
-}
-
-interface DOMParser {
- parseFromString(source: string, mimeType: string): Document;
-}
-
-declare var DOMParser: {
- prototype: DOMParser;
- new(): DOMParser;
-}
-
-interface DOMSettableTokenList extends DOMTokenList {
- value: string;
-}
-
-declare var DOMSettableTokenList: {
- prototype: DOMSettableTokenList;
- new(): DOMSettableTokenList;
-}
-
-interface DOMStringList {
- readonly length: number;
- contains(str: string): boolean;
- item(index: number): string | null;
- [index: number]: string;
-}
-
-declare var DOMStringList: {
- prototype: DOMStringList;
- new(): DOMStringList;
-}
-
-interface DOMStringMap {
- [name: string]: string;
-}
-
-declare var DOMStringMap: {
- prototype: DOMStringMap;
- new(): DOMStringMap;
-}
-
-interface DOMTokenList {
- readonly length: number;
- add(...token: string[]): void;
- contains(token: string): boolean;
- item(index: number): string;
- remove(...token: string[]): void;
- toString(): string;
- toggle(token: string, force?: boolean): boolean;
- [index: number]: string;
-}
-
-declare var DOMTokenList: {
- prototype: DOMTokenList;
- new(): DOMTokenList;
-}
-
-interface DataCue extends TextTrackCue {
- data: ArrayBuffer;
-}
-
-declare var DataCue: {
- prototype: DataCue;
- new(): DataCue;
-}
-
-interface DataTransfer {
- dropEffect: string;
- effectAllowed: string;
- readonly files: FileList;
- readonly items: DataTransferItemList;
- readonly types: DOMStringList;
- clearData(format?: string): boolean;
- getData(format: string): string;
- setData(format: string, data: string): boolean;
-}
-
-declare var DataTransfer: {
- prototype: DataTransfer;
- new(): DataTransfer;
-}
-
-interface DataTransferItem {
- readonly kind: string;
- readonly type: string;
- getAsFile(): File | null;
- getAsString(_callback: FunctionStringCallback | null): void;
-}
-
-declare var DataTransferItem: {
- prototype: DataTransferItem;
- new(): DataTransferItem;
-}
-
-interface DataTransferItemList {
- readonly length: number;
- add(data: File): DataTransferItem | null;
- clear(): void;
- item(index: number): DataTransferItem;
- remove(index: number): void;
- [index: number]: DataTransferItem;
-}
-
-declare var DataTransferItemList: {
- prototype: DataTransferItemList;
- new(): DataTransferItemList;
-}
-
-interface DeferredPermissionRequest {
- readonly id: number;
- readonly type: string;
- readonly uri: string;
- allow(): void;
- deny(): void;
-}
-
-declare var DeferredPermissionRequest: {
- prototype: DeferredPermissionRequest;
- new(): DeferredPermissionRequest;
-}
-
-interface DelayNode extends AudioNode {
- readonly delayTime: AudioParam;
-}
-
-declare var DelayNode: {
- prototype: DelayNode;
- new(): DelayNode;
-}
-
-interface DeviceAcceleration {
- readonly x: number | null;
- readonly y: number | null;
- readonly z: number | null;
-}
-
-declare var DeviceAcceleration: {
- prototype: DeviceAcceleration;
- new(): DeviceAcceleration;
-}
-
-interface DeviceLightEvent extends Event {
- readonly value: number;
-}
-
-declare var DeviceLightEvent: {
- prototype: DeviceLightEvent;
- new(type: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-}
-
-interface DeviceMotionEvent extends Event {
- readonly acceleration: DeviceAcceleration | null;
- readonly accelerationIncludingGravity: DeviceAcceleration | null;
- readonly interval: number | null;
- readonly rotationRate: DeviceRotationRate | null;
- initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;
-}
-
-declare var DeviceMotionEvent: {
- prototype: DeviceMotionEvent;
- new(): DeviceMotionEvent;
-}
-
-interface DeviceOrientationEvent extends Event {
- readonly absolute: boolean;
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
- initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;
-}
-
-declare var DeviceOrientationEvent: {
- prototype: DeviceOrientationEvent;
- new(): DeviceOrientationEvent;
-}
-
-interface DeviceRotationRate {
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
-}
-
-declare var DeviceRotationRate: {
- prototype: DeviceRotationRate;
- new(): DeviceRotationRate;
-}
-
-interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode {
- /**
- * Sets or gets the URL for the current document.
- */
- readonly URL: string;
- /**
- * Gets the URL for the document, stripped of any character encoding.
- */
- readonly URLUnencoded: string;
- /**
- * Gets the object that has the focus when the parent document has focus.
- */
- readonly activeElement: Element;
- /**
- * Sets or gets the color of all active links in the document.
- */
- alinkColor: string;
- /**
- * Returns a reference to the collection of elements contained by the object.
- */
- readonly all: HTMLAllCollection;
- /**
- * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
- */
- anchors: HTMLCollectionOf<HTMLAnchorElement>;
- /**
- * Retrieves a collection of all applet objects in the document.
- */
- applets: HTMLCollectionOf<HTMLAppletElement>;
- /**
- * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
- */
- bgColor: string;
- /**
- * Specifies the beginning and end of the document body.
- */
- body: HTMLElement;
- readonly characterSet: string;
- /**
- * Gets or sets the character set used to encode the object.
- */
- charset: string;
- /**
- * Gets a value that indicates whether standards-compliant mode is switched on for the object.
- */
- readonly compatMode: string;
- cookie: string;
- readonly currentScript: HTMLScriptElement | SVGScriptElement;
- /**
- * Gets the default character set from the current regional language settings.
- */
- readonly defaultCharset: string;
- readonly defaultView: Window;
- /**
- * Sets or gets a value that indicates whether the document can be edited.
- */
- designMode: string;
- /**
- * Sets or retrieves a value that indicates the reading order of the object.
- */
- dir: string;
- /**
- * Gets an object representing the document type declaration associated with the current document.
- */
- readonly doctype: DocumentType;
- /**
- * Gets a reference to the root node of the document.
- */
- documentElement: HTMLElement;
- /**
- * Sets or gets the security domain of the document.
- */
- domain: string;
- /**
- * Retrieves a collection of all embed objects in the document.
- */
- embeds: HTMLCollectionOf<HTMLEmbedElement>;
- /**
- * Sets or gets the foreground (text) color of the document.
- */
- fgColor: string;
- /**
- * Retrieves a collection, in source order, of all form objects in the document.
- */
- forms: HTMLCollectionOf<HTMLFormElement>;
- readonly fullscreenElement: Element | null;
- readonly fullscreenEnabled: boolean;
- readonly head: HTMLHeadElement;
- readonly hidden: boolean;
- /**
- * Retrieves a collection, in source order, of img objects in the document.
- */
- images: HTMLCollectionOf<HTMLImageElement>;
- /**
- * Gets the implementation object of the current document.
- */
- readonly implementation: DOMImplementation;
- /**
- * Returns the character encoding used to create the webpage that is loaded into the document object.
- */
- readonly inputEncoding: string | null;
- /**
- * Gets the date that the page was last modified, if the page supplies one.
- */
- readonly lastModified: string;
- /**
- * Sets or gets the color of the document links.
- */
- linkColor: string;
- /**
- * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
- */
- links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
- /**
- * Contains information about the current URL.
- */
- readonly location: Location;
- msCSSOMElementFloatMetrics: boolean;
- msCapsLockWarningOff: boolean;
- /**
- * Fires when the user aborts the download.
- * @param ev The event.
- */
- onabort: (this: this, ev: UIEvent) => any;
- /**
- * Fires when the object is set as the active element.
- * @param ev The event.
- */
- onactivate: (this: this, ev: UIEvent) => any;
- /**
- * Fires immediately before the object is set as the active element.
- * @param ev The event.
- */
- onbeforeactivate: (this: this, ev: UIEvent) => any;
- /**
- * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
- * @param ev The event.
- */
- onbeforedeactivate: (this: this, ev: UIEvent) => any;
- /**
- * Fires when the object loses the input focus.
- * @param ev The focus event.
- */
- onblur: (this: this, ev: FocusEvent) => any;
- /**
- * Occurs when playback is possible, but would require further buffering.
- * @param ev The event.
- */
- oncanplay: (this: this, ev: Event) => any;
- oncanplaythrough: (this: this, ev: Event) => any;
- /**
- * Fires when the contents of the object or selection have changed.
- * @param ev The event.
- */
- onchange: (this: this, ev: Event) => any;
- /**
- * Fires when the user clicks the left mouse button on the object
- * @param ev The mouse event.
- */
- onclick: (this: this, ev: MouseEvent) => any;
- /**
- * Fires when the user clicks the right mouse button in the client area, opening the context menu.
- * @param ev The mouse event.
- */
- oncontextmenu: (this: this, ev: PointerEvent) => any;
- /**
- * Fires when the user double-clicks the object.
- * @param ev The mouse event.
- */
- ondblclick: (this: this, ev: MouseEvent) => any;
- /**
- * Fires when the activeElement is changed from the current object to another object in the parent document.
- * @param ev The UI Event
- */
- ondeactivate: (this: this, ev: UIEvent) => any;
- /**
- * Fires on the source object continuously during a drag operation.
- * @param ev The event.
- */
- ondrag: (this: this, ev: DragEvent) => any;
- /**
- * Fires on the source object when the user releases the mouse at the close of a drag operation.
- * @param ev The event.
- */
- ondragend: (this: this, ev: DragEvent) => any;
- /**
- * Fires on the target element when the user drags the object to a valid drop target.
- * @param ev The drag event.
- */
- ondragenter: (this: this, ev: DragEvent) => any;
- /**
- * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
- * @param ev The drag event.
- */
- ondragleave: (this: this, ev: DragEvent) => any;
- /**
- * Fires on the target element continuously while the user drags the object over a valid drop target.
- * @param ev The event.
- */
- ondragover: (this: this, ev: DragEvent) => any;
- /**
- * Fires on the source object when the user starts to drag a text selection or selected object.
- * @param ev The event.
- */
- ondragstart: (this: this, ev: DragEvent) => any;
- ondrop: (this: this, ev: DragEvent) => any;
- /**
- * Occurs when the duration attribute is updated.
- * @param ev The event.
- */
- ondurationchange: (this: this, ev: Event) => any;
- /**
- * Occurs when the media element is reset to its initial state.
- * @param ev The event.
- */
- onemptied: (this: this, ev: Event) => any;
- /**
- * Occurs when the end of playback is reached.
- * @param ev The event
- */
- onended: (this: this, ev: MediaStreamErrorEvent) => any;
- /**
- * Fires when an error occurs during object loading.
- * @param ev The event.
- */
- onerror: (this: this, ev: ErrorEvent) => any;
- /**
- * Fires when the object receives focus.
- * @param ev The event.
- */
- onfocus: (this: this, ev: FocusEvent) => any;
- onfullscreenchange: (this: this, ev: Event) => any;
- onfullscreenerror: (this: this, ev: Event) => any;
- oninput: (this: this, ev: Event) => any;
- oninvalid: (this: this, ev: Event) => any;
- /**
- * Fires when the user presses a key.
- * @param ev The keyboard event
- */
- onkeydown: (this: this, ev: KeyboardEvent) => any;
- /**
- * Fires when the user presses an alphanumeric key.
- * @param ev The event.
- */
- onkeypress: (this: this, ev: KeyboardEvent) => any;
- /**
- * Fires when the user releases a key.
- * @param ev The keyboard event
- */
- onkeyup: (this: this, ev: KeyboardEvent) => any;
- /**
- * Fires immediately after the browser loads the object.
- * @param ev The event.
- */
- onload: (this: this, ev: Event) => any;
- /**
- * Occurs when media data is loaded at the current playback position.
- * @param ev The event.
- */
- onloadeddata: (this: this, ev: Event) => any;
- /**
- * Occurs when the duration and dimensions of the media have been determined.
- * @param ev The event.
- */
- onloadedmetadata: (this: this, ev: Event) => any;
- /**
- * Occurs when Internet Explorer begins looking for media data.
- * @param ev The event.
- */
- onloadstart: (this: this, ev: Event) => any;
- /**
- * Fires when the user clicks the object with either mouse button.
- * @param ev The mouse event.
- */
- onmousedown: (this: this, ev: MouseEvent) => any;
- /**
- * Fires when the user moves the mouse over the object.
- * @param ev The mouse event.
- */
- onmousemove: (this: this, ev: MouseEvent) => any;
- /**
- * Fires when the user moves the mouse pointer outside the boundaries of the object.
- * @param ev The mouse event.
- */
- onmouseout: (this: this, ev: MouseEvent) => any;
- /**
- * Fires when the user moves the mouse pointer into the object.
- * @param ev The mouse event.
- */
- onmouseover: (this: this, ev: MouseEvent) => any;
- /**
- * Fires when the user releases a mouse button while the mouse is over the object.
- * @param ev The mouse event.
- */
- onmouseup: (this: this, ev: MouseEvent) => any;
- /**
- * Fires when the wheel button is rotated.
- * @param ev The mouse event
- */
- onmousewheel: (this: this, ev: WheelEvent) => any;
- onmscontentzoom: (this: this, ev: UIEvent) => any;
- onmsgesturechange: (this: this, ev: MSGestureEvent) => any;
- onmsgesturedoubletap: (this: this, ev: MSGestureEvent) => any;
- onmsgestureend: (this: this, ev: MSGestureEvent) => any;
- onmsgesturehold: (this: this, ev: MSGestureEvent) => any;
- onmsgesturestart: (this: this, ev: MSGestureEvent) => any;
- onmsgesturetap: (this: this, ev: MSGestureEvent) => any;
- onmsinertiastart: (this: this, ev: MSGestureEvent) => any;
- onmsmanipulationstatechanged: (this: this, ev: MSManipulationEvent) => any;
- onmspointercancel: (this: this, ev: MSPointerEvent) => any;
- onmspointerdown: (this: this, ev: MSPointerEvent) => any;
- onmspointerenter: (this: this, ev: MSPointerEvent) => any;
- onmspointerleave: (this: this, ev: MSPointerEvent) => any;
- onmspointermove: (this: this, ev: MSPointerEvent) => any;
- onmspointerout: (this: this, ev: MSPointerEvent) => any;
- onmspointerover: (this: this, ev: MSPointerEvent) => any;
- onmspointerup: (this: this, ev: MSPointerEvent) => any;
- /**
- * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
- * @param ev The event.
- */
- onmssitemodejumplistitemremoved: (this: this, ev: MSSiteModeEvent) => any;
- /**
- * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
- * @param ev The event.
- */
- onmsthumbnailclick: (this: this, ev: MSSiteModeEvent) => any;
- /**
- * Occurs when playback is paused.
- * @param ev The event.
- */
- onpause: (this: this, ev: Event) => any;
- /**
- * Occurs when the play method is requested.
- * @param ev The event.
- */
- onplay: (this: this, ev: Event) => any;
- /**
- * Occurs when the audio or video has started playing.
- * @param ev The event.
- */
- onplaying: (this: this, ev: Event) => any;
- onpointerlockchange: (this: this, ev: Event) => any;
- onpointerlockerror: (this: this, ev: Event) => any;
- /**
- * Occurs to indicate progress while downloading media data.
- * @param ev The event.
- */
- onprogress: (this: this, ev: ProgressEvent) => any;
- /**
- * Occurs when the playback rate is increased or decreased.
- * @param ev The event.
- */
- onratechange: (this: this, ev: Event) => any;
- /**
- * Fires when the state of the object has changed.
- * @param ev The event
- */
- onreadystatechange: (this: this, ev: ProgressEvent) => any;
- /**
- * Fires when the user resets a form.
- * @param ev The event.
- */
- onreset: (this: this, ev: Event) => any;
- /**
- * Fires when the user repositions the scroll box in the scroll bar on the object.
- * @param ev The event.
- */
- onscroll: (this: this, ev: UIEvent) => any;
- /**
- * Occurs when the seek operation ends.
- * @param ev The event.
- */
- onseeked: (this: this, ev: Event) => any;
- /**
- * Occurs when the current playback position is moved.
- * @param ev The event.
- */
- onseeking: (this: this, ev: Event) => any;
- /**
- * Fires when the current selection changes.
- * @param ev The event.
- */
- onselect: (this: this, ev: UIEvent) => any;
- /**
- * Fires when the selection state of a document changes.
- * @param ev The event.
- */
- onselectionchange: (this: this, ev: Event) => any;
- onselectstart: (this: this, ev: Event) => any;
- /**
- * Occurs when the download has stopped.
- * @param ev The event.
- */
- onstalled: (this: this, ev: Event) => any;
- /**
- * Fires when the user clicks the Stop button or leaves the Web page.
- * @param ev The event.
- */
- onstop: (this: this, ev: Event) => any;
- onsubmit: (this: this, ev: Event) => any;
- /**
- * Occurs if the load operation has been intentionally halted.
- * @param ev The event.
- */
- onsuspend: (this: this, ev: Event) => any;
- /**
- * Occurs to indicate the current playback position.
- * @param ev The event.
- */
- ontimeupdate: (this: this, ev: Event) => any;
- ontouchcancel: (ev: TouchEvent) => any;
- ontouchend: (ev: TouchEvent) => any;
- ontouchmove: (ev: TouchEvent) => any;
- ontouchstart: (ev: TouchEvent) => any;
- /**
- * Occurs when the volume is changed, or playback is muted or unmuted.
- * @param ev The event.
- */
- onvolumechange: (this: this, ev: Event) => any;
- /**
- * Occurs when playback stops because the next frame of a video resource is not available.
- * @param ev The event.
- */
- onwaiting: (this: this, ev: Event) => any;
- onwebkitfullscreenchange: (this: this, ev: Event) => any;
- onwebkitfullscreenerror: (this: this, ev: Event) => any;
- plugins: HTMLCollectionOf<HTMLEmbedElement>;
- readonly pointerLockElement: Element;
- /**
- * Retrieves a value that indicates the current state of the object.
- */
- readonly readyState: string;
- /**
- * Gets the URL of the location that referred the user to the current page.
- */
- readonly referrer: string;
- /**
- * Gets the root svg element in the document hierarchy.
- */
- readonly rootElement: SVGSVGElement;
- /**
- * Retrieves a collection of all script objects in the document.
- */
- scripts: HTMLCollectionOf<HTMLScriptElement>;
- readonly scrollingElement: Element | null;
- /**
- * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
- */
- readonly styleSheets: StyleSheetList;
- /**
- * Contains the title of the document.
- */
- title: string;
- readonly visibilityState: string;
- /**
- * Sets or gets the color of the links that the user has visited.
- */
- vlinkColor: string;
- readonly webkitCurrentFullScreenElement: Element | null;
- readonly webkitFullscreenElement: Element | null;
- readonly webkitFullscreenEnabled: boolean;
- readonly webkitIsFullScreen: boolean;
- readonly xmlEncoding: string | null;
- xmlStandalone: boolean;
- /**
- * Gets or sets the version attribute specified in the declaration of an XML document.
- */
- xmlVersion: string | null;
- adoptNode(source: Node): Node;
- captureEvents(): void;
- caretRangeFromPoint(x: number, y: number): Range;
- clear(): void;
- /**
- * Closes an output stream and forces the sent data to display.
- */
- close(): void;
- /**
- * Creates an attribute object with a specified name.
- * @param name String that sets the attribute object's name.
- */
- createAttribute(name: string): Attr;
- createAttributeNS(namespaceURI: string | null, qualifiedName: string): Attr;
- createCDATASection(data: string): CDATASection;
- /**
- * Creates a comment object with the specified data.
- * @param data Sets the comment object's data.
- */
- createComment(data: string): Comment;
- /**
- * Creates a new document.
- */
- createDocumentFragment(): DocumentFragment;
- /**
- * Creates an instance of the element for the specified tag.
- * @param tagName The name of an element.
- */
- createElement(tagName: "a"): HTMLAnchorElement;
- createElement(tagName: "applet"): HTMLAppletElement;
- createElement(tagName: "area"): HTMLAreaElement;
- createElement(tagName: "audio"): HTMLAudioElement;
- createElement(tagName: "base"): HTMLBaseElement;
- createElement(tagName: "basefont"): HTMLBaseFontElement;
- createElement(tagName: "blockquote"): HTMLQuoteElement;
- createElement(tagName: "body"): HTMLBodyElement;
- createElement(tagName: "br"): HTMLBRElement;
- createElement(tagName: "button"): HTMLButtonElement;
- createElement(tagName: "canvas"): HTMLCanvasElement;
- createElement(tagName: "caption"): HTMLTableCaptionElement;
- createElement(tagName: "col"): HTMLTableColElement;
- createElement(tagName: "colgroup"): HTMLTableColElement;
- createElement(tagName: "datalist"): HTMLDataListElement;
- createElement(tagName: "del"): HTMLModElement;
- createElement(tagName: "dir"): HTMLDirectoryElement;
- createElement(tagName: "div"): HTMLDivElement;
- createElement(tagName: "dl"): HTMLDListElement;
- createElement(tagName: "embed"): HTMLEmbedElement;
- createElement(tagName: "fieldset"): HTMLFieldSetElement;
- createElement(tagName: "font"): HTMLFontElement;
- createElement(tagName: "form"): HTMLFormElement;
- createElement(tagName: "frame"): HTMLFrameElement;
- createElement(tagName: "frameset"): HTMLFrameSetElement;
- createElement(tagName: "h1"): HTMLHeadingElement;
- createElement(tagName: "h2"): HTMLHeadingElement;
- createElement(tagName: "h3"): HTMLHeadingElement;
- createElement(tagName: "h4"): HTMLHeadingElement;
- createElement(tagName: "h5"): HTMLHeadingElement;
- createElement(tagName: "h6"): HTMLHeadingElement;
- createElement(tagName: "head"): HTMLHeadElement;
- createElement(tagName: "hr"): HTMLHRElement;
- createElement(tagName: "html"): HTMLHtmlElement;
- createElement(tagName: "iframe"): HTMLIFrameElement;
- createElement(tagName: "img"): HTMLImageElement;
- createElement(tagName: "input"): HTMLInputElement;
- createElement(tagName: "ins"): HTMLModElement;
- createElement(tagName: "isindex"): HTMLUnknownElement;
- createElement(tagName: "label"): HTMLLabelElement;
- createElement(tagName: "legend"): HTMLLegendElement;
- createElement(tagName: "li"): HTMLLIElement;
- createElement(tagName: "link"): HTMLLinkElement;
- createElement(tagName: "listing"): HTMLPreElement;
- createElement(tagName: "map"): HTMLMapElement;
- createElement(tagName: "marquee"): HTMLMarqueeElement;
- createElement(tagName: "menu"): HTMLMenuElement;
- createElement(tagName: "meta"): HTMLMetaElement;
- createElement(tagName: "meter"): HTMLMeterElement;
- createElement(tagName: "nextid"): HTMLUnknownElement;
- createElement(tagName: "object"): HTMLObjectElement;
- createElement(tagName: "ol"): HTMLOListElement;
- createElement(tagName: "optgroup"): HTMLOptGroupElement;
- createElement(tagName: "option"): HTMLOptionElement;
- createElement(tagName: "p"): HTMLParagraphElement;
- createElement(tagName: "param"): HTMLParamElement;
- createElement(tagName: "picture"): HTMLPictureElement;
- createElement(tagName: "pre"): HTMLPreElement;
- createElement(tagName: "progress"): HTMLProgressElement;
- createElement(tagName: "q"): HTMLQuoteElement;
- createElement(tagName: "script"): HTMLScriptElement;
- createElement(tagName: "select"): HTMLSelectElement;
- createElement(tagName: "source"): HTMLSourceElement;
- createElement(tagName: "span"): HTMLSpanElement;
- createElement(tagName: "style"): HTMLStyleElement;
- createElement(tagName: "table"): HTMLTableElement;
- createElement(tagName: "tbody"): HTMLTableSectionElement;
- createElement(tagName: "td"): HTMLTableDataCellElement;
- createElement(tagName: "template"): HTMLTemplateElement;
- createElement(tagName: "textarea"): HTMLTextAreaElement;
- createElement(tagName: "tfoot"): HTMLTableSectionElement;
- createElement(tagName: "th"): HTMLTableHeaderCellElement;
- createElement(tagName: "thead"): HTMLTableSectionElement;
- createElement(tagName: "title"): HTMLTitleElement;
- createElement(tagName: "tr"): HTMLTableRowElement;
- createElement(tagName: "track"): HTMLTrackElement;
- createElement(tagName: "ul"): HTMLUListElement;
- createElement(tagName: "video"): HTMLVideoElement;
- createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement;
- createElement(tagName: "xmp"): HTMLPreElement;
- createElement(tagName: string): HTMLElement;
- createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement
- createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
- createElementNS(namespaceURI: string | null, qualifiedName: string): Element;
- createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
- createNSResolver(nodeResolver: Node): XPathNSResolver;
- /**
- * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list
- * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
- */
- createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator;
- createProcessingInstruction(target: string, data: string): ProcessingInstruction;
- /**
- * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
- */
- createRange(): Range;
- /**
- * Creates a text string from the specified value.
- * @param data String that specifies the nodeValue property of the text node.
- */
- createTextNode(data: string): Text;
- createTouch(view: Window, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;
- createTouchList(...touches: Touch[]): TouchList;
- /**
- * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
- * @param root The root element or node to start traversing on.
- * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
- * @param filter A custom NodeFilter function to use.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
- */
- createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker;
- /**
- * Returns the element for the specified x coordinate and the specified y coordinate.
- * @param x The x-offset
- * @param y The y-offset
- */
- elementFromPoint(x: number, y: number): Element;
- evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult;
- /**
- * Executes a command on the current document, current selection, or the given range.
- * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
- * @param showUI Display the user interface, defaults to false.
- * @param value Value to assign.
- */
- execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
- /**
- * Displays help information for the given command identifier.
- * @param commandId Displays help information for the given command identifier.
- */
- execCommandShowHelp(commandId: string): boolean;
- exitFullscreen(): void;
- exitPointerLock(): void;
- /**
- * Causes the element to receive the focus and executes the code specified by the onfocus event.
- */
- focus(): void;
- /**
- * Returns a reference to the first object with the specified value of the ID or NAME attribute.
- * @param elementId String that specifies the ID value. Case-insensitive.
- */
- getElementById(elementId: string): HTMLElement | null;
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
- /**
- * Gets a collection of objects based on the value of the NAME or ID attribute.
- * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
- */
- getElementsByName(elementName: string): NodeListOf<HTMLElement>;
- /**
- * Retrieves a collection of objects based on the specified element name.
- * @param name Specifies the name of an element.
- */
- getElementsByTagName(tagname: "a"): NodeListOf<HTMLAnchorElement>;
- getElementsByTagName(tagname: "abbr"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "acronym"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "address"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "applet"): NodeListOf<HTMLAppletElement>;
- getElementsByTagName(tagname: "area"): NodeListOf<HTMLAreaElement>;
- getElementsByTagName(tagname: "article"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "aside"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "audio"): NodeListOf<HTMLAudioElement>;
- getElementsByTagName(tagname: "b"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "base"): NodeListOf<HTMLBaseElement>;
- getElementsByTagName(tagname: "basefont"): NodeListOf<HTMLBaseFontElement>;
- getElementsByTagName(tagname: "bdo"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "big"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "blockquote"): NodeListOf<HTMLQuoteElement>;
- getElementsByTagName(tagname: "body"): NodeListOf<HTMLBodyElement>;
- getElementsByTagName(tagname: "br"): NodeListOf<HTMLBRElement>;
- getElementsByTagName(tagname: "button"): NodeListOf<HTMLButtonElement>;
- getElementsByTagName(tagname: "canvas"): NodeListOf<HTMLCanvasElement>;
- getElementsByTagName(tagname: "caption"): NodeListOf<HTMLTableCaptionElement>;
- getElementsByTagName(tagname: "center"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "circle"): NodeListOf<SVGCircleElement>;
- getElementsByTagName(tagname: "cite"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "clippath"): NodeListOf<SVGClipPathElement>;
- getElementsByTagName(tagname: "code"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "col"): NodeListOf<HTMLTableColElement>;
- getElementsByTagName(tagname: "colgroup"): NodeListOf<HTMLTableColElement>;
- getElementsByTagName(tagname: "datalist"): NodeListOf<HTMLDataListElement>;
- getElementsByTagName(tagname: "dd"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "defs"): NodeListOf<SVGDefsElement>;
- getElementsByTagName(tagname: "del"): NodeListOf<HTMLModElement>;
- getElementsByTagName(tagname: "desc"): NodeListOf<SVGDescElement>;
- getElementsByTagName(tagname: "dfn"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "dir"): NodeListOf<HTMLDirectoryElement>;
- getElementsByTagName(tagname: "div"): NodeListOf<HTMLDivElement>;
- getElementsByTagName(tagname: "dl"): NodeListOf<HTMLDListElement>;
- getElementsByTagName(tagname: "dt"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "ellipse"): NodeListOf<SVGEllipseElement>;
- getElementsByTagName(tagname: "em"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "embed"): NodeListOf<HTMLEmbedElement>;
- getElementsByTagName(tagname: "feblend"): NodeListOf<SVGFEBlendElement>;
- getElementsByTagName(tagname: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
- getElementsByTagName(tagname: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
- getElementsByTagName(tagname: "fecomposite"): NodeListOf<SVGFECompositeElement>;
- getElementsByTagName(tagname: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
- getElementsByTagName(tagname: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
- getElementsByTagName(tagname: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
- getElementsByTagName(tagname: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
- getElementsByTagName(tagname: "feflood"): NodeListOf<SVGFEFloodElement>;
- getElementsByTagName(tagname: "fefunca"): NodeListOf<SVGFEFuncAElement>;
- getElementsByTagName(tagname: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
- getElementsByTagName(tagname: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
- getElementsByTagName(tagname: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
- getElementsByTagName(tagname: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
- getElementsByTagName(tagname: "feimage"): NodeListOf<SVGFEImageElement>;
- getElementsByTagName(tagname: "femerge"): NodeListOf<SVGFEMergeElement>;
- getElementsByTagName(tagname: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
- getElementsByTagName(tagname: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
- getElementsByTagName(tagname: "feoffset"): NodeListOf<SVGFEOffsetElement>;
- getElementsByTagName(tagname: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
- getElementsByTagName(tagname: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
- getElementsByTagName(tagname: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
- getElementsByTagName(tagname: "fetile"): NodeListOf<SVGFETileElement>;
- getElementsByTagName(tagname: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
- getElementsByTagName(tagname: "fieldset"): NodeListOf<HTMLFieldSetElement>;
- getElementsByTagName(tagname: "figcaption"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "figure"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "filter"): NodeListOf<SVGFilterElement>;
- getElementsByTagName(tagname: "font"): NodeListOf<HTMLFontElement>;
- getElementsByTagName(tagname: "footer"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
- getElementsByTagName(tagname: "form"): NodeListOf<HTMLFormElement>;
- getElementsByTagName(tagname: "frame"): NodeListOf<HTMLFrameElement>;
- getElementsByTagName(tagname: "frameset"): NodeListOf<HTMLFrameSetElement>;
- getElementsByTagName(tagname: "g"): NodeListOf<SVGGElement>;
- getElementsByTagName(tagname: "h1"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(tagname: "h2"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(tagname: "h3"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(tagname: "h4"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(tagname: "h5"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(tagname: "h6"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(tagname: "head"): NodeListOf<HTMLHeadElement>;
- getElementsByTagName(tagname: "header"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "hgroup"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "hr"): NodeListOf<HTMLHRElement>;
- getElementsByTagName(tagname: "html"): NodeListOf<HTMLHtmlElement>;
- getElementsByTagName(tagname: "i"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "iframe"): NodeListOf<HTMLIFrameElement>;
- getElementsByTagName(tagname: "image"): NodeListOf<SVGImageElement>;
- getElementsByTagName(tagname: "img"): NodeListOf<HTMLImageElement>;
- getElementsByTagName(tagname: "input"): NodeListOf<HTMLInputElement>;
- getElementsByTagName(tagname: "ins"): NodeListOf<HTMLModElement>;
- getElementsByTagName(tagname: "isindex"): NodeListOf<HTMLUnknownElement>;
- getElementsByTagName(tagname: "kbd"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "keygen"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "label"): NodeListOf<HTMLLabelElement>;
- getElementsByTagName(tagname: "legend"): NodeListOf<HTMLLegendElement>;
- getElementsByTagName(tagname: "li"): NodeListOf<HTMLLIElement>;
- getElementsByTagName(tagname: "line"): NodeListOf<SVGLineElement>;
- getElementsByTagName(tagname: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
- getElementsByTagName(tagname: "link"): NodeListOf<HTMLLinkElement>;
- getElementsByTagName(tagname: "listing"): NodeListOf<HTMLPreElement>;
- getElementsByTagName(tagname: "map"): NodeListOf<HTMLMapElement>;
- getElementsByTagName(tagname: "mark"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "marker"): NodeListOf<SVGMarkerElement>;
- getElementsByTagName(tagname: "marquee"): NodeListOf<HTMLMarqueeElement>;
- getElementsByTagName(tagname: "mask"): NodeListOf<SVGMaskElement>;
- getElementsByTagName(tagname: "menu"): NodeListOf<HTMLMenuElement>;
- getElementsByTagName(tagname: "meta"): NodeListOf<HTMLMetaElement>;
- getElementsByTagName(tagname: "metadata"): NodeListOf<SVGMetadataElement>;
- getElementsByTagName(tagname: "meter"): NodeListOf<HTMLMeterElement>;
- getElementsByTagName(tagname: "nav"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "nextid"): NodeListOf<HTMLUnknownElement>;
- getElementsByTagName(tagname: "nobr"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "noframes"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "noscript"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "object"): NodeListOf<HTMLObjectElement>;
- getElementsByTagName(tagname: "ol"): NodeListOf<HTMLOListElement>;
- getElementsByTagName(tagname: "optgroup"): NodeListOf<HTMLOptGroupElement>;
- getElementsByTagName(tagname: "option"): NodeListOf<HTMLOptionElement>;
- getElementsByTagName(tagname: "p"): NodeListOf<HTMLParagraphElement>;
- getElementsByTagName(tagname: "param"): NodeListOf<HTMLParamElement>;
- getElementsByTagName(tagname: "path"): NodeListOf<SVGPathElement>;
- getElementsByTagName(tagname: "pattern"): NodeListOf<SVGPatternElement>;
- getElementsByTagName(tagname: "picture"): NodeListOf<HTMLPictureElement>;
- getElementsByTagName(tagname: "plaintext"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "polygon"): NodeListOf<SVGPolygonElement>;
- getElementsByTagName(tagname: "polyline"): NodeListOf<SVGPolylineElement>;
- getElementsByTagName(tagname: "pre"): NodeListOf<HTMLPreElement>;
- getElementsByTagName(tagname: "progress"): NodeListOf<HTMLProgressElement>;
- getElementsByTagName(tagname: "q"): NodeListOf<HTMLQuoteElement>;
- getElementsByTagName(tagname: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
- getElementsByTagName(tagname: "rect"): NodeListOf<SVGRectElement>;
- getElementsByTagName(tagname: "rt"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "ruby"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "s"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "samp"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "script"): NodeListOf<HTMLScriptElement>;
- getElementsByTagName(tagname: "section"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "select"): NodeListOf<HTMLSelectElement>;
- getElementsByTagName(tagname: "small"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "source"): NodeListOf<HTMLSourceElement>;
- getElementsByTagName(tagname: "span"): NodeListOf<HTMLSpanElement>;
- getElementsByTagName(tagname: "stop"): NodeListOf<SVGStopElement>;
- getElementsByTagName(tagname: "strike"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "strong"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "style"): NodeListOf<HTMLStyleElement>;
- getElementsByTagName(tagname: "sub"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "sup"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "svg"): NodeListOf<SVGSVGElement>;
- getElementsByTagName(tagname: "switch"): NodeListOf<SVGSwitchElement>;
- getElementsByTagName(tagname: "symbol"): NodeListOf<SVGSymbolElement>;
- getElementsByTagName(tagname: "table"): NodeListOf<HTMLTableElement>;
- getElementsByTagName(tagname: "tbody"): NodeListOf<HTMLTableSectionElement>;
- getElementsByTagName(tagname: "td"): NodeListOf<HTMLTableDataCellElement>;
- getElementsByTagName(tagname: "template"): NodeListOf<HTMLTemplateElement>;
- getElementsByTagName(tagname: "text"): NodeListOf<SVGTextElement>;
- getElementsByTagName(tagname: "textpath"): NodeListOf<SVGTextPathElement>;
- getElementsByTagName(tagname: "textarea"): NodeListOf<HTMLTextAreaElement>;
- getElementsByTagName(tagname: "tfoot"): NodeListOf<HTMLTableSectionElement>;
- getElementsByTagName(tagname: "th"): NodeListOf<HTMLTableHeaderCellElement>;
- getElementsByTagName(tagname: "thead"): NodeListOf<HTMLTableSectionElement>;
- getElementsByTagName(tagname: "title"): NodeListOf<HTMLTitleElement>;
- getElementsByTagName(tagname: "tr"): NodeListOf<HTMLTableRowElement>;
- getElementsByTagName(tagname: "track"): NodeListOf<HTMLTrackElement>;
- getElementsByTagName(tagname: "tspan"): NodeListOf<SVGTSpanElement>;
- getElementsByTagName(tagname: "tt"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "u"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "ul"): NodeListOf<HTMLUListElement>;
- getElementsByTagName(tagname: "use"): NodeListOf<SVGUseElement>;
- getElementsByTagName(tagname: "var"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "video"): NodeListOf<HTMLVideoElement>;
- getElementsByTagName(tagname: "view"): NodeListOf<SVGViewElement>;
- getElementsByTagName(tagname: "wbr"): NodeListOf<HTMLElement>;
- getElementsByTagName(tagname: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
- getElementsByTagName(tagname: "xmp"): NodeListOf<HTMLPreElement>;
- getElementsByTagName(tagname: string): NodeListOf<Element>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
- getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;
- /**
- * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
- */
- getSelection(): Selection;
- /**
- * Gets a value indicating whether the object currently has focus.
- */
- hasFocus(): boolean;
- importNode(importedNode: Node, deep: boolean): Node;
- msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
- msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>;
- /**
- * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
- * @param url Specifies a MIME type for the document.
- * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
- * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
- * @param replace Specifies whether the existing entry for the document is replaced in the history list.
- */
- open(url?: string, name?: string, features?: string, replace?: boolean): Document;
- /**
- * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
- * @param commandId Specifies a command identifier.
- */
- queryCommandEnabled(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
- * @param commandId String that specifies a command identifier.
- */
- queryCommandIndeterm(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates the current state of the command.
- * @param commandId String that specifies a command identifier.
- */
- queryCommandState(commandId: string): boolean;
- /**
- * Returns a Boolean value that indicates whether the current command is supported on the current range.
- * @param commandId Specifies a command identifier.
- */
- queryCommandSupported(commandId: string): boolean;
- /**
- * Retrieves the string associated with a command.
- * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
- */
- queryCommandText(commandId: string): string;
- /**
- * Returns the current value of the document, range, or current selection for the given command.
- * @param commandId String that specifies a command identifier.
- */
- queryCommandValue(commandId: string): string;
- releaseEvents(): void;
- /**
- * Allows updating the print settings for the page.
- */
- updateSettings(): void;
- webkitCancelFullScreen(): void;
- webkitExitFullscreen(): void;
- /**
- * Writes one or more HTML expressions to a document in the specified window.
- * @param content Specifies the text and HTML tags to write.
- */
- write(...content: string[]): void;
- /**
- * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
- * @param content The text and HTML tags to write.
- */
- writeln(...content: string[]): void;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "fullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "fullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mssitemodejumplistitemremoved", listener: (this: this, ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "msthumbnailclick", listener: (this: this, ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerlockchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerlockerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "readystatechange", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectionchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stop", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Document: {
- prototype: Document;
- new(): Document;
-}
-
-interface DocumentFragment extends Node, NodeSelector, ParentNode {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var DocumentFragment: {
- prototype: DocumentFragment;
- new(): DocumentFragment;
-}
-
-interface DocumentType extends Node, ChildNode {
- readonly entities: NamedNodeMap;
- readonly internalSubset: string | null;
- readonly name: string;
- readonly notations: NamedNodeMap;
- readonly publicId: string | null;
- readonly systemId: string | null;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var DocumentType: {
- prototype: DocumentType;
- new(): DocumentType;
-}
-
-interface DragEvent extends MouseEvent {
- readonly dataTransfer: DataTransfer;
- initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void;
- msConvertURL(file: File, targetType: string, targetURL?: string): void;
-}
-
-declare var DragEvent: {
- prototype: DragEvent;
- new(): DragEvent;
-}
-
-interface DynamicsCompressorNode extends AudioNode {
- readonly attack: AudioParam;
- readonly knee: AudioParam;
- readonly ratio: AudioParam;
- readonly reduction: AudioParam;
- readonly release: AudioParam;
- readonly threshold: AudioParam;
-}
-
-declare var DynamicsCompressorNode: {
- prototype: DynamicsCompressorNode;
- new(): DynamicsCompressorNode;
-}
-
-interface EXT_frag_depth {
-}
-
-declare var EXT_frag_depth: {
- prototype: EXT_frag_depth;
- new(): EXT_frag_depth;
-}
-
-interface EXT_texture_filter_anisotropic {
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-declare var EXT_texture_filter_anisotropic: {
- prototype: EXT_texture_filter_anisotropic;
- new(): EXT_texture_filter_anisotropic;
- readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;
- readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
-}
-
-interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode {
- readonly classList: DOMTokenList;
- className: string;
- readonly clientHeight: number;
- readonly clientLeft: number;
- readonly clientTop: number;
- readonly clientWidth: number;
- id: string;
- msContentZoomFactor: number;
- readonly msRegionOverflow: string;
- onariarequest: (this: this, ev: AriaRequestEvent) => any;
- oncommand: (this: this, ev: CommandEvent) => any;
- ongotpointercapture: (this: this, ev: PointerEvent) => any;
- onlostpointercapture: (this: this, ev: PointerEvent) => any;
- onmsgesturechange: (this: this, ev: MSGestureEvent) => any;
- onmsgesturedoubletap: (this: this, ev: MSGestureEvent) => any;
- onmsgestureend: (this: this, ev: MSGestureEvent) => any;
- onmsgesturehold: (this: this, ev: MSGestureEvent) => any;
- onmsgesturestart: (this: this, ev: MSGestureEvent) => any;
- onmsgesturetap: (this: this, ev: MSGestureEvent) => any;
- onmsgotpointercapture: (this: this, ev: MSPointerEvent) => any;
- onmsinertiastart: (this: this, ev: MSGestureEvent) => any;
- onmslostpointercapture: (this: this, ev: MSPointerEvent) => any;
- onmspointercancel: (this: this, ev: MSPointerEvent) => any;
- onmspointerdown: (this: this, ev: MSPointerEvent) => any;
- onmspointerenter: (this: this, ev: MSPointerEvent) => any;
- onmspointerleave: (this: this, ev: MSPointerEvent) => any;
- onmspointermove: (this: this, ev: MSPointerEvent) => any;
- onmspointerout: (this: this, ev: MSPointerEvent) => any;
- onmspointerover: (this: this, ev: MSPointerEvent) => any;
- onmspointerup: (this: this, ev: MSPointerEvent) => any;
- ontouchcancel: (ev: TouchEvent) => any;
- ontouchend: (ev: TouchEvent) => any;
- ontouchmove: (ev: TouchEvent) => any;
- ontouchstart: (ev: TouchEvent) => any;
- onwebkitfullscreenchange: (this: this, ev: Event) => any;
- onwebkitfullscreenerror: (this: this, ev: Event) => any;
- readonly prefix: string | null;
- readonly scrollHeight: number;
- scrollLeft: number;
- scrollTop: number;
- readonly scrollWidth: number;
- readonly tagName: string;
- innerHTML: string;
- getAttribute(name: string): string | null;
- getAttributeNS(namespaceURI: string, localName: string): string;
- getAttributeNode(name: string): Attr;
- getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
- getBoundingClientRect(): ClientRect;
- getClientRects(): ClientRectList;
- getElementsByTagName(name: "a"): NodeListOf<HTMLAnchorElement>;
- getElementsByTagName(name: "abbr"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "acronym"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "address"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "applet"): NodeListOf<HTMLAppletElement>;
- getElementsByTagName(name: "area"): NodeListOf<HTMLAreaElement>;
- getElementsByTagName(name: "article"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "aside"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "audio"): NodeListOf<HTMLAudioElement>;
- getElementsByTagName(name: "b"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "base"): NodeListOf<HTMLBaseElement>;
- getElementsByTagName(name: "basefont"): NodeListOf<HTMLBaseFontElement>;
- getElementsByTagName(name: "bdo"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "big"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "blockquote"): NodeListOf<HTMLQuoteElement>;
- getElementsByTagName(name: "body"): NodeListOf<HTMLBodyElement>;
- getElementsByTagName(name: "br"): NodeListOf<HTMLBRElement>;
- getElementsByTagName(name: "button"): NodeListOf<HTMLButtonElement>;
- getElementsByTagName(name: "canvas"): NodeListOf<HTMLCanvasElement>;
- getElementsByTagName(name: "caption"): NodeListOf<HTMLTableCaptionElement>;
- getElementsByTagName(name: "center"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "circle"): NodeListOf<SVGCircleElement>;
- getElementsByTagName(name: "cite"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "clippath"): NodeListOf<SVGClipPathElement>;
- getElementsByTagName(name: "code"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "col"): NodeListOf<HTMLTableColElement>;
- getElementsByTagName(name: "colgroup"): NodeListOf<HTMLTableColElement>;
- getElementsByTagName(name: "datalist"): NodeListOf<HTMLDataListElement>;
- getElementsByTagName(name: "dd"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "defs"): NodeListOf<SVGDefsElement>;
- getElementsByTagName(name: "del"): NodeListOf<HTMLModElement>;
- getElementsByTagName(name: "desc"): NodeListOf<SVGDescElement>;
- getElementsByTagName(name: "dfn"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "dir"): NodeListOf<HTMLDirectoryElement>;
- getElementsByTagName(name: "div"): NodeListOf<HTMLDivElement>;
- getElementsByTagName(name: "dl"): NodeListOf<HTMLDListElement>;
- getElementsByTagName(name: "dt"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "ellipse"): NodeListOf<SVGEllipseElement>;
- getElementsByTagName(name: "em"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "embed"): NodeListOf<HTMLEmbedElement>;
- getElementsByTagName(name: "feblend"): NodeListOf<SVGFEBlendElement>;
- getElementsByTagName(name: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
- getElementsByTagName(name: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
- getElementsByTagName(name: "fecomposite"): NodeListOf<SVGFECompositeElement>;
- getElementsByTagName(name: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
- getElementsByTagName(name: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
- getElementsByTagName(name: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
- getElementsByTagName(name: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
- getElementsByTagName(name: "feflood"): NodeListOf<SVGFEFloodElement>;
- getElementsByTagName(name: "fefunca"): NodeListOf<SVGFEFuncAElement>;
- getElementsByTagName(name: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
- getElementsByTagName(name: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
- getElementsByTagName(name: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
- getElementsByTagName(name: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
- getElementsByTagName(name: "feimage"): NodeListOf<SVGFEImageElement>;
- getElementsByTagName(name: "femerge"): NodeListOf<SVGFEMergeElement>;
- getElementsByTagName(name: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
- getElementsByTagName(name: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
- getElementsByTagName(name: "feoffset"): NodeListOf<SVGFEOffsetElement>;
- getElementsByTagName(name: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
- getElementsByTagName(name: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
- getElementsByTagName(name: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
- getElementsByTagName(name: "fetile"): NodeListOf<SVGFETileElement>;
- getElementsByTagName(name: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
- getElementsByTagName(name: "fieldset"): NodeListOf<HTMLFieldSetElement>;
- getElementsByTagName(name: "figcaption"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "figure"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "filter"): NodeListOf<SVGFilterElement>;
- getElementsByTagName(name: "font"): NodeListOf<HTMLFontElement>;
- getElementsByTagName(name: "footer"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
- getElementsByTagName(name: "form"): NodeListOf<HTMLFormElement>;
- getElementsByTagName(name: "frame"): NodeListOf<HTMLFrameElement>;
- getElementsByTagName(name: "frameset"): NodeListOf<HTMLFrameSetElement>;
- getElementsByTagName(name: "g"): NodeListOf<SVGGElement>;
- getElementsByTagName(name: "h1"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(name: "h2"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(name: "h3"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(name: "h4"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(name: "h5"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(name: "h6"): NodeListOf<HTMLHeadingElement>;
- getElementsByTagName(name: "head"): NodeListOf<HTMLHeadElement>;
- getElementsByTagName(name: "header"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "hgroup"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "hr"): NodeListOf<HTMLHRElement>;
- getElementsByTagName(name: "html"): NodeListOf<HTMLHtmlElement>;
- getElementsByTagName(name: "i"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "iframe"): NodeListOf<HTMLIFrameElement>;
- getElementsByTagName(name: "image"): NodeListOf<SVGImageElement>;
- getElementsByTagName(name: "img"): NodeListOf<HTMLImageElement>;
- getElementsByTagName(name: "input"): NodeListOf<HTMLInputElement>;
- getElementsByTagName(name: "ins"): NodeListOf<HTMLModElement>;
- getElementsByTagName(name: "isindex"): NodeListOf<HTMLUnknownElement>;
- getElementsByTagName(name: "kbd"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "keygen"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "label"): NodeListOf<HTMLLabelElement>;
- getElementsByTagName(name: "legend"): NodeListOf<HTMLLegendElement>;
- getElementsByTagName(name: "li"): NodeListOf<HTMLLIElement>;
- getElementsByTagName(name: "line"): NodeListOf<SVGLineElement>;
- getElementsByTagName(name: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
- getElementsByTagName(name: "link"): NodeListOf<HTMLLinkElement>;
- getElementsByTagName(name: "listing"): NodeListOf<HTMLPreElement>;
- getElementsByTagName(name: "map"): NodeListOf<HTMLMapElement>;
- getElementsByTagName(name: "mark"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "marker"): NodeListOf<SVGMarkerElement>;
- getElementsByTagName(name: "marquee"): NodeListOf<HTMLMarqueeElement>;
- getElementsByTagName(name: "mask"): NodeListOf<SVGMaskElement>;
- getElementsByTagName(name: "menu"): NodeListOf<HTMLMenuElement>;
- getElementsByTagName(name: "meta"): NodeListOf<HTMLMetaElement>;
- getElementsByTagName(name: "metadata"): NodeListOf<SVGMetadataElement>;
- getElementsByTagName(name: "meter"): NodeListOf<HTMLMeterElement>;
- getElementsByTagName(name: "nav"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "nextid"): NodeListOf<HTMLUnknownElement>;
- getElementsByTagName(name: "nobr"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "noframes"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "noscript"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "object"): NodeListOf<HTMLObjectElement>;
- getElementsByTagName(name: "ol"): NodeListOf<HTMLOListElement>;
- getElementsByTagName(name: "optgroup"): NodeListOf<HTMLOptGroupElement>;
- getElementsByTagName(name: "option"): NodeListOf<HTMLOptionElement>;
- getElementsByTagName(name: "p"): NodeListOf<HTMLParagraphElement>;
- getElementsByTagName(name: "param"): NodeListOf<HTMLParamElement>;
- getElementsByTagName(name: "path"): NodeListOf<SVGPathElement>;
- getElementsByTagName(name: "pattern"): NodeListOf<SVGPatternElement>;
- getElementsByTagName(name: "picture"): NodeListOf<HTMLPictureElement>;
- getElementsByTagName(name: "plaintext"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "polygon"): NodeListOf<SVGPolygonElement>;
- getElementsByTagName(name: "polyline"): NodeListOf<SVGPolylineElement>;
- getElementsByTagName(name: "pre"): NodeListOf<HTMLPreElement>;
- getElementsByTagName(name: "progress"): NodeListOf<HTMLProgressElement>;
- getElementsByTagName(name: "q"): NodeListOf<HTMLQuoteElement>;
- getElementsByTagName(name: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
- getElementsByTagName(name: "rect"): NodeListOf<SVGRectElement>;
- getElementsByTagName(name: "rt"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "ruby"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "s"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "samp"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "script"): NodeListOf<HTMLScriptElement>;
- getElementsByTagName(name: "section"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "select"): NodeListOf<HTMLSelectElement>;
- getElementsByTagName(name: "small"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "source"): NodeListOf<HTMLSourceElement>;
- getElementsByTagName(name: "span"): NodeListOf<HTMLSpanElement>;
- getElementsByTagName(name: "stop"): NodeListOf<SVGStopElement>;
- getElementsByTagName(name: "strike"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "strong"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "style"): NodeListOf<HTMLStyleElement>;
- getElementsByTagName(name: "sub"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "sup"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "svg"): NodeListOf<SVGSVGElement>;
- getElementsByTagName(name: "switch"): NodeListOf<SVGSwitchElement>;
- getElementsByTagName(name: "symbol"): NodeListOf<SVGSymbolElement>;
- getElementsByTagName(name: "table"): NodeListOf<HTMLTableElement>;
- getElementsByTagName(name: "tbody"): NodeListOf<HTMLTableSectionElement>;
- getElementsByTagName(name: "td"): NodeListOf<HTMLTableDataCellElement>;
- getElementsByTagName(name: "template"): NodeListOf<HTMLTemplateElement>;
- getElementsByTagName(name: "text"): NodeListOf<SVGTextElement>;
- getElementsByTagName(name: "textpath"): NodeListOf<SVGTextPathElement>;
- getElementsByTagName(name: "textarea"): NodeListOf<HTMLTextAreaElement>;
- getElementsByTagName(name: "tfoot"): NodeListOf<HTMLTableSectionElement>;
- getElementsByTagName(name: "th"): NodeListOf<HTMLTableHeaderCellElement>;
- getElementsByTagName(name: "thead"): NodeListOf<HTMLTableSectionElement>;
- getElementsByTagName(name: "title"): NodeListOf<HTMLTitleElement>;
- getElementsByTagName(name: "tr"): NodeListOf<HTMLTableRowElement>;
- getElementsByTagName(name: "track"): NodeListOf<HTMLTrackElement>;
- getElementsByTagName(name: "tspan"): NodeListOf<SVGTSpanElement>;
- getElementsByTagName(name: "tt"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "u"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "ul"): NodeListOf<HTMLUListElement>;
- getElementsByTagName(name: "use"): NodeListOf<SVGUseElement>;
- getElementsByTagName(name: "var"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "video"): NodeListOf<HTMLVideoElement>;
- getElementsByTagName(name: "view"): NodeListOf<SVGViewElement>;
- getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>;
- getElementsByTagName(name: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
- getElementsByTagName(name: "xmp"): NodeListOf<HTMLPreElement>;
- getElementsByTagName(name: string): NodeListOf<Element>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
- getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;
- hasAttribute(name: string): boolean;
- hasAttributeNS(namespaceURI: string, localName: string): boolean;
- msGetRegionContent(): MSRangeCollection;
- msGetUntransformedBounds(): ClientRect;
- msMatchesSelector(selectors: string): boolean;
- msReleasePointerCapture(pointerId: number): void;
- msSetPointerCapture(pointerId: number): void;
- msZoomTo(args: MsZoomToOptions): void;
- releasePointerCapture(pointerId: number): void;
- removeAttribute(name?: string): void;
- removeAttributeNS(namespaceURI: string, localName: string): void;
- removeAttributeNode(oldAttr: Attr): Attr;
- requestFullscreen(): void;
- requestPointerLock(): void;
- setAttribute(name: string, value: string): void;
- setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
- setAttributeNode(newAttr: Attr): Attr;
- setAttributeNodeNS(newAttr: Attr): Attr;
- setPointerCapture(pointerId: number): void;
- webkitMatchesSelector(selectors: string): boolean;
- webkitRequestFullScreen(): void;
- webkitRequestFullscreen(): void;
- getElementsByClassName(classNames: string): NodeListOf<Element>;
- matches(selector: string): boolean;
- closest(selector: string): Element | null;
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
- scroll(options?: ScrollToOptions): void;
- scroll(x: number, y: number): void;
- scrollTo(options?: ScrollToOptions): void;
- scrollTo(x: number, y: number): void;
- scrollBy(options?: ScrollToOptions): void;
- scrollBy(x: number, y: number): void;
- insertAdjacentElement(position: string, insertedElement: Element): Element | null;
- insertAdjacentHTML(where: string, html: string): void;
- insertAdjacentText(where: string, text: string): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Element: {
- prototype: Element;
- new(): Element;
-}
-
-interface ErrorEvent extends Event {
- readonly colno: number;
- readonly error: any;
- readonly filename: string;
- readonly lineno: number;
- readonly message: string;
- initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
-}
-
-declare var ErrorEvent: {
- prototype: ErrorEvent;
- new(): ErrorEvent;
-}
-
-interface Event {
- readonly bubbles: boolean;
- cancelBubble: boolean;
- readonly cancelable: boolean;
- readonly currentTarget: EventTarget;
- readonly defaultPrevented: boolean;
- readonly eventPhase: number;
- readonly isTrusted: boolean;
- returnValue: boolean;
- readonly srcElement: Element | null;
- readonly target: EventTarget;
- readonly timeStamp: number;
- readonly type: string;
- initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void;
- preventDefault(): void;
- stopImmediatePropagation(): void;
- stopPropagation(): void;
- readonly AT_TARGET: number;
- readonly BUBBLING_PHASE: number;
- readonly CAPTURING_PHASE: number;
-}
-
-declare var Event: {
- prototype: Event;
- new(type: string, eventInitDict?: EventInit): Event;
- readonly AT_TARGET: number;
- readonly BUBBLING_PHASE: number;
- readonly CAPTURING_PHASE: number;
-}
-
-interface EventTarget {
- addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
- dispatchEvent(evt: Event): boolean;
- removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var EventTarget: {
- prototype: EventTarget;
- new(): EventTarget;
-}
-
-interface External {
-}
-
-declare var External: {
- prototype: External;
- new(): External;
-}
-
-interface File extends Blob {
- readonly lastModifiedDate: any;
- readonly name: string;
- readonly webkitRelativePath: string;
-}
-
-declare var File: {
- prototype: File;
- new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File;
-}
-
-interface FileList {
- readonly length: number;
- item(index: number): File;
- [index: number]: File;
-}
-
-declare var FileList: {
- prototype: FileList;
- new(): FileList;
-}
-
-interface FileReader extends EventTarget, MSBaseReader {
- readonly error: DOMError;
- readAsArrayBuffer(blob: Blob): void;
- readAsBinaryString(blob: Blob): void;
- readAsDataURL(blob: Blob): void;
- readAsText(blob: Blob, encoding?: string): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var FileReader: {
- prototype: FileReader;
- new(): FileReader;
-}
-
-interface FocusEvent extends UIEvent {
- readonly relatedTarget: EventTarget;
- initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;
-}
-
-declare var FocusEvent: {
- prototype: FocusEvent;
- new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;
-}
-
-interface FormData {
- append(name: any, value: any, blobName?: string): void;
-}
-
-declare var FormData: {
- prototype: FormData;
- new (form?: HTMLFormElement): FormData;
-}
-
-interface GainNode extends AudioNode {
- readonly gain: AudioParam;
-}
-
-declare var GainNode: {
- prototype: GainNode;
- new(): GainNode;
-}
-
-interface Gamepad {
- readonly axes: number[];
- readonly buttons: GamepadButton[];
- readonly connected: boolean;
- readonly id: string;
- readonly index: number;
- readonly mapping: string;
- readonly timestamp: number;
-}
-
-declare var Gamepad: {
- prototype: Gamepad;
- new(): Gamepad;
-}
-
-interface GamepadButton {
- readonly pressed: boolean;
- readonly value: number;
-}
-
-declare var GamepadButton: {
- prototype: GamepadButton;
- new(): GamepadButton;
-}
-
-interface GamepadEvent extends Event {
- readonly gamepad: Gamepad;
-}
-
-declare var GamepadEvent: {
- prototype: GamepadEvent;
- new(): GamepadEvent;
-}
-
-interface Geolocation {
- clearWatch(watchId: number): void;
- getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
- watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
-}
-
-declare var Geolocation: {
- prototype: Geolocation;
- new(): Geolocation;
-}
-
-interface HTMLAllCollection extends HTMLCollection {
- namedItem(name: string): Element;
-}
-
-declare var HTMLAllCollection: {
- prototype: HTMLAllCollection;
- new(): HTMLAllCollection;
-}
-
-interface HTMLAnchorElement extends HTMLElement {
- Methods: string;
- /**
- * Sets or retrieves the character set used to encode the object.
- */
- charset: string;
- /**
- * Sets or retrieves the coordinates of the object.
- */
- coords: string;
- download: string;
- /**
- * Contains the anchor portion of the URL including the hash sign (#).
- */
- hash: string;
- /**
- * Contains the hostname and port values of the URL.
- */
- host: string;
- /**
- * Contains the hostname of a URL.
- */
- hostname: string;
- /**
- * Sets or retrieves a destination URL or an anchor point.
- */
- href: string;
- /**
- * Sets or retrieves the language code of the object.
- */
- hreflang: string;
- readonly mimeType: string;
- /**
- * Sets or retrieves the shape of the object.
- */
- name: string;
- readonly nameProp: string;
- /**
- * Contains the pathname of the URL.
- */
- pathname: string;
- /**
- * Sets or retrieves the port number associated with a URL.
- */
- port: string;
- /**
- * Contains the protocol of the URL.
- */
- protocol: string;
- readonly protocolLong: string;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
- rel: string;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
- rev: string;
- /**
- * Sets or retrieves the substring of the href property that follows the question mark.
- */
- search: string;
- /**
- * Sets or retrieves the shape of the object.
- */
- shape: string;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- /**
- * Retrieves or sets the text of the object as a string.
- */
- text: string;
- type: string;
- urn: string;
- /**
- * Returns a string representation of an object.
- */
- toString(): string;
-}
-
-declare var HTMLAnchorElement: {
- prototype: HTMLAnchorElement;
- new(): HTMLAnchorElement;
-}
-
-interface HTMLAppletElement extends HTMLElement {
- /**
- * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.
- */
- readonly BaseHref: string;
- align: string;
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- alt: string;
- /**
- * Gets or sets the optional alternative HTML script to execute if the object fails to load.
- */
- altHtml: string;
- /**
- * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
- */
- archive: string;
- border: string;
- code: string;
- /**
- * Sets or retrieves the URL of the component.
- */
- codeBase: string;
- /**
- * Sets or retrieves the Internet media type for the code associated with the object.
- */
- codeType: string;
- /**
- * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned.
- */
- readonly contentDocument: Document;
- /**
- * Sets or retrieves the URL that references the data of the object.
- */
- data: string;
- /**
- * Sets or retrieves a character string that can be used to implement your own declare functionality for the object.
- */
- declare: boolean;
- readonly form: HTMLFormElement;
- /**
- * Sets or retrieves the height of the object.
- */
- height: string;
- hspace: number;
- /**
- * Sets or retrieves the shape of the object.
- */
- name: string;
- object: string | null;
- /**
- * Sets or retrieves a message to be displayed while an object is loading.
- */
- standby: string;
- /**
- * Returns the content type of the object.
- */
- type: string;
- /**
- * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
- */
- useMap: string;
- vspace: number;
- width: number;
-}
-
-declare var HTMLAppletElement: {
- prototype: HTMLAppletElement;
- new(): HTMLAppletElement;
-}
-
-interface HTMLAreaElement extends HTMLElement {
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- alt: string;
- /**
- * Sets or retrieves the coordinates of the object.
- */
- coords: string;
- download: string;
- /**
- * Sets or retrieves the subsection of the href property that follows the number sign (#).
- */
- hash: string;
- /**
- * Sets or retrieves the hostname and port number of the location or URL.
- */
- host: string;
- /**
- * Sets or retrieves the host name part of the location or URL.
- */
- hostname: string;
- /**
- * Sets or retrieves a destination URL or an anchor point.
- */
- href: string;
- /**
- * Sets or gets whether clicks in this region cause action.
- */
- noHref: boolean;
- /**
- * Sets or retrieves the file name or path specified by the object.
- */
- pathname: string;
- /**
- * Sets or retrieves the port number associated with a URL.
- */
- port: string;
- /**
- * Sets or retrieves the protocol portion of a URL.
- */
- protocol: string;
- rel: string;
- /**
- * Sets or retrieves the substring of the href property that follows the question mark.
- */
- search: string;
- /**
- * Sets or retrieves the shape of the object.
- */
- shape: string;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- /**
- * Returns a string representation of an object.
- */
- toString(): string;
-}
-
-declare var HTMLAreaElement: {
- prototype: HTMLAreaElement;
- new(): HTMLAreaElement;
-}
-
-interface HTMLAreasCollection extends HTMLCollection {
- /**
- * Adds an element to the areas, controlRange, or options collection.
- */
- add(element: HTMLElement, before?: HTMLElement | number): void;
- /**
- * Removes an element from the collection.
- */
- remove(index?: number): void;
-}
-
-declare var HTMLAreasCollection: {
- prototype: HTMLAreasCollection;
- new(): HTMLAreasCollection;
-}
-
-interface HTMLAudioElement extends HTMLMediaElement {
-}
-
-declare var HTMLAudioElement: {
- prototype: HTMLAudioElement;
- new(): HTMLAudioElement;
-}
-
-interface HTMLBRElement extends HTMLElement {
- /**
- * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
- */
- clear: string;
-}
-
-declare var HTMLBRElement: {
- prototype: HTMLBRElement;
- new(): HTMLBRElement;
-}
-
-interface HTMLBaseElement extends HTMLElement {
- /**
- * Gets or sets the baseline URL on which relative links are based.
- */
- href: string;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
-}
-
-declare var HTMLBaseElement: {
- prototype: HTMLBaseElement;
- new(): HTMLBaseElement;
-}
-
-interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
- /**
- * Sets or retrieves the current typeface family.
- */
- face: string;
- /**
- * Sets or retrieves the font size of the object.
- */
- size: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBaseFontElement: {
- prototype: HTMLBaseFontElement;
- new(): HTMLBaseFontElement;
-}
-
-interface HTMLBodyElement extends HTMLElement {
- aLink: any;
- background: string;
- bgColor: any;
- bgProperties: string;
- link: any;
- noWrap: boolean;
- onafterprint: (this: this, ev: Event) => any;
- onbeforeprint: (this: this, ev: Event) => any;
- onbeforeunload: (this: this, ev: BeforeUnloadEvent) => any;
- onblur: (this: this, ev: FocusEvent) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- onfocus: (this: this, ev: FocusEvent) => any;
- onhashchange: (this: this, ev: HashChangeEvent) => any;
- onload: (this: this, ev: Event) => any;
- onmessage: (this: this, ev: MessageEvent) => any;
- onoffline: (this: this, ev: Event) => any;
- ononline: (this: this, ev: Event) => any;
- onorientationchange: (this: this, ev: Event) => any;
- onpagehide: (this: this, ev: PageTransitionEvent) => any;
- onpageshow: (this: this, ev: PageTransitionEvent) => any;
- onpopstate: (this: this, ev: PopStateEvent) => any;
- onresize: (this: this, ev: UIEvent) => any;
- onstorage: (this: this, ev: StorageEvent) => any;
- onunload: (this: this, ev: Event) => any;
- text: any;
- vLink: any;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "afterprint", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeprint", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeunload", listener: (this: this, ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "hashchange", listener: (this: this, ev: HashChangeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "message", listener: (this: this, ev: MessageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "offline", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "online", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "orientationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pagehide", listener: (this: this, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pageshow", listener: (this: this, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "popstate", listener: (this: this, ev: PopStateEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "resize", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "storage", listener: (this: this, ev: StorageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "unload", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLBodyElement: {
- prototype: HTMLBodyElement;
- new(): HTMLBodyElement;
-}
-
-interface HTMLButtonElement extends HTMLElement {
- /**
- * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
- */
- autofocus: boolean;
- disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Overrides the action attribute (where the data on a form is sent) on the parent form element.
- */
- formAction: string;
- /**
- * Used to override the encoding (formEnctype attribute) specified on the form element.
- */
- formEnctype: string;
- /**
- * Overrides the submit method attribute previously specified on a form element.
- */
- formMethod: string;
- /**
- * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
- */
- formNoValidate: string;
- /**
- * Overrides the target attribute on a form element.
- */
- formTarget: string;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- status: any;
- /**
- * Gets the classification and default behavior of the button.
- */
- type: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- /**
- * Sets or retrieves the default or selected value of the control.
- */
- value: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
-}
-
-declare var HTMLButtonElement: {
- prototype: HTMLButtonElement;
- new(): HTMLButtonElement;
-}
-
-interface HTMLCanvasElement extends HTMLElement {
- /**
- * Gets or sets the height of a canvas element on a document.
- */
- height: number;
- /**
- * Gets or sets the width of a canvas element on a document.
- */
- width: number;
- /**
- * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
- * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
- */
- getContext(contextId: "2d", contextAttributes?: Canvas2DContextAttributes): CanvasRenderingContext2D | null;
- getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;
- getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null;
- /**
- * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
- */
- msToBlob(): Blob;
- /**
- * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
- * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
- */
- toDataURL(type?: string, ...args: any[]): string;
- toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
-}
-
-declare var HTMLCanvasElement: {
- prototype: HTMLCanvasElement;
- new(): HTMLCanvasElement;
-}
-
-interface HTMLCollection {
- /**
- * Sets or retrieves the number of objects in a collection.
- */
- readonly length: number;
- /**
- * Retrieves an object from various collections.
- */
- item(index: number): Element;
- /**
- * Retrieves a select object or an object from an options collection.
- */
- namedItem(name: string): Element;
- [index: number]: Element;
-}
-
-declare var HTMLCollection: {
- prototype: HTMLCollection;
- new(): HTMLCollection;
-}
-
-interface HTMLDListElement extends HTMLElement {
- compact: boolean;
-}
-
-declare var HTMLDListElement: {
- prototype: HTMLDListElement;
- new(): HTMLDListElement;
-}
-
-interface HTMLDataListElement extends HTMLElement {
- options: HTMLCollectionOf<HTMLOptionElement>;
-}
-
-declare var HTMLDataListElement: {
- prototype: HTMLDataListElement;
- new(): HTMLDataListElement;
-}
-
-interface HTMLDirectoryElement extends HTMLElement {
- compact: boolean;
-}
-
-declare var HTMLDirectoryElement: {
- prototype: HTMLDirectoryElement;
- new(): HTMLDirectoryElement;
-}
-
-interface HTMLDivElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- /**
- * Sets or retrieves whether the browser automatically performs wordwrap.
- */
- noWrap: boolean;
-}
-
-declare var HTMLDivElement: {
- prototype: HTMLDivElement;
- new(): HTMLDivElement;
-}
-
-interface HTMLDocument extends Document {
-}
-
-declare var HTMLDocument: {
- prototype: HTMLDocument;
- new(): HTMLDocument;
-}
-
-interface HTMLElement extends Element {
- accessKey: string;
- readonly children: HTMLCollection;
- contentEditable: string;
- readonly dataset: DOMStringMap;
- dir: string;
- draggable: boolean;
- hidden: boolean;
- hideFocus: boolean;
- innerHTML: string;
- innerText: string;
- readonly isContentEditable: boolean;
- lang: string;
- readonly offsetHeight: number;
- readonly offsetLeft: number;
- readonly offsetParent: Element;
- readonly offsetTop: number;
- readonly offsetWidth: number;
- onabort: (this: this, ev: UIEvent) => any;
- onactivate: (this: this, ev: UIEvent) => any;
- onbeforeactivate: (this: this, ev: UIEvent) => any;
- onbeforecopy: (this: this, ev: ClipboardEvent) => any;
- onbeforecut: (this: this, ev: ClipboardEvent) => any;
- onbeforedeactivate: (this: this, ev: UIEvent) => any;
- onbeforepaste: (this: this, ev: ClipboardEvent) => any;
- onblur: (this: this, ev: FocusEvent) => any;
- oncanplay: (this: this, ev: Event) => any;
- oncanplaythrough: (this: this, ev: Event) => any;
- onchange: (this: this, ev: Event) => any;
- onclick: (this: this, ev: MouseEvent) => any;
- oncontextmenu: (this: this, ev: PointerEvent) => any;
- oncopy: (this: this, ev: ClipboardEvent) => any;
- oncuechange: (this: this, ev: Event) => any;
- oncut: (this: this, ev: ClipboardEvent) => any;
- ondblclick: (this: this, ev: MouseEvent) => any;
- ondeactivate: (this: this, ev: UIEvent) => any;
- ondrag: (this: this, ev: DragEvent) => any;
- ondragend: (this: this, ev: DragEvent) => any;
- ondragenter: (this: this, ev: DragEvent) => any;
- ondragleave: (this: this, ev: DragEvent) => any;
- ondragover: (this: this, ev: DragEvent) => any;
- ondragstart: (this: this, ev: DragEvent) => any;
- ondrop: (this: this, ev: DragEvent) => any;
- ondurationchange: (this: this, ev: Event) => any;
- onemptied: (this: this, ev: Event) => any;
- onended: (this: this, ev: MediaStreamErrorEvent) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- onfocus: (this: this, ev: FocusEvent) => any;
- oninput: (this: this, ev: Event) => any;
- oninvalid: (this: this, ev: Event) => any;
- onkeydown: (this: this, ev: KeyboardEvent) => any;
- onkeypress: (this: this, ev: KeyboardEvent) => any;
- onkeyup: (this: this, ev: KeyboardEvent) => any;
- onload: (this: this, ev: Event) => any;
- onloadeddata: (this: this, ev: Event) => any;
- onloadedmetadata: (this: this, ev: Event) => any;
- onloadstart: (this: this, ev: Event) => any;
- onmousedown: (this: this, ev: MouseEvent) => any;
- onmouseenter: (this: this, ev: MouseEvent) => any;
- onmouseleave: (this: this, ev: MouseEvent) => any;
- onmousemove: (this: this, ev: MouseEvent) => any;
- onmouseout: (this: this, ev: MouseEvent) => any;
- onmouseover: (this: this, ev: MouseEvent) => any;
- onmouseup: (this: this, ev: MouseEvent) => any;
- onmousewheel: (this: this, ev: WheelEvent) => any;
- onmscontentzoom: (this: this, ev: UIEvent) => any;
- onmsmanipulationstatechanged: (this: this, ev: MSManipulationEvent) => any;
- onpaste: (this: this, ev: ClipboardEvent) => any;
- onpause: (this: this, ev: Event) => any;
- onplay: (this: this, ev: Event) => any;
- onplaying: (this: this, ev: Event) => any;
- onprogress: (this: this, ev: ProgressEvent) => any;
- onratechange: (this: this, ev: Event) => any;
- onreset: (this: this, ev: Event) => any;
- onscroll: (this: this, ev: UIEvent) => any;
- onseeked: (this: this, ev: Event) => any;
- onseeking: (this: this, ev: Event) => any;
- onselect: (this: this, ev: UIEvent) => any;
- onselectstart: (this: this, ev: Event) => any;
- onstalled: (this: this, ev: Event) => any;
- onsubmit: (this: this, ev: Event) => any;
- onsuspend: (this: this, ev: Event) => any;
- ontimeupdate: (this: this, ev: Event) => any;
- onvolumechange: (this: this, ev: Event) => any;
- onwaiting: (this: this, ev: Event) => any;
- outerHTML: string;
- outerText: string;
- spellcheck: boolean;
- readonly style: CSSStyleDeclaration;
- tabIndex: number;
- title: string;
- blur(): void;
- click(): void;
- dragDrop(): boolean;
- focus(): void;
- msGetInputContext(): MSInputMethodContext;
- setActive(): void;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLElement: {
- prototype: HTMLElement;
- new(): HTMLElement;
-}
-
-interface HTMLEmbedElement extends HTMLElement, GetSVGDocument {
- /**
- * Sets or retrieves the height of the object.
- */
- height: string;
- hidden: any;
- /**
- * Gets or sets whether the DLNA PlayTo device is available.
- */
- msPlayToDisabled: boolean;
- /**
- * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
- */
- msPlayToPreferredSourceUri: string;
- /**
- * Gets or sets the primary DLNA PlayTo device.
- */
- msPlayToPrimary: boolean;
- /**
- * Gets the source associated with the media element for use by the PlayToManager.
- */
- readonly msPlayToSource: any;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- /**
- * Retrieves the palette used for the embedded document.
- */
- readonly palette: string;
- /**
- * Retrieves the URL of the plug-in used to view an embedded document.
- */
- readonly pluginspage: string;
- readonly readyState: string;
- /**
- * Sets or retrieves a URL to be loaded by the object.
- */
- src: string;
- /**
- * Sets or retrieves the height and width units of the embed object.
- */
- units: string;
- /**
- * Sets or retrieves the width of the object.
- */
- width: string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLEmbedElement: {
- prototype: HTMLEmbedElement;
- new(): HTMLEmbedElement;
-}
-
-interface HTMLFieldSetElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
-}
-
-declare var HTMLFieldSetElement: {
- prototype: HTMLFieldSetElement;
- new(): HTMLFieldSetElement;
-}
-
-interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
- /**
- * Sets or retrieves the current typeface family.
- */
- face: string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFontElement: {
- prototype: HTMLFontElement;
- new(): HTMLFontElement;
-}
-
-interface HTMLFormElement extends HTMLElement {
- /**
- * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
- */
- acceptCharset: string;
- /**
- * Sets or retrieves the URL to which the form content is sent for processing.
- */
- action: string;
- /**
- * Specifies whether autocomplete is applied to an editable text field.
- */
- autocomplete: string;
- /**
- * Retrieves a collection, in source order, of all controls in a given form.
- */
- readonly elements: HTMLCollection;
- /**
- * Sets or retrieves the MIME encoding for the form.
- */
- encoding: string;
- /**
- * Sets or retrieves the encoding type for the form.
- */
- enctype: string;
- /**
- * Sets or retrieves the number of objects in a collection.
- */
- readonly length: number;
- /**
- * Sets or retrieves how to send the form data to the server.
- */
- method: string;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- /**
- * Designates a form that is not validated when submitted.
- */
- noValidate: boolean;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Retrieves a form object or an object from an elements collection.
- * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
- * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
- */
- item(name?: any, index?: any): any;
- /**
- * Retrieves a form object or an object from an elements collection.
- */
- namedItem(name: string): any;
- /**
- * Fires when the user resets a form.
- */
- reset(): void;
- /**
- * Fires when a FORM is about to be submitted.
- */
- submit(): void;
- [name: string]: any;
-}
-
-declare var HTMLFormElement: {
- prototype: HTMLFormElement;
- new(): HTMLFormElement;
-}
-
-interface HTMLFrameElement extends HTMLElement, GetSVGDocument {
- /**
- * Specifies the properties of a border drawn around an object.
- */
- border: string;
- /**
- * Sets or retrieves the border color of the object.
- */
- borderColor: any;
- /**
- * Retrieves the document object of the page or frame.
- */
- readonly contentDocument: Document;
- /**
- * Retrieves the object of the specified.
- */
- readonly contentWindow: Window;
- /**
- * Sets or retrieves whether to display a border for the frame.
- */
- frameBorder: string;
- /**
- * Sets or retrieves the amount of additional space between the frames.
- */
- frameSpacing: any;
- /**
- * Sets or retrieves the height of the object.
- */
- height: string | number;
- /**
- * Sets or retrieves a URI to a long description of the object.
- */
- longDesc: string;
- /**
- * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
- */
- marginHeight: string;
- /**
- * Sets or retrieves the left and right margin widths before displaying the text in a frame.
- */
- marginWidth: string;
- /**
- * Sets or retrieves the frame name.
- */
- name: string;
- /**
- * Sets or retrieves whether the user can resize the frame.
- */
- noResize: boolean;
- /**
- * Raised when the object has been completely received from the server.
- */
- onload: (this: this, ev: Event) => any;
- /**
- * Sets or retrieves whether the frame can be scrolled.
- */
- scrolling: string;
- /**
- * Sets or retrieves a URL to be loaded by the object.
- */
- src: string;
- /**
- * Sets or retrieves the width of the object.
- */
- width: string | number;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameElement: {
- prototype: HTMLFrameElement;
- new(): HTMLFrameElement;
-}
-
-interface HTMLFrameSetElement extends HTMLElement {
- border: string;
- /**
- * Sets or retrieves the border color of the object.
- */
- borderColor: any;
- /**
- * Sets or retrieves the frame widths of the object.
- */
- cols: string;
- /**
- * Sets or retrieves whether to display a border for the frame.
- */
- frameBorder: string;
- /**
- * Sets or retrieves the amount of additional space between the frames.
- */
- frameSpacing: any;
- name: string;
- onafterprint: (this: this, ev: Event) => any;
- onbeforeprint: (this: this, ev: Event) => any;
- onbeforeunload: (this: this, ev: BeforeUnloadEvent) => any;
- /**
- * Fires when the object loses the input focus.
- */
- onblur: (this: this, ev: FocusEvent) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- /**
- * Fires when the object receives focus.
- */
- onfocus: (this: this, ev: FocusEvent) => any;
- onhashchange: (this: this, ev: HashChangeEvent) => any;
- onload: (this: this, ev: Event) => any;
- onmessage: (this: this, ev: MessageEvent) => any;
- onoffline: (this: this, ev: Event) => any;
- ononline: (this: this, ev: Event) => any;
- onorientationchange: (this: this, ev: Event) => any;
- onpagehide: (this: this, ev: PageTransitionEvent) => any;
- onpageshow: (this: this, ev: PageTransitionEvent) => any;
- onresize: (this: this, ev: UIEvent) => any;
- onstorage: (this: this, ev: StorageEvent) => any;
- onunload: (this: this, ev: Event) => any;
- /**
- * Sets or retrieves the frame heights of the object.
- */
- rows: string;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeprint", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeunload", listener: (this: this, ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "hashchange", listener: (this: this, ev: HashChangeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "message", listener: (this: this, ev: MessageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "offline", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "online", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "orientationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pagehide", listener: (this: this, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pageshow", listener: (this: this, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "resize", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "storage", listener: (this: this, ev: StorageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "unload", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLFrameSetElement: {
- prototype: HTMLFrameSetElement;
- new(): HTMLFrameSetElement;
-}
-
-interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- /**
- * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
- */
- noShade: boolean;
- /**
- * Sets or retrieves the width of the object.
- */
- width: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLHRElement: {
- prototype: HTMLHRElement;
- new(): HTMLHRElement;
-}
-
-interface HTMLHeadElement extends HTMLElement {
- profile: string;
-}
-
-declare var HTMLHeadElement: {
- prototype: HTMLHeadElement;
- new(): HTMLHeadElement;
-}
-
-interface HTMLHeadingElement extends HTMLElement {
- /**
- * Sets or retrieves a value that indicates the table alignment.
- */
- align: string;
-}
-
-declare var HTMLHeadingElement: {
- prototype: HTMLHeadingElement;
- new(): HTMLHeadingElement;
-}
-
-interface HTMLHtmlElement extends HTMLElement {
- /**
- * Sets or retrieves the DTD version that governs the current document.
- */
- version: string;
-}
-
-declare var HTMLHtmlElement: {
- prototype: HTMLHtmlElement;
- new(): HTMLHtmlElement;
-}
-
-interface HTMLIFrameElement extends HTMLElement, GetSVGDocument {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- allowFullscreen: boolean;
- /**
- * Specifies the properties of a border drawn around an object.
- */
- border: string;
- /**
- * Retrieves the document object of the page or frame.
- */
- readonly contentDocument: Document;
- /**
- * Retrieves the object of the specified.
- */
- readonly contentWindow: Window;
- /**
- * Sets or retrieves whether to display a border for the frame.
- */
- frameBorder: string;
- /**
- * Sets or retrieves the amount of additional space between the frames.
- */
- frameSpacing: any;
- /**
- * Sets or retrieves the height of the object.
- */
- height: string;
- /**
- * Sets or retrieves the horizontal margin for the object.
- */
- hspace: number;
- /**
- * Sets or retrieves a URI to a long description of the object.
- */
- longDesc: string;
- /**
- * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
- */
- marginHeight: string;
- /**
- * Sets or retrieves the left and right margin widths before displaying the text in a frame.
- */
- marginWidth: string;
- /**
- * Sets or retrieves the frame name.
- */
- name: string;
- /**
- * Sets or retrieves whether the user can resize the frame.
- */
- noResize: boolean;
- /**
- * Raised when the object has been completely received from the server.
- */
- onload: (this: this, ev: Event) => any;
- readonly sandbox: DOMSettableTokenList;
- /**
- * Sets or retrieves whether the frame can be scrolled.
- */
- scrolling: string;
- /**
- * Sets or retrieves a URL to be loaded by the object.
- */
- src: string;
- /**
- * Sets or retrieves the vertical margin for the object.
- */
- vspace: number;
- /**
- * Sets or retrieves the width of the object.
- */
- width: string;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLIFrameElement: {
- prototype: HTMLIFrameElement;
- new(): HTMLIFrameElement;
-}
-
-interface HTMLImageElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- alt: string;
- /**
- * Specifies the properties of a border drawn around an object.
- */
- border: string;
- /**
- * Retrieves whether the object is fully loaded.
- */
- readonly complete: boolean;
- crossOrigin: string;
- readonly currentSrc: string;
- /**
- * Sets or retrieves the height of the object.
- */
- height: number;
- /**
- * Sets or retrieves the width of the border to draw around the object.
- */
- hspace: number;
- /**
- * Sets or retrieves whether the image is a server-side image map.
- */
- isMap: boolean;
- /**
- * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
- */
- longDesc: string;
- lowsrc: string;
- /**
- * Gets or sets whether the DLNA PlayTo device is available.
- */
- msPlayToDisabled: boolean;
- msPlayToPreferredSourceUri: string;
- /**
- * Gets or sets the primary DLNA PlayTo device.
- */
- msPlayToPrimary: boolean;
- /**
- * Gets the source associated with the media element for use by the PlayToManager.
- */
- readonly msPlayToSource: any;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- /**
- * The original height of the image resource before sizing.
- */
- readonly naturalHeight: number;
- /**
- * The original width of the image resource before sizing.
- */
- readonly naturalWidth: number;
- sizes: string;
- /**
- * The address or URL of the a media resource that is to be considered.
- */
- src: string;
- srcset: string;
- /**
- * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
- */
- useMap: string;
- /**
- * Sets or retrieves the vertical margin for the object.
- */
- vspace: number;
- /**
- * Sets or retrieves the width of the object.
- */
- width: number;
- readonly x: number;
- readonly y: number;
- msGetAsCastingSource(): any;
-}
-
-declare var HTMLImageElement: {
- prototype: HTMLImageElement;
- new(): HTMLImageElement;
- create(): HTMLImageElement;
-}
-
-interface HTMLInputElement extends HTMLElement {
- /**
- * Sets or retrieves a comma-separated list of content types.
- */
- accept: string;
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- alt: string;
- /**
- * Specifies whether autocomplete is applied to an editable text field.
- */
- autocomplete: string;
- /**
- * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
- */
- autofocus: boolean;
- /**
- * Sets or retrieves the width of the border to draw around the object.
- */
- border: string;
- /**
- * Sets or retrieves the state of the check box or radio button.
- */
- checked: boolean;
- /**
- * Retrieves whether the object is fully loaded.
- */
- readonly complete: boolean;
- /**
- * Sets or retrieves the state of the check box or radio button.
- */
- defaultChecked: boolean;
- /**
- * Sets or retrieves the initial contents of the object.
- */
- defaultValue: string;
- disabled: boolean;
- /**
- * Returns a FileList object on a file type input object.
- */
- readonly files: FileList | null;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Overrides the action attribute (where the data on a form is sent) on the parent form element.
- */
- formAction: string;
- /**
- * Used to override the encoding (formEnctype attribute) specified on the form element.
- */
- formEnctype: string;
- /**
- * Overrides the submit method attribute previously specified on a form element.
- */
- formMethod: string;
- /**
- * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
- */
- formNoValidate: string;
- /**
- * Overrides the target attribute on a form element.
- */
- formTarget: string;
- /**
- * Sets or retrieves the height of the object.
- */
- height: string;
- /**
- * Sets or retrieves the width of the border to draw around the object.
- */
- hspace: number;
- indeterminate: boolean;
- /**
- * Specifies the ID of a pre-defined datalist of options for an input element.
- */
- readonly list: HTMLElement;
- /**
- * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
- */
- max: string;
- /**
- * Sets or retrieves the maximum number of characters that the user can enter in a text control.
- */
- maxLength: number;
- /**
- * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
- */
- min: string;
- /**
- * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
- */
- multiple: boolean;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- /**
- * Gets or sets a string containing a regular expression that the user's input must match.
- */
- pattern: string;
- /**
- * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
- */
- placeholder: string;
- readOnly: boolean;
- /**
- * When present, marks an element that can't be submitted without a value.
- */
- required: boolean;
- selectionDirection: string;
- /**
- * Gets or sets the end position or offset of a text selection.
- */
- selectionEnd: number;
- /**
- * Gets or sets the starting position or offset of a text selection.
- */
- selectionStart: number;
- size: number;
- /**
- * The address or URL of the a media resource that is to be considered.
- */
- src: string;
- status: boolean;
- /**
- * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
- */
- step: string;
- /**
- * Returns the content type of the object.
- */
- type: string;
- /**
- * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
- */
- useMap: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- /**
- * Returns the value of the data at the cursor's current position.
- */
- value: string;
- valueAsDate: Date;
- /**
- * Returns the input field value as a number.
- */
- valueAsNumber: number;
- /**
- * Sets or retrieves the vertical margin for the object.
- */
- vspace: number;
- webkitdirectory: boolean;
- /**
- * Sets or retrieves the width of the object.
- */
- width: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
- minLength: number;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Makes the selection equal to the current object.
- */
- select(): void;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- /**
- * Sets the start and end positions of a selection in a text field.
- * @param start The offset into the text field for the start of the selection.
- * @param end The offset into the text field for the end of the selection.
- */
- setSelectionRange(start?: number, end?: number, direction?: string): void;
- /**
- * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
- * @param n Value to decrement the value by.
- */
- stepDown(n?: number): void;
- /**
- * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
- * @param n Value to increment the value by.
- */
- stepUp(n?: number): void;
-}
-
-declare var HTMLInputElement: {
- prototype: HTMLInputElement;
- new(): HTMLInputElement;
-}
-
-interface HTMLLIElement extends HTMLElement {
- type: string;
- /**
- * Sets or retrieves the value of a list item.
- */
- value: number;
-}
-
-declare var HTMLLIElement: {
- prototype: HTMLLIElement;
- new(): HTMLLIElement;
-}
-
-interface HTMLLabelElement extends HTMLElement {
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Sets or retrieves the object to which the given label object is assigned.
- */
- htmlFor: string;
-}
-
-declare var HTMLLabelElement: {
- prototype: HTMLLabelElement;
- new(): HTMLLabelElement;
-}
-
-interface HTMLLegendElement extends HTMLElement {
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- align: string;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
-}
-
-declare var HTMLLegendElement: {
- prototype: HTMLLegendElement;
- new(): HTMLLegendElement;
-}
-
-interface HTMLLinkElement extends HTMLElement, LinkStyle {
- /**
- * Sets or retrieves the character set used to encode the object.
- */
- charset: string;
- disabled: boolean;
- /**
- * Sets or retrieves a destination URL or an anchor point.
- */
- href: string;
- /**
- * Sets or retrieves the language code of the object.
- */
- hreflang: string;
- /**
- * Sets or retrieves the media type.
- */
- media: string;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
- rel: string;
- /**
- * Sets or retrieves the relationship between the object and the destination of the link.
- */
- rev: string;
- /**
- * Sets or retrieves the window or frame at which to target content.
- */
- target: string;
- /**
- * Sets or retrieves the MIME type of the object.
- */
- type: string;
- import?: Document;
- integrity: string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLLinkElement: {
- prototype: HTMLLinkElement;
- new(): HTMLLinkElement;
-}
-
-interface HTMLMapElement extends HTMLElement {
- /**
- * Retrieves a collection of the area objects defined for the given map object.
- */
- readonly areas: HTMLAreasCollection;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
-}
-
-declare var HTMLMapElement: {
- prototype: HTMLMapElement;
- new(): HTMLMapElement;
-}
-
-interface HTMLMarqueeElement extends HTMLElement {
- behavior: string;
- bgColor: any;
- direction: string;
- height: string;
- hspace: number;
- loop: number;
- onbounce: (this: this, ev: Event) => any;
- onfinish: (this: this, ev: Event) => any;
- onstart: (this: this, ev: Event) => any;
- scrollAmount: number;
- scrollDelay: number;
- trueSpeed: boolean;
- vspace: number;
- width: string;
- start(): void;
- stop(): void;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "bounce", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "finish", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "start", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMarqueeElement: {
- prototype: HTMLMarqueeElement;
- new(): HTMLMarqueeElement;
-}
-
-interface HTMLMediaElement extends HTMLElement {
- /**
- * Returns an AudioTrackList object with the audio tracks for a given video element.
- */
- readonly audioTracks: AudioTrackList;
- /**
- * Gets or sets a value that indicates whether to start playing the media automatically.
- */
- autoplay: boolean;
- /**
- * Gets a collection of buffered time ranges.
- */
- readonly buffered: TimeRanges;
- /**
- * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
- */
- controls: boolean;
- crossOrigin: string;
- /**
- * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
- */
- readonly currentSrc: string;
- /**
- * Gets or sets the current playback position, in seconds.
- */
- currentTime: number;
- defaultMuted: boolean;
- /**
- * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
- */
- defaultPlaybackRate: number;
- /**
- * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
- */
- readonly duration: number;
- /**
- * Gets information about whether the playback has ended or not.
- */
- readonly ended: boolean;
- /**
- * Returns an object representing the current error state of the audio or video element.
- */
- readonly error: MediaError;
- /**
- * Gets or sets a flag to specify whether playback should restart after it completes.
- */
- loop: boolean;
- readonly mediaKeys: MediaKeys | null;
- /**
- * Specifies the purpose of the audio or video media, such as background audio or alerts.
- */
- msAudioCategory: string;
- /**
- * Specifies the output device id that the audio will be sent to.
- */
- msAudioDeviceType: string;
- readonly msGraphicsTrustStatus: MSGraphicsTrust;
- /**
- * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.
- */
- readonly msKeys: MSMediaKeys;
- /**
- * Gets or sets whether the DLNA PlayTo device is available.
- */
- msPlayToDisabled: boolean;
- /**
- * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
- */
- msPlayToPreferredSourceUri: string;
- /**
- * Gets or sets the primary DLNA PlayTo device.
- */
- msPlayToPrimary: boolean;
- /**
- * Gets the source associated with the media element for use by the PlayToManager.
- */
- readonly msPlayToSource: any;
- /**
- * Specifies whether or not to enable low-latency playback on the media element.
- */
- msRealTime: boolean;
- /**
- * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
- */
- muted: boolean;
- /**
- * Gets the current network activity for the element.
- */
- readonly networkState: number;
- onencrypted: (this: this, ev: MediaEncryptedEvent) => any;
- onmsneedkey: (this: this, ev: MSMediaKeyNeededEvent) => any;
- /**
- * Gets a flag that specifies whether playback is paused.
- */
- readonly paused: boolean;
- /**
- * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
- */
- playbackRate: number;
- /**
- * Gets TimeRanges for the current media resource that has been played.
- */
- readonly played: TimeRanges;
- /**
- * Gets or sets the current playback position, in seconds.
- */
- preload: string;
- readyState: number;
- /**
- * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
- */
- readonly seekable: TimeRanges;
- /**
- * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.
- */
- readonly seeking: boolean;
- /**
- * The address or URL of the a media resource that is to be considered.
- */
- src: string;
- srcObject: MediaStream | null;
- readonly textTracks: TextTrackList;
- readonly videoTracks: VideoTrackList;
- /**
- * Gets or sets the volume level for audio portions of the media element.
- */
- volume: number;
- addTextTrack(kind: string, label?: string, language?: string): TextTrack;
- /**
- * Returns a string that specifies whether the client can play a given media resource type.
- */
- canPlayType(type: string): string;
- /**
- * Resets the audio or video object and loads a new media resource.
- */
- load(): void;
- /**
- * Clears all effects from the media pipeline.
- */
- msClearEffects(): void;
- msGetAsCastingSource(): any;
- /**
- * Inserts the specified audio effect into media pipeline.
- */
- msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
- msSetMediaKeys(mediaKeys: MSMediaKeys): void;
- /**
- * Specifies the media protection manager for a given media pipeline.
- */
- msSetMediaProtectionManager(mediaProtectionManager?: any): void;
- /**
- * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.
- */
- pause(): void;
- /**
- * Loads and starts playback of a media resource.
- */
- play(): void;
- setMediaKeys(mediaKeys: MediaKeys | null): PromiseLike<void>;
- readonly HAVE_CURRENT_DATA: number;
- readonly HAVE_ENOUGH_DATA: number;
- readonly HAVE_FUTURE_DATA: number;
- readonly HAVE_METADATA: number;
- readonly HAVE_NOTHING: number;
- readonly NETWORK_EMPTY: number;
- readonly NETWORK_IDLE: number;
- readonly NETWORK_LOADING: number;
- readonly NETWORK_NO_SOURCE: number;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "encrypted", listener: (this: this, ev: MediaEncryptedEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "msneedkey", listener: (this: this, ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLMediaElement: {
- prototype: HTMLMediaElement;
- new(): HTMLMediaElement;
- readonly HAVE_CURRENT_DATA: number;
- readonly HAVE_ENOUGH_DATA: number;
- readonly HAVE_FUTURE_DATA: number;
- readonly HAVE_METADATA: number;
- readonly HAVE_NOTHING: number;
- readonly NETWORK_EMPTY: number;
- readonly NETWORK_IDLE: number;
- readonly NETWORK_LOADING: number;
- readonly NETWORK_NO_SOURCE: number;
-}
-
-interface HTMLMenuElement extends HTMLElement {
- compact: boolean;
- type: string;
-}
-
-declare var HTMLMenuElement: {
- prototype: HTMLMenuElement;
- new(): HTMLMenuElement;
-}
-
-interface HTMLMetaElement extends HTMLElement {
- /**
- * Sets or retrieves the character set used to encode the object.
- */
- charset: string;
- /**
- * Gets or sets meta-information to associate with httpEquiv or name.
- */
- content: string;
- /**
- * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
- */
- httpEquiv: string;
- /**
- * Sets or retrieves the value specified in the content attribute of the meta object.
- */
- name: string;
- /**
- * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
- */
- scheme: string;
- /**
- * Sets or retrieves the URL property that will be loaded after the specified time has elapsed.
- */
- url: string;
-}
-
-declare var HTMLMetaElement: {
- prototype: HTMLMetaElement;
- new(): HTMLMetaElement;
-}
-
-interface HTMLMeterElement extends HTMLElement {
- high: number;
- low: number;
- max: number;
- min: number;
- optimum: number;
- value: number;
-}
-
-declare var HTMLMeterElement: {
- prototype: HTMLMeterElement;
- new(): HTMLMeterElement;
-}
-
-interface HTMLModElement extends HTMLElement {
- /**
- * Sets or retrieves reference information about the object.
- */
- cite: string;
- /**
- * Sets or retrieves the date and time of a modification to the object.
- */
- dateTime: string;
-}
-
-declare var HTMLModElement: {
- prototype: HTMLModElement;
- new(): HTMLModElement;
-}
-
-interface HTMLOListElement extends HTMLElement {
- compact: boolean;
- /**
- * The starting number.
- */
- start: number;
- type: string;
-}
-
-declare var HTMLOListElement: {
- prototype: HTMLOListElement;
- new(): HTMLOListElement;
-}
-
-interface HTMLObjectElement extends HTMLElement, GetSVGDocument {
- /**
- * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.
- */
- readonly BaseHref: string;
- align: string;
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- alt: string;
- /**
- * Gets or sets the optional alternative HTML script to execute if the object fails to load.
- */
- altHtml: string;
- /**
- * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
- */
- archive: string;
- border: string;
- /**
- * Sets or retrieves the URL of the file containing the compiled Java class.
- */
- code: string;
- /**
- * Sets or retrieves the URL of the component.
- */
- codeBase: string;
- /**
- * Sets or retrieves the Internet media type for the code associated with the object.
- */
- codeType: string;
- /**
- * Retrieves the document object of the page or frame.
- */
- readonly contentDocument: Document;
- /**
- * Sets or retrieves the URL that references the data of the object.
- */
- data: string;
- declare: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Sets or retrieves the height of the object.
- */
- height: string;
- hspace: number;
- /**
- * Gets or sets whether the DLNA PlayTo device is available.
- */
- msPlayToDisabled: boolean;
- /**
- * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.
- */
- msPlayToPreferredSourceUri: string;
- /**
- * Gets or sets the primary DLNA PlayTo device.
- */
- msPlayToPrimary: boolean;
- /**
- * Gets the source associated with the media element for use by the PlayToManager.
- */
- readonly msPlayToSource: any;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- /**
- * Retrieves the contained object.
- */
- readonly object: any;
- readonly readyState: number;
- /**
- * Sets or retrieves a message to be displayed while an object is loading.
- */
- standby: string;
- /**
- * Sets or retrieves the MIME type of the object.
- */
- type: string;
- /**
- * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
- */
- useMap: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- vspace: number;
- /**
- * Sets or retrieves the width of the object.
- */
- width: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLObjectElement: {
- prototype: HTMLObjectElement;
- new(): HTMLObjectElement;
-}
-
-interface HTMLOptGroupElement extends HTMLElement {
- /**
- * Sets or retrieves the status of an option.
- */
- defaultSelected: boolean;
- disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Sets or retrieves the ordinal position of an option in a list box.
- */
- readonly index: number;
- /**
- * Sets or retrieves a value that you can use to implement your own label functionality for the object.
- */
- label: string;
- /**
- * Sets or retrieves whether the option in the list box is the default item.
- */
- selected: boolean;
- /**
- * Sets or retrieves the text string specified by the option tag.
- */
- readonly text: string;
- /**
- * Sets or retrieves the value which is returned to the server when the form control is submitted.
- */
- value: string;
-}
-
-declare var HTMLOptGroupElement: {
- prototype: HTMLOptGroupElement;
- new(): HTMLOptGroupElement;
-}
-
-interface HTMLOptionElement extends HTMLElement {
- /**
- * Sets or retrieves the status of an option.
- */
- defaultSelected: boolean;
- disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Sets or retrieves the ordinal position of an option in a list box.
- */
- readonly index: number;
- /**
- * Sets or retrieves a value that you can use to implement your own label functionality for the object.
- */
- label: string;
- /**
- * Sets or retrieves whether the option in the list box is the default item.
- */
- selected: boolean;
- /**
- * Sets or retrieves the text string specified by the option tag.
- */
- text: string;
- /**
- * Sets or retrieves the value which is returned to the server when the form control is submitted.
- */
- value: string;
-}
-
-declare var HTMLOptionElement: {
- prototype: HTMLOptionElement;
- new(): HTMLOptionElement;
- create(): HTMLOptionElement;
-}
-
-interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
- length: number;
- selectedIndex: number;
- add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number): void;
- remove(index: number): void;
-}
-
-declare var HTMLOptionsCollection: {
- prototype: HTMLOptionsCollection;
- new(): HTMLOptionsCollection;
-}
-
-interface HTMLParagraphElement extends HTMLElement {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- clear: string;
-}
-
-declare var HTMLParagraphElement: {
- prototype: HTMLParagraphElement;
- new(): HTMLParagraphElement;
-}
-
-interface HTMLParamElement extends HTMLElement {
- /**
- * Sets or retrieves the name of an input parameter for an element.
- */
- name: string;
- /**
- * Sets or retrieves the content type of the resource designated by the value attribute.
- */
- type: string;
- /**
- * Sets or retrieves the value of an input parameter for an element.
- */
- value: string;
- /**
- * Sets or retrieves the data type of the value attribute.
- */
- valueType: string;
-}
-
-declare var HTMLParamElement: {
- prototype: HTMLParamElement;
- new(): HTMLParamElement;
-}
-
-interface HTMLPictureElement extends HTMLElement {
-}
-
-declare var HTMLPictureElement: {
- prototype: HTMLPictureElement;
- new(): HTMLPictureElement;
-}
-
-interface HTMLPreElement extends HTMLElement {
- /**
- * Sets or gets a value that you can use to implement your own width functionality for the object.
- */
- width: number;
-}
-
-declare var HTMLPreElement: {
- prototype: HTMLPreElement;
- new(): HTMLPreElement;
-}
-
-interface HTMLProgressElement extends HTMLElement {
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Defines the maximum, or "done" value for a progress element.
- */
- max: number;
- /**
- * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
- */
- readonly position: number;
- /**
- * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
- */
- value: number;
-}
-
-declare var HTMLProgressElement: {
- prototype: HTMLProgressElement;
- new(): HTMLProgressElement;
-}
-
-interface HTMLQuoteElement extends HTMLElement {
- /**
- * Sets or retrieves reference information about the object.
- */
- cite: string;
-}
-
-declare var HTMLQuoteElement: {
- prototype: HTMLQuoteElement;
- new(): HTMLQuoteElement;
-}
-
-interface HTMLScriptElement extends HTMLElement {
- async: boolean;
- /**
- * Sets or retrieves the character set used to encode the object.
- */
- charset: string;
- /**
- * Sets or retrieves the status of the script.
- */
- defer: boolean;
- /**
- * Sets or retrieves the event for which the script is written.
- */
- event: string;
- /**
- * Sets or retrieves the object that is bound to the event script.
- */
- htmlFor: string;
- /**
- * Retrieves the URL to an external file that contains the source code or data.
- */
- src: string;
- /**
- * Retrieves or sets the text of the object as a string.
- */
- text: string;
- /**
- * Sets or retrieves the MIME type for the associated scripting engine.
- */
- type: string;
- integrity: string;
-}
-
-declare var HTMLScriptElement: {
- prototype: HTMLScriptElement;
- new(): HTMLScriptElement;
-}
-
-interface HTMLSelectElement extends HTMLElement {
- /**
- * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
- */
- autofocus: boolean;
- disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Sets or retrieves the number of objects in a collection.
- */
- length: number;
- /**
- * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
- */
- multiple: boolean;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- readonly options: HTMLOptionsCollection;
- /**
- * When present, marks an element that can't be submitted without a value.
- */
- required: boolean;
- /**
- * Sets or retrieves the index of the selected option in a select object.
- */
- selectedIndex: number;
- selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
- /**
- * Sets or retrieves the number of rows in the list box.
- */
- size: number;
- /**
- * Retrieves the type of select control based on the value of the MULTIPLE attribute.
- */
- readonly type: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- /**
- * Sets or retrieves the value which is returned to the server when the form control is submitted.
- */
- value: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
- /**
- * Adds an element to the areas, controlRange, or options collection.
- * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
- * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
- */
- add(element: HTMLElement, before?: HTMLElement | number): void;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Retrieves a select object or an object from an options collection.
- * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
- * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
- */
- item(name?: any, index?: any): any;
- /**
- * Retrieves a select object or an object from an options collection.
- * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
- */
- namedItem(name: string): any;
- /**
- * Removes an element from the collection.
- * @param index Number that specifies the zero-based index of the element to remove from the collection.
- */
- remove(index?: number): void;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- [name: string]: any;
-}
-
-declare var HTMLSelectElement: {
- prototype: HTMLSelectElement;
- new(): HTMLSelectElement;
-}
-
-interface HTMLSourceElement extends HTMLElement {
- /**
- * Gets or sets the intended media type of the media source.
- */
- media: string;
- msKeySystem: string;
- sizes: string;
- /**
- * The address or URL of the a media resource that is to be considered.
- */
- src: string;
- srcset: string;
- /**
- * Gets or sets the MIME type of a media resource.
- */
- type: string;
-}
-
-declare var HTMLSourceElement: {
- prototype: HTMLSourceElement;
- new(): HTMLSourceElement;
-}
-
-interface HTMLSpanElement extends HTMLElement {
-}
-
-declare var HTMLSpanElement: {
- prototype: HTMLSpanElement;
- new(): HTMLSpanElement;
-}
-
-interface HTMLStyleElement extends HTMLElement, LinkStyle {
- disabled: boolean;
- /**
- * Sets or retrieves the media type.
- */
- media: string;
- /**
- * Retrieves the CSS language in which the style sheet is written.
- */
- type: string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLStyleElement: {
- prototype: HTMLStyleElement;
- new(): HTMLStyleElement;
-}
-
-interface HTMLTableCaptionElement extends HTMLElement {
- /**
- * Sets or retrieves the alignment of the caption or legend.
- */
- align: string;
- /**
- * Sets or retrieves whether the caption appears at the top or bottom of the table.
- */
- vAlign: string;
-}
-
-declare var HTMLTableCaptionElement: {
- prototype: HTMLTableCaptionElement;
- new(): HTMLTableCaptionElement;
-}
-
-interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment {
- /**
- * Sets or retrieves abbreviated text for the object.
- */
- abbr: string;
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- /**
- * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
- */
- axis: string;
- bgColor: any;
- /**
- * Retrieves the position of the object in the cells collection of a row.
- */
- readonly cellIndex: number;
- /**
- * Sets or retrieves the number columns in the table that the object should span.
- */
- colSpan: number;
- /**
- * Sets or retrieves a list of header cells that provide information for the object.
- */
- headers: string;
- /**
- * Sets or retrieves the height of the object.
- */
- height: any;
- /**
- * Sets or retrieves whether the browser automatically performs wordwrap.
- */
- noWrap: boolean;
- /**
- * Sets or retrieves how many rows in a table the cell should span.
- */
- rowSpan: number;
- /**
- * Sets or retrieves the group of cells in a table to which the object's information applies.
- */
- scope: string;
- /**
- * Sets or retrieves the width of the object.
- */
- width: string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableCellElement: {
- prototype: HTMLTableCellElement;
- new(): HTMLTableCellElement;
-}
-
-interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment {
- /**
- * Sets or retrieves the alignment of the object relative to the display or table.
- */
- align: string;
- /**
- * Sets or retrieves the number of columns in the group.
- */
- span: number;
- /**
- * Sets or retrieves the width of the object.
- */
- width: any;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableColElement: {
- prototype: HTMLTableColElement;
- new(): HTMLTableColElement;
-}
-
-interface HTMLTableDataCellElement extends HTMLTableCellElement {
-}
-
-declare var HTMLTableDataCellElement: {
- prototype: HTMLTableDataCellElement;
- new(): HTMLTableDataCellElement;
-}
-
-interface HTMLTableElement extends HTMLElement {
- /**
- * Sets or retrieves a value that indicates the table alignment.
- */
- align: string;
- bgColor: any;
- /**
- * Sets or retrieves the width of the border to draw around the object.
- */
- border: string;
- /**
- * Sets or retrieves the border color of the object.
- */
- borderColor: any;
- /**
- * Retrieves the caption object of a table.
- */
- caption: HTMLTableCaptionElement;
- /**
- * Sets or retrieves the amount of space between the border of the cell and the content of the cell.
- */
- cellPadding: string;
- /**
- * Sets or retrieves the amount of space between cells in a table.
- */
- cellSpacing: string;
- /**
- * Sets or retrieves the number of columns in the table.
- */
- cols: number;
- /**
- * Sets or retrieves the way the border frame around the table is displayed.
- */
- frame: string;
- /**
- * Sets or retrieves the height of the object.
- */
- height: any;
- /**
- * Sets or retrieves the number of horizontal rows contained in the object.
- */
- rows: HTMLCollectionOf<HTMLTableRowElement>;
- /**
- * Sets or retrieves which dividing lines (inner borders) are displayed.
- */
- rules: string;
- /**
- * Sets or retrieves a description and/or structure of the object.
- */
- summary: string;
- /**
- * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
- */
- tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
- /**
- * Retrieves the tFoot object of the table.
- */
- tFoot: HTMLTableSectionElement;
- /**
- * Retrieves the tHead object of the table.
- */
- tHead: HTMLTableSectionElement;
- /**
- * Sets or retrieves the width of the object.
- */
- width: string;
- /**
- * Creates an empty caption element in the table.
- */
- createCaption(): HTMLTableCaptionElement;
- /**
- * Creates an empty tBody element in the table.
- */
- createTBody(): HTMLTableSectionElement;
- /**
- * Creates an empty tFoot element in the table.
- */
- createTFoot(): HTMLTableSectionElement;
- /**
- * Returns the tHead element object if successful, or null otherwise.
- */
- createTHead(): HTMLTableSectionElement;
- /**
- * Deletes the caption element and its contents from the table.
- */
- deleteCaption(): void;
- /**
- * Removes the specified row (tr) from the element and from the rows collection.
- * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
- */
- deleteRow(index?: number): void;
- /**
- * Deletes the tFoot element and its contents from the table.
- */
- deleteTFoot(): void;
- /**
- * Deletes the tHead element and its contents from the table.
- */
- deleteTHead(): void;
- /**
- * Creates a new row (tr) in the table, and adds the row to the rows collection.
- * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
- */
- insertRow(index?: number): HTMLTableRowElement;
-}
-
-declare var HTMLTableElement: {
- prototype: HTMLTableElement;
- new(): HTMLTableElement;
-}
-
-interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
- /**
- * Sets or retrieves the group of cells in a table to which the object's information applies.
- */
- scope: string;
-}
-
-declare var HTMLTableHeaderCellElement: {
- prototype: HTMLTableHeaderCellElement;
- new(): HTMLTableHeaderCellElement;
-}
-
-interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
- /**
- * Sets or retrieves how the object is aligned with adjacent text.
- */
- align: string;
- bgColor: any;
- /**
- * Retrieves a collection of all cells in the table row.
- */
- cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;
- /**
- * Sets or retrieves the height of the object.
- */
- height: any;
- /**
- * Retrieves the position of the object in the rows collection for the table.
- */
- readonly rowIndex: number;
- /**
- * Retrieves the position of the object in the collection.
- */
- readonly sectionRowIndex: number;
- /**
- * Removes the specified cell from the table row, as well as from the cells collection.
- * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
- */
- deleteCell(index?: number): void;
- /**
- * Creates a new cell in the table row, and adds the cell to the cells collection.
- * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
- */
- insertCell(index?: number): HTMLTableDataCellElement;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableRowElement: {
- prototype: HTMLTableRowElement;
- new(): HTMLTableRowElement;
-}
-
-interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
- /**
- * Sets or retrieves a value that indicates the table alignment.
- */
- align: string;
- /**
- * Sets or retrieves the number of horizontal rows contained in the object.
- */
- rows: HTMLCollectionOf<HTMLTableRowElement>;
- /**
- * Removes the specified row (tr) from the element and from the rows collection.
- * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
- */
- deleteRow(index?: number): void;
- /**
- * Creates a new row (tr) in the table, and adds the row to the rows collection.
- * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
- */
- insertRow(index?: number): HTMLTableRowElement;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLTableSectionElement: {
- prototype: HTMLTableSectionElement;
- new(): HTMLTableSectionElement;
-}
-
-interface HTMLTemplateElement extends HTMLElement {
- readonly content: DocumentFragment;
-}
-
-declare var HTMLTemplateElement: {
- prototype: HTMLTemplateElement;
- new(): HTMLTemplateElement;
-}
-
-interface HTMLTextAreaElement extends HTMLElement {
- /**
- * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
- */
- autofocus: boolean;
- /**
- * Sets or retrieves the width of the object.
- */
- cols: number;
- /**
- * Sets or retrieves the initial contents of the object.
- */
- defaultValue: string;
- disabled: boolean;
- /**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement;
- /**
- * Sets or retrieves the maximum number of characters that the user can enter in a text control.
- */
- maxLength: number;
- /**
- * Sets or retrieves the name of the object.
- */
- name: string;
- /**
- * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
- */
- placeholder: string;
- /**
- * Sets or retrieves the value indicated whether the content of the object is read-only.
- */
- readOnly: boolean;
- /**
- * When present, marks an element that can't be submitted without a value.
- */
- required: boolean;
- /**
- * Sets or retrieves the number of horizontal rows contained in the object.
- */
- rows: number;
- /**
- * Gets or sets the end position or offset of a text selection.
- */
- selectionEnd: number;
- /**
- * Gets or sets the starting position or offset of a text selection.
- */
- selectionStart: number;
- /**
- * Sets or retrieves the value indicating whether the control is selected.
- */
- status: any;
- /**
- * Retrieves the type of control.
- */
- readonly type: string;
- /**
- * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
- */
- readonly validationMessage: string;
- /**
- * Returns a ValidityState object that represents the validity states of an element.
- */
- readonly validity: ValidityState;
- /**
- * Retrieves or sets the text in the entry field of the textArea element.
- */
- value: string;
- /**
- * Returns whether an element will successfully validate based on forms validation rules and constraints.
- */
- readonly willValidate: boolean;
- /**
- * Sets or retrieves how to handle wordwrapping in the object.
- */
- wrap: string;
- minLength: number;
- /**
- * Returns whether a form will validate when it is submitted, without having to submit it.
- */
- checkValidity(): boolean;
- /**
- * Highlights the input area of a form element.
- */
- select(): void;
- /**
- * Sets a custom error message that is displayed when a form is submitted.
- * @param error Sets a custom error message that is displayed when a form is submitted.
- */
- setCustomValidity(error: string): void;
- /**
- * Sets the start and end positions of a selection in a text field.
- * @param start The offset into the text field for the start of the selection.
- * @param end The offset into the text field for the end of the selection.
- */
- setSelectionRange(start: number, end: number): void;
-}
-
-declare var HTMLTextAreaElement: {
- prototype: HTMLTextAreaElement;
- new(): HTMLTextAreaElement;
-}
-
-interface HTMLTitleElement extends HTMLElement {
- /**
- * Retrieves or sets the text of the object as a string.
- */
- text: string;
-}
-
-declare var HTMLTitleElement: {
- prototype: HTMLTitleElement;
- new(): HTMLTitleElement;
-}
-
-interface HTMLTrackElement extends HTMLElement {
- default: boolean;
- kind: string;
- label: string;
- readonly readyState: number;
- src: string;
- srclang: string;
- readonly track: TextTrack;
- readonly ERROR: number;
- readonly LOADED: number;
- readonly LOADING: number;
- readonly NONE: number;
-}
-
-declare var HTMLTrackElement: {
- prototype: HTMLTrackElement;
- new(): HTMLTrackElement;
- readonly ERROR: number;
- readonly LOADED: number;
- readonly LOADING: number;
- readonly NONE: number;
-}
-
-interface HTMLUListElement extends HTMLElement {
- compact: boolean;
- type: string;
-}
-
-declare var HTMLUListElement: {
- prototype: HTMLUListElement;
- new(): HTMLUListElement;
-}
-
-interface HTMLUnknownElement extends HTMLElement {
-}
-
-declare var HTMLUnknownElement: {
- prototype: HTMLUnknownElement;
- new(): HTMLUnknownElement;
-}
-
-interface HTMLVideoElement extends HTMLMediaElement {
- /**
- * Gets or sets the height of the video element.
- */
- height: number;
- msHorizontalMirror: boolean;
- readonly msIsLayoutOptimalForPlayback: boolean;
- readonly msIsStereo3D: boolean;
- msStereo3DPackingMode: string;
- msStereo3DRenderMode: string;
- msZoom: boolean;
- onMSVideoFormatChanged: (this: this, ev: Event) => any;
- onMSVideoFrameStepCompleted: (this: this, ev: Event) => any;
- onMSVideoOptimalLayoutChanged: (this: this, ev: Event) => any;
- /**
- * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
- */
- poster: string;
- /**
- * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
- */
- readonly videoHeight: number;
- /**
- * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
- */
- readonly videoWidth: number;
- readonly webkitDisplayingFullscreen: boolean;
- readonly webkitSupportsFullscreen: boolean;
- /**
- * Gets or sets the width of the video element.
- */
- width: number;
- getVideoPlaybackQuality(): VideoPlaybackQuality;
- msFrameStep(forward: boolean): void;
- msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
- msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;
- webkitEnterFullScreen(): void;
- webkitEnterFullscreen(): void;
- webkitExitFullScreen(): void;
- webkitExitFullscreen(): void;
- addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSManipulationStateChanged", listener: (this: this, ev: MSManipulationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSVideoFormatChanged", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "MSVideoFrameStepCompleted", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "MSVideoOptimalLayoutChanged", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "activate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecopy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforecut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforedeactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "beforepaste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "copy", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "cut", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deactivate", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "encrypted", listener: (this: this, ev: MediaEncryptedEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "msneedkey", listener: (this: this, ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "paste", listener: (this: this, ev: ClipboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "selectstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var HTMLVideoElement: {
- prototype: HTMLVideoElement;
- new(): HTMLVideoElement;
-}
-
-interface HashChangeEvent extends Event {
- readonly newURL: string | null;
- readonly oldURL: string | null;
-}
-
-declare var HashChangeEvent: {
- prototype: HashChangeEvent;
- new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
-}
-
-interface History {
- readonly length: number;
- readonly state: any;
- back(distance?: any): void;
- forward(distance?: any): void;
- go(delta?: any): void;
- pushState(statedata: any, title?: string, url?: string): void;
- replaceState(statedata: any, title?: string, url?: string): void;
-}
-
-declare var History: {
- prototype: History;
- new(): History;
-}
-
-interface IDBCursor {
- readonly direction: string;
- key: IDBKeyRange | IDBValidKey;
- readonly primaryKey: any;
- source: IDBObjectStore | IDBIndex;
- advance(count: number): void;
- continue(key?: IDBKeyRange | IDBValidKey): void;
- delete(): IDBRequest;
- update(value: any): IDBRequest;
- readonly NEXT: string;
- readonly NEXT_NO_DUPLICATE: string;
- readonly PREV: string;
- readonly PREV_NO_DUPLICATE: string;
-}
-
-declare var IDBCursor: {
- prototype: IDBCursor;
- new(): IDBCursor;
- readonly NEXT: string;
- readonly NEXT_NO_DUPLICATE: string;
- readonly PREV: string;
- readonly PREV_NO_DUPLICATE: string;
-}
-
-interface IDBCursorWithValue extends IDBCursor {
- readonly value: any;
-}
-
-declare var IDBCursorWithValue: {
- prototype: IDBCursorWithValue;
- new(): IDBCursorWithValue;
-}
-
-interface IDBDatabase extends EventTarget {
- readonly name: string;
- readonly objectStoreNames: DOMStringList;
- onabort: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- version: number;
- onversionchange: (ev: IDBVersionChangeEvent) => any;
- close(): void;
- createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
- deleteObjectStore(name: string): void;
- transaction(storeNames: string | string[], mode?: string): IDBTransaction;
- addEventListener(type: "versionchange", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBDatabase: {
- prototype: IDBDatabase;
- new(): IDBDatabase;
-}
-
-interface IDBFactory {
- cmp(first: any, second: any): number;
- deleteDatabase(name: string): IDBOpenDBRequest;
- open(name: string, version?: number): IDBOpenDBRequest;
-}
-
-declare var IDBFactory: {
- prototype: IDBFactory;
- new(): IDBFactory;
-}
-
-interface IDBIndex {
- keyPath: string | string[];
- readonly name: string;
- readonly objectStore: IDBObjectStore;
- readonly unique: boolean;
- multiEntry: boolean;
- count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
- get(key: IDBKeyRange | IDBValidKey): IDBRequest;
- getKey(key: IDBKeyRange | IDBValidKey): IDBRequest;
- openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): IDBRequest;
- openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): IDBRequest;
-}
-
-declare var IDBIndex: {
- prototype: IDBIndex;
- new(): IDBIndex;
-}
-
-interface IDBKeyRange {
- readonly lower: any;
- readonly lowerOpen: boolean;
- readonly upper: any;
- readonly upperOpen: boolean;
-}
-
-declare var IDBKeyRange: {
- prototype: IDBKeyRange;
- new(): IDBKeyRange;
- bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
- lowerBound(lower: any, open?: boolean): IDBKeyRange;
- only(value: any): IDBKeyRange;
- upperBound(upper: any, open?: boolean): IDBKeyRange;
-}
-
-interface IDBObjectStore {
- readonly indexNames: DOMStringList;
- keyPath: string | string[];
- readonly name: string;
- readonly transaction: IDBTransaction;
- autoIncrement: boolean;
- add(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
- clear(): IDBRequest;
- count(key?: IDBKeyRange | IDBValidKey): IDBRequest;
- createIndex(name: string, keyPath: string | string[], optionalParameters?: IDBIndexParameters): IDBIndex;
- delete(key: IDBKeyRange | IDBValidKey): IDBRequest;
- deleteIndex(indexName: string): void;
- get(key: any): IDBRequest;
- index(name: string): IDBIndex;
- openCursor(range?: IDBKeyRange | IDBValidKey, direction?: string): IDBRequest;
- put(value: any, key?: IDBKeyRange | IDBValidKey): IDBRequest;
-}
-
-declare var IDBObjectStore: {
- prototype: IDBObjectStore;
- new(): IDBObjectStore;
-}
-
-interface IDBOpenDBRequest extends IDBRequest {
- onblocked: (this: this, ev: Event) => any;
- onupgradeneeded: (this: this, ev: IDBVersionChangeEvent) => any;
- addEventListener(type: "blocked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "success", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "upgradeneeded", listener: (this: this, ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBOpenDBRequest: {
- prototype: IDBOpenDBRequest;
- new(): IDBOpenDBRequest;
-}
-
-interface IDBRequest extends EventTarget {
- readonly error: DOMError;
- onerror: (this: this, ev: ErrorEvent) => any;
- onsuccess: (this: this, ev: Event) => any;
- readonly readyState: string;
- readonly result: any;
- source: IDBObjectStore | IDBIndex | IDBCursor;
- readonly transaction: IDBTransaction;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "success", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBRequest: {
- prototype: IDBRequest;
- new(): IDBRequest;
-}
-
-interface IDBTransaction extends EventTarget {
- readonly db: IDBDatabase;
- readonly error: DOMError;
- readonly mode: string;
- onabort: (this: this, ev: Event) => any;
- oncomplete: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- abort(): void;
- objectStore(name: string): IDBObjectStore;
- readonly READ_ONLY: string;
- readonly READ_WRITE: string;
- readonly VERSION_CHANGE: string;
- addEventListener(type: "abort", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "complete", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var IDBTransaction: {
- prototype: IDBTransaction;
- new(): IDBTransaction;
- readonly READ_ONLY: string;
- readonly READ_WRITE: string;
- readonly VERSION_CHANGE: string;
-}
-
-interface IDBVersionChangeEvent extends Event {
- readonly newVersion: number | null;
- readonly oldVersion: number;
-}
-
-declare var IDBVersionChangeEvent: {
- prototype: IDBVersionChangeEvent;
- new(): IDBVersionChangeEvent;
-}
-
-interface ImageData {
- data: Uint8ClampedArray;
- readonly height: number;
- readonly width: number;
-}
-
-declare var ImageData: {
- prototype: ImageData;
- new(width: number, height: number): ImageData;
- new(array: Uint8ClampedArray, width: number, height: number): ImageData;
-}
-
-interface KeyboardEvent extends UIEvent {
- readonly altKey: boolean;
- readonly char: string | null;
- readonly charCode: number;
- readonly ctrlKey: boolean;
- readonly key: string;
- readonly keyCode: number;
- readonly locale: string;
- readonly location: number;
- readonly metaKey: boolean;
- readonly repeat: boolean;
- readonly shiftKey: boolean;
- readonly which: number;
- readonly code: string;
- getModifierState(keyArg: string): boolean;
- initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
- readonly DOM_KEY_LOCATION_JOYSTICK: number;
- readonly DOM_KEY_LOCATION_LEFT: number;
- readonly DOM_KEY_LOCATION_MOBILE: number;
- readonly DOM_KEY_LOCATION_NUMPAD: number;
- readonly DOM_KEY_LOCATION_RIGHT: number;
- readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-declare var KeyboardEvent: {
- prototype: KeyboardEvent;
- new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
- readonly DOM_KEY_LOCATION_JOYSTICK: number;
- readonly DOM_KEY_LOCATION_LEFT: number;
- readonly DOM_KEY_LOCATION_MOBILE: number;
- readonly DOM_KEY_LOCATION_NUMPAD: number;
- readonly DOM_KEY_LOCATION_RIGHT: number;
- readonly DOM_KEY_LOCATION_STANDARD: number;
-}
-
-interface ListeningStateChangedEvent extends Event {
- readonly label: string;
- readonly state: string;
-}
-
-declare var ListeningStateChangedEvent: {
- prototype: ListeningStateChangedEvent;
- new(): ListeningStateChangedEvent;
-}
-
-interface Location {
- hash: string;
- host: string;
- hostname: string;
- href: string;
- readonly origin: string;
- pathname: string;
- port: string;
- protocol: string;
- search: string;
- assign(url: string): void;
- reload(forcedReload?: boolean): void;
- replace(url: string): void;
- toString(): string;
-}
-
-declare var Location: {
- prototype: Location;
- new(): Location;
-}
-
-interface LongRunningScriptDetectedEvent extends Event {
- readonly executionTime: number;
- stopPageScriptExecution: boolean;
-}
-
-declare var LongRunningScriptDetectedEvent: {
- prototype: LongRunningScriptDetectedEvent;
- new(): LongRunningScriptDetectedEvent;
-}
-
-interface MSApp {
- clearTemporaryWebDataAsync(): MSAppAsyncOperation;
- createBlobFromRandomAccessStream(type: string, seeker: any): Blob;
- createDataPackage(object: any): any;
- createDataPackageFromSelection(): any;
- createFileFromStorageFile(storageFile: any): File;
- createStreamFromInputStream(type: string, inputStream: any): MSStream;
- execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void;
- execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any;
- getCurrentPriority(): string;
- getHtmlPrintDocumentSourceAsync(htmlDoc: any): PromiseLike<any>;
- getViewId(view: any): any;
- isTaskScheduledAtPriorityOrHigher(priority: string): boolean;
- pageHandlesAllApplicationActivations(enabled: boolean): void;
- suppressSubdownloadCredentialPrompts(suppress: boolean): void;
- terminateApp(exceptionObject: any): void;
- readonly CURRENT: string;
- readonly HIGH: string;
- readonly IDLE: string;
- readonly NORMAL: string;
-}
-declare var MSApp: MSApp;
-
-interface MSAppAsyncOperation extends EventTarget {
- readonly error: DOMError;
- oncomplete: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- readonly readyState: number;
- readonly result: any;
- start(): void;
- readonly COMPLETED: number;
- readonly ERROR: number;
- readonly STARTED: number;
- addEventListener(type: "complete", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSAppAsyncOperation: {
- prototype: MSAppAsyncOperation;
- new(): MSAppAsyncOperation;
- readonly COMPLETED: number;
- readonly ERROR: number;
- readonly STARTED: number;
-}
-
-interface MSAssertion {
- readonly id: string;
- readonly type: string;
-}
-
-declare var MSAssertion: {
- prototype: MSAssertion;
- new(): MSAssertion;
-}
-
-interface MSBlobBuilder {
- append(data: any, endings?: string): void;
- getBlob(contentType?: string): Blob;
-}
-
-declare var MSBlobBuilder: {
- prototype: MSBlobBuilder;
- new(): MSBlobBuilder;
-}
-
-interface MSCredentials {
- getAssertion(challenge: string, filter?: MSCredentialFilter, params?: MSSignatureParameters): PromiseLike<MSAssertion>;
- makeCredential(accountInfo: MSAccountInfo, params: MSCredentialParameters[], challenge?: string): PromiseLike<MSAssertion>;
-}
-
-declare var MSCredentials: {
- prototype: MSCredentials;
- new(): MSCredentials;
-}
-
-interface MSFIDOCredentialAssertion extends MSAssertion {
- readonly algorithm: string | Algorithm;
- readonly attestation: any;
- readonly publicKey: string;
- readonly transportHints: string[];
-}
-
-declare var MSFIDOCredentialAssertion: {
- prototype: MSFIDOCredentialAssertion;
- new(): MSFIDOCredentialAssertion;
-}
-
-interface MSFIDOSignature {
- readonly authnrData: string;
- readonly clientData: string;
- readonly signature: string;
-}
-
-declare var MSFIDOSignature: {
- prototype: MSFIDOSignature;
- new(): MSFIDOSignature;
-}
-
-interface MSFIDOSignatureAssertion extends MSAssertion {
- readonly signature: MSFIDOSignature;
-}
-
-declare var MSFIDOSignatureAssertion: {
- prototype: MSFIDOSignatureAssertion;
- new(): MSFIDOSignatureAssertion;
-}
-
-interface MSGesture {
- target: Element;
- addPointer(pointerId: number): void;
- stop(): void;
-}
-
-declare var MSGesture: {
- prototype: MSGesture;
- new(): MSGesture;
-}
-
-interface MSGestureEvent extends UIEvent {
- readonly clientX: number;
- readonly clientY: number;
- readonly expansion: number;
- readonly gestureObject: any;
- readonly hwTimestamp: number;
- readonly offsetX: number;
- readonly offsetY: number;
- readonly rotation: number;
- readonly scale: number;
- readonly screenX: number;
- readonly screenY: number;
- readonly translationX: number;
- readonly translationY: number;
- readonly velocityAngular: number;
- readonly velocityExpansion: number;
- readonly velocityX: number;
- readonly velocityY: number;
- initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
- readonly MSGESTURE_FLAG_BEGIN: number;
- readonly MSGESTURE_FLAG_CANCEL: number;
- readonly MSGESTURE_FLAG_END: number;
- readonly MSGESTURE_FLAG_INERTIA: number;
- readonly MSGESTURE_FLAG_NONE: number;
-}
-
-declare var MSGestureEvent: {
- prototype: MSGestureEvent;
- new(): MSGestureEvent;
- readonly MSGESTURE_FLAG_BEGIN: number;
- readonly MSGESTURE_FLAG_CANCEL: number;
- readonly MSGESTURE_FLAG_END: number;
- readonly MSGESTURE_FLAG_INERTIA: number;
- readonly MSGESTURE_FLAG_NONE: number;
-}
-
-interface MSGraphicsTrust {
- readonly constrictionActive: boolean;
- readonly status: string;
-}
-
-declare var MSGraphicsTrust: {
- prototype: MSGraphicsTrust;
- new(): MSGraphicsTrust;
-}
-
-interface MSHTMLWebViewElement extends HTMLElement {
- readonly canGoBack: boolean;
- readonly canGoForward: boolean;
- readonly containsFullScreenElement: boolean;
- readonly documentTitle: string;
- height: number;
- readonly settings: MSWebViewSettings;
- src: string;
- width: number;
- addWebAllowedObject(name: string, applicationObject: any): void;
- buildLocalStreamUri(contentIdentifier: string, relativePath: string): string;
- capturePreviewToBlobAsync(): MSWebViewAsyncOperation;
- captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation;
- getDeferredPermissionRequestById(id: number): DeferredPermissionRequest;
- getDeferredPermissionRequests(): DeferredPermissionRequest[];
- goBack(): void;
- goForward(): void;
- invokeScriptAsync(scriptName: string, ...args: any[]): MSWebViewAsyncOperation;
- navigate(uri: string): void;
- navigateToLocalStreamUri(source: string, streamResolver: any): void;
- navigateToString(contents: string): void;
- navigateWithHttpRequestMessage(requestMessage: any): void;
- refresh(): void;
- stop(): void;
-}
-
-declare var MSHTMLWebViewElement: {
- prototype: MSHTMLWebViewElement;
- new(): MSHTMLWebViewElement;
-}
-
-interface MSInputMethodContext extends EventTarget {
- readonly compositionEndOffset: number;
- readonly compositionStartOffset: number;
- oncandidatewindowhide: (this: this, ev: Event) => any;
- oncandidatewindowshow: (this: this, ev: Event) => any;
- oncandidatewindowupdate: (this: this, ev: Event) => any;
- readonly target: HTMLElement;
- getCandidateWindowClientRect(): ClientRect;
- getCompositionAlternatives(): string[];
- hasComposition(): boolean;
- isCandidateWindowVisible(): boolean;
- addEventListener(type: "MSCandidateWindowHide", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "MSCandidateWindowShow", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "MSCandidateWindowUpdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSInputMethodContext: {
- prototype: MSInputMethodContext;
- new(): MSInputMethodContext;
-}
-
-interface MSManipulationEvent extends UIEvent {
- readonly currentState: number;
- readonly inertiaDestinationX: number;
- readonly inertiaDestinationY: number;
- readonly lastState: number;
- initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, currentState: number): void;
- readonly MS_MANIPULATION_STATE_ACTIVE: number;
- readonly MS_MANIPULATION_STATE_CANCELLED: number;
- readonly MS_MANIPULATION_STATE_COMMITTED: number;
- readonly MS_MANIPULATION_STATE_DRAGGING: number;
- readonly MS_MANIPULATION_STATE_INERTIA: number;
- readonly MS_MANIPULATION_STATE_PRESELECT: number;
- readonly MS_MANIPULATION_STATE_SELECTING: number;
- readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-declare var MSManipulationEvent: {
- prototype: MSManipulationEvent;
- new(): MSManipulationEvent;
- readonly MS_MANIPULATION_STATE_ACTIVE: number;
- readonly MS_MANIPULATION_STATE_CANCELLED: number;
- readonly MS_MANIPULATION_STATE_COMMITTED: number;
- readonly MS_MANIPULATION_STATE_DRAGGING: number;
- readonly MS_MANIPULATION_STATE_INERTIA: number;
- readonly MS_MANIPULATION_STATE_PRESELECT: number;
- readonly MS_MANIPULATION_STATE_SELECTING: number;
- readonly MS_MANIPULATION_STATE_STOPPED: number;
-}
-
-interface MSMediaKeyError {
- readonly code: number;
- readonly systemCode: number;
- readonly MS_MEDIA_KEYERR_CLIENT: number;
- readonly MS_MEDIA_KEYERR_DOMAIN: number;
- readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
- readonly MS_MEDIA_KEYERR_OUTPUT: number;
- readonly MS_MEDIA_KEYERR_SERVICE: number;
- readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-declare var MSMediaKeyError: {
- prototype: MSMediaKeyError;
- new(): MSMediaKeyError;
- readonly MS_MEDIA_KEYERR_CLIENT: number;
- readonly MS_MEDIA_KEYERR_DOMAIN: number;
- readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
- readonly MS_MEDIA_KEYERR_OUTPUT: number;
- readonly MS_MEDIA_KEYERR_SERVICE: number;
- readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-interface MSMediaKeyMessageEvent extends Event {
- readonly destinationURL: string | null;
- readonly message: Uint8Array;
-}
-
-declare var MSMediaKeyMessageEvent: {
- prototype: MSMediaKeyMessageEvent;
- new(): MSMediaKeyMessageEvent;
-}
-
-interface MSMediaKeyNeededEvent extends Event {
- readonly initData: Uint8Array | null;
-}
-
-declare var MSMediaKeyNeededEvent: {
- prototype: MSMediaKeyNeededEvent;
- new(): MSMediaKeyNeededEvent;
-}
-
-interface MSMediaKeySession extends EventTarget {
- readonly error: MSMediaKeyError | null;
- readonly keySystem: string;
- readonly sessionId: string;
- close(): void;
- update(key: Uint8Array): void;
-}
-
-declare var MSMediaKeySession: {
- prototype: MSMediaKeySession;
- new(): MSMediaKeySession;
-}
-
-interface MSMediaKeys {
- readonly keySystem: string;
- createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): MSMediaKeySession;
-}
-
-declare var MSMediaKeys: {
- prototype: MSMediaKeys;
- new(keySystem: string): MSMediaKeys;
- isTypeSupported(keySystem: string, type?: string): boolean;
- isTypeSupportedWithFeatures(keySystem: string, type?: string): string;
-}
-
-interface MSPointerEvent extends MouseEvent {
- readonly currentPoint: any;
- readonly height: number;
- readonly hwTimestamp: number;
- readonly intermediatePoints: any;
- readonly isPrimary: boolean;
- readonly pointerId: number;
- readonly pointerType: any;
- readonly pressure: number;
- readonly rotation: number;
- readonly tiltX: number;
- readonly tiltY: number;
- readonly width: number;
- getCurrentPoint(element: Element): void;
- getIntermediatePoints(element: Element): void;
- initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;
-}
-
-declare var MSPointerEvent: {
- prototype: MSPointerEvent;
- new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
-}
-
-interface MSRangeCollection {
- readonly length: number;
- item(index: number): Range;
- [index: number]: Range;
-}
-
-declare var MSRangeCollection: {
- prototype: MSRangeCollection;
- new(): MSRangeCollection;
-}
-
-interface MSSiteModeEvent extends Event {
- readonly actionURL: string;
- readonly buttonID: number;
-}
-
-declare var MSSiteModeEvent: {
- prototype: MSSiteModeEvent;
- new(): MSSiteModeEvent;
-}
-
-interface MSStream {
- readonly type: string;
- msClose(): void;
- msDetachStream(): any;
-}
-
-declare var MSStream: {
- prototype: MSStream;
- new(): MSStream;
-}
-
-interface MSStreamReader extends EventTarget, MSBaseReader {
- readonly error: DOMError;
- readAsArrayBuffer(stream: MSStream, size?: number): void;
- readAsBinaryString(stream: MSStream, size?: number): void;
- readAsBlob(stream: MSStream, size?: number): void;
- readAsDataURL(stream: MSStream, size?: number): void;
- readAsText(stream: MSStream, encoding?: string, size?: number): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSStreamReader: {
- prototype: MSStreamReader;
- new(): MSStreamReader;
-}
-
-interface MSWebViewAsyncOperation extends EventTarget {
- readonly error: DOMError;
- oncomplete: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- readonly readyState: number;
- readonly result: any;
- readonly target: MSHTMLWebViewElement;
- readonly type: number;
- start(): void;
- readonly COMPLETED: number;
- readonly ERROR: number;
- readonly STARTED: number;
- readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
- readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
- readonly TYPE_INVOKE_SCRIPT: number;
- addEventListener(type: "complete", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MSWebViewAsyncOperation: {
- prototype: MSWebViewAsyncOperation;
- new(): MSWebViewAsyncOperation;
- readonly COMPLETED: number;
- readonly ERROR: number;
- readonly STARTED: number;
- readonly TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number;
- readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number;
- readonly TYPE_INVOKE_SCRIPT: number;
-}
-
-interface MSWebViewSettings {
- isIndexedDBEnabled: boolean;
- isJavaScriptEnabled: boolean;
-}
-
-declare var MSWebViewSettings: {
- prototype: MSWebViewSettings;
- new(): MSWebViewSettings;
-}
-
-interface MediaDeviceInfo {
- readonly deviceId: string;
- readonly groupId: string;
- readonly kind: string;
- readonly label: string;
-}
-
-declare var MediaDeviceInfo: {
- prototype: MediaDeviceInfo;
- new(): MediaDeviceInfo;
-}
-
-interface MediaDevices extends EventTarget {
- ondevicechange: (this: this, ev: Event) => any;
- enumerateDevices(): any;
- getSupportedConstraints(): MediaTrackSupportedConstraints;
- getUserMedia(constraints: MediaStreamConstraints): PromiseLike<MediaStream>;
- addEventListener(type: "devicechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaDevices: {
- prototype: MediaDevices;
- new(): MediaDevices;
-}
-
-interface MediaElementAudioSourceNode extends AudioNode {
-}
-
-declare var MediaElementAudioSourceNode: {
- prototype: MediaElementAudioSourceNode;
- new(): MediaElementAudioSourceNode;
-}
-
-interface MediaEncryptedEvent extends Event {
- readonly initData: ArrayBuffer | null;
- readonly initDataType: string;
-}
-
-declare var MediaEncryptedEvent: {
- prototype: MediaEncryptedEvent;
- new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
-}
-
-interface MediaError {
- readonly code: number;
- readonly msExtendedCode: number;
- readonly MEDIA_ERR_ABORTED: number;
- readonly MEDIA_ERR_DECODE: number;
- readonly MEDIA_ERR_NETWORK: number;
- readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
- readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-declare var MediaError: {
- prototype: MediaError;
- new(): MediaError;
- readonly MEDIA_ERR_ABORTED: number;
- readonly MEDIA_ERR_DECODE: number;
- readonly MEDIA_ERR_NETWORK: number;
- readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
- readonly MS_MEDIA_ERR_ENCRYPTED: number;
-}
-
-interface MediaKeyMessageEvent extends Event {
- readonly message: ArrayBuffer;
- readonly messageType: string;
-}
-
-declare var MediaKeyMessageEvent: {
- prototype: MediaKeyMessageEvent;
- new(type: string, eventInitDict?: MediaKeyMessageEventInit): MediaKeyMessageEvent;
-}
-
-interface MediaKeySession extends EventTarget {
- readonly closed: PromiseLike<void>;
- readonly expiration: number;
- readonly keyStatuses: MediaKeyStatusMap;
- readonly sessionId: string;
- close(): PromiseLike<void>;
- generateRequest(initDataType: string, initData: any): PromiseLike<void>;
- load(sessionId: string): PromiseLike<boolean>;
- remove(): PromiseLike<void>;
- update(response: any): PromiseLike<void>;
-}
-
-declare var MediaKeySession: {
- prototype: MediaKeySession;
- new(): MediaKeySession;
-}
-
-interface MediaKeyStatusMap {
- readonly size: number;
- forEach(callback: ForEachCallback): void;
- get(keyId: any): string;
- has(keyId: any): boolean;
-}
-
-declare var MediaKeyStatusMap: {
- prototype: MediaKeyStatusMap;
- new(): MediaKeyStatusMap;
-}
-
-interface MediaKeySystemAccess {
- readonly keySystem: string;
- createMediaKeys(): PromiseLike<MediaKeys>;
- getConfiguration(): MediaKeySystemConfiguration;
-}
-
-declare var MediaKeySystemAccess: {
- prototype: MediaKeySystemAccess;
- new(): MediaKeySystemAccess;
-}
-
-interface MediaKeys {
- createSession(sessionType?: string): MediaKeySession;
- setServerCertificate(serverCertificate: any): PromiseLike<void>;
-}
-
-declare var MediaKeys: {
- prototype: MediaKeys;
- new(): MediaKeys;
-}
-
-interface MediaList {
- readonly length: number;
- mediaText: string;
- appendMedium(newMedium: string): void;
- deleteMedium(oldMedium: string): void;
- item(index: number): string;
- toString(): string;
- [index: number]: string;
-}
-
-declare var MediaList: {
- prototype: MediaList;
- new(): MediaList;
-}
-
-interface MediaQueryList {
- readonly matches: boolean;
- readonly media: string;
- addListener(listener: MediaQueryListListener): void;
- removeListener(listener: MediaQueryListListener): void;
-}
-
-declare var MediaQueryList: {
- prototype: MediaQueryList;
- new(): MediaQueryList;
-}
-
-interface MediaSource extends EventTarget {
- readonly activeSourceBuffers: SourceBufferList;
- duration: number;
- readonly readyState: string;
- readonly sourceBuffers: SourceBufferList;
- addSourceBuffer(type: string): SourceBuffer;
- endOfStream(error?: number): void;
- removeSourceBuffer(sourceBuffer: SourceBuffer): void;
-}
-
-declare var MediaSource: {
- prototype: MediaSource;
- new(): MediaSource;
- isTypeSupported(type: string): boolean;
-}
-
-interface MediaStream extends EventTarget {
- readonly active: boolean;
- readonly id: string;
- onactive: (this: this, ev: Event) => any;
- onaddtrack: (this: this, ev: TrackEvent) => any;
- oninactive: (this: this, ev: Event) => any;
- onremovetrack: (this: this, ev: TrackEvent) => any;
- addTrack(track: MediaStreamTrack): void;
- clone(): MediaStream;
- getAudioTracks(): MediaStreamTrack[];
- getTrackById(trackId: string): MediaStreamTrack | null;
- getTracks(): MediaStreamTrack[];
- getVideoTracks(): MediaStreamTrack[];
- removeTrack(track: MediaStreamTrack): void;
- stop(): void;
- addEventListener(type: "active", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "addtrack", listener: (this: this, ev: TrackEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "inactive", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "removetrack", listener: (this: this, ev: TrackEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStream: {
- prototype: MediaStream;
- new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream;
-}
-
-interface MediaStreamAudioSourceNode extends AudioNode {
-}
-
-declare var MediaStreamAudioSourceNode: {
- prototype: MediaStreamAudioSourceNode;
- new(): MediaStreamAudioSourceNode;
-}
-
-interface MediaStreamError {
- readonly constraintName: string | null;
- readonly message: string | null;
- readonly name: string;
-}
-
-declare var MediaStreamError: {
- prototype: MediaStreamError;
- new(): MediaStreamError;
-}
-
-interface MediaStreamErrorEvent extends Event {
- readonly error: MediaStreamError | null;
-}
-
-declare var MediaStreamErrorEvent: {
- prototype: MediaStreamErrorEvent;
- new(type: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent;
-}
-
-interface MediaStreamTrack extends EventTarget {
- enabled: boolean;
- readonly id: string;
- readonly kind: string;
- readonly label: string;
- readonly muted: boolean;
- onended: (this: this, ev: MediaStreamErrorEvent) => any;
- onmute: (this: this, ev: Event) => any;
- onoverconstrained: (this: this, ev: MediaStreamErrorEvent) => any;
- onunmute: (this: this, ev: Event) => any;
- readonly readonly: boolean;
- readonly readyState: string;
- readonly remote: boolean;
- applyConstraints(constraints: MediaTrackConstraints): PromiseLike<void>;
- clone(): MediaStreamTrack;
- getCapabilities(): MediaTrackCapabilities;
- getConstraints(): MediaTrackConstraints;
- getSettings(): MediaTrackSettings;
- stop(): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mute", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "overconstrained", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "unmute", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MediaStreamTrack: {
- prototype: MediaStreamTrack;
- new(): MediaStreamTrack;
-}
-
-interface MediaStreamTrackEvent extends Event {
- readonly track: MediaStreamTrack;
-}
-
-declare var MediaStreamTrackEvent: {
- prototype: MediaStreamTrackEvent;
- new(type: string, eventInitDict?: MediaStreamTrackEventInit): MediaStreamTrackEvent;
-}
-
-interface MessageChannel {
- readonly port1: MessagePort;
- readonly port2: MessagePort;
-}
-
-declare var MessageChannel: {
- prototype: MessageChannel;
- new(): MessageChannel;
-}
-
-interface MessageEvent extends Event {
- readonly data: any;
- readonly origin: string;
- readonly ports: any;
- readonly source: Window;
- initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: Window): void;
-}
-
-declare var MessageEvent: {
- prototype: MessageEvent;
- new(type: string, eventInitDict?: MessageEventInit): MessageEvent;
-}
-
-interface MessagePort extends EventTarget {
- onmessage: (this: this, ev: MessageEvent) => any;
- close(): void;
- postMessage(message?: any, ports?: any): void;
- start(): void;
- addEventListener(type: "message", listener: (this: this, ev: MessageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var MessagePort: {
- prototype: MessagePort;
- new(): MessagePort;
-}
-
-interface MimeType {
- readonly description: string;
- readonly enabledPlugin: Plugin;
- readonly suffixes: string;
- readonly type: string;
-}
-
-declare var MimeType: {
- prototype: MimeType;
- new(): MimeType;
-}
-
-interface MimeTypeArray {
- readonly length: number;
- item(index: number): Plugin;
- namedItem(type: string): Plugin;
- [index: number]: Plugin;
-}
-
-declare var MimeTypeArray: {
- prototype: MimeTypeArray;
- new(): MimeTypeArray;
-}
-
-interface MouseEvent extends UIEvent {
- readonly altKey: boolean;
- readonly button: number;
- readonly buttons: number;
- readonly clientX: number;
- readonly clientY: number;
- readonly ctrlKey: boolean;
- readonly fromElement: Element;
- readonly layerX: number;
- readonly layerY: number;
- readonly metaKey: boolean;
- readonly movementX: number;
- readonly movementY: number;
- readonly offsetX: number;
- readonly offsetY: number;
- readonly pageX: number;
- readonly pageY: number;
- readonly relatedTarget: EventTarget;
- readonly screenX: number;
- readonly screenY: number;
- readonly shiftKey: boolean;
- readonly toElement: Element;
- readonly which: number;
- readonly x: number;
- readonly y: number;
- getModifierState(keyArg: string): boolean;
- initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget): void;
-}
-
-declare var MouseEvent: {
- prototype: MouseEvent;
- new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;
-}
-
-interface MutationEvent extends Event {
- readonly attrChange: number;
- readonly attrName: string;
- readonly newValue: string;
- readonly prevValue: string;
- readonly relatedNode: Node;
- initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;
- readonly ADDITION: number;
- readonly MODIFICATION: number;
- readonly REMOVAL: number;
-}
-
-declare var MutationEvent: {
- prototype: MutationEvent;
- new(): MutationEvent;
- readonly ADDITION: number;
- readonly MODIFICATION: number;
- readonly REMOVAL: number;
-}
-
-interface MutationObserver {
- disconnect(): void;
- observe(target: Node, options: MutationObserverInit): void;
- takeRecords(): MutationRecord[];
-}
-
-declare var MutationObserver: {
- prototype: MutationObserver;
- new(callback: MutationCallback): MutationObserver;
-}
-
-interface MutationRecord {
- readonly addedNodes: NodeList;
- readonly attributeName: string | null;
- readonly attributeNamespace: string | null;
- readonly nextSibling: Node | null;
- readonly oldValue: string | null;
- readonly previousSibling: Node | null;
- readonly removedNodes: NodeList;
- readonly target: Node;
- readonly type: string;
-}
-
-declare var MutationRecord: {
- prototype: MutationRecord;
- new(): MutationRecord;
-}
-
-interface NamedNodeMap {
- readonly length: number;
- getNamedItem(name: string): Attr;
- getNamedItemNS(namespaceURI: string | null, localName: string | null): Attr;
- item(index: number): Attr;
- removeNamedItem(name: string): Attr;
- removeNamedItemNS(namespaceURI: string | null, localName: string | null): Attr;
- setNamedItem(arg: Attr): Attr;
- setNamedItemNS(arg: Attr): Attr;
- [index: number]: Attr;
-}
-
-declare var NamedNodeMap: {
- prototype: NamedNodeMap;
- new(): NamedNodeMap;
-}
-
-interface NavigationCompletedEvent extends NavigationEvent {
- readonly isSuccess: boolean;
- readonly webErrorStatus: number;
-}
-
-declare var NavigationCompletedEvent: {
- prototype: NavigationCompletedEvent;
- new(): NavigationCompletedEvent;
-}
-
-interface NavigationEvent extends Event {
- readonly uri: string;
-}
-
-declare var NavigationEvent: {
- prototype: NavigationEvent;
- new(): NavigationEvent;
-}
-
-interface NavigationEventWithReferrer extends NavigationEvent {
- readonly referer: string;
-}
-
-declare var NavigationEventWithReferrer: {
- prototype: NavigationEventWithReferrer;
- new(): NavigationEventWithReferrer;
-}
-
-interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver, NavigatorUserMedia {
- readonly appCodeName: string;
- readonly cookieEnabled: boolean;
- readonly language: string;
- readonly maxTouchPoints: number;
- readonly mimeTypes: MimeTypeArray;
- readonly msManipulationViewsEnabled: boolean;
- readonly msMaxTouchPoints: number;
- readonly msPointerEnabled: boolean;
- readonly plugins: PluginArray;
- readonly pointerEnabled: boolean;
- readonly webdriver: boolean;
- getGamepads(): Gamepad[];
- javaEnabled(): boolean;
- msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
- requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): PromiseLike<MediaKeySystemAccess>;
- vibrate(pattern: number | number[]): boolean;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Navigator: {
- prototype: Navigator;
- new(): Navigator;
-}
-
-interface Node extends EventTarget {
- readonly attributes: NamedNodeMap;
- readonly baseURI: string | null;
- readonly childNodes: NodeList;
- readonly firstChild: Node;
- readonly lastChild: Node;
- readonly localName: string | null;
- readonly namespaceURI: string | null;
- readonly nextSibling: Node;
- readonly nodeName: string;
- readonly nodeType: number;
- nodeValue: string | null;
- readonly ownerDocument: Document;
- readonly parentElement: HTMLElement;
- readonly parentNode: Node;
- readonly previousSibling: Node;
- textContent: string | null;
- appendChild(newChild: Node): Node;
- cloneNode(deep?: boolean): Node;
- compareDocumentPosition(other: Node): number;
- contains(child: Node): boolean;
- hasAttributes(): boolean;
- hasChildNodes(): boolean;
- insertBefore(newChild: Node, refChild: Node | null): Node;
- isDefaultNamespace(namespaceURI: string | null): boolean;
- isEqualNode(arg: Node): boolean;
- isSameNode(other: Node): boolean;
- lookupNamespaceURI(prefix: string | null): string | null;
- lookupPrefix(namespaceURI: string | null): string | null;
- normalize(): void;
- removeChild(oldChild: Node): Node;
- replaceChild(newChild: Node, oldChild: Node): Node;
- readonly ATTRIBUTE_NODE: number;
- readonly CDATA_SECTION_NODE: number;
- readonly COMMENT_NODE: number;
- readonly DOCUMENT_FRAGMENT_NODE: number;
- readonly DOCUMENT_NODE: number;
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
- readonly DOCUMENT_POSITION_CONTAINS: number;
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
- readonly DOCUMENT_POSITION_FOLLOWING: number;
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
- readonly DOCUMENT_POSITION_PRECEDING: number;
- readonly DOCUMENT_TYPE_NODE: number;
- readonly ELEMENT_NODE: number;
- readonly ENTITY_NODE: number;
- readonly ENTITY_REFERENCE_NODE: number;
- readonly NOTATION_NODE: number;
- readonly PROCESSING_INSTRUCTION_NODE: number;
- readonly TEXT_NODE: number;
-}
-
-declare var Node: {
- prototype: Node;
- new(): Node;
- readonly ATTRIBUTE_NODE: number;
- readonly CDATA_SECTION_NODE: number;
- readonly COMMENT_NODE: number;
- readonly DOCUMENT_FRAGMENT_NODE: number;
- readonly DOCUMENT_NODE: number;
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
- readonly DOCUMENT_POSITION_CONTAINS: number;
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
- readonly DOCUMENT_POSITION_FOLLOWING: number;
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
- readonly DOCUMENT_POSITION_PRECEDING: number;
- readonly DOCUMENT_TYPE_NODE: number;
- readonly ELEMENT_NODE: number;
- readonly ENTITY_NODE: number;
- readonly ENTITY_REFERENCE_NODE: number;
- readonly NOTATION_NODE: number;
- readonly PROCESSING_INSTRUCTION_NODE: number;
- readonly TEXT_NODE: number;
-}
-
-interface NodeFilter {
- acceptNode(n: Node): number;
-}
-
-declare var NodeFilter: {
- readonly FILTER_ACCEPT: number;
- readonly FILTER_REJECT: number;
- readonly FILTER_SKIP: number;
- readonly SHOW_ALL: number;
- readonly SHOW_ATTRIBUTE: number;
- readonly SHOW_CDATA_SECTION: number;
- readonly SHOW_COMMENT: number;
- readonly SHOW_DOCUMENT: number;
- readonly SHOW_DOCUMENT_FRAGMENT: number;
- readonly SHOW_DOCUMENT_TYPE: number;
- readonly SHOW_ELEMENT: number;
- readonly SHOW_ENTITY: number;
- readonly SHOW_ENTITY_REFERENCE: number;
- readonly SHOW_NOTATION: number;
- readonly SHOW_PROCESSING_INSTRUCTION: number;
- readonly SHOW_TEXT: number;
-}
-
-interface NodeIterator {
- readonly expandEntityReferences: boolean;
- readonly filter: NodeFilter;
- readonly root: Node;
- readonly whatToShow: number;
- detach(): void;
- nextNode(): Node;
- previousNode(): Node;
-}
-
-declare var NodeIterator: {
- prototype: NodeIterator;
- new(): NodeIterator;
-}
-
-interface NodeList {
- readonly length: number;
- item(index: number): Node;
- [index: number]: Node;
-}
-
-declare var NodeList: {
- prototype: NodeList;
- new(): NodeList;
-}
-
-interface OES_element_index_uint {
-}
-
-declare var OES_element_index_uint: {
- prototype: OES_element_index_uint;
- new(): OES_element_index_uint;
-}
-
-interface OES_standard_derivatives {
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-declare var OES_standard_derivatives: {
- prototype: OES_standard_derivatives;
- new(): OES_standard_derivatives;
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;
-}
-
-interface OES_texture_float {
-}
-
-declare var OES_texture_float: {
- prototype: OES_texture_float;
- new(): OES_texture_float;
-}
-
-interface OES_texture_float_linear {
-}
-
-declare var OES_texture_float_linear: {
- prototype: OES_texture_float_linear;
- new(): OES_texture_float_linear;
-}
-
-interface OfflineAudioCompletionEvent extends Event {
- readonly renderedBuffer: AudioBuffer;
-}
-
-declare var OfflineAudioCompletionEvent: {
- prototype: OfflineAudioCompletionEvent;
- new(): OfflineAudioCompletionEvent;
-}
-
-interface OfflineAudioContext extends AudioContext {
- oncomplete: (this: this, ev: Event) => any;
- startRendering(): PromiseLike<AudioBuffer>;
- addEventListener(type: "complete", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OfflineAudioContext: {
- prototype: OfflineAudioContext;
- new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
-}
-
-interface OscillatorNode extends AudioNode {
- readonly detune: AudioParam;
- readonly frequency: AudioParam;
- onended: (this: this, ev: MediaStreamErrorEvent) => any;
- type: string;
- setPeriodicWave(periodicWave: PeriodicWave): void;
- start(when?: number): void;
- stop(when?: number): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var OscillatorNode: {
- prototype: OscillatorNode;
- new(): OscillatorNode;
-}
-
-interface OverflowEvent extends UIEvent {
- readonly horizontalOverflow: boolean;
- readonly orient: number;
- readonly verticalOverflow: boolean;
- readonly BOTH: number;
- readonly HORIZONTAL: number;
- readonly VERTICAL: number;
-}
-
-declare var OverflowEvent: {
- prototype: OverflowEvent;
- new(): OverflowEvent;
- readonly BOTH: number;
- readonly HORIZONTAL: number;
- readonly VERTICAL: number;
-}
-
-interface PageTransitionEvent extends Event {
- readonly persisted: boolean;
-}
-
-declare var PageTransitionEvent: {
- prototype: PageTransitionEvent;
- new(): PageTransitionEvent;
-}
-
-interface PannerNode extends AudioNode {
- coneInnerAngle: number;
- coneOuterAngle: number;
- coneOuterGain: number;
- distanceModel: string;
- maxDistance: number;
- panningModel: string;
- refDistance: number;
- rolloffFactor: number;
- setOrientation(x: number, y: number, z: number): void;
- setPosition(x: number, y: number, z: number): void;
- setVelocity(x: number, y: number, z: number): void;
-}
-
-declare var PannerNode: {
- prototype: PannerNode;
- new(): PannerNode;
-}
-
-interface PerfWidgetExternal {
- readonly activeNetworkRequestCount: number;
- readonly averageFrameTime: number;
- readonly averagePaintTime: number;
- readonly extraInformationEnabled: boolean;
- readonly independentRenderingEnabled: boolean;
- readonly irDisablingContentString: string;
- readonly irStatusAvailable: boolean;
- readonly maxCpuSpeed: number;
- readonly paintRequestsPerSecond: number;
- readonly performanceCounter: number;
- readonly performanceCounterFrequency: number;
- addEventListener(eventType: string, callback: Function): void;
- getMemoryUsage(): number;
- getProcessCpuUsage(): number;
- getRecentCpuUsage(last: number | null): any;
- getRecentFrames(last: number | null): any;
- getRecentMemoryUsage(last: number | null): any;
- getRecentPaintRequests(last: number | null): any;
- removeEventListener(eventType: string, callback: Function): void;
- repositionWindow(x: number, y: number): void;
- resizeWindow(width: number, height: number): void;
-}
-
-declare var PerfWidgetExternal: {
- prototype: PerfWidgetExternal;
- new(): PerfWidgetExternal;
-}
-
-interface Performance {
- readonly navigation: PerformanceNavigation;
- readonly timing: PerformanceTiming;
- clearMarks(markName?: string): void;
- clearMeasures(measureName?: string): void;
- clearResourceTimings(): void;
- getEntries(): any;
- getEntriesByName(name: string, entryType?: string): any;
- getEntriesByType(entryType: string): any;
- getMarks(markName?: string): any;
- getMeasures(measureName?: string): any;
- mark(markName: string): void;
- measure(measureName: string, startMarkName?: string, endMarkName?: string): void;
- now(): number;
- setResourceTimingBufferSize(maxSize: number): void;
- toJSON(): any;
-}
-
-declare var Performance: {
- prototype: Performance;
- new(): Performance;
-}
-
-interface PerformanceEntry {
- readonly duration: number;
- readonly entryType: string;
- readonly name: string;
- readonly startTime: number;
-}
-
-declare var PerformanceEntry: {
- prototype: PerformanceEntry;
- new(): PerformanceEntry;
-}
-
-interface PerformanceMark extends PerformanceEntry {
-}
-
-declare var PerformanceMark: {
- prototype: PerformanceMark;
- new(): PerformanceMark;
-}
-
-interface PerformanceMeasure extends PerformanceEntry {
-}
-
-declare var PerformanceMeasure: {
- prototype: PerformanceMeasure;
- new(): PerformanceMeasure;
-}
-
-interface PerformanceNavigation {
- readonly redirectCount: number;
- readonly type: number;
- toJSON(): any;
- readonly TYPE_BACK_FORWARD: number;
- readonly TYPE_NAVIGATE: number;
- readonly TYPE_RELOAD: number;
- readonly TYPE_RESERVED: number;
-}
-
-declare var PerformanceNavigation: {
- prototype: PerformanceNavigation;
- new(): PerformanceNavigation;
- readonly TYPE_BACK_FORWARD: number;
- readonly TYPE_NAVIGATE: number;
- readonly TYPE_RELOAD: number;
- readonly TYPE_RESERVED: number;
-}
-
-interface PerformanceNavigationTiming extends PerformanceEntry {
- readonly connectEnd: number;
- readonly connectStart: number;
- readonly domComplete: number;
- readonly domContentLoadedEventEnd: number;
- readonly domContentLoadedEventStart: number;
- readonly domInteractive: number;
- readonly domLoading: number;
- readonly domainLookupEnd: number;
- readonly domainLookupStart: number;
- readonly fetchStart: number;
- readonly loadEventEnd: number;
- readonly loadEventStart: number;
- readonly navigationStart: number;
- readonly redirectCount: number;
- readonly redirectEnd: number;
- readonly redirectStart: number;
- readonly requestStart: number;
- readonly responseEnd: number;
- readonly responseStart: number;
- readonly type: string;
- readonly unloadEventEnd: number;
- readonly unloadEventStart: number;
-}
-
-declare var PerformanceNavigationTiming: {
- prototype: PerformanceNavigationTiming;
- new(): PerformanceNavigationTiming;
-}
-
-interface PerformanceResourceTiming extends PerformanceEntry {
- readonly connectEnd: number;
- readonly connectStart: number;
- readonly domainLookupEnd: number;
- readonly domainLookupStart: number;
- readonly fetchStart: number;
- readonly initiatorType: string;
- readonly redirectEnd: number;
- readonly redirectStart: number;
- readonly requestStart: number;
- readonly responseEnd: number;
- readonly responseStart: number;
-}
-
-declare var PerformanceResourceTiming: {
- prototype: PerformanceResourceTiming;
- new(): PerformanceResourceTiming;
-}
-
-interface PerformanceTiming {
- readonly connectEnd: number;
- readonly connectStart: number;
- readonly domComplete: number;
- readonly domContentLoadedEventEnd: number;
- readonly domContentLoadedEventStart: number;
- readonly domInteractive: number;
- readonly domLoading: number;
- readonly domainLookupEnd: number;
- readonly domainLookupStart: number;
- readonly fetchStart: number;
- readonly loadEventEnd: number;
- readonly loadEventStart: number;
- readonly msFirstPaint: number;
- readonly navigationStart: number;
- readonly redirectEnd: number;
- readonly redirectStart: number;
- readonly requestStart: number;
- readonly responseEnd: number;
- readonly responseStart: number;
- readonly unloadEventEnd: number;
- readonly unloadEventStart: number;
- readonly secureConnectionStart: number;
- toJSON(): any;
-}
-
-declare var PerformanceTiming: {
- prototype: PerformanceTiming;
- new(): PerformanceTiming;
-}
-
-interface PeriodicWave {
-}
-
-declare var PeriodicWave: {
- prototype: PeriodicWave;
- new(): PeriodicWave;
-}
-
-interface PermissionRequest extends DeferredPermissionRequest {
- readonly state: string;
- defer(): void;
-}
-
-declare var PermissionRequest: {
- prototype: PermissionRequest;
- new(): PermissionRequest;
-}
-
-interface PermissionRequestedEvent extends Event {
- readonly permissionRequest: PermissionRequest;
-}
-
-declare var PermissionRequestedEvent: {
- prototype: PermissionRequestedEvent;
- new(): PermissionRequestedEvent;
-}
-
-interface Plugin {
- readonly description: string;
- readonly filename: string;
- readonly length: number;
- readonly name: string;
- readonly version: string;
- item(index: number): MimeType;
- namedItem(type: string): MimeType;
- [index: number]: MimeType;
-}
-
-declare var Plugin: {
- prototype: Plugin;
- new(): Plugin;
-}
-
-interface PluginArray {
- readonly length: number;
- item(index: number): Plugin;
- namedItem(name: string): Plugin;
- refresh(reload?: boolean): void;
- [index: number]: Plugin;
-}
-
-declare var PluginArray: {
- prototype: PluginArray;
- new(): PluginArray;
-}
-
-interface PointerEvent extends MouseEvent {
- readonly currentPoint: any;
- readonly height: number;
- readonly hwTimestamp: number;
- readonly intermediatePoints: any;
- readonly isPrimary: boolean;
- readonly pointerId: number;
- readonly pointerType: any;
- readonly pressure: number;
- readonly rotation: number;
- readonly tiltX: number;
- readonly tiltY: number;
- readonly width: number;
- getCurrentPoint(element: Element): void;
- getIntermediatePoints(element: Element): void;
- initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;
-}
-
-declare var PointerEvent: {
- prototype: PointerEvent;
- new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent;
-}
-
-interface PopStateEvent extends Event {
- readonly state: any;
- initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void;
-}
-
-declare var PopStateEvent: {
- prototype: PopStateEvent;
- new(): PopStateEvent;
-}
-
-interface Position {
- readonly coords: Coordinates;
- readonly timestamp: number;
-}
-
-declare var Position: {
- prototype: Position;
- new(): Position;
-}
-
-interface PositionError {
- readonly code: number;
- readonly message: string;
- toString(): string;
- readonly PERMISSION_DENIED: number;
- readonly POSITION_UNAVAILABLE: number;
- readonly TIMEOUT: number;
-}
-
-declare var PositionError: {
- prototype: PositionError;
- new(): PositionError;
- readonly PERMISSION_DENIED: number;
- readonly POSITION_UNAVAILABLE: number;
- readonly TIMEOUT: number;
-}
-
-interface ProcessingInstruction extends CharacterData {
- readonly target: string;
-}
-
-declare var ProcessingInstruction: {
- prototype: ProcessingInstruction;
- new(): ProcessingInstruction;
-}
-
-interface ProgressEvent extends Event {
- readonly lengthComputable: boolean;
- readonly loaded: number;
- readonly total: number;
- initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void;
-}
-
-declare var ProgressEvent: {
- prototype: ProgressEvent;
- new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
-}
-
-interface RTCDTMFToneChangeEvent extends Event {
- readonly tone: string;
-}
-
-declare var RTCDTMFToneChangeEvent: {
- prototype: RTCDTMFToneChangeEvent;
- new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtlsTransport extends RTCStatsProvider {
- ondtlsstatechange: ((this: this, ev: RTCDtlsTransportStateChangedEvent) => any) | null;
- onerror: ((this: this, ev: ErrorEvent) => any) | null;
- readonly state: string;
- readonly transport: RTCIceTransport;
- getLocalParameters(): RTCDtlsParameters;
- getRemoteCertificates(): ArrayBuffer[];
- getRemoteParameters(): RTCDtlsParameters | null;
- start(remoteParameters: RTCDtlsParameters): void;
- stop(): void;
- addEventListener(type: "dtlsstatechange", listener: (this: this, ev: RTCDtlsTransportStateChangedEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtlsTransport: {
- prototype: RTCDtlsTransport;
- new(transport: RTCIceTransport): RTCDtlsTransport;
-}
-
-interface RTCDtlsTransportStateChangedEvent extends Event {
- readonly state: string;
-}
-
-declare var RTCDtlsTransportStateChangedEvent: {
- prototype: RTCDtlsTransportStateChangedEvent;
- new(): RTCDtlsTransportStateChangedEvent;
-}
-
-interface RTCDtmfSender extends EventTarget {
- readonly canInsertDTMF: boolean;
- readonly duration: number;
- readonly interToneGap: number;
- ontonechange: (this: this, ev: RTCDTMFToneChangeEvent) => any;
- readonly sender: RTCRtpSender;
- readonly toneBuffer: string;
- insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
- addEventListener(type: "tonechange", listener: (this: this, ev: RTCDTMFToneChangeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCDtmfSender: {
- prototype: RTCDtmfSender;
- new(sender: RTCRtpSender): RTCDtmfSender;
-}
-
-interface RTCIceCandidatePairChangedEvent extends Event {
- readonly pair: RTCIceCandidatePair;
-}
-
-declare var RTCIceCandidatePairChangedEvent: {
- prototype: RTCIceCandidatePairChangedEvent;
- new(): RTCIceCandidatePairChangedEvent;
-}
-
-interface RTCIceGatherer extends RTCStatsProvider {
- readonly component: string;
- onerror: ((this: this, ev: ErrorEvent) => any) | null;
- onlocalcandidate: ((this: this, ev: RTCIceGathererEvent) => any) | null;
- createAssociatedGatherer(): RTCIceGatherer;
- getLocalCandidates(): RTCIceCandidate[];
- getLocalParameters(): RTCIceParameters;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "localcandidate", listener: (this: this, ev: RTCIceGathererEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceGatherer: {
- prototype: RTCIceGatherer;
- new(options: RTCIceGatherOptions): RTCIceGatherer;
-}
-
-interface RTCIceGathererEvent extends Event {
- readonly candidate: RTCIceCandidate | RTCIceCandidateComplete;
-}
-
-declare var RTCIceGathererEvent: {
- prototype: RTCIceGathererEvent;
- new(): RTCIceGathererEvent;
-}
-
-interface RTCIceTransport extends RTCStatsProvider {
- readonly component: string;
- readonly iceGatherer: RTCIceGatherer | null;
- oncandidatepairchange: ((this: this, ev: RTCIceCandidatePairChangedEvent) => any) | null;
- onicestatechange: ((this: this, ev: RTCIceTransportStateChangedEvent) => any) | null;
- readonly role: string;
- readonly state: string;
- addRemoteCandidate(remoteCandidate: RTCIceCandidate | RTCIceCandidateComplete): void;
- createAssociatedTransport(): RTCIceTransport;
- getNominatedCandidatePair(): RTCIceCandidatePair | null;
- getRemoteCandidates(): RTCIceCandidate[];
- getRemoteParameters(): RTCIceParameters | null;
- setRemoteCandidates(remoteCandidates: RTCIceCandidate[]): void;
- start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: string): void;
- stop(): void;
- addEventListener(type: "candidatepairchange", listener: (this: this, ev: RTCIceCandidatePairChangedEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "icestatechange", listener: (this: this, ev: RTCIceTransportStateChangedEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCIceTransport: {
- prototype: RTCIceTransport;
- new(): RTCIceTransport;
-}
-
-interface RTCIceTransportStateChangedEvent extends Event {
- readonly state: string;
-}
-
-declare var RTCIceTransportStateChangedEvent: {
- prototype: RTCIceTransportStateChangedEvent;
- new(): RTCIceTransportStateChangedEvent;
-}
-
-interface RTCRtpReceiver extends RTCStatsProvider {
- onerror: ((this: this, ev: ErrorEvent) => any) | null;
- readonly rtcpTransport: RTCDtlsTransport;
- readonly track: MediaStreamTrack | null;
- readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
- getContributingSources(): RTCRtpContributingSource[];
- receive(parameters: RTCRtpParameters): void;
- requestSendCSRC(csrc: number): void;
- setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void;
- stop(): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpReceiver: {
- prototype: RTCRtpReceiver;
- new(transport: RTCDtlsTransport | RTCSrtpSdesTransport, kind: string, rtcpTransport?: RTCDtlsTransport): RTCRtpReceiver;
- getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCRtpSender extends RTCStatsProvider {
- onerror: ((this: this, ev: ErrorEvent) => any) | null;
- onssrcconflict: ((this: this, ev: RTCSsrcConflictEvent) => any) | null;
- readonly rtcpTransport: RTCDtlsTransport;
- readonly track: MediaStreamTrack;
- readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport;
- send(parameters: RTCRtpParameters): void;
- setTrack(track: MediaStreamTrack): void;
- setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void;
- stop(): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ssrcconflict", listener: (this: this, ev: RTCSsrcConflictEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCRtpSender: {
- prototype: RTCRtpSender;
- new(track: MediaStreamTrack, transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender;
- getCapabilities(kind?: string): RTCRtpCapabilities;
-}
-
-interface RTCSrtpSdesTransport extends EventTarget {
- onerror: ((this: this, ev: ErrorEvent) => any) | null;
- readonly transport: RTCIceTransport;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var RTCSrtpSdesTransport: {
- prototype: RTCSrtpSdesTransport;
- new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
- getLocalParameters(): RTCSrtpSdesParameters[];
-}
-
-interface RTCSsrcConflictEvent extends Event {
- readonly ssrc: number;
-}
-
-declare var RTCSsrcConflictEvent: {
- prototype: RTCSsrcConflictEvent;
- new(): RTCSsrcConflictEvent;
-}
-
-interface RTCStatsProvider extends EventTarget {
- getStats(): PromiseLike<RTCStatsReport>;
- msGetStats(): PromiseLike<RTCStatsReport>;
-}
-
-declare var RTCStatsProvider: {
- prototype: RTCStatsProvider;
- new(): RTCStatsProvider;
-}
-
-interface Range {
- readonly collapsed: boolean;
- readonly commonAncestorContainer: Node;
- readonly endContainer: Node;
- readonly endOffset: number;
- readonly startContainer: Node;
- readonly startOffset: number;
- cloneContents(): DocumentFragment;
- cloneRange(): Range;
- collapse(toStart: boolean): void;
- compareBoundaryPoints(how: number, sourceRange: Range): number;
- createContextualFragment(fragment: string): DocumentFragment;
- deleteContents(): void;
- detach(): void;
- expand(Unit: string): boolean;
- extractContents(): DocumentFragment;
- getBoundingClientRect(): ClientRect;
- getClientRects(): ClientRectList;
- insertNode(newNode: Node): void;
- selectNode(refNode: Node): void;
- selectNodeContents(refNode: Node): void;
- setEnd(refNode: Node, offset: number): void;
- setEndAfter(refNode: Node): void;
- setEndBefore(refNode: Node): void;
- setStart(refNode: Node, offset: number): void;
- setStartAfter(refNode: Node): void;
- setStartBefore(refNode: Node): void;
- surroundContents(newParent: Node): void;
- toString(): string;
- readonly END_TO_END: number;
- readonly END_TO_START: number;
- readonly START_TO_END: number;
- readonly START_TO_START: number;
-}
-
-declare var Range: {
- prototype: Range;
- new(): Range;
- readonly END_TO_END: number;
- readonly END_TO_START: number;
- readonly START_TO_END: number;
- readonly START_TO_START: number;
-}
-
-interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
- readonly target: SVGAnimatedString;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGAElement: {
- prototype: SVGAElement;
- new(): SVGAElement;
-}
-
-interface SVGAngle {
- readonly unitType: number;
- value: number;
- valueAsString: string;
- valueInSpecifiedUnits: number;
- convertToSpecifiedUnits(unitType: number): void;
- newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
- readonly SVG_ANGLETYPE_DEG: number;
- readonly SVG_ANGLETYPE_GRAD: number;
- readonly SVG_ANGLETYPE_RAD: number;
- readonly SVG_ANGLETYPE_UNKNOWN: number;
- readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-declare var SVGAngle: {
- prototype: SVGAngle;
- new(): SVGAngle;
- readonly SVG_ANGLETYPE_DEG: number;
- readonly SVG_ANGLETYPE_GRAD: number;
- readonly SVG_ANGLETYPE_RAD: number;
- readonly SVG_ANGLETYPE_UNKNOWN: number;
- readonly SVG_ANGLETYPE_UNSPECIFIED: number;
-}
-
-interface SVGAnimatedAngle {
- readonly animVal: SVGAngle;
- readonly baseVal: SVGAngle;
-}
-
-declare var SVGAnimatedAngle: {
- prototype: SVGAnimatedAngle;
- new(): SVGAnimatedAngle;
-}
-
-interface SVGAnimatedBoolean {
- readonly animVal: boolean;
- baseVal: boolean;
-}
-
-declare var SVGAnimatedBoolean: {
- prototype: SVGAnimatedBoolean;
- new(): SVGAnimatedBoolean;
-}
-
-interface SVGAnimatedEnumeration {
- readonly animVal: number;
- baseVal: number;
-}
-
-declare var SVGAnimatedEnumeration: {
- prototype: SVGAnimatedEnumeration;
- new(): SVGAnimatedEnumeration;
-}
-
-interface SVGAnimatedInteger {
- readonly animVal: number;
- baseVal: number;
-}
-
-declare var SVGAnimatedInteger: {
- prototype: SVGAnimatedInteger;
- new(): SVGAnimatedInteger;
-}
-
-interface SVGAnimatedLength {
- readonly animVal: SVGLength;
- readonly baseVal: SVGLength;
-}
-
-declare var SVGAnimatedLength: {
- prototype: SVGAnimatedLength;
- new(): SVGAnimatedLength;
-}
-
-interface SVGAnimatedLengthList {
- readonly animVal: SVGLengthList;
- readonly baseVal: SVGLengthList;
-}
-
-declare var SVGAnimatedLengthList: {
- prototype: SVGAnimatedLengthList;
- new(): SVGAnimatedLengthList;
-}
-
-interface SVGAnimatedNumber {
- readonly animVal: number;
- baseVal: number;
-}
-
-declare var SVGAnimatedNumber: {
- prototype: SVGAnimatedNumber;
- new(): SVGAnimatedNumber;
-}
-
-interface SVGAnimatedNumberList {
- readonly animVal: SVGNumberList;
- readonly baseVal: SVGNumberList;
-}
-
-declare var SVGAnimatedNumberList: {
- prototype: SVGAnimatedNumberList;
- new(): SVGAnimatedNumberList;
-}
-
-interface SVGAnimatedPreserveAspectRatio {
- readonly animVal: SVGPreserveAspectRatio;
- readonly baseVal: SVGPreserveAspectRatio;
-}
-
-declare var SVGAnimatedPreserveAspectRatio: {
- prototype: SVGAnimatedPreserveAspectRatio;
- new(): SVGAnimatedPreserveAspectRatio;
-}
-
-interface SVGAnimatedRect {
- readonly animVal: SVGRect;
- readonly baseVal: SVGRect;
-}
-
-declare var SVGAnimatedRect: {
- prototype: SVGAnimatedRect;
- new(): SVGAnimatedRect;
-}
-
-interface SVGAnimatedString {
- readonly animVal: string;
- baseVal: string;
-}
-
-declare var SVGAnimatedString: {
- prototype: SVGAnimatedString;
- new(): SVGAnimatedString;
-}
-
-interface SVGAnimatedTransformList {
- readonly animVal: SVGTransformList;
- readonly baseVal: SVGTransformList;
-}
-
-declare var SVGAnimatedTransformList: {
- prototype: SVGAnimatedTransformList;
- new(): SVGAnimatedTransformList;
-}
-
-interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- readonly cx: SVGAnimatedLength;
- readonly cy: SVGAnimatedLength;
- readonly r: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGCircleElement: {
- prototype: SVGCircleElement;
- new(): SVGCircleElement;
-}
-
-interface SVGClipPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
- readonly clipPathUnits: SVGAnimatedEnumeration;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGClipPathElement: {
- prototype: SVGClipPathElement;
- new(): SVGClipPathElement;
-}
-
-interface SVGComponentTransferFunctionElement extends SVGElement {
- readonly amplitude: SVGAnimatedNumber;
- readonly exponent: SVGAnimatedNumber;
- readonly intercept: SVGAnimatedNumber;
- readonly offset: SVGAnimatedNumber;
- readonly slope: SVGAnimatedNumber;
- readonly tableValues: SVGAnimatedNumberList;
- readonly type: SVGAnimatedEnumeration;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-}
-
-declare var SVGComponentTransferFunctionElement: {
- prototype: SVGComponentTransferFunctionElement;
- new(): SVGComponentTransferFunctionElement;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
- readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
-}
-
-interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDefsElement: {
- prototype: SVGDefsElement;
- new(): SVGDefsElement;
-}
-
-interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGDescElement: {
- prototype: SVGDescElement;
- new(): SVGDescElement;
-}
-
-interface SVGElement extends Element {
- onclick: (this: this, ev: MouseEvent) => any;
- ondblclick: (this: this, ev: MouseEvent) => any;
- onfocusin: (this: this, ev: FocusEvent) => any;
- onfocusout: (this: this, ev: FocusEvent) => any;
- onload: (this: this, ev: Event) => any;
- onmousedown: (this: this, ev: MouseEvent) => any;
- onmousemove: (this: this, ev: MouseEvent) => any;
- onmouseout: (this: this, ev: MouseEvent) => any;
- onmouseover: (this: this, ev: MouseEvent) => any;
- onmouseup: (this: this, ev: MouseEvent) => any;
- readonly ownerSVGElement: SVGSVGElement;
- readonly viewportElement: SVGElement;
- xmlbase: string;
- className: any;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focusin", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focusout", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGElement: {
- prototype: SVGElement;
- new(): SVGElement;
-}
-
-interface SVGElementInstance extends EventTarget {
- readonly childNodes: SVGElementInstanceList;
- readonly correspondingElement: SVGElement;
- readonly correspondingUseElement: SVGUseElement;
- readonly firstChild: SVGElementInstance;
- readonly lastChild: SVGElementInstance;
- readonly nextSibling: SVGElementInstance;
- readonly parentNode: SVGElementInstance;
- readonly previousSibling: SVGElementInstance;
-}
-
-declare var SVGElementInstance: {
- prototype: SVGElementInstance;
- new(): SVGElementInstance;
-}
-
-interface SVGElementInstanceList {
- readonly length: number;
- item(index: number): SVGElementInstance;
-}
-
-declare var SVGElementInstanceList: {
- prototype: SVGElementInstanceList;
- new(): SVGElementInstanceList;
-}
-
-interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- readonly cx: SVGAnimatedLength;
- readonly cy: SVGAnimatedLength;
- readonly rx: SVGAnimatedLength;
- readonly ry: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGEllipseElement: {
- prototype: SVGEllipseElement;
- new(): SVGEllipseElement;
-}
-
-interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly in2: SVGAnimatedString;
- readonly mode: SVGAnimatedEnumeration;
- readonly SVG_FEBLEND_MODE_COLOR: number;
- readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
- readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
- readonly SVG_FEBLEND_MODE_DARKEN: number;
- readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
- readonly SVG_FEBLEND_MODE_EXCLUSION: number;
- readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
- readonly SVG_FEBLEND_MODE_HUE: number;
- readonly SVG_FEBLEND_MODE_LIGHTEN: number;
- readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
- readonly SVG_FEBLEND_MODE_MULTIPLY: number;
- readonly SVG_FEBLEND_MODE_NORMAL: number;
- readonly SVG_FEBLEND_MODE_OVERLAY: number;
- readonly SVG_FEBLEND_MODE_SATURATION: number;
- readonly SVG_FEBLEND_MODE_SCREEN: number;
- readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
- readonly SVG_FEBLEND_MODE_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEBlendElement: {
- prototype: SVGFEBlendElement;
- new(): SVGFEBlendElement;
- readonly SVG_FEBLEND_MODE_COLOR: number;
- readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
- readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
- readonly SVG_FEBLEND_MODE_DARKEN: number;
- readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
- readonly SVG_FEBLEND_MODE_EXCLUSION: number;
- readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
- readonly SVG_FEBLEND_MODE_HUE: number;
- readonly SVG_FEBLEND_MODE_LIGHTEN: number;
- readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
- readonly SVG_FEBLEND_MODE_MULTIPLY: number;
- readonly SVG_FEBLEND_MODE_NORMAL: number;
- readonly SVG_FEBLEND_MODE_OVERLAY: number;
- readonly SVG_FEBLEND_MODE_SATURATION: number;
- readonly SVG_FEBLEND_MODE_SCREEN: number;
- readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
- readonly SVG_FEBLEND_MODE_UNKNOWN: number;
-}
-
-interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly type: SVGAnimatedEnumeration;
- readonly values: SVGAnimatedNumberList;
- readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
- readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
- readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEColorMatrixElement: {
- prototype: SVGFEColorMatrixElement;
- new(): SVGFEColorMatrixElement;
- readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
- readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
- readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
- readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
-}
-
-interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEComponentTransferElement: {
- prototype: SVGFEComponentTransferElement;
- new(): SVGFEComponentTransferElement;
-}
-
-interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly in2: SVGAnimatedString;
- readonly k1: SVGAnimatedNumber;
- readonly k2: SVGAnimatedNumber;
- readonly k3: SVGAnimatedNumber;
- readonly k4: SVGAnimatedNumber;
- readonly operator: SVGAnimatedEnumeration;
- readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
- readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
- readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
- readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFECompositeElement: {
- prototype: SVGFECompositeElement;
- new(): SVGFECompositeElement;
- readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
- readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
- readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
- readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
- readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
- readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
-}
-
-interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly bias: SVGAnimatedNumber;
- readonly divisor: SVGAnimatedNumber;
- readonly edgeMode: SVGAnimatedEnumeration;
- readonly in1: SVGAnimatedString;
- readonly kernelMatrix: SVGAnimatedNumberList;
- readonly kernelUnitLengthX: SVGAnimatedNumber;
- readonly kernelUnitLengthY: SVGAnimatedNumber;
- readonly orderX: SVGAnimatedInteger;
- readonly orderY: SVGAnimatedInteger;
- readonly preserveAlpha: SVGAnimatedBoolean;
- readonly targetX: SVGAnimatedInteger;
- readonly targetY: SVGAnimatedInteger;
- readonly SVG_EDGEMODE_DUPLICATE: number;
- readonly SVG_EDGEMODE_NONE: number;
- readonly SVG_EDGEMODE_UNKNOWN: number;
- readonly SVG_EDGEMODE_WRAP: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEConvolveMatrixElement: {
- prototype: SVGFEConvolveMatrixElement;
- new(): SVGFEConvolveMatrixElement;
- readonly SVG_EDGEMODE_DUPLICATE: number;
- readonly SVG_EDGEMODE_NONE: number;
- readonly SVG_EDGEMODE_UNKNOWN: number;
- readonly SVG_EDGEMODE_WRAP: number;
-}
-
-interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly diffuseConstant: SVGAnimatedNumber;
- readonly in1: SVGAnimatedString;
- readonly kernelUnitLengthX: SVGAnimatedNumber;
- readonly kernelUnitLengthY: SVGAnimatedNumber;
- readonly surfaceScale: SVGAnimatedNumber;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDiffuseLightingElement: {
- prototype: SVGFEDiffuseLightingElement;
- new(): SVGFEDiffuseLightingElement;
-}
-
-interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly in2: SVGAnimatedString;
- readonly scale: SVGAnimatedNumber;
- readonly xChannelSelector: SVGAnimatedEnumeration;
- readonly yChannelSelector: SVGAnimatedEnumeration;
- readonly SVG_CHANNEL_A: number;
- readonly SVG_CHANNEL_B: number;
- readonly SVG_CHANNEL_G: number;
- readonly SVG_CHANNEL_R: number;
- readonly SVG_CHANNEL_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEDisplacementMapElement: {
- prototype: SVGFEDisplacementMapElement;
- new(): SVGFEDisplacementMapElement;
- readonly SVG_CHANNEL_A: number;
- readonly SVG_CHANNEL_B: number;
- readonly SVG_CHANNEL_G: number;
- readonly SVG_CHANNEL_R: number;
- readonly SVG_CHANNEL_UNKNOWN: number;
-}
-
-interface SVGFEDistantLightElement extends SVGElement {
- readonly azimuth: SVGAnimatedNumber;
- readonly elevation: SVGAnimatedNumber;
-}
-
-declare var SVGFEDistantLightElement: {
- prototype: SVGFEDistantLightElement;
- new(): SVGFEDistantLightElement;
-}
-
-interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEFloodElement: {
- prototype: SVGFEFloodElement;
- new(): SVGFEFloodElement;
-}
-
-interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncAElement: {
- prototype: SVGFEFuncAElement;
- new(): SVGFEFuncAElement;
-}
-
-interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncBElement: {
- prototype: SVGFEFuncBElement;
- new(): SVGFEFuncBElement;
-}
-
-interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncGElement: {
- prototype: SVGFEFuncGElement;
- new(): SVGFEFuncGElement;
-}
-
-interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
-}
-
-declare var SVGFEFuncRElement: {
- prototype: SVGFEFuncRElement;
- new(): SVGFEFuncRElement;
-}
-
-interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly stdDeviationX: SVGAnimatedNumber;
- readonly stdDeviationY: SVGAnimatedNumber;
- setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEGaussianBlurElement: {
- prototype: SVGFEGaussianBlurElement;
- new(): SVGFEGaussianBlurElement;
-}
-
-interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
- readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEImageElement: {
- prototype: SVGFEImageElement;
- new(): SVGFEImageElement;
-}
-
-interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMergeElement: {
- prototype: SVGFEMergeElement;
- new(): SVGFEMergeElement;
-}
-
-interface SVGFEMergeNodeElement extends SVGElement {
- readonly in1: SVGAnimatedString;
-}
-
-declare var SVGFEMergeNodeElement: {
- prototype: SVGFEMergeNodeElement;
- new(): SVGFEMergeNodeElement;
-}
-
-interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly operator: SVGAnimatedEnumeration;
- readonly radiusX: SVGAnimatedNumber;
- readonly radiusY: SVGAnimatedNumber;
- readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEMorphologyElement: {
- prototype: SVGFEMorphologyElement;
- new(): SVGFEMorphologyElement;
- readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
- readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
-}
-
-interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly dx: SVGAnimatedNumber;
- readonly dy: SVGAnimatedNumber;
- readonly in1: SVGAnimatedString;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFEOffsetElement: {
- prototype: SVGFEOffsetElement;
- new(): SVGFEOffsetElement;
-}
-
-interface SVGFEPointLightElement extends SVGElement {
- readonly x: SVGAnimatedNumber;
- readonly y: SVGAnimatedNumber;
- readonly z: SVGAnimatedNumber;
-}
-
-declare var SVGFEPointLightElement: {
- prototype: SVGFEPointLightElement;
- new(): SVGFEPointLightElement;
-}
-
-interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- readonly kernelUnitLengthX: SVGAnimatedNumber;
- readonly kernelUnitLengthY: SVGAnimatedNumber;
- readonly specularConstant: SVGAnimatedNumber;
- readonly specularExponent: SVGAnimatedNumber;
- readonly surfaceScale: SVGAnimatedNumber;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFESpecularLightingElement: {
- prototype: SVGFESpecularLightingElement;
- new(): SVGFESpecularLightingElement;
-}
-
-interface SVGFESpotLightElement extends SVGElement {
- readonly limitingConeAngle: SVGAnimatedNumber;
- readonly pointsAtX: SVGAnimatedNumber;
- readonly pointsAtY: SVGAnimatedNumber;
- readonly pointsAtZ: SVGAnimatedNumber;
- readonly specularExponent: SVGAnimatedNumber;
- readonly x: SVGAnimatedNumber;
- readonly y: SVGAnimatedNumber;
- readonly z: SVGAnimatedNumber;
-}
-
-declare var SVGFESpotLightElement: {
- prototype: SVGFESpotLightElement;
- new(): SVGFESpotLightElement;
-}
-
-interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly in1: SVGAnimatedString;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETileElement: {
- prototype: SVGFETileElement;
- new(): SVGFETileElement;
-}
-
-interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
- readonly baseFrequencyX: SVGAnimatedNumber;
- readonly baseFrequencyY: SVGAnimatedNumber;
- readonly numOctaves: SVGAnimatedInteger;
- readonly seed: SVGAnimatedNumber;
- readonly stitchTiles: SVGAnimatedEnumeration;
- readonly type: SVGAnimatedEnumeration;
- readonly SVG_STITCHTYPE_NOSTITCH: number;
- readonly SVG_STITCHTYPE_STITCH: number;
- readonly SVG_STITCHTYPE_UNKNOWN: number;
- readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
- readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
- readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFETurbulenceElement: {
- prototype: SVGFETurbulenceElement;
- new(): SVGFETurbulenceElement;
- readonly SVG_STITCHTYPE_NOSTITCH: number;
- readonly SVG_STITCHTYPE_STITCH: number;
- readonly SVG_STITCHTYPE_UNKNOWN: number;
- readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
- readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
- readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
-}
-
-interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired {
- readonly filterResX: SVGAnimatedInteger;
- readonly filterResY: SVGAnimatedInteger;
- readonly filterUnits: SVGAnimatedEnumeration;
- readonly height: SVGAnimatedLength;
- readonly primitiveUnits: SVGAnimatedEnumeration;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- setFilterRes(filterResX: number, filterResY: number): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGFilterElement: {
- prototype: SVGFilterElement;
- new(): SVGFilterElement;
-}
-
-interface SVGForeignObjectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- readonly height: SVGAnimatedLength;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGForeignObjectElement: {
- prototype: SVGForeignObjectElement;
- new(): SVGForeignObjectElement;
-}
-
-interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGElement: {
- prototype: SVGGElement;
- new(): SVGGElement;
-}
-
-interface SVGGradientElement extends SVGElement, SVGStylable, SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes {
- readonly gradientTransform: SVGAnimatedTransformList;
- readonly gradientUnits: SVGAnimatedEnumeration;
- readonly spreadMethod: SVGAnimatedEnumeration;
- readonly SVG_SPREADMETHOD_PAD: number;
- readonly SVG_SPREADMETHOD_REFLECT: number;
- readonly SVG_SPREADMETHOD_REPEAT: number;
- readonly SVG_SPREADMETHOD_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGGradientElement: {
- prototype: SVGGradientElement;
- new(): SVGGradientElement;
- readonly SVG_SPREADMETHOD_PAD: number;
- readonly SVG_SPREADMETHOD_REFLECT: number;
- readonly SVG_SPREADMETHOD_REPEAT: number;
- readonly SVG_SPREADMETHOD_UNKNOWN: number;
-}
-
-interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
- readonly height: SVGAnimatedLength;
- readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGImageElement: {
- prototype: SVGImageElement;
- new(): SVGImageElement;
-}
-
-interface SVGLength {
- readonly unitType: number;
- value: number;
- valueAsString: string;
- valueInSpecifiedUnits: number;
- convertToSpecifiedUnits(unitType: number): void;
- newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
- readonly SVG_LENGTHTYPE_CM: number;
- readonly SVG_LENGTHTYPE_EMS: number;
- readonly SVG_LENGTHTYPE_EXS: number;
- readonly SVG_LENGTHTYPE_IN: number;
- readonly SVG_LENGTHTYPE_MM: number;
- readonly SVG_LENGTHTYPE_NUMBER: number;
- readonly SVG_LENGTHTYPE_PC: number;
- readonly SVG_LENGTHTYPE_PERCENTAGE: number;
- readonly SVG_LENGTHTYPE_PT: number;
- readonly SVG_LENGTHTYPE_PX: number;
- readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-declare var SVGLength: {
- prototype: SVGLength;
- new(): SVGLength;
- readonly SVG_LENGTHTYPE_CM: number;
- readonly SVG_LENGTHTYPE_EMS: number;
- readonly SVG_LENGTHTYPE_EXS: number;
- readonly SVG_LENGTHTYPE_IN: number;
- readonly SVG_LENGTHTYPE_MM: number;
- readonly SVG_LENGTHTYPE_NUMBER: number;
- readonly SVG_LENGTHTYPE_PC: number;
- readonly SVG_LENGTHTYPE_PERCENTAGE: number;
- readonly SVG_LENGTHTYPE_PT: number;
- readonly SVG_LENGTHTYPE_PX: number;
- readonly SVG_LENGTHTYPE_UNKNOWN: number;
-}
-
-interface SVGLengthList {
- readonly numberOfItems: number;
- appendItem(newItem: SVGLength): SVGLength;
- clear(): void;
- getItem(index: number): SVGLength;
- initialize(newItem: SVGLength): SVGLength;
- insertItemBefore(newItem: SVGLength, index: number): SVGLength;
- removeItem(index: number): SVGLength;
- replaceItem(newItem: SVGLength, index: number): SVGLength;
-}
-
-declare var SVGLengthList: {
- prototype: SVGLengthList;
- new(): SVGLengthList;
-}
-
-interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- readonly x1: SVGAnimatedLength;
- readonly x2: SVGAnimatedLength;
- readonly y1: SVGAnimatedLength;
- readonly y2: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGLineElement: {
- prototype: SVGLineElement;
- new(): SVGLineElement;
-}
-
-interface SVGLinearGradientElement extends SVGGradientElement {
- readonly x1: SVGAnimatedLength;
- readonly x2: SVGAnimatedLength;
- readonly y1: SVGAnimatedLength;
- readonly y2: SVGAnimatedLength;
-}
-
-declare var SVGLinearGradientElement: {
- prototype: SVGLinearGradientElement;
- new(): SVGLinearGradientElement;
-}
-
-interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox {
- readonly markerHeight: SVGAnimatedLength;
- readonly markerUnits: SVGAnimatedEnumeration;
- readonly markerWidth: SVGAnimatedLength;
- readonly orientAngle: SVGAnimatedAngle;
- readonly orientType: SVGAnimatedEnumeration;
- readonly refX: SVGAnimatedLength;
- readonly refY: SVGAnimatedLength;
- setOrientToAngle(angle: SVGAngle): void;
- setOrientToAuto(): void;
- readonly SVG_MARKERUNITS_STROKEWIDTH: number;
- readonly SVG_MARKERUNITS_UNKNOWN: number;
- readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
- readonly SVG_MARKER_ORIENT_ANGLE: number;
- readonly SVG_MARKER_ORIENT_AUTO: number;
- readonly SVG_MARKER_ORIENT_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMarkerElement: {
- prototype: SVGMarkerElement;
- new(): SVGMarkerElement;
- readonly SVG_MARKERUNITS_STROKEWIDTH: number;
- readonly SVG_MARKERUNITS_UNKNOWN: number;
- readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
- readonly SVG_MARKER_ORIENT_ANGLE: number;
- readonly SVG_MARKER_ORIENT_AUTO: number;
- readonly SVG_MARKER_ORIENT_UNKNOWN: number;
-}
-
-interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes {
- readonly height: SVGAnimatedLength;
- readonly maskContentUnits: SVGAnimatedEnumeration;
- readonly maskUnits: SVGAnimatedEnumeration;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGMaskElement: {
- prototype: SVGMaskElement;
- new(): SVGMaskElement;
-}
-
-interface SVGMatrix {
- a: number;
- b: number;
- c: number;
- d: number;
- e: number;
- f: number;
- flipX(): SVGMatrix;
- flipY(): SVGMatrix;
- inverse(): SVGMatrix;
- multiply(secondMatrix: SVGMatrix): SVGMatrix;
- rotate(angle: number): SVGMatrix;
- rotateFromVector(x: number, y: number): SVGMatrix;
- scale(scaleFactor: number): SVGMatrix;
- scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix;
- skewX(angle: number): SVGMatrix;
- skewY(angle: number): SVGMatrix;
- translate(x: number, y: number): SVGMatrix;
-}
-
-declare var SVGMatrix: {
- prototype: SVGMatrix;
- new(): SVGMatrix;
-}
-
-interface SVGMetadataElement extends SVGElement {
-}
-
-declare var SVGMetadataElement: {
- prototype: SVGMetadataElement;
- new(): SVGMetadataElement;
-}
-
-interface SVGNumber {
- value: number;
-}
-
-declare var SVGNumber: {
- prototype: SVGNumber;
- new(): SVGNumber;
-}
-
-interface SVGNumberList {
- readonly numberOfItems: number;
- appendItem(newItem: SVGNumber): SVGNumber;
- clear(): void;
- getItem(index: number): SVGNumber;
- initialize(newItem: SVGNumber): SVGNumber;
- insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
- removeItem(index: number): SVGNumber;
- replaceItem(newItem: SVGNumber, index: number): SVGNumber;
-}
-
-declare var SVGNumberList: {
- prototype: SVGNumberList;
- new(): SVGNumberList;
-}
-
-interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData {
- createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
- createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
- createSVGPathSegClosePath(): SVGPathSegClosePath;
- createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
- createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
- createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;
- createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;
- createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;
- createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;
- createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;
- createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;
- createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
- createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;
- createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;
- createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
- createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
- createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
- createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
- createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
- getPathSegAtLength(distance: number): number;
- getPointAtLength(distance: number): SVGPoint;
- getTotalLength(): number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPathElement: {
- prototype: SVGPathElement;
- new(): SVGPathElement;
-}
-
-interface SVGPathSeg {
- readonly pathSegType: number;
- readonly pathSegTypeAsLetter: string;
- readonly PATHSEG_ARC_ABS: number;
- readonly PATHSEG_ARC_REL: number;
- readonly PATHSEG_CLOSEPATH: number;
- readonly PATHSEG_CURVETO_CUBIC_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_REL: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
- readonly PATHSEG_LINETO_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
- readonly PATHSEG_LINETO_REL: number;
- readonly PATHSEG_LINETO_VERTICAL_ABS: number;
- readonly PATHSEG_LINETO_VERTICAL_REL: number;
- readonly PATHSEG_MOVETO_ABS: number;
- readonly PATHSEG_MOVETO_REL: number;
- readonly PATHSEG_UNKNOWN: number;
-}
-
-declare var SVGPathSeg: {
- prototype: SVGPathSeg;
- new(): SVGPathSeg;
- readonly PATHSEG_ARC_ABS: number;
- readonly PATHSEG_ARC_REL: number;
- readonly PATHSEG_CLOSEPATH: number;
- readonly PATHSEG_CURVETO_CUBIC_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_REL: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
- readonly PATHSEG_LINETO_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
- readonly PATHSEG_LINETO_REL: number;
- readonly PATHSEG_LINETO_VERTICAL_ABS: number;
- readonly PATHSEG_LINETO_VERTICAL_REL: number;
- readonly PATHSEG_MOVETO_ABS: number;
- readonly PATHSEG_MOVETO_REL: number;
- readonly PATHSEG_UNKNOWN: number;
-}
-
-interface SVGPathSegArcAbs extends SVGPathSeg {
- angle: number;
- largeArcFlag: boolean;
- r1: number;
- r2: number;
- sweepFlag: boolean;
- x: number;
- y: number;
-}
-
-declare var SVGPathSegArcAbs: {
- prototype: SVGPathSegArcAbs;
- new(): SVGPathSegArcAbs;
-}
-
-interface SVGPathSegArcRel extends SVGPathSeg {
- angle: number;
- largeArcFlag: boolean;
- r1: number;
- r2: number;
- sweepFlag: boolean;
- x: number;
- y: number;
-}
-
-declare var SVGPathSegArcRel: {
- prototype: SVGPathSegArcRel;
- new(): SVGPathSegArcRel;
-}
-
-interface SVGPathSegClosePath extends SVGPathSeg {
-}
-
-declare var SVGPathSegClosePath: {
- prototype: SVGPathSegClosePath;
- new(): SVGPathSegClosePath;
-}
-
-interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
- x: number;
- x1: number;
- x2: number;
- y: number;
- y1: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicAbs: {
- prototype: SVGPathSegCurvetoCubicAbs;
- new(): SVGPathSegCurvetoCubicAbs;
-}
-
-interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
- x: number;
- x1: number;
- x2: number;
- y: number;
- y1: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicRel: {
- prototype: SVGPathSegCurvetoCubicRel;
- new(): SVGPathSegCurvetoCubicRel;
-}
-
-interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
- x: number;
- x2: number;
- y: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothAbs: {
- prototype: SVGPathSegCurvetoCubicSmoothAbs;
- new(): SVGPathSegCurvetoCubicSmoothAbs;
-}
-
-interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
- x: number;
- x2: number;
- y: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothRel: {
- prototype: SVGPathSegCurvetoCubicSmoothRel;
- new(): SVGPathSegCurvetoCubicSmoothRel;
-}
-
-interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
- x: number;
- x1: number;
- y: number;
- y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticAbs: {
- prototype: SVGPathSegCurvetoQuadraticAbs;
- new(): SVGPathSegCurvetoQuadraticAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
- x: number;
- x1: number;
- y: number;
- y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticRel: {
- prototype: SVGPathSegCurvetoQuadraticRel;
- new(): SVGPathSegCurvetoQuadraticRel;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
- prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
- new(): SVGPathSegCurvetoQuadraticSmoothAbs;
-}
-
-interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothRel: {
- prototype: SVGPathSegCurvetoQuadraticSmoothRel;
- new(): SVGPathSegCurvetoQuadraticSmoothRel;
-}
-
-interface SVGPathSegLinetoAbs extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegLinetoAbs: {
- prototype: SVGPathSegLinetoAbs;
- new(): SVGPathSegLinetoAbs;
-}
-
-interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
- x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalAbs: {
- prototype: SVGPathSegLinetoHorizontalAbs;
- new(): SVGPathSegLinetoHorizontalAbs;
-}
-
-interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
- x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalRel: {
- prototype: SVGPathSegLinetoHorizontalRel;
- new(): SVGPathSegLinetoHorizontalRel;
-}
-
-interface SVGPathSegLinetoRel extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegLinetoRel: {
- prototype: SVGPathSegLinetoRel;
- new(): SVGPathSegLinetoRel;
-}
-
-interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
- y: number;
-}
-
-declare var SVGPathSegLinetoVerticalAbs: {
- prototype: SVGPathSegLinetoVerticalAbs;
- new(): SVGPathSegLinetoVerticalAbs;
-}
-
-interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
- y: number;
-}
-
-declare var SVGPathSegLinetoVerticalRel: {
- prototype: SVGPathSegLinetoVerticalRel;
- new(): SVGPathSegLinetoVerticalRel;
-}
-
-interface SVGPathSegList {
- readonly numberOfItems: number;
- appendItem(newItem: SVGPathSeg): SVGPathSeg;
- clear(): void;
- getItem(index: number): SVGPathSeg;
- initialize(newItem: SVGPathSeg): SVGPathSeg;
- insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
- removeItem(index: number): SVGPathSeg;
- replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
-}
-
-declare var SVGPathSegList: {
- prototype: SVGPathSegList;
- new(): SVGPathSegList;
-}
-
-interface SVGPathSegMovetoAbs extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegMovetoAbs: {
- prototype: SVGPathSegMovetoAbs;
- new(): SVGPathSegMovetoAbs;
-}
-
-interface SVGPathSegMovetoRel extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegMovetoRel: {
- prototype: SVGPathSegMovetoRel;
- new(): SVGPathSegMovetoRel;
-}
-
-interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, SVGUnitTypes {
- readonly height: SVGAnimatedLength;
- readonly patternContentUnits: SVGAnimatedEnumeration;
- readonly patternTransform: SVGAnimatedTransformList;
- readonly patternUnits: SVGAnimatedEnumeration;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPatternElement: {
- prototype: SVGPatternElement;
- new(): SVGPatternElement;
-}
-
-interface SVGPoint {
- x: number;
- y: number;
- matrixTransform(matrix: SVGMatrix): SVGPoint;
-}
-
-declare var SVGPoint: {
- prototype: SVGPoint;
- new(): SVGPoint;
-}
-
-interface SVGPointList {
- readonly numberOfItems: number;
- appendItem(newItem: SVGPoint): SVGPoint;
- clear(): void;
- getItem(index: number): SVGPoint;
- initialize(newItem: SVGPoint): SVGPoint;
- insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
- removeItem(index: number): SVGPoint;
- replaceItem(newItem: SVGPoint, index: number): SVGPoint;
-}
-
-declare var SVGPointList: {
- prototype: SVGPointList;
- new(): SVGPointList;
-}
-
-interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolygonElement: {
- prototype: SVGPolygonElement;
- new(): SVGPolygonElement;
-}
-
-interface SVGPolylineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGPolylineElement: {
- prototype: SVGPolylineElement;
- new(): SVGPolylineElement;
-}
-
-interface SVGPreserveAspectRatio {
- align: number;
- meetOrSlice: number;
- readonly SVG_MEETORSLICE_MEET: number;
- readonly SVG_MEETORSLICE_SLICE: number;
- readonly SVG_MEETORSLICE_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_NONE: number;
- readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-declare var SVGPreserveAspectRatio: {
- prototype: SVGPreserveAspectRatio;
- new(): SVGPreserveAspectRatio;
- readonly SVG_MEETORSLICE_MEET: number;
- readonly SVG_MEETORSLICE_SLICE: number;
- readonly SVG_MEETORSLICE_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_NONE: number;
- readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
- readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
-}
-
-interface SVGRadialGradientElement extends SVGGradientElement {
- readonly cx: SVGAnimatedLength;
- readonly cy: SVGAnimatedLength;
- readonly fx: SVGAnimatedLength;
- readonly fy: SVGAnimatedLength;
- readonly r: SVGAnimatedLength;
-}
-
-declare var SVGRadialGradientElement: {
- prototype: SVGRadialGradientElement;
- new(): SVGRadialGradientElement;
-}
-
-interface SVGRect {
- height: number;
- width: number;
- x: number;
- y: number;
-}
-
-declare var SVGRect: {
- prototype: SVGRect;
- new(): SVGRect;
-}
-
-interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- readonly height: SVGAnimatedLength;
- readonly rx: SVGAnimatedLength;
- readonly ry: SVGAnimatedLength;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGRectElement: {
- prototype: SVGRectElement;
- new(): SVGRectElement;
-}
-
-interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan {
- contentScriptType: string;
- contentStyleType: string;
- currentScale: number;
- readonly currentTranslate: SVGPoint;
- readonly height: SVGAnimatedLength;
- onabort: (this: this, ev: Event) => any;
- onerror: (this: this, ev: Event) => any;
- onresize: (this: this, ev: UIEvent) => any;
- onscroll: (this: this, ev: UIEvent) => any;
- onunload: (this: this, ev: Event) => any;
- onzoom: (this: this, ev: SVGZoomEvent) => any;
- readonly pixelUnitToMillimeterX: number;
- readonly pixelUnitToMillimeterY: number;
- readonly screenPixelToMillimeterX: number;
- readonly screenPixelToMillimeterY: number;
- readonly viewport: SVGRect;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
- checkIntersection(element: SVGElement, rect: SVGRect): boolean;
- createSVGAngle(): SVGAngle;
- createSVGLength(): SVGLength;
- createSVGMatrix(): SVGMatrix;
- createSVGNumber(): SVGNumber;
- createSVGPoint(): SVGPoint;
- createSVGRect(): SVGRect;
- createSVGTransform(): SVGTransform;
- createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
- deselectAll(): void;
- forceRedraw(): void;
- getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
- getCurrentTime(): number;
- getElementById(elementId: string): Element;
- getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
- getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
- pauseAnimations(): void;
- setCurrentTime(seconds: number): void;
- suspendRedraw(maxWaitMilliseconds: number): number;
- unpauseAnimations(): void;
- unsuspendRedraw(suspendHandleID: number): void;
- unsuspendRedrawAll(): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGotPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSLostPointerCapture", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "SVGAbort", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "SVGError", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "SVGUnload", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "SVGZoom", listener: (this: this, ev: SVGZoomEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ariarequest", listener: (this: this, ev: AriaRequestEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "command", listener: (this: this, ev: CommandEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focusin", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focusout", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "gotpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "lostpointercapture", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "resize", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchcancel", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchend", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchmove", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "touchstart", listener: (this: this, ev: TouchEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "webkitfullscreenerror", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSVGElement: {
- prototype: SVGSVGElement;
- new(): SVGSVGElement;
-}
-
-interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, SVGURIReference {
- type: string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGScriptElement: {
- prototype: SVGScriptElement;
- new(): SVGScriptElement;
-}
-
-interface SVGStopElement extends SVGElement, SVGStylable {
- readonly offset: SVGAnimatedNumber;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStopElement: {
- prototype: SVGStopElement;
- new(): SVGStopElement;
-}
-
-interface SVGStringList {
- readonly numberOfItems: number;
- appendItem(newItem: string): string;
- clear(): void;
- getItem(index: number): string;
- initialize(newItem: string): string;
- insertItemBefore(newItem: string, index: number): string;
- removeItem(index: number): string;
- replaceItem(newItem: string, index: number): string;
-}
-
-declare var SVGStringList: {
- prototype: SVGStringList;
- new(): SVGStringList;
-}
-
-interface SVGStyleElement extends SVGElement, SVGLangSpace {
- disabled: boolean;
- media: string;
- title: string;
- type: string;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGStyleElement: {
- prototype: SVGStyleElement;
- new(): SVGStyleElement;
-}
-
-interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSwitchElement: {
- prototype: SVGSwitchElement;
- new(): SVGSwitchElement;
-}
-
-interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGSymbolElement: {
- prototype: SVGSymbolElement;
- new(): SVGSymbolElement;
-}
-
-interface SVGTSpanElement extends SVGTextPositioningElement {
-}
-
-declare var SVGTSpanElement: {
- prototype: SVGTSpanElement;
- new(): SVGTSpanElement;
-}
-
-interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired {
- readonly lengthAdjust: SVGAnimatedEnumeration;
- readonly textLength: SVGAnimatedLength;
- getCharNumAtPosition(point: SVGPoint): number;
- getComputedTextLength(): number;
- getEndPositionOfChar(charnum: number): SVGPoint;
- getExtentOfChar(charnum: number): SVGRect;
- getNumberOfChars(): number;
- getRotationOfChar(charnum: number): number;
- getStartPositionOfChar(charnum: number): SVGPoint;
- getSubStringLength(charnum: number, nchars: number): number;
- selectSubString(charnum: number, nchars: number): void;
- readonly LENGTHADJUST_SPACING: number;
- readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
- readonly LENGTHADJUST_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTextContentElement: {
- prototype: SVGTextContentElement;
- new(): SVGTextContentElement;
- readonly LENGTHADJUST_SPACING: number;
- readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
- readonly LENGTHADJUST_UNKNOWN: number;
-}
-
-interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTextElement: {
- prototype: SVGTextElement;
- new(): SVGTextElement;
-}
-
-interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
- readonly method: SVGAnimatedEnumeration;
- readonly spacing: SVGAnimatedEnumeration;
- readonly startOffset: SVGAnimatedLength;
- readonly TEXTPATH_METHODTYPE_ALIGN: number;
- readonly TEXTPATH_METHODTYPE_STRETCH: number;
- readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
- readonly TEXTPATH_SPACINGTYPE_AUTO: number;
- readonly TEXTPATH_SPACINGTYPE_EXACT: number;
- readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTextPathElement: {
- prototype: SVGTextPathElement;
- new(): SVGTextPathElement;
- readonly TEXTPATH_METHODTYPE_ALIGN: number;
- readonly TEXTPATH_METHODTYPE_STRETCH: number;
- readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
- readonly TEXTPATH_SPACINGTYPE_AUTO: number;
- readonly TEXTPATH_SPACINGTYPE_EXACT: number;
- readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
-}
-
-interface SVGTextPositioningElement extends SVGTextContentElement {
- readonly dx: SVGAnimatedLengthList;
- readonly dy: SVGAnimatedLengthList;
- readonly rotate: SVGAnimatedNumberList;
- readonly x: SVGAnimatedLengthList;
- readonly y: SVGAnimatedLengthList;
-}
-
-declare var SVGTextPositioningElement: {
- prototype: SVGTextPositioningElement;
- new(): SVGTextPositioningElement;
-}
-
-interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGTitleElement: {
- prototype: SVGTitleElement;
- new(): SVGTitleElement;
-}
-
-interface SVGTransform {
- readonly angle: number;
- readonly matrix: SVGMatrix;
- readonly type: number;
- setMatrix(matrix: SVGMatrix): void;
- setRotate(angle: number, cx: number, cy: number): void;
- setScale(sx: number, sy: number): void;
- setSkewX(angle: number): void;
- setSkewY(angle: number): void;
- setTranslate(tx: number, ty: number): void;
- readonly SVG_TRANSFORM_MATRIX: number;
- readonly SVG_TRANSFORM_ROTATE: number;
- readonly SVG_TRANSFORM_SCALE: number;
- readonly SVG_TRANSFORM_SKEWX: number;
- readonly SVG_TRANSFORM_SKEWY: number;
- readonly SVG_TRANSFORM_TRANSLATE: number;
- readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-declare var SVGTransform: {
- prototype: SVGTransform;
- new(): SVGTransform;
- readonly SVG_TRANSFORM_MATRIX: number;
- readonly SVG_TRANSFORM_ROTATE: number;
- readonly SVG_TRANSFORM_SCALE: number;
- readonly SVG_TRANSFORM_SKEWX: number;
- readonly SVG_TRANSFORM_SKEWY: number;
- readonly SVG_TRANSFORM_TRANSLATE: number;
- readonly SVG_TRANSFORM_UNKNOWN: number;
-}
-
-interface SVGTransformList {
- readonly numberOfItems: number;
- appendItem(newItem: SVGTransform): SVGTransform;
- clear(): void;
- consolidate(): SVGTransform;
- createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
- getItem(index: number): SVGTransform;
- initialize(newItem: SVGTransform): SVGTransform;
- insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
- removeItem(index: number): SVGTransform;
- replaceItem(newItem: SVGTransform, index: number): SVGTransform;
-}
-
-declare var SVGTransformList: {
- prototype: SVGTransformList;
- new(): SVGTransformList;
-}
-
-interface SVGUnitTypes {
- readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
- readonly SVG_UNIT_TYPE_UNKNOWN: number;
- readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
-}
-declare var SVGUnitTypes: SVGUnitTypes;
-
-interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference {
- readonly animatedInstanceRoot: SVGElementInstance;
- readonly height: SVGAnimatedLength;
- readonly instanceRoot: SVGElementInstance;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGUseElement: {
- prototype: SVGUseElement;
- new(): SVGUseElement;
-}
-
-interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan {
- readonly viewTarget: SVGStringList;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var SVGViewElement: {
- prototype: SVGViewElement;
- new(): SVGViewElement;
-}
-
-interface SVGZoomAndPan {
- readonly zoomAndPan: number;
-}
-
-declare var SVGZoomAndPan: {
- readonly SVG_ZOOMANDPAN_DISABLE: number;
- readonly SVG_ZOOMANDPAN_MAGNIFY: number;
- readonly SVG_ZOOMANDPAN_UNKNOWN: number;
-}
-
-interface SVGZoomEvent extends UIEvent {
- readonly newScale: number;
- readonly newTranslate: SVGPoint;
- readonly previousScale: number;
- readonly previousTranslate: SVGPoint;
- readonly zoomRectScreen: SVGRect;
-}
-
-declare var SVGZoomEvent: {
- prototype: SVGZoomEvent;
- new(): SVGZoomEvent;
-}
-
-interface Screen extends EventTarget {
- readonly availHeight: number;
- readonly availWidth: number;
- bufferDepth: number;
- readonly colorDepth: number;
- readonly deviceXDPI: number;
- readonly deviceYDPI: number;
- readonly fontSmoothingEnabled: boolean;
- readonly height: number;
- readonly logicalXDPI: number;
- readonly logicalYDPI: number;
- readonly msOrientation: string;
- onmsorientationchange: (this: this, ev: Event) => any;
- readonly pixelDepth: number;
- readonly systemXDPI: number;
- readonly systemYDPI: number;
- readonly width: number;
- msLockOrientation(orientations: string | string[]): boolean;
- msUnlockOrientation(): void;
- addEventListener(type: "MSOrientationChange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Screen: {
- prototype: Screen;
- new(): Screen;
-}
-
-interface ScriptNotifyEvent extends Event {
- readonly callingUri: string;
- readonly value: string;
-}
-
-declare var ScriptNotifyEvent: {
- prototype: ScriptNotifyEvent;
- new(): ScriptNotifyEvent;
-}
-
-interface ScriptProcessorNode extends AudioNode {
- readonly bufferSize: number;
- onaudioprocess: (this: this, ev: AudioProcessingEvent) => any;
- addEventListener(type: "audioprocess", listener: (this: this, ev: AudioProcessingEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var ScriptProcessorNode: {
- prototype: ScriptProcessorNode;
- new(): ScriptProcessorNode;
-}
-
-interface Selection {
- readonly anchorNode: Node;
- readonly anchorOffset: number;
- readonly focusNode: Node;
- readonly focusOffset: number;
- readonly isCollapsed: boolean;
- readonly rangeCount: number;
- readonly type: string;
- addRange(range: Range): void;
- collapse(parentNode: Node, offset: number): void;
- collapseToEnd(): void;
- collapseToStart(): void;
- containsNode(node: Node, partlyContained: boolean): boolean;
- deleteFromDocument(): void;
- empty(): void;
- extend(newNode: Node, offset: number): void;
- getRangeAt(index: number): Range;
- removeAllRanges(): void;
- removeRange(range: Range): void;
- selectAllChildren(parentNode: Node): void;
- setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void;
- toString(): string;
-}
-
-declare var Selection: {
- prototype: Selection;
- new(): Selection;
-}
-
-interface SourceBuffer extends EventTarget {
- appendWindowEnd: number;
- appendWindowStart: number;
- readonly audioTracks: AudioTrackList;
- readonly buffered: TimeRanges;
- mode: string;
- timestampOffset: number;
- readonly updating: boolean;
- readonly videoTracks: VideoTrackList;
- abort(): void;
- appendBuffer(data: ArrayBuffer | ArrayBufferView): void;
- appendStream(stream: MSStream, maxSize?: number): void;
- remove(start: number, end: number): void;
-}
-
-declare var SourceBuffer: {
- prototype: SourceBuffer;
- new(): SourceBuffer;
-}
-
-interface SourceBufferList extends EventTarget {
- readonly length: number;
- item(index: number): SourceBuffer;
- [index: number]: SourceBuffer;
-}
-
-declare var SourceBufferList: {
- prototype: SourceBufferList;
- new(): SourceBufferList;
-}
-
-interface StereoPannerNode extends AudioNode {
- readonly pan: AudioParam;
-}
-
-declare var StereoPannerNode: {
- prototype: StereoPannerNode;
- new(): StereoPannerNode;
-}
-
-interface Storage {
- readonly length: number;
- clear(): void;
- getItem(key: string): string | null;
- key(index: number): string | null;
- removeItem(key: string): void;
- setItem(key: string, data: string): void;
- [key: string]: any;
- [index: number]: string;
-}
-
-declare var Storage: {
- prototype: Storage;
- new(): Storage;
-}
-
-interface StorageEvent extends Event {
- readonly url: string;
- key?: string;
- oldValue?: string;
- newValue?: string;
- storageArea?: Storage;
-}
-
-declare var StorageEvent: {
- prototype: StorageEvent;
- new (type: string, eventInitDict?: StorageEventInit): StorageEvent;
-}
-
-interface StyleMedia {
- readonly type: string;
- matchMedium(mediaquery: string): boolean;
-}
-
-declare var StyleMedia: {
- prototype: StyleMedia;
- new(): StyleMedia;
-}
-
-interface StyleSheet {
- disabled: boolean;
- readonly href: string;
- readonly media: MediaList;
- readonly ownerNode: Node;
- readonly parentStyleSheet: StyleSheet;
- readonly title: string;
- readonly type: string;
-}
-
-declare var StyleSheet: {
- prototype: StyleSheet;
- new(): StyleSheet;
-}
-
-interface StyleSheetList {
- readonly length: number;
- item(index?: number): StyleSheet;
- [index: number]: StyleSheet;
-}
-
-declare var StyleSheetList: {
- prototype: StyleSheetList;
- new(): StyleSheetList;
-}
-
-interface StyleSheetPageList {
- readonly length: number;
- item(index: number): CSSPageRule;
- [index: number]: CSSPageRule;
-}
-
-declare var StyleSheetPageList: {
- prototype: StyleSheetPageList;
- new(): StyleSheetPageList;
-}
-
-interface SubtleCrypto {
- decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
- deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>;
- deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
- digest(algorithm: AlgorithmIdentifier, data: BufferSource): PromiseLike<ArrayBuffer>;
- encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
- exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;
- exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>;
- exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>;
- generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>;
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>;
- generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
- importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
- importKey(format: "raw" | "pkcs8" | "spki", keyData: BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
- importKey(format: string, keyData: JsonWebKey | BufferSource, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable:boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
- sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: BufferSource): PromiseLike<ArrayBuffer>;
- unwrapKey(format: string, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier, unwrappedKeyAlgorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;
- verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: BufferSource, data: BufferSource): PromiseLike<boolean>;
- wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier): PromiseLike<ArrayBuffer>;
-}
-
-declare var SubtleCrypto: {
- prototype: SubtleCrypto;
- new(): SubtleCrypto;
-}
-
-interface Text extends CharacterData {
- readonly wholeText: string;
- splitText(offset: number): Text;
-}
-
-declare var Text: {
- prototype: Text;
- new(): Text;
-}
-
-interface TextEvent extends UIEvent {
- readonly data: string;
- readonly inputMethod: number;
- readonly locale: string;
- initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void;
- readonly DOM_INPUT_METHOD_DROP: number;
- readonly DOM_INPUT_METHOD_HANDWRITING: number;
- readonly DOM_INPUT_METHOD_IME: number;
- readonly DOM_INPUT_METHOD_KEYBOARD: number;
- readonly DOM_INPUT_METHOD_MULTIMODAL: number;
- readonly DOM_INPUT_METHOD_OPTION: number;
- readonly DOM_INPUT_METHOD_PASTE: number;
- readonly DOM_INPUT_METHOD_SCRIPT: number;
- readonly DOM_INPUT_METHOD_UNKNOWN: number;
- readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-declare var TextEvent: {
- prototype: TextEvent;
- new(): TextEvent;
- readonly DOM_INPUT_METHOD_DROP: number;
- readonly DOM_INPUT_METHOD_HANDWRITING: number;
- readonly DOM_INPUT_METHOD_IME: number;
- readonly DOM_INPUT_METHOD_KEYBOARD: number;
- readonly DOM_INPUT_METHOD_MULTIMODAL: number;
- readonly DOM_INPUT_METHOD_OPTION: number;
- readonly DOM_INPUT_METHOD_PASTE: number;
- readonly DOM_INPUT_METHOD_SCRIPT: number;
- readonly DOM_INPUT_METHOD_UNKNOWN: number;
- readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-interface TextMetrics {
- readonly width: number;
-}
-
-declare var TextMetrics: {
- prototype: TextMetrics;
- new(): TextMetrics;
-}
-
-interface TextTrack extends EventTarget {
- readonly activeCues: TextTrackCueList;
- readonly cues: TextTrackCueList;
- readonly inBandMetadataTrackDispatchType: string;
- readonly kind: string;
- readonly label: string;
- readonly language: string;
- mode: any;
- oncuechange: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- onload: (this: this, ev: Event) => any;
- readonly readyState: number;
- addCue(cue: TextTrackCue): void;
- removeCue(cue: TextTrackCue): void;
- readonly DISABLED: number;
- readonly ERROR: number;
- readonly HIDDEN: number;
- readonly LOADED: number;
- readonly LOADING: number;
- readonly NONE: number;
- readonly SHOWING: number;
- addEventListener(type: "cuechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrack: {
- prototype: TextTrack;
- new(): TextTrack;
- readonly DISABLED: number;
- readonly ERROR: number;
- readonly HIDDEN: number;
- readonly LOADED: number;
- readonly LOADING: number;
- readonly NONE: number;
- readonly SHOWING: number;
-}
-
-interface TextTrackCue extends EventTarget {
- endTime: number;
- id: string;
- onenter: (this: this, ev: Event) => any;
- onexit: (this: this, ev: Event) => any;
- pauseOnExit: boolean;
- startTime: number;
- text: string;
- readonly track: TextTrack;
- getCueAsHTML(): DocumentFragment;
- addEventListener(type: "enter", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "exit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var TextTrackCue: {
- prototype: TextTrackCue;
- new(startTime: number, endTime: number, text: string): TextTrackCue;
-}
-
-interface TextTrackCueList {
- readonly length: number;
- getCueById(id: string): TextTrackCue;
- item(index: number): TextTrackCue;
- [index: number]: TextTrackCue;
-}
-
-declare var TextTrackCueList: {
- prototype: TextTrackCueList;
- new(): TextTrackCueList;
-}
-
-interface TextTrackList extends EventTarget {
- readonly length: number;
- onaddtrack: ((this: this, ev: TrackEvent) => any) | null;
- item(index: number): TextTrack;
- addEventListener(type: "addtrack", listener: (this: this, ev: TrackEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
- [index: number]: TextTrack;
-}
-
-declare var TextTrackList: {
- prototype: TextTrackList;
- new(): TextTrackList;
-}
-
-interface TimeRanges {
- readonly length: number;
- end(index: number): number;
- start(index: number): number;
-}
-
-declare var TimeRanges: {
- prototype: TimeRanges;
- new(): TimeRanges;
-}
-
-interface Touch {
- readonly clientX: number;
- readonly clientY: number;
- readonly identifier: number;
- readonly pageX: number;
- readonly pageY: number;
- readonly screenX: number;
- readonly screenY: number;
- readonly target: EventTarget;
-}
-
-declare var Touch: {
- prototype: Touch;
- new(): Touch;
-}
-
-interface TouchEvent extends UIEvent {
- readonly altKey: boolean;
- readonly changedTouches: TouchList;
- readonly ctrlKey: boolean;
- readonly metaKey: boolean;
- readonly shiftKey: boolean;
- readonly targetTouches: TouchList;
- readonly touches: TouchList;
-}
-
-declare var TouchEvent: {
- prototype: TouchEvent;
- new(): TouchEvent;
-}
-
-interface TouchList {
- readonly length: number;
- item(index: number): Touch | null;
- [index: number]: Touch;
-}
-
-declare var TouchList: {
- prototype: TouchList;
- new(): TouchList;
-}
-
-interface TrackEvent extends Event {
- readonly track: any;
-}
-
-declare var TrackEvent: {
- prototype: TrackEvent;
- new(): TrackEvent;
-}
-
-interface TransitionEvent extends Event {
- readonly elapsedTime: number;
- readonly propertyName: string;
- initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void;
-}
-
-declare var TransitionEvent: {
- prototype: TransitionEvent;
- new(): TransitionEvent;
-}
-
-interface TreeWalker {
- currentNode: Node;
- readonly expandEntityReferences: boolean;
- readonly filter: NodeFilter;
- readonly root: Node;
- readonly whatToShow: number;
- firstChild(): Node;
- lastChild(): Node;
- nextNode(): Node;
- nextSibling(): Node;
- parentNode(): Node;
- previousNode(): Node;
- previousSibling(): Node;
-}
-
-declare var TreeWalker: {
- prototype: TreeWalker;
- new(): TreeWalker;
-}
-
-interface UIEvent extends Event {
- readonly detail: number;
- readonly view: Window;
- initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void;
-}
-
-declare var UIEvent: {
- prototype: UIEvent;
- new(type: string, eventInitDict?: UIEventInit): UIEvent;
-}
-
-interface URL {
- hash: string;
- host: string;
- hostname: string;
- href: string;
- readonly origin: string;
- password: string;
- pathname: string;
- port: string;
- protocol: string;
- search: string;
- username: string;
- toString(): string;
-}
-
-declare var URL: {
- prototype: URL;
- new(url: string, base?: string): URL;
- createObjectURL(object: any, options?: ObjectURLOptions): string;
- revokeObjectURL(url: string): void;
-}
-
-interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer {
- readonly mediaType: string;
-}
-
-declare var UnviewableContentIdentifiedEvent: {
- prototype: UnviewableContentIdentifiedEvent;
- new(): UnviewableContentIdentifiedEvent;
-}
-
-interface ValidityState {
- readonly badInput: boolean;
- readonly customError: boolean;
- readonly patternMismatch: boolean;
- readonly rangeOverflow: boolean;
- readonly rangeUnderflow: boolean;
- readonly stepMismatch: boolean;
- readonly tooLong: boolean;
- readonly typeMismatch: boolean;
- readonly valid: boolean;
- readonly valueMissing: boolean;
-}
-
-declare var ValidityState: {
- prototype: ValidityState;
- new(): ValidityState;
-}
-
-interface VideoPlaybackQuality {
- readonly corruptedVideoFrames: number;
- readonly creationTime: number;
- readonly droppedVideoFrames: number;
- readonly totalFrameDelay: number;
- readonly totalVideoFrames: number;
-}
-
-declare var VideoPlaybackQuality: {
- prototype: VideoPlaybackQuality;
- new(): VideoPlaybackQuality;
-}
-
-interface VideoTrack {
- readonly id: string;
- kind: string;
- readonly label: string;
- language: string;
- selected: boolean;
- readonly sourceBuffer: SourceBuffer;
-}
-
-declare var VideoTrack: {
- prototype: VideoTrack;
- new(): VideoTrack;
-}
-
-interface VideoTrackList extends EventTarget {
- readonly length: number;
- onaddtrack: (this: this, ev: TrackEvent) => any;
- onchange: (this: this, ev: Event) => any;
- onremovetrack: (this: this, ev: TrackEvent) => any;
- readonly selectedIndex: number;
- getTrackById(id: string): VideoTrack | null;
- item(index: number): VideoTrack;
- addEventListener(type: "addtrack", listener: (this: this, ev: TrackEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "removetrack", listener: (this: this, ev: TrackEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
- [index: number]: VideoTrack;
-}
-
-declare var VideoTrackList: {
- prototype: VideoTrackList;
- new(): VideoTrackList;
-}
-
-interface WEBGL_compressed_texture_s3tc {
- readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
- readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-declare var WEBGL_compressed_texture_s3tc: {
- prototype: WEBGL_compressed_texture_s3tc;
- new(): WEBGL_compressed_texture_s3tc;
- readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
- readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
- readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
-}
-
-interface WEBGL_debug_renderer_info {
- readonly UNMASKED_RENDERER_WEBGL: number;
- readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-declare var WEBGL_debug_renderer_info: {
- prototype: WEBGL_debug_renderer_info;
- new(): WEBGL_debug_renderer_info;
- readonly UNMASKED_RENDERER_WEBGL: number;
- readonly UNMASKED_VENDOR_WEBGL: number;
-}
-
-interface WEBGL_depth_texture {
- readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-declare var WEBGL_depth_texture: {
- prototype: WEBGL_depth_texture;
- new(): WEBGL_depth_texture;
- readonly UNSIGNED_INT_24_8_WEBGL: number;
-}
-
-interface WaveShaperNode extends AudioNode {
- curve: Float32Array | null;
- oversample: string;
-}
-
-declare var WaveShaperNode: {
- prototype: WaveShaperNode;
- new(): WaveShaperNode;
-}
-
-interface WebGLActiveInfo {
- readonly name: string;
- readonly size: number;
- readonly type: number;
-}
-
-declare var WebGLActiveInfo: {
- prototype: WebGLActiveInfo;
- new(): WebGLActiveInfo;
-}
-
-interface WebGLBuffer extends WebGLObject {
-}
-
-declare var WebGLBuffer: {
- prototype: WebGLBuffer;
- new(): WebGLBuffer;
-}
-
-interface WebGLContextEvent extends Event {
- readonly statusMessage: string;
-}
-
-declare var WebGLContextEvent: {
- prototype: WebGLContextEvent;
- new(type: string, eventInitDict?: WebGLContextEventInit): WebGLContextEvent;
-}
-
-interface WebGLFramebuffer extends WebGLObject {
-}
-
-declare var WebGLFramebuffer: {
- prototype: WebGLFramebuffer;
- new(): WebGLFramebuffer;
-}
-
-interface WebGLObject {
-}
-
-declare var WebGLObject: {
- prototype: WebGLObject;
- new(): WebGLObject;
-}
-
-interface WebGLProgram extends WebGLObject {
-}
-
-declare var WebGLProgram: {
- prototype: WebGLProgram;
- new(): WebGLProgram;
-}
-
-interface WebGLRenderbuffer extends WebGLObject {
-}
-
-declare var WebGLRenderbuffer: {
- prototype: WebGLRenderbuffer;
- new(): WebGLRenderbuffer;
-}
-
-interface WebGLRenderingContext {
- readonly canvas: HTMLCanvasElement;
- readonly drawingBufferHeight: number;
- readonly drawingBufferWidth: number;
- activeTexture(texture: number): void;
- attachShader(program: WebGLProgram | null, shader: WebGLShader | null): void;
- bindAttribLocation(program: WebGLProgram | null, index: number, name: string): void;
- bindBuffer(target: number, buffer: WebGLBuffer | null): void;
- bindFramebuffer(target: number, framebuffer: WebGLFramebuffer | null): void;
- bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer | null): void;
- bindTexture(target: number, texture: WebGLTexture | null): void;
- blendColor(red: number, green: number, blue: number, alpha: number): void;
- blendEquation(mode: number): void;
- blendEquationSeparate(modeRGB: number, modeAlpha: number): void;
- blendFunc(sfactor: number, dfactor: number): void;
- blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void;
- bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, usage: number): void;
- bufferSubData(target: number, offset: number, data: ArrayBufferView | ArrayBuffer): void;
- checkFramebufferStatus(target: number): number;
- clear(mask: number): void;
- clearColor(red: number, green: number, blue: number, alpha: number): void;
- clearDepth(depth: number): void;
- clearStencil(s: number): void;
- colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void;
- compileShader(shader: WebGLShader | null): void;
- compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: ArrayBufferView): void;
- compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: ArrayBufferView): void;
- copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void;
- copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void;
- createBuffer(): WebGLBuffer | null;
- createFramebuffer(): WebGLFramebuffer | null;
- createProgram(): WebGLProgram | null;
- createRenderbuffer(): WebGLRenderbuffer | null;
- createShader(type: number): WebGLShader | null;
- createTexture(): WebGLTexture | null;
- cullFace(mode: number): void;
- deleteBuffer(buffer: WebGLBuffer | null): void;
- deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
- deleteProgram(program: WebGLProgram | null): void;
- deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
- deleteShader(shader: WebGLShader | null): void;
- deleteTexture(texture: WebGLTexture | null): void;
- depthFunc(func: number): void;
- depthMask(flag: boolean): void;
- depthRange(zNear: number, zFar: number): void;
- detachShader(program: WebGLProgram | null, shader: WebGLShader | null): void;
- disable(cap: number): void;
- disableVertexAttribArray(index: number): void;
- drawArrays(mode: number, first: number, count: number): void;
- drawElements(mode: number, count: number, type: number, offset: number): void;
- enable(cap: number): void;
- enableVertexAttribArray(index: number): void;
- finish(): void;
- flush(): void;
- framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer | null): void;
- framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture | null, level: number): void;
- frontFace(mode: number): void;
- generateMipmap(target: number): void;
- getActiveAttrib(program: WebGLProgram | null, index: number): WebGLActiveInfo | null;
- getActiveUniform(program: WebGLProgram | null, index: number): WebGLActiveInfo | null;
- getAttachedShaders(program: WebGLProgram | null): WebGLShader[] | null;
- getAttribLocation(program: WebGLProgram | null, name: string): number;
- getBufferParameter(target: number, pname: number): any;
- getContextAttributes(): WebGLContextAttributes;
- getError(): number;
- getExtension(name: string): any;
- getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any;
- getParameter(pname: number): any;
- getProgramInfoLog(program: WebGLProgram | null): string | null;
- getProgramParameter(program: WebGLProgram | null, pname: number): any;
- getRenderbufferParameter(target: number, pname: number): any;
- getShaderInfoLog(shader: WebGLShader | null): string | null;
- getShaderParameter(shader: WebGLShader | null, pname: number): any;
- getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat | null;
- getShaderSource(shader: WebGLShader | null): string | null;
- getSupportedExtensions(): string[] | null;
- getTexParameter(target: number, pname: number): any;
- getUniform(program: WebGLProgram | null, location: WebGLUniformLocation | null): any;
- getUniformLocation(program: WebGLProgram | null, name: string): WebGLUniformLocation | null;
- getVertexAttrib(index: number, pname: number): any;
- getVertexAttribOffset(index: number, pname: number): number;
- hint(target: number, mode: number): void;
- isBuffer(buffer: WebGLBuffer | null): boolean;
- isContextLost(): boolean;
- isEnabled(cap: number): boolean;
- isFramebuffer(framebuffer: WebGLFramebuffer | null): boolean;
- isProgram(program: WebGLProgram | null): boolean;
- isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): boolean;
- isShader(shader: WebGLShader | null): boolean;
- isTexture(texture: WebGLTexture | null): boolean;
- lineWidth(width: number): void;
- linkProgram(program: WebGLProgram | null): void;
- pixelStorei(pname: number, param: number): void;
- polygonOffset(factor: number, units: number): void;
- readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView | null): void;
- renderbufferStorage(target: number, internalformat: number, width: number, height: number): void;
- sampleCoverage(value: number, invert: boolean): void;
- scissor(x: number, y: number, width: number, height: number): void;
- shaderSource(shader: WebGLShader | null, source: string): void;
- stencilFunc(func: number, ref: number, mask: number): void;
- stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void;
- stencilMask(mask: number): void;
- stencilMaskSeparate(face: number, mask: number): void;
- stencilOp(fail: number, zfail: number, zpass: number): void;
- stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void;
- texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels?: ArrayBufferView): void;
- texImage2D(target: number, level: number, internalformat: number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): void;
- texParameterf(target: number, pname: number, param: number): void;
- texParameteri(target: number, pname: number, param: number): void;
- texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels?: ArrayBufferView): void;
- texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, pixels?: ImageData | HTMLVideoElement | HTMLImageElement | HTMLCanvasElement): void;
- uniform1f(location: WebGLUniformLocation | null, x: number): void;
- uniform1fv(location: WebGLUniformLocation, v: Float32Array | number[]): void;
- uniform1i(location: WebGLUniformLocation | null, x: number): void;
- uniform1iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
- uniform2f(location: WebGLUniformLocation | null, x: number, y: number): void;
- uniform2fv(location: WebGLUniformLocation, v: Float32Array | number[]): void;
- uniform2i(location: WebGLUniformLocation | null, x: number, y: number): void;
- uniform2iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
- uniform3f(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;
- uniform3fv(location: WebGLUniformLocation, v: Float32Array | number[]): void;
- uniform3i(location: WebGLUniformLocation | null, x: number, y: number, z: number): void;
- uniform3iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
- uniform4f(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;
- uniform4fv(location: WebGLUniformLocation, v: Float32Array | number[]): void;
- uniform4i(location: WebGLUniformLocation | null, x: number, y: number, z: number, w: number): void;
- uniform4iv(location: WebGLUniformLocation, v: Int32Array | number[]): void;
- uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void;
- uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void;
- uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array | number[]): void;
- useProgram(program: WebGLProgram | null): void;
- validateProgram(program: WebGLProgram | null): void;
- vertexAttrib1f(indx: number, x: number): void;
- vertexAttrib1fv(indx: number, values: Float32Array | number[]): void;
- vertexAttrib2f(indx: number, x: number, y: number): void;
- vertexAttrib2fv(indx: number, values: Float32Array | number[]): void;
- vertexAttrib3f(indx: number, x: number, y: number, z: number): void;
- vertexAttrib3fv(indx: number, values: Float32Array | number[]): void;
- vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): void;
- vertexAttrib4fv(indx: number, values: Float32Array | number[]): void;
- vertexAttribPointer(indx: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void;
- viewport(x: number, y: number, width: number, height: number): void;
- readonly ACTIVE_ATTRIBUTES: number;
- readonly ACTIVE_TEXTURE: number;
- readonly ACTIVE_UNIFORMS: number;
- readonly ALIASED_LINE_WIDTH_RANGE: number;
- readonly ALIASED_POINT_SIZE_RANGE: number;
- readonly ALPHA: number;
- readonly ALPHA_BITS: number;
- readonly ALWAYS: number;
- readonly ARRAY_BUFFER: number;
- readonly ARRAY_BUFFER_BINDING: number;
- readonly ATTACHED_SHADERS: number;
- readonly BACK: number;
- readonly BLEND: number;
- readonly BLEND_COLOR: number;
- readonly BLEND_DST_ALPHA: number;
- readonly BLEND_DST_RGB: number;
- readonly BLEND_EQUATION: number;
- readonly BLEND_EQUATION_ALPHA: number;
- readonly BLEND_EQUATION_RGB: number;
- readonly BLEND_SRC_ALPHA: number;
- readonly BLEND_SRC_RGB: number;
- readonly BLUE_BITS: number;
- readonly BOOL: number;
- readonly BOOL_VEC2: number;
- readonly BOOL_VEC3: number;
- readonly BOOL_VEC4: number;
- readonly BROWSER_DEFAULT_WEBGL: number;
- readonly BUFFER_SIZE: number;
- readonly BUFFER_USAGE: number;
- readonly BYTE: number;
- readonly CCW: number;
- readonly CLAMP_TO_EDGE: number;
- readonly COLOR_ATTACHMENT0: number;
- readonly COLOR_BUFFER_BIT: number;
- readonly COLOR_CLEAR_VALUE: number;
- readonly COLOR_WRITEMASK: number;
- readonly COMPILE_STATUS: number;
- readonly COMPRESSED_TEXTURE_FORMATS: number;
- readonly CONSTANT_ALPHA: number;
- readonly CONSTANT_COLOR: number;
- readonly CONTEXT_LOST_WEBGL: number;
- readonly CULL_FACE: number;
- readonly CULL_FACE_MODE: number;
- readonly CURRENT_PROGRAM: number;
- readonly CURRENT_VERTEX_ATTRIB: number;
- readonly CW: number;
- readonly DECR: number;
- readonly DECR_WRAP: number;
- readonly DELETE_STATUS: number;
- readonly DEPTH_ATTACHMENT: number;
- readonly DEPTH_BITS: number;
- readonly DEPTH_BUFFER_BIT: number;
- readonly DEPTH_CLEAR_VALUE: number;
- readonly DEPTH_COMPONENT: number;
- readonly DEPTH_COMPONENT16: number;
- readonly DEPTH_FUNC: number;
- readonly DEPTH_RANGE: number;
- readonly DEPTH_STENCIL: number;
- readonly DEPTH_STENCIL_ATTACHMENT: number;
- readonly DEPTH_TEST: number;
- readonly DEPTH_WRITEMASK: number;
- readonly DITHER: number;
- readonly DONT_CARE: number;
- readonly DST_ALPHA: number;
- readonly DST_COLOR: number;
- readonly DYNAMIC_DRAW: number;
- readonly ELEMENT_ARRAY_BUFFER: number;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
- readonly EQUAL: number;
- readonly FASTEST: number;
- readonly FLOAT: number;
- readonly FLOAT_MAT2: number;
- readonly FLOAT_MAT3: number;
- readonly FLOAT_MAT4: number;
- readonly FLOAT_VEC2: number;
- readonly FLOAT_VEC3: number;
- readonly FLOAT_VEC4: number;
- readonly FRAGMENT_SHADER: number;
- readonly FRAMEBUFFER: number;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
- readonly FRAMEBUFFER_BINDING: number;
- readonly FRAMEBUFFER_COMPLETE: number;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
- readonly FRAMEBUFFER_UNSUPPORTED: number;
- readonly FRONT: number;
- readonly FRONT_AND_BACK: number;
- readonly FRONT_FACE: number;
- readonly FUNC_ADD: number;
- readonly FUNC_REVERSE_SUBTRACT: number;
- readonly FUNC_SUBTRACT: number;
- readonly GENERATE_MIPMAP_HINT: number;
- readonly GEQUAL: number;
- readonly GREATER: number;
- readonly GREEN_BITS: number;
- readonly HIGH_FLOAT: number;
- readonly HIGH_INT: number;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
- readonly INCR: number;
- readonly INCR_WRAP: number;
- readonly INT: number;
- readonly INT_VEC2: number;
- readonly INT_VEC3: number;
- readonly INT_VEC4: number;
- readonly INVALID_ENUM: number;
- readonly INVALID_FRAMEBUFFER_OPERATION: number;
- readonly INVALID_OPERATION: number;
- readonly INVALID_VALUE: number;
- readonly INVERT: number;
- readonly KEEP: number;
- readonly LEQUAL: number;
- readonly LESS: number;
- readonly LINEAR: number;
- readonly LINEAR_MIPMAP_LINEAR: number;
- readonly LINEAR_MIPMAP_NEAREST: number;
- readonly LINES: number;
- readonly LINE_LOOP: number;
- readonly LINE_STRIP: number;
- readonly LINE_WIDTH: number;
- readonly LINK_STATUS: number;
- readonly LOW_FLOAT: number;
- readonly LOW_INT: number;
- readonly LUMINANCE: number;
- readonly LUMINANCE_ALPHA: number;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
- readonly MAX_RENDERBUFFER_SIZE: number;
- readonly MAX_TEXTURE_IMAGE_UNITS: number;
- readonly MAX_TEXTURE_SIZE: number;
- readonly MAX_VARYING_VECTORS: number;
- readonly MAX_VERTEX_ATTRIBS: number;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
- readonly MAX_VERTEX_UNIFORM_VECTORS: number;
- readonly MAX_VIEWPORT_DIMS: number;
- readonly MEDIUM_FLOAT: number;
- readonly MEDIUM_INT: number;
- readonly MIRRORED_REPEAT: number;
- readonly NEAREST: number;
- readonly NEAREST_MIPMAP_LINEAR: number;
- readonly NEAREST_MIPMAP_NEAREST: number;
- readonly NEVER: number;
- readonly NICEST: number;
- readonly NONE: number;
- readonly NOTEQUAL: number;
- readonly NO_ERROR: number;
- readonly ONE: number;
- readonly ONE_MINUS_CONSTANT_ALPHA: number;
- readonly ONE_MINUS_CONSTANT_COLOR: number;
- readonly ONE_MINUS_DST_ALPHA: number;
- readonly ONE_MINUS_DST_COLOR: number;
- readonly ONE_MINUS_SRC_ALPHA: number;
- readonly ONE_MINUS_SRC_COLOR: number;
- readonly OUT_OF_MEMORY: number;
- readonly PACK_ALIGNMENT: number;
- readonly POINTS: number;
- readonly POLYGON_OFFSET_FACTOR: number;
- readonly POLYGON_OFFSET_FILL: number;
- readonly POLYGON_OFFSET_UNITS: number;
- readonly RED_BITS: number;
- readonly RENDERBUFFER: number;
- readonly RENDERBUFFER_ALPHA_SIZE: number;
- readonly RENDERBUFFER_BINDING: number;
- readonly RENDERBUFFER_BLUE_SIZE: number;
- readonly RENDERBUFFER_DEPTH_SIZE: number;
- readonly RENDERBUFFER_GREEN_SIZE: number;
- readonly RENDERBUFFER_HEIGHT: number;
- readonly RENDERBUFFER_INTERNAL_FORMAT: number;
- readonly RENDERBUFFER_RED_SIZE: number;
- readonly RENDERBUFFER_STENCIL_SIZE: number;
- readonly RENDERBUFFER_WIDTH: number;
- readonly RENDERER: number;
- readonly REPEAT: number;
- readonly REPLACE: number;
- readonly RGB: number;
- readonly RGB565: number;
- readonly RGB5_A1: number;
- readonly RGBA: number;
- readonly RGBA4: number;
- readonly SAMPLER_2D: number;
- readonly SAMPLER_CUBE: number;
- readonly SAMPLES: number;
- readonly SAMPLE_ALPHA_TO_COVERAGE: number;
- readonly SAMPLE_BUFFERS: number;
- readonly SAMPLE_COVERAGE: number;
- readonly SAMPLE_COVERAGE_INVERT: number;
- readonly SAMPLE_COVERAGE_VALUE: number;
- readonly SCISSOR_BOX: number;
- readonly SCISSOR_TEST: number;
- readonly SHADER_TYPE: number;
- readonly SHADING_LANGUAGE_VERSION: number;
- readonly SHORT: number;
- readonly SRC_ALPHA: number;
- readonly SRC_ALPHA_SATURATE: number;
- readonly SRC_COLOR: number;
- readonly STATIC_DRAW: number;
- readonly STENCIL_ATTACHMENT: number;
- readonly STENCIL_BACK_FAIL: number;
- readonly STENCIL_BACK_FUNC: number;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
- readonly STENCIL_BACK_REF: number;
- readonly STENCIL_BACK_VALUE_MASK: number;
- readonly STENCIL_BACK_WRITEMASK: number;
- readonly STENCIL_BITS: number;
- readonly STENCIL_BUFFER_BIT: number;
- readonly STENCIL_CLEAR_VALUE: number;
- readonly STENCIL_FAIL: number;
- readonly STENCIL_FUNC: number;
- readonly STENCIL_INDEX: number;
- readonly STENCIL_INDEX8: number;
- readonly STENCIL_PASS_DEPTH_FAIL: number;
- readonly STENCIL_PASS_DEPTH_PASS: number;
- readonly STENCIL_REF: number;
- readonly STENCIL_TEST: number;
- readonly STENCIL_VALUE_MASK: number;
- readonly STENCIL_WRITEMASK: number;
- readonly STREAM_DRAW: number;
- readonly SUBPIXEL_BITS: number;
- readonly TEXTURE: number;
- readonly TEXTURE0: number;
- readonly TEXTURE1: number;
- readonly TEXTURE10: number;
- readonly TEXTURE11: number;
- readonly TEXTURE12: number;
- readonly TEXTURE13: number;
- readonly TEXTURE14: number;
- readonly TEXTURE15: number;
- readonly TEXTURE16: number;
- readonly TEXTURE17: number;
- readonly TEXTURE18: number;
- readonly TEXTURE19: number;
- readonly TEXTURE2: number;
- readonly TEXTURE20: number;
- readonly TEXTURE21: number;
- readonly TEXTURE22: number;
- readonly TEXTURE23: number;
- readonly TEXTURE24: number;
- readonly TEXTURE25: number;
- readonly TEXTURE26: number;
- readonly TEXTURE27: number;
- readonly TEXTURE28: number;
- readonly TEXTURE29: number;
- readonly TEXTURE3: number;
- readonly TEXTURE30: number;
- readonly TEXTURE31: number;
- readonly TEXTURE4: number;
- readonly TEXTURE5: number;
- readonly TEXTURE6: number;
- readonly TEXTURE7: number;
- readonly TEXTURE8: number;
- readonly TEXTURE9: number;
- readonly TEXTURE_2D: number;
- readonly TEXTURE_BINDING_2D: number;
- readonly TEXTURE_BINDING_CUBE_MAP: number;
- readonly TEXTURE_CUBE_MAP: number;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
- readonly TEXTURE_MAG_FILTER: number;
- readonly TEXTURE_MIN_FILTER: number;
- readonly TEXTURE_WRAP_S: number;
- readonly TEXTURE_WRAP_T: number;
- readonly TRIANGLES: number;
- readonly TRIANGLE_FAN: number;
- readonly TRIANGLE_STRIP: number;
- readonly UNPACK_ALIGNMENT: number;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
- readonly UNPACK_FLIP_Y_WEBGL: number;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
- readonly UNSIGNED_BYTE: number;
- readonly UNSIGNED_INT: number;
- readonly UNSIGNED_SHORT: number;
- readonly UNSIGNED_SHORT_4_4_4_4: number;
- readonly UNSIGNED_SHORT_5_5_5_1: number;
- readonly UNSIGNED_SHORT_5_6_5: number;
- readonly VALIDATE_STATUS: number;
- readonly VENDOR: number;
- readonly VERSION: number;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
- readonly VERTEX_SHADER: number;
- readonly VIEWPORT: number;
- readonly ZERO: number;
-}
-
-declare var WebGLRenderingContext: {
- prototype: WebGLRenderingContext;
- new(): WebGLRenderingContext;
- readonly ACTIVE_ATTRIBUTES: number;
- readonly ACTIVE_TEXTURE: number;
- readonly ACTIVE_UNIFORMS: number;
- readonly ALIASED_LINE_WIDTH_RANGE: number;
- readonly ALIASED_POINT_SIZE_RANGE: number;
- readonly ALPHA: number;
- readonly ALPHA_BITS: number;
- readonly ALWAYS: number;
- readonly ARRAY_BUFFER: number;
- readonly ARRAY_BUFFER_BINDING: number;
- readonly ATTACHED_SHADERS: number;
- readonly BACK: number;
- readonly BLEND: number;
- readonly BLEND_COLOR: number;
- readonly BLEND_DST_ALPHA: number;
- readonly BLEND_DST_RGB: number;
- readonly BLEND_EQUATION: number;
- readonly BLEND_EQUATION_ALPHA: number;
- readonly BLEND_EQUATION_RGB: number;
- readonly BLEND_SRC_ALPHA: number;
- readonly BLEND_SRC_RGB: number;
- readonly BLUE_BITS: number;
- readonly BOOL: number;
- readonly BOOL_VEC2: number;
- readonly BOOL_VEC3: number;
- readonly BOOL_VEC4: number;
- readonly BROWSER_DEFAULT_WEBGL: number;
- readonly BUFFER_SIZE: number;
- readonly BUFFER_USAGE: number;
- readonly BYTE: number;
- readonly CCW: number;
- readonly CLAMP_TO_EDGE: number;
- readonly COLOR_ATTACHMENT0: number;
- readonly COLOR_BUFFER_BIT: number;
- readonly COLOR_CLEAR_VALUE: number;
- readonly COLOR_WRITEMASK: number;
- readonly COMPILE_STATUS: number;
- readonly COMPRESSED_TEXTURE_FORMATS: number;
- readonly CONSTANT_ALPHA: number;
- readonly CONSTANT_COLOR: number;
- readonly CONTEXT_LOST_WEBGL: number;
- readonly CULL_FACE: number;
- readonly CULL_FACE_MODE: number;
- readonly CURRENT_PROGRAM: number;
- readonly CURRENT_VERTEX_ATTRIB: number;
- readonly CW: number;
- readonly DECR: number;
- readonly DECR_WRAP: number;
- readonly DELETE_STATUS: number;
- readonly DEPTH_ATTACHMENT: number;
- readonly DEPTH_BITS: number;
- readonly DEPTH_BUFFER_BIT: number;
- readonly DEPTH_CLEAR_VALUE: number;
- readonly DEPTH_COMPONENT: number;
- readonly DEPTH_COMPONENT16: number;
- readonly DEPTH_FUNC: number;
- readonly DEPTH_RANGE: number;
- readonly DEPTH_STENCIL: number;
- readonly DEPTH_STENCIL_ATTACHMENT: number;
- readonly DEPTH_TEST: number;
- readonly DEPTH_WRITEMASK: number;
- readonly DITHER: number;
- readonly DONT_CARE: number;
- readonly DST_ALPHA: number;
- readonly DST_COLOR: number;
- readonly DYNAMIC_DRAW: number;
- readonly ELEMENT_ARRAY_BUFFER: number;
- readonly ELEMENT_ARRAY_BUFFER_BINDING: number;
- readonly EQUAL: number;
- readonly FASTEST: number;
- readonly FLOAT: number;
- readonly FLOAT_MAT2: number;
- readonly FLOAT_MAT3: number;
- readonly FLOAT_MAT4: number;
- readonly FLOAT_VEC2: number;
- readonly FLOAT_VEC3: number;
- readonly FLOAT_VEC4: number;
- readonly FRAGMENT_SHADER: number;
- readonly FRAMEBUFFER: number;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number;
- readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number;
- readonly FRAMEBUFFER_BINDING: number;
- readonly FRAMEBUFFER_COMPLETE: number;
- readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number;
- readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number;
- readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number;
- readonly FRAMEBUFFER_UNSUPPORTED: number;
- readonly FRONT: number;
- readonly FRONT_AND_BACK: number;
- readonly FRONT_FACE: number;
- readonly FUNC_ADD: number;
- readonly FUNC_REVERSE_SUBTRACT: number;
- readonly FUNC_SUBTRACT: number;
- readonly GENERATE_MIPMAP_HINT: number;
- readonly GEQUAL: number;
- readonly GREATER: number;
- readonly GREEN_BITS: number;
- readonly HIGH_FLOAT: number;
- readonly HIGH_INT: number;
- readonly IMPLEMENTATION_COLOR_READ_FORMAT: number;
- readonly IMPLEMENTATION_COLOR_READ_TYPE: number;
- readonly INCR: number;
- readonly INCR_WRAP: number;
- readonly INT: number;
- readonly INT_VEC2: number;
- readonly INT_VEC3: number;
- readonly INT_VEC4: number;
- readonly INVALID_ENUM: number;
- readonly INVALID_FRAMEBUFFER_OPERATION: number;
- readonly INVALID_OPERATION: number;
- readonly INVALID_VALUE: number;
- readonly INVERT: number;
- readonly KEEP: number;
- readonly LEQUAL: number;
- readonly LESS: number;
- readonly LINEAR: number;
- readonly LINEAR_MIPMAP_LINEAR: number;
- readonly LINEAR_MIPMAP_NEAREST: number;
- readonly LINES: number;
- readonly LINE_LOOP: number;
- readonly LINE_STRIP: number;
- readonly LINE_WIDTH: number;
- readonly LINK_STATUS: number;
- readonly LOW_FLOAT: number;
- readonly LOW_INT: number;
- readonly LUMINANCE: number;
- readonly LUMINANCE_ALPHA: number;
- readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number;
- readonly MAX_CUBE_MAP_TEXTURE_SIZE: number;
- readonly MAX_FRAGMENT_UNIFORM_VECTORS: number;
- readonly MAX_RENDERBUFFER_SIZE: number;
- readonly MAX_TEXTURE_IMAGE_UNITS: number;
- readonly MAX_TEXTURE_SIZE: number;
- readonly MAX_VARYING_VECTORS: number;
- readonly MAX_VERTEX_ATTRIBS: number;
- readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number;
- readonly MAX_VERTEX_UNIFORM_VECTORS: number;
- readonly MAX_VIEWPORT_DIMS: number;
- readonly MEDIUM_FLOAT: number;
- readonly MEDIUM_INT: number;
- readonly MIRRORED_REPEAT: number;
- readonly NEAREST: number;
- readonly NEAREST_MIPMAP_LINEAR: number;
- readonly NEAREST_MIPMAP_NEAREST: number;
- readonly NEVER: number;
- readonly NICEST: number;
- readonly NONE: number;
- readonly NOTEQUAL: number;
- readonly NO_ERROR: number;
- readonly ONE: number;
- readonly ONE_MINUS_CONSTANT_ALPHA: number;
- readonly ONE_MINUS_CONSTANT_COLOR: number;
- readonly ONE_MINUS_DST_ALPHA: number;
- readonly ONE_MINUS_DST_COLOR: number;
- readonly ONE_MINUS_SRC_ALPHA: number;
- readonly ONE_MINUS_SRC_COLOR: number;
- readonly OUT_OF_MEMORY: number;
- readonly PACK_ALIGNMENT: number;
- readonly POINTS: number;
- readonly POLYGON_OFFSET_FACTOR: number;
- readonly POLYGON_OFFSET_FILL: number;
- readonly POLYGON_OFFSET_UNITS: number;
- readonly RED_BITS: number;
- readonly RENDERBUFFER: number;
- readonly RENDERBUFFER_ALPHA_SIZE: number;
- readonly RENDERBUFFER_BINDING: number;
- readonly RENDERBUFFER_BLUE_SIZE: number;
- readonly RENDERBUFFER_DEPTH_SIZE: number;
- readonly RENDERBUFFER_GREEN_SIZE: number;
- readonly RENDERBUFFER_HEIGHT: number;
- readonly RENDERBUFFER_INTERNAL_FORMAT: number;
- readonly RENDERBUFFER_RED_SIZE: number;
- readonly RENDERBUFFER_STENCIL_SIZE: number;
- readonly RENDERBUFFER_WIDTH: number;
- readonly RENDERER: number;
- readonly REPEAT: number;
- readonly REPLACE: number;
- readonly RGB: number;
- readonly RGB565: number;
- readonly RGB5_A1: number;
- readonly RGBA: number;
- readonly RGBA4: number;
- readonly SAMPLER_2D: number;
- readonly SAMPLER_CUBE: number;
- readonly SAMPLES: number;
- readonly SAMPLE_ALPHA_TO_COVERAGE: number;
- readonly SAMPLE_BUFFERS: number;
- readonly SAMPLE_COVERAGE: number;
- readonly SAMPLE_COVERAGE_INVERT: number;
- readonly SAMPLE_COVERAGE_VALUE: number;
- readonly SCISSOR_BOX: number;
- readonly SCISSOR_TEST: number;
- readonly SHADER_TYPE: number;
- readonly SHADING_LANGUAGE_VERSION: number;
- readonly SHORT: number;
- readonly SRC_ALPHA: number;
- readonly SRC_ALPHA_SATURATE: number;
- readonly SRC_COLOR: number;
- readonly STATIC_DRAW: number;
- readonly STENCIL_ATTACHMENT: number;
- readonly STENCIL_BACK_FAIL: number;
- readonly STENCIL_BACK_FUNC: number;
- readonly STENCIL_BACK_PASS_DEPTH_FAIL: number;
- readonly STENCIL_BACK_PASS_DEPTH_PASS: number;
- readonly STENCIL_BACK_REF: number;
- readonly STENCIL_BACK_VALUE_MASK: number;
- readonly STENCIL_BACK_WRITEMASK: number;
- readonly STENCIL_BITS: number;
- readonly STENCIL_BUFFER_BIT: number;
- readonly STENCIL_CLEAR_VALUE: number;
- readonly STENCIL_FAIL: number;
- readonly STENCIL_FUNC: number;
- readonly STENCIL_INDEX: number;
- readonly STENCIL_INDEX8: number;
- readonly STENCIL_PASS_DEPTH_FAIL: number;
- readonly STENCIL_PASS_DEPTH_PASS: number;
- readonly STENCIL_REF: number;
- readonly STENCIL_TEST: number;
- readonly STENCIL_VALUE_MASK: number;
- readonly STENCIL_WRITEMASK: number;
- readonly STREAM_DRAW: number;
- readonly SUBPIXEL_BITS: number;
- readonly TEXTURE: number;
- readonly TEXTURE0: number;
- readonly TEXTURE1: number;
- readonly TEXTURE10: number;
- readonly TEXTURE11: number;
- readonly TEXTURE12: number;
- readonly TEXTURE13: number;
- readonly TEXTURE14: number;
- readonly TEXTURE15: number;
- readonly TEXTURE16: number;
- readonly TEXTURE17: number;
- readonly TEXTURE18: number;
- readonly TEXTURE19: number;
- readonly TEXTURE2: number;
- readonly TEXTURE20: number;
- readonly TEXTURE21: number;
- readonly TEXTURE22: number;
- readonly TEXTURE23: number;
- readonly TEXTURE24: number;
- readonly TEXTURE25: number;
- readonly TEXTURE26: number;
- readonly TEXTURE27: number;
- readonly TEXTURE28: number;
- readonly TEXTURE29: number;
- readonly TEXTURE3: number;
- readonly TEXTURE30: number;
- readonly TEXTURE31: number;
- readonly TEXTURE4: number;
- readonly TEXTURE5: number;
- readonly TEXTURE6: number;
- readonly TEXTURE7: number;
- readonly TEXTURE8: number;
- readonly TEXTURE9: number;
- readonly TEXTURE_2D: number;
- readonly TEXTURE_BINDING_2D: number;
- readonly TEXTURE_BINDING_CUBE_MAP: number;
- readonly TEXTURE_CUBE_MAP: number;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number;
- readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number;
- readonly TEXTURE_CUBE_MAP_POSITIVE_X: number;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number;
- readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number;
- readonly TEXTURE_MAG_FILTER: number;
- readonly TEXTURE_MIN_FILTER: number;
- readonly TEXTURE_WRAP_S: number;
- readonly TEXTURE_WRAP_T: number;
- readonly TRIANGLES: number;
- readonly TRIANGLE_FAN: number;
- readonly TRIANGLE_STRIP: number;
- readonly UNPACK_ALIGNMENT: number;
- readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number;
- readonly UNPACK_FLIP_Y_WEBGL: number;
- readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number;
- readonly UNSIGNED_BYTE: number;
- readonly UNSIGNED_INT: number;
- readonly UNSIGNED_SHORT: number;
- readonly UNSIGNED_SHORT_4_4_4_4: number;
- readonly UNSIGNED_SHORT_5_5_5_1: number;
- readonly UNSIGNED_SHORT_5_6_5: number;
- readonly VALIDATE_STATUS: number;
- readonly VENDOR: number;
- readonly VERSION: number;
- readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number;
- readonly VERTEX_ATTRIB_ARRAY_ENABLED: number;
- readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number;
- readonly VERTEX_ATTRIB_ARRAY_POINTER: number;
- readonly VERTEX_ATTRIB_ARRAY_SIZE: number;
- readonly VERTEX_ATTRIB_ARRAY_STRIDE: number;
- readonly VERTEX_ATTRIB_ARRAY_TYPE: number;
- readonly VERTEX_SHADER: number;
- readonly VIEWPORT: number;
- readonly ZERO: number;
-}
-
-interface WebGLShader extends WebGLObject {
-}
-
-declare var WebGLShader: {
- prototype: WebGLShader;
- new(): WebGLShader;
-}
-
-interface WebGLShaderPrecisionFormat {
- readonly precision: number;
- readonly rangeMax: number;
- readonly rangeMin: number;
-}
-
-declare var WebGLShaderPrecisionFormat: {
- prototype: WebGLShaderPrecisionFormat;
- new(): WebGLShaderPrecisionFormat;
-}
-
-interface WebGLTexture extends WebGLObject {
-}
-
-declare var WebGLTexture: {
- prototype: WebGLTexture;
- new(): WebGLTexture;
-}
-
-interface WebGLUniformLocation {
-}
-
-declare var WebGLUniformLocation: {
- prototype: WebGLUniformLocation;
- new(): WebGLUniformLocation;
-}
-
-interface WebKitCSSMatrix {
- a: number;
- b: number;
- c: number;
- d: number;
- e: number;
- f: number;
- m11: number;
- m12: number;
- m13: number;
- m14: number;
- m21: number;
- m22: number;
- m23: number;
- m24: number;
- m31: number;
- m32: number;
- m33: number;
- m34: number;
- m41: number;
- m42: number;
- m43: number;
- m44: number;
- inverse(): WebKitCSSMatrix;
- multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix;
- rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix;
- rotateAxisAngle(x: number, y: number, z: number, angle: number): WebKitCSSMatrix;
- scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix;
- setMatrixValue(value: string): void;
- skewX(angle: number): WebKitCSSMatrix;
- skewY(angle: number): WebKitCSSMatrix;
- toString(): string;
- translate(x: number, y: number, z?: number): WebKitCSSMatrix;
-}
-
-declare var WebKitCSSMatrix: {
- prototype: WebKitCSSMatrix;
- new(text?: string): WebKitCSSMatrix;
-}
-
-interface WebKitPoint {
- x: number;
- y: number;
-}
-
-declare var WebKitPoint: {
- prototype: WebKitPoint;
- new(x?: number, y?: number): WebKitPoint;
-}
-
-interface WebSocket extends EventTarget {
- binaryType: string;
- readonly bufferedAmount: number;
- readonly extensions: string;
- onclose: (this: this, ev: CloseEvent) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- onmessage: (this: this, ev: MessageEvent) => any;
- onopen: (this: this, ev: Event) => any;
- readonly protocol: string;
- readonly readyState: number;
- readonly url: string;
- close(code?: number, reason?: string): void;
- send(data: any): void;
- readonly CLOSED: number;
- readonly CLOSING: number;
- readonly CONNECTING: number;
- readonly OPEN: number;
- addEventListener(type: "close", listener: (this: this, ev: CloseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "message", listener: (this: this, ev: MessageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "open", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var WebSocket: {
- prototype: WebSocket;
- new(url: string, protocols?: string | string[]): WebSocket;
- readonly CLOSED: number;
- readonly CLOSING: number;
- readonly CONNECTING: number;
- readonly OPEN: number;
-}
-
-interface WheelEvent extends MouseEvent {
- readonly deltaMode: number;
- readonly deltaX: number;
- readonly deltaY: number;
- readonly deltaZ: number;
- readonly wheelDelta: number;
- readonly wheelDeltaX: number;
- readonly wheelDeltaY: number;
- getCurrentPoint(element: Element): void;
- initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void;
- readonly DOM_DELTA_LINE: number;
- readonly DOM_DELTA_PAGE: number;
- readonly DOM_DELTA_PIXEL: number;
-}
-
-declare var WheelEvent: {
- prototype: WheelEvent;
- new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;
- readonly DOM_DELTA_LINE: number;
- readonly DOM_DELTA_PAGE: number;
- readonly DOM_DELTA_PIXEL: number;
-}
-
-interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64 {
- readonly applicationCache: ApplicationCache;
- readonly clientInformation: Navigator;
- readonly closed: boolean;
- readonly crypto: Crypto;
- defaultStatus: string;
- readonly devicePixelRatio: number;
- readonly doNotTrack: string;
- readonly document: Document;
- event: Event;
- readonly external: External;
- readonly frameElement: Element;
- readonly frames: Window;
- readonly history: History;
- readonly innerHeight: number;
- readonly innerWidth: number;
- readonly length: number;
- readonly location: Location;
- readonly locationbar: BarProp;
- readonly menubar: BarProp;
- readonly msCredentials: MSCredentials;
- name: string;
- readonly navigator: Navigator;
- offscreenBuffering: string | boolean;
- onabort: (this: this, ev: UIEvent) => any;
- onafterprint: (this: this, ev: Event) => any;
- onbeforeprint: (this: this, ev: Event) => any;
- onbeforeunload: (this: this, ev: BeforeUnloadEvent) => any;
- onblur: (this: this, ev: FocusEvent) => any;
- oncanplay: (this: this, ev: Event) => any;
- oncanplaythrough: (this: this, ev: Event) => any;
- onchange: (this: this, ev: Event) => any;
- onclick: (this: this, ev: MouseEvent) => any;
- oncompassneedscalibration: (this: this, ev: Event) => any;
- oncontextmenu: (this: this, ev: PointerEvent) => any;
- ondblclick: (this: this, ev: MouseEvent) => any;
- ondevicelight: (this: this, ev: DeviceLightEvent) => any;
- ondevicemotion: (this: this, ev: DeviceMotionEvent) => any;
- ondeviceorientation: (this: this, ev: DeviceOrientationEvent) => any;
- ondrag: (this: this, ev: DragEvent) => any;
- ondragend: (this: this, ev: DragEvent) => any;
- ondragenter: (this: this, ev: DragEvent) => any;
- ondragleave: (this: this, ev: DragEvent) => any;
- ondragover: (this: this, ev: DragEvent) => any;
- ondragstart: (this: this, ev: DragEvent) => any;
- ondrop: (this: this, ev: DragEvent) => any;
- ondurationchange: (this: this, ev: Event) => any;
- onemptied: (this: this, ev: Event) => any;
- onended: (this: this, ev: MediaStreamErrorEvent) => any;
- onerror: ErrorEventHandler;
- onfocus: (this: this, ev: FocusEvent) => any;
- onhashchange: (this: this, ev: HashChangeEvent) => any;
- oninput: (this: this, ev: Event) => any;
- oninvalid: (this: this, ev: Event) => any;
- onkeydown: (this: this, ev: KeyboardEvent) => any;
- onkeypress: (this: this, ev: KeyboardEvent) => any;
- onkeyup: (this: this, ev: KeyboardEvent) => any;
- onload: (this: this, ev: Event) => any;
- onloadeddata: (this: this, ev: Event) => any;
- onloadedmetadata: (this: this, ev: Event) => any;
- onloadstart: (this: this, ev: Event) => any;
- onmessage: (this: this, ev: MessageEvent) => any;
- onmousedown: (this: this, ev: MouseEvent) => any;
- onmouseenter: (this: this, ev: MouseEvent) => any;
- onmouseleave: (this: this, ev: MouseEvent) => any;
- onmousemove: (this: this, ev: MouseEvent) => any;
- onmouseout: (this: this, ev: MouseEvent) => any;
- onmouseover: (this: this, ev: MouseEvent) => any;
- onmouseup: (this: this, ev: MouseEvent) => any;
- onmousewheel: (this: this, ev: WheelEvent) => any;
- onmsgesturechange: (this: this, ev: MSGestureEvent) => any;
- onmsgesturedoubletap: (this: this, ev: MSGestureEvent) => any;
- onmsgestureend: (this: this, ev: MSGestureEvent) => any;
- onmsgesturehold: (this: this, ev: MSGestureEvent) => any;
- onmsgesturestart: (this: this, ev: MSGestureEvent) => any;
- onmsgesturetap: (this: this, ev: MSGestureEvent) => any;
- onmsinertiastart: (this: this, ev: MSGestureEvent) => any;
- onmspointercancel: (this: this, ev: MSPointerEvent) => any;
- onmspointerdown: (this: this, ev: MSPointerEvent) => any;
- onmspointerenter: (this: this, ev: MSPointerEvent) => any;
- onmspointerleave: (this: this, ev: MSPointerEvent) => any;
- onmspointermove: (this: this, ev: MSPointerEvent) => any;
- onmspointerout: (this: this, ev: MSPointerEvent) => any;
- onmspointerover: (this: this, ev: MSPointerEvent) => any;
- onmspointerup: (this: this, ev: MSPointerEvent) => any;
- onoffline: (this: this, ev: Event) => any;
- ononline: (this: this, ev: Event) => any;
- onorientationchange: (this: this, ev: Event) => any;
- onpagehide: (this: this, ev: PageTransitionEvent) => any;
- onpageshow: (this: this, ev: PageTransitionEvent) => any;
- onpause: (this: this, ev: Event) => any;
- onplay: (this: this, ev: Event) => any;
- onplaying: (this: this, ev: Event) => any;
- onpopstate: (this: this, ev: PopStateEvent) => any;
- onprogress: (this: this, ev: ProgressEvent) => any;
- onratechange: (this: this, ev: Event) => any;
- onreadystatechange: (this: this, ev: ProgressEvent) => any;
- onreset: (this: this, ev: Event) => any;
- onresize: (this: this, ev: UIEvent) => any;
- onscroll: (this: this, ev: UIEvent) => any;
- onseeked: (this: this, ev: Event) => any;
- onseeking: (this: this, ev: Event) => any;
- onselect: (this: this, ev: UIEvent) => any;
- onstalled: (this: this, ev: Event) => any;
- onstorage: (this: this, ev: StorageEvent) => any;
- onsubmit: (this: this, ev: Event) => any;
- onsuspend: (this: this, ev: Event) => any;
- ontimeupdate: (this: this, ev: Event) => any;
- ontouchcancel: (ev: TouchEvent) => any;
- ontouchend: (ev: TouchEvent) => any;
- ontouchmove: (ev: TouchEvent) => any;
- ontouchstart: (ev: TouchEvent) => any;
- onunload: (this: this, ev: Event) => any;
- onvolumechange: (this: this, ev: Event) => any;
- onwaiting: (this: this, ev: Event) => any;
- opener: any;
- orientation: string | number;
- readonly outerHeight: number;
- readonly outerWidth: number;
- readonly pageXOffset: number;
- readonly pageYOffset: number;
- readonly parent: Window;
- readonly performance: Performance;
- readonly personalbar: BarProp;
- readonly screen: Screen;
- readonly screenLeft: number;
- readonly screenTop: number;
- readonly screenX: number;
- readonly screenY: number;
- readonly scrollX: number;
- readonly scrollY: number;
- readonly scrollbars: BarProp;
- readonly self: Window;
- status: string;
- readonly statusbar: BarProp;
- readonly styleMedia: StyleMedia;
- readonly toolbar: BarProp;
- readonly top: Window;
- readonly window: Window;
- URL: typeof URL;
- Blob: typeof Blob;
- alert(message?: any): void;
- blur(): void;
- cancelAnimationFrame(handle: number): void;
- captureEvents(): void;
- close(): void;
- confirm(message?: string): boolean;
- focus(): void;
- getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
- getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
- getSelection(): Selection;
- matchMedia(mediaQuery: string): MediaQueryList;
- moveBy(x?: number, y?: number): void;
- moveTo(x?: number, y?: number): void;
- msWriteProfilerMark(profilerMarkName: string): void;
- open(url?: string, target?: string, features?: string, replace?: boolean): Window;
- postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
- print(): void;
- prompt(message?: string, _default?: string): string | null;
- releaseEvents(): void;
- requestAnimationFrame(callback: FrameRequestCallback): number;
- resizeBy(x?: number, y?: number): void;
- resizeTo(x?: number, y?: number): void;
- scroll(x?: number, y?: number): void;
- scrollBy(x?: number, y?: number): void;
- scrollTo(x?: number, y?: number): void;
- webkitCancelAnimationFrame(handle: number): void;
- webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
- webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
- webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
- scroll(options?: ScrollToOptions): void;
- scrollTo(options?: ScrollToOptions): void;
- scrollBy(options?: ScrollToOptions): void;
- addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureHold", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSGestureTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSInertiaStart", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerCancel", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerDown", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerEnter", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerLeave", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerMove", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOut", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerOver", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "MSPointerUp", listener: (this: this, ev: MSPointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "abort", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "afterprint", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeprint", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "beforeunload", listener: (this: this, ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "blur", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "canplay", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "canplaythrough", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "change", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "click", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "compassneedscalibration", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "contextmenu", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dblclick", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "devicelight", listener: (this: this, ev: DeviceLightEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "devicemotion", listener: (this: this, ev: DeviceMotionEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "deviceorientation", listener: (this: this, ev: DeviceOrientationEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drag", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragend", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragenter", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragleave", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragover", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "dragstart", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "drop", listener: (this: this, ev: DragEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "durationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "emptied", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "ended", listener: (this: this, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "focus", listener: (this: this, ev: FocusEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "hashchange", listener: (this: this, ev: HashChangeEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "input", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "invalid", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "keydown", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keypress", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "keyup", listener: (this: this, ev: KeyboardEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadeddata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadedmetadata", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "message", listener: (this: this, ev: MessageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousedown", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseenter", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseleave", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousemove", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseout", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseover", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mouseup", listener: (this: this, ev: MouseEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "mousewheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "offline", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "online", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "orientationchange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pagehide", listener: (this: this, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pageshow", listener: (this: this, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pause", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "play", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "playing", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "popstate", listener: (this: this, ev: PopStateEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "ratechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "readystatechange", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "reset", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "resize", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "scroll", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "seeked", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "seeking", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "select", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "stalled", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "storage", listener: (this: this, ev: StorageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "submit", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "suspend", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "timeupdate", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "unload", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "volumechange", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "waiting", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
- [index: number]: Window;
-}
-
-declare var Window: {
- prototype: Window;
- new(): Window;
-}
-
-interface Worker extends EventTarget, AbstractWorker {
- onmessage: (this: this, ev: MessageEvent) => any;
- postMessage(message: any, ports?: any): void;
- terminate(): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "message", listener: (this: this, ev: MessageEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var Worker: {
- prototype: Worker;
- new(stringUrl: string): Worker;
-}
-
-interface XMLDocument extends Document {
-}
-
-declare var XMLDocument: {
- prototype: XMLDocument;
- new(): XMLDocument;
-}
-
-interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
- onreadystatechange: (this: this, ev: ProgressEvent) => any;
- readonly readyState: number;
- readonly response: any;
- readonly responseText: string;
- responseType: string;
- readonly responseXML: any;
- readonly status: number;
- readonly statusText: string;
- timeout: number;
- readonly upload: XMLHttpRequestUpload;
- withCredentials: boolean;
- msCaching?: string;
- abort(): void;
- getAllResponseHeaders(): string;
- getResponseHeader(header: string): string | null;
- msCachingEnabled(): boolean;
- open(method: string, url: string, async?: boolean, user?: string, password?: string): void;
- overrideMimeType(mime: string): void;
- send(data?: Document): void;
- send(data?: string): void;
- send(data?: any): void;
- setRequestHeader(header: string, value: string): void;
- readonly DONE: number;
- readonly HEADERS_RECEIVED: number;
- readonly LOADING: number;
- readonly OPENED: number;
- readonly UNSENT: number;
- addEventListener(type: "abort", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadend", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "readystatechange", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "timeout", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequest: {
- prototype: XMLHttpRequest;
- new(): XMLHttpRequest;
- readonly DONE: number;
- readonly HEADERS_RECEIVED: number;
- readonly LOADING: number;
- readonly OPENED: number;
- readonly UNSENT: number;
- create(): XMLHttpRequest;
-}
-
-interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget {
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-declare var XMLHttpRequestUpload: {
- prototype: XMLHttpRequestUpload;
- new(): XMLHttpRequestUpload;
-}
-
-interface XMLSerializer {
- serializeToString(target: Node): string;
-}
-
-declare var XMLSerializer: {
- prototype: XMLSerializer;
- new(): XMLSerializer;
-}
-
-interface XPathEvaluator {
- createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;
- createNSResolver(nodeResolver?: Node): XPathNSResolver;
- evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult;
-}
-
-declare var XPathEvaluator: {
- prototype: XPathEvaluator;
- new(): XPathEvaluator;
-}
-
-interface XPathExpression {
- evaluate(contextNode: Node, type: number, result: XPathResult): XPathExpression;
-}
-
-declare var XPathExpression: {
- prototype: XPathExpression;
- new(): XPathExpression;
-}
-
-interface XPathNSResolver {
- lookupNamespaceURI(prefix: string): string;
-}
-
-declare var XPathNSResolver: {
- prototype: XPathNSResolver;
- new(): XPathNSResolver;
-}
-
-interface XPathResult {
- readonly booleanValue: boolean;
- readonly invalidIteratorState: boolean;
- readonly numberValue: number;
- readonly resultType: number;
- readonly singleNodeValue: Node;
- readonly snapshotLength: number;
- readonly stringValue: string;
- iterateNext(): Node;
- snapshotItem(index: number): Node;
- readonly ANY_TYPE: number;
- readonly ANY_UNORDERED_NODE_TYPE: number;
- readonly BOOLEAN_TYPE: number;
- readonly FIRST_ORDERED_NODE_TYPE: number;
- readonly NUMBER_TYPE: number;
- readonly ORDERED_NODE_ITERATOR_TYPE: number;
- readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
- readonly STRING_TYPE: number;
- readonly UNORDERED_NODE_ITERATOR_TYPE: number;
- readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-declare var XPathResult: {
- prototype: XPathResult;
- new(): XPathResult;
- readonly ANY_TYPE: number;
- readonly ANY_UNORDERED_NODE_TYPE: number;
- readonly BOOLEAN_TYPE: number;
- readonly FIRST_ORDERED_NODE_TYPE: number;
- readonly NUMBER_TYPE: number;
- readonly ORDERED_NODE_ITERATOR_TYPE: number;
- readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
- readonly STRING_TYPE: number;
- readonly UNORDERED_NODE_ITERATOR_TYPE: number;
- readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
-}
-
-interface XSLTProcessor {
- clearParameters(): void;
- getParameter(namespaceURI: string, localName: string): any;
- importStylesheet(style: Node): void;
- removeParameter(namespaceURI: string, localName: string): void;
- reset(): void;
- setParameter(namespaceURI: string, localName: string, value: any): void;
- transformToDocument(source: Node): Document;
- transformToFragment(source: Node, document: Document): DocumentFragment;
-}
-
-declare var XSLTProcessor: {
- prototype: XSLTProcessor;
- new(): XSLTProcessor;
-}
-
-interface AbstractWorker {
- onerror: (this: this, ev: ErrorEvent) => any;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface CanvasPathMethods {
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
- arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
- bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
- closePath(): void;
- ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
- lineTo(x: number, y: number): void;
- moveTo(x: number, y: number): void;
- quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
- rect(x: number, y: number, w: number, h: number): void;
-}
-
-interface ChildNode {
- remove(): void;
-}
-
-interface DOML2DeprecatedColorProperty {
- color: string;
-}
-
-interface DOML2DeprecatedSizeProperty {
- size: number;
-}
-
-interface DocumentEvent {
- createEvent(eventInterface:"AnimationEvent"): AnimationEvent;
- createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent;
- createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent;
- createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent;
- createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent;
- createEvent(eventInterface:"CloseEvent"): CloseEvent;
- createEvent(eventInterface:"CommandEvent"): CommandEvent;
- createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
- createEvent(eventInterface:"CustomEvent"): CustomEvent;
- createEvent(eventInterface:"DeviceLightEvent"): DeviceLightEvent;
- createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent;
- createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent;
- createEvent(eventInterface:"DragEvent"): DragEvent;
- createEvent(eventInterface:"ErrorEvent"): ErrorEvent;
- createEvent(eventInterface:"Event"): Event;
- createEvent(eventInterface:"Events"): Event;
- createEvent(eventInterface:"FocusEvent"): FocusEvent;
- createEvent(eventInterface:"GamepadEvent"): GamepadEvent;
- createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
- createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent;
- createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent;
- createEvent(eventInterface:"ListeningStateChangedEvent"): ListeningStateChangedEvent;
- createEvent(eventInterface:"LongRunningScriptDetectedEvent"): LongRunningScriptDetectedEvent;
- createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
- createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent;
- createEvent(eventInterface:"MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
- createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
- createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
- createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
- createEvent(eventInterface:"MediaEncryptedEvent"): MediaEncryptedEvent;
- createEvent(eventInterface:"MediaKeyMessageEvent"): MediaKeyMessageEvent;
- createEvent(eventInterface:"MediaStreamErrorEvent"): MediaStreamErrorEvent;
- createEvent(eventInterface:"MediaStreamTrackEvent"): MediaStreamTrackEvent;
- createEvent(eventInterface:"MessageEvent"): MessageEvent;
- createEvent(eventInterface:"MouseEvent"): MouseEvent;
- createEvent(eventInterface:"MouseEvents"): MouseEvent;
- createEvent(eventInterface:"MutationEvent"): MutationEvent;
- createEvent(eventInterface:"MutationEvents"): MutationEvent;
- createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent;
- createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
- createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer;
- createEvent(eventInterface:"OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
- createEvent(eventInterface:"OverflowEvent"): OverflowEvent;
- createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent;
- createEvent(eventInterface:"PermissionRequestedEvent"): PermissionRequestedEvent;
- createEvent(eventInterface:"PointerEvent"): PointerEvent;
- createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
- createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
- createEvent(eventInterface:"RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
- createEvent(eventInterface:"RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
- createEvent(eventInterface:"RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
- createEvent(eventInterface:"RTCIceGathererEvent"): RTCIceGathererEvent;
- createEvent(eventInterface:"RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
- createEvent(eventInterface:"RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
- createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
- createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
- createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
- createEvent(eventInterface:"StorageEvent"): StorageEvent;
- createEvent(eventInterface:"TextEvent"): TextEvent;
- createEvent(eventInterface:"TouchEvent"): TouchEvent;
- createEvent(eventInterface:"TrackEvent"): TrackEvent;
- createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
- createEvent(eventInterface:"UIEvent"): UIEvent;
- createEvent(eventInterface:"UIEvents"): UIEvent;
- createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent;
- createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
- createEvent(eventInterface:"WheelEvent"): WheelEvent;
- createEvent(eventInterface: string): Event;
-}
-
-interface ElementTraversal {
- readonly childElementCount: number;
- readonly firstElementChild: Element;
- readonly lastElementChild: Element;
- readonly nextElementSibling: Element;
- readonly previousElementSibling: Element;
-}
-
-interface GetSVGDocument {
- getSVGDocument(): Document;
-}
-
-interface GlobalEventHandlers {
- onpointercancel: (this: this, ev: PointerEvent) => any;
- onpointerdown: (this: this, ev: PointerEvent) => any;
- onpointerenter: (this: this, ev: PointerEvent) => any;
- onpointerleave: (this: this, ev: PointerEvent) => any;
- onpointermove: (this: this, ev: PointerEvent) => any;
- onpointerout: (this: this, ev: PointerEvent) => any;
- onpointerover: (this: this, ev: PointerEvent) => any;
- onpointerup: (this: this, ev: PointerEvent) => any;
- onwheel: (this: this, ev: WheelEvent) => any;
- addEventListener(type: "pointercancel", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerdown", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerenter", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerleave", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointermove", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerout", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerover", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "pointerup", listener: (this: this, ev: PointerEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "wheel", listener: (this: this, ev: WheelEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface HTMLTableAlignment {
- /**
- * Sets or retrieves a value that you can use to implement your own ch functionality for the object.
- */
- ch: string;
- /**
- * Sets or retrieves a value that you can use to implement your own chOff functionality for the object.
- */
- chOff: string;
- /**
- * Sets or retrieves how text and other content are vertically aligned within the object that contains them.
- */
- vAlign: string;
-}
-
-interface IDBEnvironment {
- readonly indexedDB: IDBFactory;
-}
-
-interface LinkStyle {
- readonly sheet: StyleSheet;
-}
-
-interface MSBaseReader {
- onabort: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- onload: (this: this, ev: Event) => any;
- onloadend: (this: this, ev: ProgressEvent) => any;
- onloadstart: (this: this, ev: Event) => any;
- onprogress: (this: this, ev: ProgressEvent) => any;
- readonly readyState: number;
- readonly result: any;
- abort(): void;
- readonly DONE: number;
- readonly EMPTY: number;
- readonly LOADING: number;
- addEventListener(type: "abort", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadend", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface MSFileSaver {
- msSaveBlob(blob: any, defaultName?: string): boolean;
- msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
-}
-
-interface MSNavigatorDoNotTrack {
- confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean;
- confirmWebWideTrackingException(args: ExceptionInformation): boolean;
- removeSiteSpecificTrackingException(args: ExceptionInformation): void;
- removeWebWideTrackingException(args: ExceptionInformation): void;
- storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void;
- storeWebWideTrackingException(args: StoreExceptionsInformation): void;
-}
-
-interface NavigatorContentUtils {
-}
-
-interface NavigatorGeolocation {
- readonly geolocation: Geolocation;
-}
-
-interface NavigatorID {
- readonly appName: string;
- readonly appVersion: string;
- readonly platform: string;
- readonly product: string;
- readonly productSub: string;
- readonly userAgent: string;
- readonly vendor: string;
- readonly vendorSub: string;
-}
-
-interface NavigatorOnLine {
- readonly onLine: boolean;
-}
-
-interface NavigatorStorageUtils {
-}
-
-interface NavigatorUserMedia {
- readonly mediaDevices: MediaDevices;
- getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
-}
-
-interface NodeSelector {
- querySelector(selectors: "a"): HTMLAnchorElement;
- querySelector(selectors: "abbr"): HTMLElement;
- querySelector(selectors: "acronym"): HTMLElement;
- querySelector(selectors: "address"): HTMLElement;
- querySelector(selectors: "applet"): HTMLAppletElement;
- querySelector(selectors: "area"): HTMLAreaElement;
- querySelector(selectors: "article"): HTMLElement;
- querySelector(selectors: "aside"): HTMLElement;
- querySelector(selectors: "audio"): HTMLAudioElement;
- querySelector(selectors: "b"): HTMLElement;
- querySelector(selectors: "base"): HTMLBaseElement;
- querySelector(selectors: "basefont"): HTMLBaseFontElement;
- querySelector(selectors: "bdo"): HTMLElement;
- querySelector(selectors: "big"): HTMLElement;
- querySelector(selectors: "blockquote"): HTMLQuoteElement;
- querySelector(selectors: "body"): HTMLBodyElement;
- querySelector(selectors: "br"): HTMLBRElement;
- querySelector(selectors: "button"): HTMLButtonElement;
- querySelector(selectors: "canvas"): HTMLCanvasElement;
- querySelector(selectors: "caption"): HTMLTableCaptionElement;
- querySelector(selectors: "center"): HTMLElement;
- querySelector(selectors: "circle"): SVGCircleElement;
- querySelector(selectors: "cite"): HTMLElement;
- querySelector(selectors: "clippath"): SVGClipPathElement;
- querySelector(selectors: "code"): HTMLElement;
- querySelector(selectors: "col"): HTMLTableColElement;
- querySelector(selectors: "colgroup"): HTMLTableColElement;
- querySelector(selectors: "datalist"): HTMLDataListElement;
- querySelector(selectors: "dd"): HTMLElement;
- querySelector(selectors: "defs"): SVGDefsElement;
- querySelector(selectors: "del"): HTMLModElement;
- querySelector(selectors: "desc"): SVGDescElement;
- querySelector(selectors: "dfn"): HTMLElement;
- querySelector(selectors: "dir"): HTMLDirectoryElement;
- querySelector(selectors: "div"): HTMLDivElement;
- querySelector(selectors: "dl"): HTMLDListElement;
- querySelector(selectors: "dt"): HTMLElement;
- querySelector(selectors: "ellipse"): SVGEllipseElement;
- querySelector(selectors: "em"): HTMLElement;
- querySelector(selectors: "embed"): HTMLEmbedElement;
- querySelector(selectors: "feblend"): SVGFEBlendElement;
- querySelector(selectors: "fecolormatrix"): SVGFEColorMatrixElement;
- querySelector(selectors: "fecomponenttransfer"): SVGFEComponentTransferElement;
- querySelector(selectors: "fecomposite"): SVGFECompositeElement;
- querySelector(selectors: "feconvolvematrix"): SVGFEConvolveMatrixElement;
- querySelector(selectors: "fediffuselighting"): SVGFEDiffuseLightingElement;
- querySelector(selectors: "fedisplacementmap"): SVGFEDisplacementMapElement;
- querySelector(selectors: "fedistantlight"): SVGFEDistantLightElement;
- querySelector(selectors: "feflood"): SVGFEFloodElement;
- querySelector(selectors: "fefunca"): SVGFEFuncAElement;
- querySelector(selectors: "fefuncb"): SVGFEFuncBElement;
- querySelector(selectors: "fefuncg"): SVGFEFuncGElement;
- querySelector(selectors: "fefuncr"): SVGFEFuncRElement;
- querySelector(selectors: "fegaussianblur"): SVGFEGaussianBlurElement;
- querySelector(selectors: "feimage"): SVGFEImageElement;
- querySelector(selectors: "femerge"): SVGFEMergeElement;
- querySelector(selectors: "femergenode"): SVGFEMergeNodeElement;
- querySelector(selectors: "femorphology"): SVGFEMorphologyElement;
- querySelector(selectors: "feoffset"): SVGFEOffsetElement;
- querySelector(selectors: "fepointlight"): SVGFEPointLightElement;
- querySelector(selectors: "fespecularlighting"): SVGFESpecularLightingElement;
- querySelector(selectors: "fespotlight"): SVGFESpotLightElement;
- querySelector(selectors: "fetile"): SVGFETileElement;
- querySelector(selectors: "feturbulence"): SVGFETurbulenceElement;
- querySelector(selectors: "fieldset"): HTMLFieldSetElement;
- querySelector(selectors: "figcaption"): HTMLElement;
- querySelector(selectors: "figure"): HTMLElement;
- querySelector(selectors: "filter"): SVGFilterElement;
- querySelector(selectors: "font"): HTMLFontElement;
- querySelector(selectors: "footer"): HTMLElement;
- querySelector(selectors: "foreignobject"): SVGForeignObjectElement;
- querySelector(selectors: "form"): HTMLFormElement;
- querySelector(selectors: "frame"): HTMLFrameElement;
- querySelector(selectors: "frameset"): HTMLFrameSetElement;
- querySelector(selectors: "g"): SVGGElement;
- querySelector(selectors: "h1"): HTMLHeadingElement;
- querySelector(selectors: "h2"): HTMLHeadingElement;
- querySelector(selectors: "h3"): HTMLHeadingElement;
- querySelector(selectors: "h4"): HTMLHeadingElement;
- querySelector(selectors: "h5"): HTMLHeadingElement;
- querySelector(selectors: "h6"): HTMLHeadingElement;
- querySelector(selectors: "head"): HTMLHeadElement;
- querySelector(selectors: "header"): HTMLElement;
- querySelector(selectors: "hgroup"): HTMLElement;
- querySelector(selectors: "hr"): HTMLHRElement;
- querySelector(selectors: "html"): HTMLHtmlElement;
- querySelector(selectors: "i"): HTMLElement;
- querySelector(selectors: "iframe"): HTMLIFrameElement;
- querySelector(selectors: "image"): SVGImageElement;
- querySelector(selectors: "img"): HTMLImageElement;
- querySelector(selectors: "input"): HTMLInputElement;
- querySelector(selectors: "ins"): HTMLModElement;
- querySelector(selectors: "isindex"): HTMLUnknownElement;
- querySelector(selectors: "kbd"): HTMLElement;
- querySelector(selectors: "keygen"): HTMLElement;
- querySelector(selectors: "label"): HTMLLabelElement;
- querySelector(selectors: "legend"): HTMLLegendElement;
- querySelector(selectors: "li"): HTMLLIElement;
- querySelector(selectors: "line"): SVGLineElement;
- querySelector(selectors: "lineargradient"): SVGLinearGradientElement;
- querySelector(selectors: "link"): HTMLLinkElement;
- querySelector(selectors: "listing"): HTMLPreElement;
- querySelector(selectors: "map"): HTMLMapElement;
- querySelector(selectors: "mark"): HTMLElement;
- querySelector(selectors: "marker"): SVGMarkerElement;
- querySelector(selectors: "marquee"): HTMLMarqueeElement;
- querySelector(selectors: "mask"): SVGMaskElement;
- querySelector(selectors: "menu"): HTMLMenuElement;
- querySelector(selectors: "meta"): HTMLMetaElement;
- querySelector(selectors: "metadata"): SVGMetadataElement;
- querySelector(selectors: "meter"): HTMLMeterElement;
- querySelector(selectors: "nav"): HTMLElement;
- querySelector(selectors: "nextid"): HTMLUnknownElement;
- querySelector(selectors: "nobr"): HTMLElement;
- querySelector(selectors: "noframes"): HTMLElement;
- querySelector(selectors: "noscript"): HTMLElement;
- querySelector(selectors: "object"): HTMLObjectElement;
- querySelector(selectors: "ol"): HTMLOListElement;
- querySelector(selectors: "optgroup"): HTMLOptGroupElement;
- querySelector(selectors: "option"): HTMLOptionElement;
- querySelector(selectors: "p"): HTMLParagraphElement;
- querySelector(selectors: "param"): HTMLParamElement;
- querySelector(selectors: "path"): SVGPathElement;
- querySelector(selectors: "pattern"): SVGPatternElement;
- querySelector(selectors: "picture"): HTMLPictureElement;
- querySelector(selectors: "plaintext"): HTMLElement;
- querySelector(selectors: "polygon"): SVGPolygonElement;
- querySelector(selectors: "polyline"): SVGPolylineElement;
- querySelector(selectors: "pre"): HTMLPreElement;
- querySelector(selectors: "progress"): HTMLProgressElement;
- querySelector(selectors: "q"): HTMLQuoteElement;
- querySelector(selectors: "radialgradient"): SVGRadialGradientElement;
- querySelector(selectors: "rect"): SVGRectElement;
- querySelector(selectors: "rt"): HTMLElement;
- querySelector(selectors: "ruby"): HTMLElement;
- querySelector(selectors: "s"): HTMLElement;
- querySelector(selectors: "samp"): HTMLElement;
- querySelector(selectors: "script"): HTMLScriptElement;
- querySelector(selectors: "section"): HTMLElement;
- querySelector(selectors: "select"): HTMLSelectElement;
- querySelector(selectors: "small"): HTMLElement;
- querySelector(selectors: "source"): HTMLSourceElement;
- querySelector(selectors: "span"): HTMLSpanElement;
- querySelector(selectors: "stop"): SVGStopElement;
- querySelector(selectors: "strike"): HTMLElement;
- querySelector(selectors: "strong"): HTMLElement;
- querySelector(selectors: "style"): HTMLStyleElement;
- querySelector(selectors: "sub"): HTMLElement;
- querySelector(selectors: "sup"): HTMLElement;
- querySelector(selectors: "svg"): SVGSVGElement;
- querySelector(selectors: "switch"): SVGSwitchElement;
- querySelector(selectors: "symbol"): SVGSymbolElement;
- querySelector(selectors: "table"): HTMLTableElement;
- querySelector(selectors: "tbody"): HTMLTableSectionElement;
- querySelector(selectors: "td"): HTMLTableDataCellElement;
- querySelector(selectors: "template"): HTMLTemplateElement;
- querySelector(selectors: "text"): SVGTextElement;
- querySelector(selectors: "textpath"): SVGTextPathElement;
- querySelector(selectors: "textarea"): HTMLTextAreaElement;
- querySelector(selectors: "tfoot"): HTMLTableSectionElement;
- querySelector(selectors: "th"): HTMLTableHeaderCellElement;
- querySelector(selectors: "thead"): HTMLTableSectionElement;
- querySelector(selectors: "title"): HTMLTitleElement;
- querySelector(selectors: "tr"): HTMLTableRowElement;
- querySelector(selectors: "track"): HTMLTrackElement;
- querySelector(selectors: "tspan"): SVGTSpanElement;
- querySelector(selectors: "tt"): HTMLElement;
- querySelector(selectors: "u"): HTMLElement;
- querySelector(selectors: "ul"): HTMLUListElement;
- querySelector(selectors: "use"): SVGUseElement;
- querySelector(selectors: "var"): HTMLElement;
- querySelector(selectors: "video"): HTMLVideoElement;
- querySelector(selectors: "view"): SVGViewElement;
- querySelector(selectors: "wbr"): HTMLElement;
- querySelector(selectors: "x-ms-webview"): MSHTMLWebViewElement;
- querySelector(selectors: "xmp"): HTMLPreElement;
- querySelector(selectors: string): Element;
- querySelectorAll(selectors: "a"): NodeListOf<HTMLAnchorElement>;
- querySelectorAll(selectors: "abbr"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "acronym"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "address"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "applet"): NodeListOf<HTMLAppletElement>;
- querySelectorAll(selectors: "area"): NodeListOf<HTMLAreaElement>;
- querySelectorAll(selectors: "article"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "aside"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "audio"): NodeListOf<HTMLAudioElement>;
- querySelectorAll(selectors: "b"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "base"): NodeListOf<HTMLBaseElement>;
- querySelectorAll(selectors: "basefont"): NodeListOf<HTMLBaseFontElement>;
- querySelectorAll(selectors: "bdo"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "big"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "blockquote"): NodeListOf<HTMLQuoteElement>;
- querySelectorAll(selectors: "body"): NodeListOf<HTMLBodyElement>;
- querySelectorAll(selectors: "br"): NodeListOf<HTMLBRElement>;
- querySelectorAll(selectors: "button"): NodeListOf<HTMLButtonElement>;
- querySelectorAll(selectors: "canvas"): NodeListOf<HTMLCanvasElement>;
- querySelectorAll(selectors: "caption"): NodeListOf<HTMLTableCaptionElement>;
- querySelectorAll(selectors: "center"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "circle"): NodeListOf<SVGCircleElement>;
- querySelectorAll(selectors: "cite"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "clippath"): NodeListOf<SVGClipPathElement>;
- querySelectorAll(selectors: "code"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "col"): NodeListOf<HTMLTableColElement>;
- querySelectorAll(selectors: "colgroup"): NodeListOf<HTMLTableColElement>;
- querySelectorAll(selectors: "datalist"): NodeListOf<HTMLDataListElement>;
- querySelectorAll(selectors: "dd"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "defs"): NodeListOf<SVGDefsElement>;
- querySelectorAll(selectors: "del"): NodeListOf<HTMLModElement>;
- querySelectorAll(selectors: "desc"): NodeListOf<SVGDescElement>;
- querySelectorAll(selectors: "dfn"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "dir"): NodeListOf<HTMLDirectoryElement>;
- querySelectorAll(selectors: "div"): NodeListOf<HTMLDivElement>;
- querySelectorAll(selectors: "dl"): NodeListOf<HTMLDListElement>;
- querySelectorAll(selectors: "dt"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "ellipse"): NodeListOf<SVGEllipseElement>;
- querySelectorAll(selectors: "em"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "embed"): NodeListOf<HTMLEmbedElement>;
- querySelectorAll(selectors: "feblend"): NodeListOf<SVGFEBlendElement>;
- querySelectorAll(selectors: "fecolormatrix"): NodeListOf<SVGFEColorMatrixElement>;
- querySelectorAll(selectors: "fecomponenttransfer"): NodeListOf<SVGFEComponentTransferElement>;
- querySelectorAll(selectors: "fecomposite"): NodeListOf<SVGFECompositeElement>;
- querySelectorAll(selectors: "feconvolvematrix"): NodeListOf<SVGFEConvolveMatrixElement>;
- querySelectorAll(selectors: "fediffuselighting"): NodeListOf<SVGFEDiffuseLightingElement>;
- querySelectorAll(selectors: "fedisplacementmap"): NodeListOf<SVGFEDisplacementMapElement>;
- querySelectorAll(selectors: "fedistantlight"): NodeListOf<SVGFEDistantLightElement>;
- querySelectorAll(selectors: "feflood"): NodeListOf<SVGFEFloodElement>;
- querySelectorAll(selectors: "fefunca"): NodeListOf<SVGFEFuncAElement>;
- querySelectorAll(selectors: "fefuncb"): NodeListOf<SVGFEFuncBElement>;
- querySelectorAll(selectors: "fefuncg"): NodeListOf<SVGFEFuncGElement>;
- querySelectorAll(selectors: "fefuncr"): NodeListOf<SVGFEFuncRElement>;
- querySelectorAll(selectors: "fegaussianblur"): NodeListOf<SVGFEGaussianBlurElement>;
- querySelectorAll(selectors: "feimage"): NodeListOf<SVGFEImageElement>;
- querySelectorAll(selectors: "femerge"): NodeListOf<SVGFEMergeElement>;
- querySelectorAll(selectors: "femergenode"): NodeListOf<SVGFEMergeNodeElement>;
- querySelectorAll(selectors: "femorphology"): NodeListOf<SVGFEMorphologyElement>;
- querySelectorAll(selectors: "feoffset"): NodeListOf<SVGFEOffsetElement>;
- querySelectorAll(selectors: "fepointlight"): NodeListOf<SVGFEPointLightElement>;
- querySelectorAll(selectors: "fespecularlighting"): NodeListOf<SVGFESpecularLightingElement>;
- querySelectorAll(selectors: "fespotlight"): NodeListOf<SVGFESpotLightElement>;
- querySelectorAll(selectors: "fetile"): NodeListOf<SVGFETileElement>;
- querySelectorAll(selectors: "feturbulence"): NodeListOf<SVGFETurbulenceElement>;
- querySelectorAll(selectors: "fieldset"): NodeListOf<HTMLFieldSetElement>;
- querySelectorAll(selectors: "figcaption"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "figure"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "filter"): NodeListOf<SVGFilterElement>;
- querySelectorAll(selectors: "font"): NodeListOf<HTMLFontElement>;
- querySelectorAll(selectors: "footer"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "foreignobject"): NodeListOf<SVGForeignObjectElement>;
- querySelectorAll(selectors: "form"): NodeListOf<HTMLFormElement>;
- querySelectorAll(selectors: "frame"): NodeListOf<HTMLFrameElement>;
- querySelectorAll(selectors: "frameset"): NodeListOf<HTMLFrameSetElement>;
- querySelectorAll(selectors: "g"): NodeListOf<SVGGElement>;
- querySelectorAll(selectors: "h1"): NodeListOf<HTMLHeadingElement>;
- querySelectorAll(selectors: "h2"): NodeListOf<HTMLHeadingElement>;
- querySelectorAll(selectors: "h3"): NodeListOf<HTMLHeadingElement>;
- querySelectorAll(selectors: "h4"): NodeListOf<HTMLHeadingElement>;
- querySelectorAll(selectors: "h5"): NodeListOf<HTMLHeadingElement>;
- querySelectorAll(selectors: "h6"): NodeListOf<HTMLHeadingElement>;
- querySelectorAll(selectors: "head"): NodeListOf<HTMLHeadElement>;
- querySelectorAll(selectors: "header"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "hgroup"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "hr"): NodeListOf<HTMLHRElement>;
- querySelectorAll(selectors: "html"): NodeListOf<HTMLHtmlElement>;
- querySelectorAll(selectors: "i"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "iframe"): NodeListOf<HTMLIFrameElement>;
- querySelectorAll(selectors: "image"): NodeListOf<SVGImageElement>;
- querySelectorAll(selectors: "img"): NodeListOf<HTMLImageElement>;
- querySelectorAll(selectors: "input"): NodeListOf<HTMLInputElement>;
- querySelectorAll(selectors: "ins"): NodeListOf<HTMLModElement>;
- querySelectorAll(selectors: "isindex"): NodeListOf<HTMLUnknownElement>;
- querySelectorAll(selectors: "kbd"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "keygen"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "label"): NodeListOf<HTMLLabelElement>;
- querySelectorAll(selectors: "legend"): NodeListOf<HTMLLegendElement>;
- querySelectorAll(selectors: "li"): NodeListOf<HTMLLIElement>;
- querySelectorAll(selectors: "line"): NodeListOf<SVGLineElement>;
- querySelectorAll(selectors: "lineargradient"): NodeListOf<SVGLinearGradientElement>;
- querySelectorAll(selectors: "link"): NodeListOf<HTMLLinkElement>;
- querySelectorAll(selectors: "listing"): NodeListOf<HTMLPreElement>;
- querySelectorAll(selectors: "map"): NodeListOf<HTMLMapElement>;
- querySelectorAll(selectors: "mark"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "marker"): NodeListOf<SVGMarkerElement>;
- querySelectorAll(selectors: "marquee"): NodeListOf<HTMLMarqueeElement>;
- querySelectorAll(selectors: "mask"): NodeListOf<SVGMaskElement>;
- querySelectorAll(selectors: "menu"): NodeListOf<HTMLMenuElement>;
- querySelectorAll(selectors: "meta"): NodeListOf<HTMLMetaElement>;
- querySelectorAll(selectors: "metadata"): NodeListOf<SVGMetadataElement>;
- querySelectorAll(selectors: "meter"): NodeListOf<HTMLMeterElement>;
- querySelectorAll(selectors: "nav"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "nextid"): NodeListOf<HTMLUnknownElement>;
- querySelectorAll(selectors: "nobr"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "noframes"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "noscript"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "object"): NodeListOf<HTMLObjectElement>;
- querySelectorAll(selectors: "ol"): NodeListOf<HTMLOListElement>;
- querySelectorAll(selectors: "optgroup"): NodeListOf<HTMLOptGroupElement>;
- querySelectorAll(selectors: "option"): NodeListOf<HTMLOptionElement>;
- querySelectorAll(selectors: "p"): NodeListOf<HTMLParagraphElement>;
- querySelectorAll(selectors: "param"): NodeListOf<HTMLParamElement>;
- querySelectorAll(selectors: "path"): NodeListOf<SVGPathElement>;
- querySelectorAll(selectors: "pattern"): NodeListOf<SVGPatternElement>;
- querySelectorAll(selectors: "picture"): NodeListOf<HTMLPictureElement>;
- querySelectorAll(selectors: "plaintext"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "polygon"): NodeListOf<SVGPolygonElement>;
- querySelectorAll(selectors: "polyline"): NodeListOf<SVGPolylineElement>;
- querySelectorAll(selectors: "pre"): NodeListOf<HTMLPreElement>;
- querySelectorAll(selectors: "progress"): NodeListOf<HTMLProgressElement>;
- querySelectorAll(selectors: "q"): NodeListOf<HTMLQuoteElement>;
- querySelectorAll(selectors: "radialgradient"): NodeListOf<SVGRadialGradientElement>;
- querySelectorAll(selectors: "rect"): NodeListOf<SVGRectElement>;
- querySelectorAll(selectors: "rt"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "ruby"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "s"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "samp"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "script"): NodeListOf<HTMLScriptElement>;
- querySelectorAll(selectors: "section"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "select"): NodeListOf<HTMLSelectElement>;
- querySelectorAll(selectors: "small"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "source"): NodeListOf<HTMLSourceElement>;
- querySelectorAll(selectors: "span"): NodeListOf<HTMLSpanElement>;
- querySelectorAll(selectors: "stop"): NodeListOf<SVGStopElement>;
- querySelectorAll(selectors: "strike"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "strong"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "style"): NodeListOf<HTMLStyleElement>;
- querySelectorAll(selectors: "sub"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "sup"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "svg"): NodeListOf<SVGSVGElement>;
- querySelectorAll(selectors: "switch"): NodeListOf<SVGSwitchElement>;
- querySelectorAll(selectors: "symbol"): NodeListOf<SVGSymbolElement>;
- querySelectorAll(selectors: "table"): NodeListOf<HTMLTableElement>;
- querySelectorAll(selectors: "tbody"): NodeListOf<HTMLTableSectionElement>;
- querySelectorAll(selectors: "td"): NodeListOf<HTMLTableDataCellElement>;
- querySelectorAll(selectors: "template"): NodeListOf<HTMLTemplateElement>;
- querySelectorAll(selectors: "text"): NodeListOf<SVGTextElement>;
- querySelectorAll(selectors: "textpath"): NodeListOf<SVGTextPathElement>;
- querySelectorAll(selectors: "textarea"): NodeListOf<HTMLTextAreaElement>;
- querySelectorAll(selectors: "tfoot"): NodeListOf<HTMLTableSectionElement>;
- querySelectorAll(selectors: "th"): NodeListOf<HTMLTableHeaderCellElement>;
- querySelectorAll(selectors: "thead"): NodeListOf<HTMLTableSectionElement>;
- querySelectorAll(selectors: "title"): NodeListOf<HTMLTitleElement>;
- querySelectorAll(selectors: "tr"): NodeListOf<HTMLTableRowElement>;
- querySelectorAll(selectors: "track"): NodeListOf<HTMLTrackElement>;
- querySelectorAll(selectors: "tspan"): NodeListOf<SVGTSpanElement>;
- querySelectorAll(selectors: "tt"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "u"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "ul"): NodeListOf<HTMLUListElement>;
- querySelectorAll(selectors: "use"): NodeListOf<SVGUseElement>;
- querySelectorAll(selectors: "var"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "video"): NodeListOf<HTMLVideoElement>;
- querySelectorAll(selectors: "view"): NodeListOf<SVGViewElement>;
- querySelectorAll(selectors: "wbr"): NodeListOf<HTMLElement>;
- querySelectorAll(selectors: "x-ms-webview"): NodeListOf<MSHTMLWebViewElement>;
- querySelectorAll(selectors: "xmp"): NodeListOf<HTMLPreElement>;
- querySelectorAll(selectors: string): NodeListOf<Element>;
-}
-
-interface RandomSource {
- getRandomValues(array: ArrayBufferView): ArrayBufferView;
-}
-
-interface SVGAnimatedPathData {
- readonly pathSegList: SVGPathSegList;
-}
-
-interface SVGAnimatedPoints {
- readonly animatedPoints: SVGPointList;
- readonly points: SVGPointList;
-}
-
-interface SVGExternalResourcesRequired {
- readonly externalResourcesRequired: SVGAnimatedBoolean;
-}
-
-interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
- readonly height: SVGAnimatedLength;
- readonly result: SVGAnimatedString;
- readonly width: SVGAnimatedLength;
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
-}
-
-interface SVGFitToViewBox {
- readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
- readonly viewBox: SVGAnimatedRect;
-}
-
-interface SVGLangSpace {
- xmllang: string;
- xmlspace: string;
-}
-
-interface SVGLocatable {
- readonly farthestViewportElement: SVGElement;
- readonly nearestViewportElement: SVGElement;
- getBBox(): SVGRect;
- getCTM(): SVGMatrix;
- getScreenCTM(): SVGMatrix;
- getTransformToElement(element: SVGElement): SVGMatrix;
-}
-
-interface SVGStylable {
- className: any;
- readonly style: CSSStyleDeclaration;
-}
-
-interface SVGTests {
- readonly requiredExtensions: SVGStringList;
- readonly requiredFeatures: SVGStringList;
- readonly systemLanguage: SVGStringList;
- hasExtension(extension: string): boolean;
-}
-
-interface SVGTransformable extends SVGLocatable {
- readonly transform: SVGAnimatedTransformList;
-}
-
-interface SVGURIReference {
- readonly href: SVGAnimatedString;
-}
-
-interface WindowBase64 {
- atob(encodedString: string): string;
- btoa(rawString: string): string;
-}
-
-interface WindowConsole {
- readonly console: Console;
-}
-
-interface WindowLocalStorage {
- readonly localStorage: Storage;
-}
-
-interface WindowSessionStorage {
- readonly sessionStorage: Storage;
-}
-
-interface WindowTimers extends Object, WindowTimersExtension {
- clearInterval(handle: number): void;
- clearTimeout(handle: number): void;
- setInterval(handler: (...args: any[]) => void, timeout: number): number;
- setInterval(handler: any, timeout?: any, ...args: any[]): number;
- setTimeout(handler: (...args: any[]) => void, timeout: number): number;
- setTimeout(handler: any, timeout?: any, ...args: any[]): number;
-}
-
-interface WindowTimersExtension {
- clearImmediate(handle: number): void;
- setImmediate(handler: (...args: any[]) => void): number;
- setImmediate(handler: any, ...args: any[]): number;
-}
-
-interface XMLHttpRequestEventTarget {
- onabort: (this: this, ev: Event) => any;
- onerror: (this: this, ev: ErrorEvent) => any;
- onload: (this: this, ev: Event) => any;
- onloadend: (this: this, ev: ProgressEvent) => any;
- onloadstart: (this: this, ev: Event) => any;
- onprogress: (this: this, ev: ProgressEvent) => any;
- ontimeout: (this: this, ev: ProgressEvent) => any;
- addEventListener(type: "abort", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "error", listener: (this: this, ev: ErrorEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "load", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "loadend", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "loadstart", listener: (this: this, ev: Event) => any, useCapture?: boolean): void;
- addEventListener(type: "progress", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: "timeout", listener: (this: this, ev: ProgressEvent) => any, useCapture?: boolean): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-}
-
-interface StorageEventInit extends EventInit {
- key?: string;
- oldValue?: string;
- newValue?: string;
- url: string;
- storageArea?: Storage;
-}
-
-interface Canvas2DContextAttributes {
- alpha?: boolean;
- willReadFrequently?: boolean;
- storage?: boolean;
- [attribute: string]: boolean | string | undefined;
-}
-
-interface NodeListOf<TNode extends Node> extends NodeList {
- length: number;
- item(index: number): TNode;
- [index: number]: TNode;
-}
-
-interface HTMLCollectionOf<T extends Element> extends HTMLCollection {
- item(index: number): T;
- namedItem(name: string): T;
- [index: number]: T;
-}
-
-interface BlobPropertyBag {
- type?: string;
- endings?: string;
-}
-
-interface FilePropertyBag {
- type?: string;
- lastModified?: number;
-}
-
-interface EventListenerObject {
- handleEvent(evt: Event): void;
-}
-
-interface MessageEventInit extends EventInit {
- data?: any;
- origin?: string;
- lastEventId?: string;
- channel?: string;
- source?: any;
- ports?: MessagePort[];
-}
-
-interface ProgressEventInit extends EventInit {
- lengthComputable?: boolean;
- loaded?: number;
- total?: number;
-}
-
-interface ScrollOptions {
- behavior?: ScrollBehavior;
-}
-
-interface ScrollToOptions extends ScrollOptions {
- left?: number;
- top?: number;
-}
-
-interface ScrollIntoViewOptions extends ScrollOptions {
- block?: ScrollLogicalPosition;
- inline?: ScrollLogicalPosition;
-}
-
-interface ClipboardEventInit extends EventInit {
- data?: string;
- dataType?: string;
-}
-
-interface IDBArrayKey extends Array<IDBValidKey> {
-}
-
-interface RsaKeyGenParams extends Algorithm {
- modulusLength: number;
- publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyGenParams extends RsaKeyGenParams {
- hash: AlgorithmIdentifier;
-}
-
-interface RsaKeyAlgorithm extends KeyAlgorithm {
- modulusLength: number;
- publicExponent: Uint8Array;
-}
-
-interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
- hash: AlgorithmIdentifier;
-}
-
-interface RsaHashedImportParams {
- hash: AlgorithmIdentifier;
-}
-
-interface RsaPssParams {
- saltLength: number;
-}
-
-interface RsaOaepParams extends Algorithm {
- label?: BufferSource;
-}
-
-interface EcdsaParams extends Algorithm {
- hash: AlgorithmIdentifier;
-}
-
-interface EcKeyGenParams extends Algorithm {
- namedCurve: string;
-}
-
-interface EcKeyAlgorithm extends KeyAlgorithm {
- typedCurve: string;
-}
-
-interface EcKeyImportParams {
- namedCurve: string;
-}
-
-interface EcdhKeyDeriveParams extends Algorithm {
- public: CryptoKey;
-}
-
-interface AesCtrParams extends Algorithm {
- counter: BufferSource;
- length: number;
-}
-
-interface AesKeyAlgorithm extends KeyAlgorithm {
- length: number;
-}
-
-interface AesKeyGenParams extends Algorithm {
- length: number;
-}
-
-interface AesDerivedKeyParams extends Algorithm {
- length: number;
-}
-
-interface AesCbcParams extends Algorithm {
- iv: BufferSource;
-}
-
-interface AesCmacParams extends Algorithm {
- length: number;
-}
-
-interface AesGcmParams extends Algorithm {
- iv: BufferSource;
- additionalData?: BufferSource;
- tagLength?: number;
-}
-
-interface AesCfbParams extends Algorithm {
- iv: BufferSource;
-}
-
-interface HmacImportParams extends Algorithm {
- hash?: AlgorithmIdentifier;
- length?: number;
-}
-
-interface HmacKeyAlgorithm extends KeyAlgorithm {
- hash: AlgorithmIdentifier;
- length: number;
-}
-
-interface HmacKeyGenParams extends Algorithm {
- hash: AlgorithmIdentifier;
- length?: number;
-}
-
-interface DhKeyGenParams extends Algorithm {
- prime: Uint8Array;
- generator: Uint8Array;
-}
-
-interface DhKeyAlgorithm extends KeyAlgorithm {
- prime: Uint8Array;
- generator: Uint8Array;
-}
-
-interface DhKeyDeriveParams extends Algorithm {
- public: CryptoKey;
-}
-
-interface DhImportKeyParams extends Algorithm {
- prime: Uint8Array;
- generator: Uint8Array;
-}
-
-interface ConcatParams extends Algorithm {
- hash?: AlgorithmIdentifier;
- algorithmId: Uint8Array;
- partyUInfo: Uint8Array;
- partyVInfo: Uint8Array;
- publicInfo?: Uint8Array;
- privateInfo?: Uint8Array;
-}
-
-interface HkdfCtrParams extends Algorithm {
- hash: AlgorithmIdentifier;
- label: BufferSource;
- context: BufferSource;
-}
-
-interface Pbkdf2Params extends Algorithm {
- salt: BufferSource;
- iterations: number;
- hash: AlgorithmIdentifier;
-}
-
-interface RsaOtherPrimesInfo {
- r: string;
- d: string;
- t: string;
-}
-
-interface JsonWebKey {
- kty: string;
- use?: string;
- key_ops?: string[];
- alg?: string;
- kid?: string;
- x5u?: string;
- x5c?: string;
- x5t?: string;
- ext?: boolean;
- crv?: string;
- x?: string;
- y?: string;
- d?: string;
- n?: string;
- e?: string;
- p?: string;
- q?: string;
- dp?: string;
- dq?: string;
- qi?: string;
- oth?: RsaOtherPrimesInfo[];
- k?: string;
-}
-
-interface ParentNode {
- readonly children: HTMLCollection;
- readonly firstElementChild: Element;
- readonly lastElementChild: Element;
- readonly childElementCount: number;
-}
-
-declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
-
-interface ErrorEventHandler {
- (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void;
-}
-interface PositionCallback {
- (position: Position): void;
-}
-interface PositionErrorCallback {
- (error: PositionError): void;
-}
-interface MediaQueryListListener {
- (mql: MediaQueryList): void;
-}
-interface MSLaunchUriCallback {
- (): void;
-}
-interface FrameRequestCallback {
- (time: number): void;
-}
-interface MSUnsafeFunctionCallback {
- (): any;
-}
-interface MSExecAtPriorityFunctionCallback {
- (...args: any[]): any;
-}
-interface MutationCallback {
- (mutations: MutationRecord[], observer: MutationObserver): void;
-}
-interface DecodeSuccessCallback {
- (decodedData: AudioBuffer): void;
-}
-interface DecodeErrorCallback {
- (error: DOMException): void;
-}
-interface FunctionStringCallback {
- (data: string): void;
-}
-interface NavigatorUserMediaSuccessCallback {
- (stream: MediaStream): void;
-}
-interface NavigatorUserMediaErrorCallback {
- (error: MediaStreamError): void;
-}
-interface ForEachCallback {
- (keyId: any, status: string): void;
-}
-declare var Audio: {new(src?: string): HTMLAudioElement; };
-declare var Image: {new(width?: number, height?: number): HTMLImageElement; };
-declare var Option: {new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; };
-declare var applicationCache: ApplicationCache;
-declare var clientInformation: Navigator;
-declare var closed: boolean;
-declare var crypto: Crypto;
-declare var defaultStatus: string;
-declare var devicePixelRatio: number;
-declare var doNotTrack: string;
-declare var document: Document;
-declare var event: Event;
-declare var external: External;
-declare var frameElement: Element;
-declare var frames: Window;
-declare var history: History;
-declare var innerHeight: number;
-declare var innerWidth: number;
-declare var length: number;
-declare var location: Location;
-declare var locationbar: BarProp;
-declare var menubar: BarProp;
-declare var msCredentials: MSCredentials;
-declare const name: never;
-declare var navigator: Navigator;
-declare var offscreenBuffering: string | boolean;
-declare var onabort: (this: Window, ev: UIEvent) => any;
-declare var onafterprint: (this: Window, ev: Event) => any;
-declare var onbeforeprint: (this: Window, ev: Event) => any;
-declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any;
-declare var onblur: (this: Window, ev: FocusEvent) => any;
-declare var oncanplay: (this: Window, ev: Event) => any;
-declare var oncanplaythrough: (this: Window, ev: Event) => any;
-declare var onchange: (this: Window, ev: Event) => any;
-declare var onclick: (this: Window, ev: MouseEvent) => any;
-declare var oncompassneedscalibration: (this: Window, ev: Event) => any;
-declare var oncontextmenu: (this: Window, ev: PointerEvent) => any;
-declare var ondblclick: (this: Window, ev: MouseEvent) => any;
-declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any;
-declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any;
-declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any;
-declare var ondrag: (this: Window, ev: DragEvent) => any;
-declare var ondragend: (this: Window, ev: DragEvent) => any;
-declare var ondragenter: (this: Window, ev: DragEvent) => any;
-declare var ondragleave: (this: Window, ev: DragEvent) => any;
-declare var ondragover: (this: Window, ev: DragEvent) => any;
-declare var ondragstart: (this: Window, ev: DragEvent) => any;
-declare var ondrop: (this: Window, ev: DragEvent) => any;
-declare var ondurationchange: (this: Window, ev: Event) => any;
-declare var onemptied: (this: Window, ev: Event) => any;
-declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any;
-declare var onerror: ErrorEventHandler;
-declare var onfocus: (this: Window, ev: FocusEvent) => any;
-declare var onhashchange: (this: Window, ev: HashChangeEvent) => any;
-declare var oninput: (this: Window, ev: Event) => any;
-declare var oninvalid: (this: Window, ev: Event) => any;
-declare var onkeydown: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeypress: (this: Window, ev: KeyboardEvent) => any;
-declare var onkeyup: (this: Window, ev: KeyboardEvent) => any;
-declare var onload: (this: Window, ev: Event) => any;
-declare var onloadeddata: (this: Window, ev: Event) => any;
-declare var onloadedmetadata: (this: Window, ev: Event) => any;
-declare var onloadstart: (this: Window, ev: Event) => any;
-declare var onmessage: (this: Window, ev: MessageEvent) => any;
-declare var onmousedown: (this: Window, ev: MouseEvent) => any;
-declare var onmouseenter: (this: Window, ev: MouseEvent) => any;
-declare var onmouseleave: (this: Window, ev: MouseEvent) => any;
-declare var onmousemove: (this: Window, ev: MouseEvent) => any;
-declare var onmouseout: (this: Window, ev: MouseEvent) => any;
-declare var onmouseover: (this: Window, ev: MouseEvent) => any;
-declare var onmouseup: (this: Window, ev: MouseEvent) => any;
-declare var onmousewheel: (this: Window, ev: WheelEvent) => any;
-declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any;
-declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any;
-declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any;
-declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any;
-declare var onoffline: (this: Window, ev: Event) => any;
-declare var ononline: (this: Window, ev: Event) => any;
-declare var onorientationchange: (this: Window, ev: Event) => any;
-declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any;
-declare var onpause: (this: Window, ev: Event) => any;
-declare var onplay: (this: Window, ev: Event) => any;
-declare var onplaying: (this: Window, ev: Event) => any;
-declare var onpopstate: (this: Window, ev: PopStateEvent) => any;
-declare var onprogress: (this: Window, ev: ProgressEvent) => any;
-declare var onratechange: (this: Window, ev: Event) => any;
-declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any;
-declare var onreset: (this: Window, ev: Event) => any;
-declare var onresize: (this: Window, ev: UIEvent) => any;
-declare var onscroll: (this: Window, ev: UIEvent) => any;
-declare var onseeked: (this: Window, ev: Event) => any;
-declare var onseeking: (this: Window, ev: Event) => any;
-declare var onselect: (this: Window, ev: UIEvent) => any;
-declare var onstalled: (this: Window, ev: Event) => any;
-declare var onstorage: (this: Window, ev: StorageEvent) => any;
-declare var onsubmit: (this: Window, ev: Event) => any;
-declare var onsuspend: (this: Window, ev: Event) => any;
-declare var ontimeupdate: (this: Window, ev: Event) => any;
-declare var ontouchcancel: (ev: TouchEvent) => any;
-declare var ontouchend: (ev: TouchEvent) => any;
-declare var ontouchmove: (ev: TouchEvent) => any;
-declare var ontouchstart: (ev: TouchEvent) => any;
-declare var onunload: (this: Window, ev: Event) => any;
-declare var onvolumechange: (this: Window, ev: Event) => any;
-declare var onwaiting: (this: Window, ev: Event) => any;
-declare var opener: any;
-declare var orientation: string | number;
-declare var outerHeight: number;
-declare var outerWidth: number;
-declare var pageXOffset: number;
-declare var pageYOffset: number;
-declare var parent: Window;
-declare var performance: Performance;
-declare var personalbar: BarProp;
-declare var screen: Screen;
-declare var screenLeft: number;
-declare var screenTop: number;
-declare var screenX: number;
-declare var screenY: number;
-declare var scrollX: number;
-declare var scrollY: number;
-declare var scrollbars: BarProp;
-declare var self: Window;
-declare var status: string;
-declare var statusbar: BarProp;
-declare var styleMedia: StyleMedia;
-declare var toolbar: BarProp;
-declare var top: Window;
-declare var window: Window;
-declare function alert(message?: any): void;
-declare function blur(): void;
-declare function cancelAnimationFrame(handle: number): void;
-declare function captureEvents(): void;
-declare function close(): void;
-declare function confirm(message?: string): boolean;
-declare function focus(): void;
-declare function getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
-declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
-declare function getSelection(): Selection;
-declare function matchMedia(mediaQuery: string): MediaQueryList;
-declare function moveBy(x?: number, y?: number): void;
-declare function moveTo(x?: number, y?: number): void;
-declare function msWriteProfilerMark(profilerMarkName: string): void;
-declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window;
-declare function postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
-declare function print(): void;
-declare function prompt(message?: string, _default?: string): string | null;
-declare function releaseEvents(): void;
-declare function requestAnimationFrame(callback: FrameRequestCallback): number;
-declare function resizeBy(x?: number, y?: number): void;
-declare function resizeTo(x?: number, y?: number): void;
-declare function scroll(x?: number, y?: number): void;
-declare function scrollBy(x?: number, y?: number): void;
-declare function scrollTo(x?: number, y?: number): void;
-declare function webkitCancelAnimationFrame(handle: number): void;
-declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
-declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
-declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
-declare function scroll(options?: ScrollToOptions): void;
-declare function scrollTo(options?: ScrollToOptions): void;
-declare function scrollBy(options?: ScrollToOptions): void;
-declare function toString(): string;
-declare function addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-declare function dispatchEvent(evt: Event): boolean;
-declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-declare function clearInterval(handle: number): void;
-declare function clearTimeout(handle: number): void;
-declare function setInterval(handler: (...args: any[]) => void, timeout: number): number;
-declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
-declare function setTimeout(handler: (...args: any[]) => void, timeout: number): number;
-declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number;
-declare function clearImmediate(handle: number): void;
-declare function setImmediate(handler: (...args: any[]) => void): number;
-declare function setImmediate(handler: any, ...args: any[]): number;
-declare var sessionStorage: Storage;
-declare var localStorage: Storage;
-declare var console: Console;
-declare var onpointercancel: (this: Window, ev: PointerEvent) => any;
-declare var onpointerdown: (this: Window, ev: PointerEvent) => any;
-declare var onpointerenter: (this: Window, ev: PointerEvent) => any;
-declare var onpointerleave: (this: Window, ev: PointerEvent) => any;
-declare var onpointermove: (this: Window, ev: PointerEvent) => any;
-declare var onpointerout: (this: Window, ev: PointerEvent) => any;
-declare var onpointerover: (this: Window, ev: PointerEvent) => any;
-declare var onpointerup: (this: Window, ev: PointerEvent) => any;
-declare var onwheel: (this: Window, ev: WheelEvent) => any;
-declare var indexedDB: IDBFactory;
-declare function atob(encodedString: string): string;
-declare function btoa(rawString: string): string;
-declare function addEventListener(type: "MSGestureChange", listener: (this: Window, ev: MSGestureEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSGestureDoubleTap", listener: (this: Window, ev: MSGestureEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSGestureEnd", listener: (this: Window, ev: MSGestureEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSGestureHold", listener: (this: Window, ev: MSGestureEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSGestureStart", listener: (this: Window, ev: MSGestureEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSGestureTap", listener: (this: Window, ev: MSGestureEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSInertiaStart", listener: (this: Window, ev: MSGestureEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerCancel", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerDown", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerEnter", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerLeave", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerMove", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerOut", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerOver", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "MSPointerUp", listener: (this: Window, ev: MSPointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "abort", listener: (this: Window, ev: UIEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "afterprint", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "beforeprint", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "beforeunload", listener: (this: Window, ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "blur", listener: (this: Window, ev: FocusEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "canplay", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "canplaythrough", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "change", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "click", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "compassneedscalibration", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "contextmenu", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "dblclick", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "devicelight", listener: (this: Window, ev: DeviceLightEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "devicemotion", listener: (this: Window, ev: DeviceMotionEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "deviceorientation", listener: (this: Window, ev: DeviceOrientationEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "drag", listener: (this: Window, ev: DragEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "dragend", listener: (this: Window, ev: DragEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "dragenter", listener: (this: Window, ev: DragEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "dragleave", listener: (this: Window, ev: DragEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "dragover", listener: (this: Window, ev: DragEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "dragstart", listener: (this: Window, ev: DragEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "drop", listener: (this: Window, ev: DragEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "durationchange", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "emptied", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "ended", listener: (this: Window, ev: MediaStreamErrorEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "focus", listener: (this: Window, ev: FocusEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "hashchange", listener: (this: Window, ev: HashChangeEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "input", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "invalid", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "keydown", listener: (this: Window, ev: KeyboardEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "keypress", listener: (this: Window, ev: KeyboardEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "keyup", listener: (this: Window, ev: KeyboardEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "load", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "loadeddata", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "loadedmetadata", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "loadstart", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "message", listener: (this: Window, ev: MessageEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mousedown", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mouseenter", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mouseleave", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mousemove", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mouseout", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mouseover", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mouseup", listener: (this: Window, ev: MouseEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "mousewheel", listener: (this: Window, ev: WheelEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "offline", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "online", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "orientationchange", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pagehide", listener: (this: Window, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pageshow", listener: (this: Window, ev: PageTransitionEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pause", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "play", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "playing", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointercancel", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointerdown", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointerenter", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointerleave", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointermove", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointerout", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointerover", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "pointerup", listener: (this: Window, ev: PointerEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "popstate", listener: (this: Window, ev: PopStateEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "progress", listener: (this: Window, ev: ProgressEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "ratechange", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "readystatechange", listener: (this: Window, ev: ProgressEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "reset", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "resize", listener: (this: Window, ev: UIEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "scroll", listener: (this: Window, ev: UIEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "seeked", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "seeking", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "select", listener: (this: Window, ev: UIEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "stalled", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "storage", listener: (this: Window, ev: StorageEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "submit", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "suspend", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "timeupdate", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "unload", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "volumechange", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "waiting", listener: (this: Window, ev: Event) => any, useCapture?: boolean): void;
-declare function addEventListener(type: "wheel", listener: (this: Window, ev: WheelEvent) => any, useCapture?: boolean): void;
-declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
-type AAGUID = string;
-type AlgorithmIdentifier = string | Algorithm;
-type ConstrainBoolean = boolean | ConstrainBooleanParameters;
-type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
-type ConstrainDouble = number | ConstrainDoubleRange;
-type ConstrainLong = number | ConstrainLongRange;
-type CryptoOperationData = ArrayBufferView;
-type GLbitfield = number;
-type GLboolean = boolean;
-type GLbyte = number;
-type GLclampf = number;
-type GLenum = number;
-type GLfloat = number;
-type GLint = number;
-type GLintptr = number;
-type GLshort = number;
-type GLsizei = number;
-type GLsizeiptr = number;
-type GLubyte = number;
-type GLuint = number;
-type GLushort = number;
-type IDBKeyPath = string;
-type KeyFormat = string;
-type KeyType = string;
-type KeyUsage = string;
-type MSInboundPayload = MSVideoRecvPayload | MSAudioRecvPayload;
-type MSLocalClientEvent = MSLocalClientEventBase | MSAudioLocalClientEvent;
-type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
-type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
-type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
-type payloadtype = number;
-type ScrollBehavior = "auto" | "instant" | "smooth";
-type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
-type IDBValidKey = number | string | Date | IDBArrayKey;
-type BufferSource = ArrayBuffer | ArrayBufferView;
-type MouseWheelEvent = WheelEvent;
-/////////////////////////////
-/// WorkerGlobalScope APIs
-/////////////////////////////
-// These are only available in a Web Worker
-declare function importScripts(...urls: string[]): void;
-
-
-/////////////////////////////
-/// Windows Script Host APIS
-/////////////////////////////
-
-
-interface ActiveXObject {
- new (s: string): any;
-}
-declare var ActiveXObject: ActiveXObject;
-
-interface ITextWriter {
- Write(s: string): void;
- WriteLine(s: string): void;
- Close(): void;
-}
-
-interface TextStreamBase {
- /**
- * The column number of the current character position in an input stream.
- */
- Column: number;
-
- /**
- * The current line number in an input stream.
- */
- Line: number;
-
- /**
- * Closes a text stream.
- * It is not necessary to close standard streams; they close automatically when the process ends. If
- * you close a standard stream, be aware that any other pointers to that standard stream become invalid.
- */
- Close(): void;
-}
-
-interface TextStreamWriter extends TextStreamBase {
- /**
- * Sends a string to an output stream.
- */
- Write(s: string): void;
-
- /**
- * Sends a specified number of blank lines (newline characters) to an output stream.
- */
- WriteBlankLines(intLines: number): void;
-
- /**
- * Sends a string followed by a newline character to an output stream.
- */
- WriteLine(s: string): void;
-}
-
-interface TextStreamReader extends TextStreamBase {
- /**
- * Returns a specified number of characters from an input stream, starting at the current pointer position.
- * Does not return until the ENTER key is pressed.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- */
- Read(characters: number): string;
-
- /**
- * Returns all characters from an input stream.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- */
- ReadAll(): string;
-
- /**
- * Returns an entire line from an input stream.
- * Although this method extracts the newline character, it does not add it to the returned string.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- */
- ReadLine(): string;
-
- /**
- * Skips a specified number of characters when reading from an input text stream.
- * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
- * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
- */
- Skip(characters: number): void;
-
- /**
- * Skips the next line when reading from an input text stream.
- * Can only be used on a stream in reading mode, not writing or appending mode.
- */
- SkipLine(): void;
-
- /**
- * Indicates whether the stream pointer position is at the end of a line.
- */
- AtEndOfLine: boolean;
-
- /**
- * Indicates whether the stream pointer position is at the end of a stream.
- */
- AtEndOfStream: boolean;
-}
-
-declare var WScript: {
- /**
- * Outputs text to either a message box (under WScript.exe) or the command console window followed by
- * a newline (under CScript.exe).
- */
- Echo(s: any): void;
-
- /**
- * Exposes the write-only error output stream for the current script.
- * Can be accessed only while using CScript.exe.
- */
- StdErr: TextStreamWriter;
-
- /**
- * Exposes the write-only output stream for the current script.
- * Can be accessed only while using CScript.exe.
- */
- StdOut: TextStreamWriter;
- Arguments: { length: number; Item(n: number): string; };
-
- /**
- * The full path of the currently running script.
- */
- ScriptFullName: string;
-
- /**
- * Forces the script to stop immediately, with an optional exit code.
- */
- Quit(exitCode?: number): number;
-
- /**
- * The Windows Script Host build version number.
- */
- BuildVersion: number;
-
- /**
- * Fully qualified path of the host executable.
- */
- FullName: string;
-
- /**
- * Gets/sets the script mode - interactive(true) or batch(false).
- */
- Interactive: boolean;
-
- /**
- * The name of the host executable (WScript.exe or CScript.exe).
- */
- Name: string;
-
- /**
- * Path of the directory containing the host executable.
- */
- Path: string;
-
- /**
- * The filename of the currently running script.
- */
- ScriptName: string;
-
- /**
- * Exposes the read-only input stream for the current script.
- * Can be accessed only while using CScript.exe.
- */
- StdIn: TextStreamReader;
-
- /**
- * Windows Script Host version
- */
- Version: string;
-
- /**
- * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
- */
- ConnectObject(objEventSource: any, strPrefix: string): void;
-
- /**
- * Creates a COM object.
- * @param strProgiID
- * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
- */
- CreateObject(strProgID: string, strPrefix?: string): any;
-
- /**
- * Disconnects a COM object from its event sources.
- */
- DisconnectObject(obj: any): void;
-
- /**
- * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
- * @param strPathname Fully qualified path to the file containing the object persisted to disk.
- * For objects in memory, pass a zero-length string.
- * @param strProgID
- * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
- */
- GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
-
- /**
- * Suspends script execution for a specified length of time, then continues execution.
- * @param intTime Interval (in milliseconds) to suspend script execution.
- */
- Sleep(intTime: number): void;
-};
-
-/**
- * Allows enumerating over a COM collection, which may not have indexed item access.
- */
-interface Enumerator<T> {
- /**
- * Returns true if the current item is the last one in the collection, or the collection is empty,
- * or the current item is undefined.
- */
- atEnd(): boolean;
-
- /**
- * Returns the current item in the collection
- */
- item(): T;
-
- /**
- * Resets the current item in the collection to the first item. If there are no items in the collection,
- * the current item is set to undefined.
- */
- moveFirst(): void;
-
- /**
- * Moves the current item to the next item in the collection. If the enumerator is at the end of
- * the collection or the collection is empty, the current item is set to undefined.
- */
- moveNext(): void;
-}
-
-interface EnumeratorConstructor {
- new <T>(collection: any): Enumerator<T>;
- new (collection: any): Enumerator<any>;
-}
-
-declare var Enumerator: EnumeratorConstructor;
-
-/**
- * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
- */
-interface VBArray<T> {
- /**
- * Returns the number of dimensions (1-based).
- */
- dimensions(): number;
-
- /**
- * Takes an index for each dimension in the array, and returns the item at the corresponding location.
- */
- getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
-
- /**
- * Returns the smallest available index for a given dimension.
- * @param dimension 1-based dimension (defaults to 1)
- */
- lbound(dimension?: number): number;
-
- /**
- * Returns the largest available index for a given dimension.
- * @param dimension 1-based dimension (defaults to 1)
- */
- ubound(dimension?: number): number;
-
- /**
- * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
- * each successive dimension is appended to the end of the array.
- * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
- */
- toArray(): T[];
-}
-
-interface VBArrayConstructor {
- new <T>(safeArray: any): VBArray<T>;
- new (safeArray: any): VBArray<any>;
-}
-
-declare var VBArray: VBArrayConstructor;
-
-/**
- * Automation date (VT_DATE)
- */
-interface VarDate { }
-
-interface DateConstructor {
- new (vd: VarDate): Date;
-}
-
-interface Date {
- getVarDate: () => VarDate;
-}
-/// <reference path="lib.dom.generated.d.ts" />
-
-interface DOMTokenList {
- [Symbol.iterator](): IterableIterator<string>;
-}
-
-interface NodeList {
- [Symbol.iterator](): IterableIterator<Node>
-}
-
-interface NodeListOf<TNode extends Node> {
- [Symbol.iterator](): IterableIterator<TNode>
-}
diff --git a/lib/decl/node.d.ts b/lib/decl/node.d.ts
deleted file mode 100644
index 8df3d16a7..000000000
--- a/lib/decl/node.d.ts
+++ /dev/null
@@ -1,2178 +0,0 @@
-// Type definitions for Node.js v4.x
-// Project: http://nodejs.org/
-// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/borisyankov/DefinitelyTyped>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-/************************************************
-* *
-* Node.js v4.x API *
-* *
-************************************************/
-
-interface Error {
- stack?: string;
-}
-
-
-// compat for TypeScript 1.5.3
-// if you use with --target es3 or --target es5 and use below definitions,
-// use the lib.es6.d.ts that is bundled with TypeScript 1.5.3.
-interface MapConstructor {}
-interface WeakMapConstructor {}
-interface SetConstructor {}
-interface WeakSetConstructor {}
-
-/************************************************
-* *
-* GLOBAL *
-* *
-************************************************/
-declare var process: NodeJS.Process;
-declare var global: NodeJS.Global;
-
-declare var __filename: string;
-declare var __dirname: string;
-
-declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
-declare function clearTimeout(timeoutId: NodeJS.Timer): void;
-declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
-declare function clearInterval(intervalId: NodeJS.Timer): void;
-declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): any;
-declare function clearImmediate(immediateId: any): void;
-
-interface NodeRequireFunction {
- (id: string): any;
-}
-
-interface NodeRequire extends NodeRequireFunction {
- resolve(id:string): string;
- cache: any;
- extensions: any;
- main: any;
-}
-
-declare var require: NodeRequire;
-
-interface NodeModule {
- exports: any;
- require: NodeRequireFunction;
- id: string;
- filename: string;
- loaded: boolean;
- parent: any;
- children: any[];
-}
-
-declare var module: NodeModule;
-
-// Same as module.exports
-declare var exports: any;
-declare var SlowBuffer: {
- new (str: string, encoding?: string): Buffer;
- new (size: number): Buffer;
- new (size: Uint8Array): Buffer;
- new (array: any[]): Buffer;
- prototype: Buffer;
- isBuffer(obj: any): boolean;
- byteLength(string: string, encoding?: string): number;
- concat(list: Buffer[], totalLength?: number): Buffer;
-};
-
-
-// Buffer class
-interface Buffer extends NodeBuffer {}
-
-/**
- * Raw data is stored in instances of the Buffer class.
- * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
- * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
- */
-declare var Buffer: {
- /**
- * Allocates a new buffer containing the given {str}.
- *
- * @param str String to store in buffer.
- * @param encoding encoding to use, optional. Default is 'utf8'
- */
- new (str: string, encoding?: string): Buffer;
- /**
- * Allocates a new buffer of {size} octets.
- *
- * @param size count of octets to allocate.
- */
- new (size: number): Buffer;
- /**
- * Allocates a new buffer containing the given {array} of octets.
- *
- * @param array The octets to store.
- */
- new (array: Uint8Array): Buffer;
- /**
- * Allocates a new buffer containing the given {array} of octets.
- *
- * @param array The octets to store.
- */
- new (array: any[]): Buffer;
- /**
- * Copies the passed {buffer} data onto a new {Buffer} instance.
- *
- * @param buffer The buffer to copy.
- */
- new (buffer: Buffer): Buffer;
- prototype: Buffer;
- /**
- * Returns true if {obj} is a Buffer
- *
- * @param obj object to test.
- */
- isBuffer(obj: any): obj is Buffer;
- /**
- * Returns true if {encoding} is a valid encoding argument.
- * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
- *
- * @param encoding string to test.
- */
- isEncoding(encoding: string): boolean;
- /**
- * Gives the actual byte length of a string. encoding defaults to 'utf8'.
- * This is not the same as String.prototype.length since that returns the number of characters in a string.
- *
- * @param string string to test.
- * @param encoding encoding used to evaluate (defaults to 'utf8')
- */
- byteLength(string: string, encoding?: string): number;
- /**
- * Returns a buffer which is the result of concatenating all the buffers in the list together.
- *
- * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
- * If the list has exactly one item, then the first item of the list is returned.
- * If the list has more than one item, then a new Buffer is created.
- *
- * @param list An array of Buffer objects to concatenate
- * @param totalLength Total length of the buffers when concatenated.
- * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
- */
- concat(list: Buffer[], totalLength?: number): Buffer;
- /**
- * The same as buf1.compare(buf2).
- */
- compare(buf1: Buffer, buf2: Buffer): number;
-};
-
-/************************************************
-* *
-* GLOBAL INTERFACES *
-* *
-************************************************/
-declare module NodeJS {
- export interface ErrnoException extends Error {
- errno?: number;
- code?: string;
- path?: string;
- syscall?: string;
- stack?: string;
- }
-
- export interface EventEmitter {
- addListener(event: string, listener: Function): EventEmitter;
- on(event: string, listener: Function): EventEmitter;
- once(event: string, listener: Function): EventEmitter;
- removeListener(event: string, listener: Function): EventEmitter;
- removeAllListeners(event?: string): EventEmitter;
- setMaxListeners(n: number): EventEmitter;
- getMaxListeners(): number;
- listeners(event: string): Function[];
- emit(event: string, ...args: any[]): boolean;
- listenerCount(type: string): number;
- }
-
- export interface ReadableStream extends EventEmitter {
- readable: boolean;
- read(size?: number): string|Buffer;
- setEncoding(encoding: string): void;
- pause(): void;
- resume(): void;
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean; }): T;
- unpipe<T extends WritableStream>(destination?: T): void;
- unshift(chunk: string): void;
- unshift(chunk: Buffer): void;
- wrap(oldStream: ReadableStream): ReadableStream;
- }
-
- export interface WritableStream extends EventEmitter {
- writable: boolean;
- write(buffer: Buffer|string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- }
-
- export interface ReadWriteStream extends ReadableStream, WritableStream {}
-
- export interface Process extends EventEmitter {
- stdout: WritableStream;
- stderr: WritableStream;
- stdin: ReadableStream;
- argv: string[];
- execPath: string;
- abort(): void;
- chdir(directory: string): void;
- cwd(): string;
- env: any;
- exit(code?: number): void;
- getgid(): number;
- setgid(id: number): void;
- setgid(id: string): void;
- getuid(): number;
- setuid(id: number): void;
- setuid(id: string): void;
- version: string;
- versions: {
- http_parser: string;
- node: string;
- v8: string;
- ares: string;
- uv: string;
- zlib: string;
- openssl: string;
- };
- config: {
- target_defaults: {
- cflags: any[];
- default_configuration: string;
- defines: string[];
- include_dirs: string[];
- libraries: string[];
- };
- variables: {
- clang: number;
- host_arch: string;
- node_install_npm: boolean;
- node_install_waf: boolean;
- node_prefix: string;
- node_shared_openssl: boolean;
- node_shared_v8: boolean;
- node_shared_zlib: boolean;
- node_use_dtrace: boolean;
- node_use_etw: boolean;
- node_use_openssl: boolean;
- target_arch: string;
- v8_no_strict_aliasing: number;
- v8_use_snapshot: boolean;
- visibility: string;
- };
- };
- kill(pid:number, signal?: string|number): void;
- pid: number;
- title: string;
- arch: string;
- platform: string;
- memoryUsage(): { rss: number; heapTotal: number; heapUsed: number; };
- nextTick(callback: Function): void;
- umask(mask?: number): number;
- uptime(): number;
- hrtime(time?:number[]): number[];
-
- // Worker
- send?(message: any, sendHandle?: any): void;
- }
-
- export interface Global {
- Array: typeof Array;
- ArrayBuffer: typeof ArrayBuffer;
- Boolean: typeof Boolean;
- Buffer: typeof Buffer;
- DataView: typeof DataView;
- Date: typeof Date;
- Error: typeof Error;
- EvalError: typeof EvalError;
- Float32Array: typeof Float32Array;
- Float64Array: typeof Float64Array;
- Function: typeof Function;
- GLOBAL: Global;
- Infinity: typeof Infinity;
- Int16Array: typeof Int16Array;
- Int32Array: typeof Int32Array;
- Int8Array: typeof Int8Array;
- Intl: typeof Intl;
- JSON: typeof JSON;
- Map: MapConstructor;
- Math: typeof Math;
- NaN: typeof NaN;
- Number: typeof Number;
- Object: typeof Object;
- Promise: Function;
- RangeError: typeof RangeError;
- ReferenceError: typeof ReferenceError;
- RegExp: typeof RegExp;
- Set: SetConstructor;
- String: typeof String;
- Symbol: Function;
- SyntaxError: typeof SyntaxError;
- TypeError: typeof TypeError;
- URIError: typeof URIError;
- Uint16Array: typeof Uint16Array;
- Uint32Array: typeof Uint32Array;
- Uint8Array: typeof Uint8Array;
- Uint8ClampedArray: Function;
- WeakMap: WeakMapConstructor;
- WeakSet: WeakSetConstructor;
- clearImmediate: (immediateId: any) => void;
- clearInterval: (intervalId: NodeJS.Timer) => void;
- clearTimeout: (timeoutId: NodeJS.Timer) => void;
- console: typeof console;
- decodeURI: typeof decodeURI;
- decodeURIComponent: typeof decodeURIComponent;
- encodeURI: typeof encodeURI;
- encodeURIComponent: typeof encodeURIComponent;
- escape: (str: string) => string;
- eval: typeof eval;
- global: Global;
- isFinite: typeof isFinite;
- isNaN: typeof isNaN;
- parseFloat: typeof parseFloat;
- parseInt: typeof parseInt;
- process: Process;
- root: Global;
- setImmediate: (callback: (...args: any[]) => void, ...args: any[]) => any;
- setInterval: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => NodeJS.Timer;
- setTimeout: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => NodeJS.Timer;
- undefined: typeof undefined;
- unescape: (str: string) => string;
- gc: () => void;
- v8debug?: any;
- }
-
- export interface Timer {
- ref() : void;
- unref() : void;
- }
-}
-
-/**
- * @deprecated
- */
-interface NodeBuffer {
- [index: number]: number;
- write(string: string, offset?: number, length?: number, encoding?: string): number;
- toString(encoding?: string, start?: number, end?: number): string;
- toJSON(): any;
- length: number;
- equals(otherBuffer: Buffer): boolean;
- compare(otherBuffer: Buffer): number;
- copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
- slice(start?: number, end?: number): Buffer;
- writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
- readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
- readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
- readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
- readUInt8(offset: number, noAsset?: boolean): number;
- readUInt16LE(offset: number, noAssert?: boolean): number;
- readUInt16BE(offset: number, noAssert?: boolean): number;
- readUInt32LE(offset: number, noAssert?: boolean): number;
- readUInt32BE(offset: number, noAssert?: boolean): number;
- readInt8(offset: number, noAssert?: boolean): number;
- readInt16LE(offset: number, noAssert?: boolean): number;
- readInt16BE(offset: number, noAssert?: boolean): number;
- readInt32LE(offset: number, noAssert?: boolean): number;
- readInt32BE(offset: number, noAssert?: boolean): number;
- readFloatLE(offset: number, noAssert?: boolean): number;
- readFloatBE(offset: number, noAssert?: boolean): number;
- readDoubleLE(offset: number, noAssert?: boolean): number;
- readDoubleBE(offset: number, noAssert?: boolean): number;
- writeUInt8(value: number, offset: number, noAssert?: boolean): number;
- writeUInt16LE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
- writeInt8(value: number, offset: number, noAssert?: boolean): number;
- writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
- writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
- writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
- writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
- writeFloatLE(value: number, offset: number, noAssert?: boolean): number;
- writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
- writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
- writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
- fill(value: any, offset?: number, end?: number): Buffer;
- indexOf(value: string | number | Buffer, byteOffset?: number): number;
-}
-
-/************************************************
-* *
-* MODULES *
-* *
-************************************************/
-declare module "buffer" {
- export var INSPECT_MAX_BYTES: number;
-}
-
-declare module "querystring" {
- export interface StringifyOptions {
- encodeURIComponent?: Function;
- }
-
- export interface ParseOptions {
- maxKeys?: number;
- decodeURIComponent?: Function;
- }
-
- export function stringify<T>(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string;
- export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): any;
- export function parse<T extends {}>(str: string, sep?: string, eq?: string, options?: ParseOptions): T;
- export function escape(str: string): string;
- export function unescape(str: string): string;
-}
-
-declare module "events" {
- export class EventEmitter implements NodeJS.EventEmitter {
- static EventEmitter: EventEmitter;
- static listenerCount(emitter: EventEmitter, event: string): number; // deprecated
- static defaultMaxListeners: number;
-
- addListener(event: string, listener: Function): EventEmitter;
- on(event: string, listener: Function): EventEmitter;
- once(event: string, listener: Function): EventEmitter;
- removeListener(event: string, listener: Function): EventEmitter;
- removeAllListeners(event?: string): EventEmitter;
- setMaxListeners(n: number): EventEmitter;
- getMaxListeners(): number;
- listeners(event: string): Function[];
- emit(event: string, ...args: any[]): boolean;
- listenerCount(type: string): number;
- }
-}
-
-declare module "http" {
- import * as events from "events";
- import * as net from "net";
- import * as stream from "stream";
-
- export interface RequestOptions {
- protocol?: string;
- host?: string;
- hostname?: string;
- family?: number;
- port?: number;
- localAddress?: string;
- socketPath?: string;
- method?: string;
- path?: string;
- headers?: { [key: string]: any };
- auth?: string;
- agent?: Agent|boolean;
- }
-
- export interface Server extends events.EventEmitter {
- listen(port: number, hostname?: string, backlog?: number, callback?: Function): Server;
- listen(port: number, hostname?: string, callback?: Function): Server;
- listen(path: string, callback?: Function): Server;
- listen(handle: any, listeningListener?: Function): Server;
- close(cb?: any): Server;
- address(): { port: number; family: string; address: string; };
- maxHeadersCount: number;
- }
- /**
- * @deprecated Use IncomingMessage
- */
- export interface ServerRequest extends IncomingMessage {
- connection: net.Socket;
- }
- export interface ServerResponse extends events.EventEmitter, stream.Writable {
- // Extended base methods
- write(buffer: Buffer): boolean;
- write(buffer: Buffer, cb?: Function): boolean;
- write(str: string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- write(str: string, encoding?: string, fd?: string): boolean;
-
- writeContinue(): void;
- writeHead(statusCode: number, reasonPhrase?: string, headers?: any): void;
- writeHead(statusCode: number, headers?: any): void;
- statusCode: number;
- statusMessage: string;
- headersSent: boolean;
- setHeader(name: string, value: string): void;
- sendDate: boolean;
- getHeader(name: string): string;
- removeHeader(name: string): void;
- write(chunk: any, encoding?: string): any;
- addTrailers(headers: any): void;
-
- // Extended base methods
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- end(data?: any, encoding?: string): void;
- }
- export interface ClientRequest extends events.EventEmitter, stream.Writable {
- // Extended base methods
- write(buffer: Buffer): boolean;
- write(buffer: Buffer, cb?: Function): boolean;
- write(str: string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- write(str: string, encoding?: string, fd?: string): boolean;
-
- write(chunk: any, encoding?: string): void;
- abort(): void;
- setTimeout(timeout: number, callback?: Function): void;
- setNoDelay(noDelay?: boolean): void;
- setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
-
- // Extended base methods
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- end(data?: any, encoding?: string): void;
- }
- export interface IncomingMessage extends events.EventEmitter, stream.Readable {
- httpVersion: string;
- headers: any;
- rawHeaders: string[];
- trailers: any;
- rawTrailers: any;
- setTimeout(msecs: number, callback: Function): NodeJS.Timer;
- /**
- * Only valid for request obtained from http.Server.
- */
- method?: string;
- /**
- * Only valid for request obtained from http.Server.
- */
- url?: string;
- /**
- * Only valid for response obtained from http.ClientRequest.
- */
- statusCode?: number;
- /**
- * Only valid for response obtained from http.ClientRequest.
- */
- statusMessage?: string;
- socket: net.Socket;
- }
- /**
- * @deprecated Use IncomingMessage
- */
- export interface ClientResponse extends IncomingMessage { }
-
- export interface AgentOptions {
- /**
- * Keep sockets around in a pool to be used by other requests in the future. Default = false
- */
- keepAlive?: boolean;
- /**
- * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
- * Only relevant if keepAlive is set to true.
- */
- keepAliveMsecs?: number;
- /**
- * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
- */
- maxSockets?: number;
- /**
- * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
- */
- maxFreeSockets?: number;
- }
-
- export class Agent {
- maxSockets: number;
- sockets: any;
- requests: any;
-
- constructor(opts?: AgentOptions);
-
- /**
- * Destroy any sockets that are currently in use by the agent.
- * It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled,
- * then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise,
- * sockets may hang open for quite a long time before the server terminates them.
- */
- destroy(): void;
- }
-
- export var METHODS: string[];
-
- export var STATUS_CODES: {
- [errorCode: number]: string;
- [errorCode: string]: string;
- };
- export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) =>void ): Server;
- export function createClient(port?: number, host?: string): any;
- export function request(options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
- export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest;
- export var globalAgent: Agent;
-}
-
-declare module "cluster" {
- import * as child from "child_process";
- import * as events from "events";
-
- export interface ClusterSettings {
- exec?: string;
- args?: string[];
- silent?: boolean;
- }
-
- export class Worker extends events.EventEmitter {
- id: string;
- process: child.ChildProcess;
- suicide: boolean;
- send(message: any, sendHandle?: any): void;
- kill(signal?: string): void;
- destroy(signal?: string): void;
- disconnect(): void;
- }
-
- export var settings: ClusterSettings;
- export var isMaster: boolean;
- export var isWorker: boolean;
- export function setupMaster(settings?: ClusterSettings): void;
- export function fork(env?: any): Worker;
- export function disconnect(callback?: Function): void;
- export var worker: Worker;
- export var workers: Worker[];
-
- // Event emitter
- export function addListener(event: string, listener: Function): void;
- export function on(event: "disconnect", listener: (worker: Worker) => void): void;
- export function on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): void;
- export function on(event: "fork", listener: (worker: Worker) => void): void;
- export function on(event: "listening", listener: (worker: Worker, address: any) => void): void;
- export function on(event: "message", listener: (worker: Worker, message: any) => void): void;
- export function on(event: "online", listener: (worker: Worker) => void): void;
- export function on(event: "setup", listener: (settings: any) => void): void;
- export function on(event: string, listener: Function): any;
- export function once(event: string, listener: Function): void;
- export function removeListener(event: string, listener: Function): void;
- export function removeAllListeners(event?: string): void;
- export function setMaxListeners(n: number): void;
- export function listeners(event: string): Function[];
- export function emit(event: string, ...args: any[]): boolean;
-}
-
-declare module "zlib" {
- import * as stream from "stream";
- export interface ZlibOptions { chunkSize?: number; windowBits?: number; level?: number; memLevel?: number; strategy?: number; dictionary?: any; }
-
- export interface Gzip extends stream.Transform { }
- export interface Gunzip extends stream.Transform { }
- export interface Deflate extends stream.Transform { }
- export interface Inflate extends stream.Transform { }
- export interface DeflateRaw extends stream.Transform { }
- export interface InflateRaw extends stream.Transform { }
- export interface Unzip extends stream.Transform { }
-
- export function createGzip(options?: ZlibOptions): Gzip;
- export function createGunzip(options?: ZlibOptions): Gunzip;
- export function createDeflate(options?: ZlibOptions): Deflate;
- export function createInflate(options?: ZlibOptions): Inflate;
- export function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
- export function createInflateRaw(options?: ZlibOptions): InflateRaw;
- export function createUnzip(options?: ZlibOptions): Unzip;
-
- export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
- export function deflateSync(buf: Buffer, options?: ZlibOptions): any;
- export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
- export function deflateRawSync(buf: Buffer, options?: ZlibOptions): any;
- export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
- export function gzipSync(buf: Buffer, options?: ZlibOptions): any;
- export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
- export function gunzipSync(buf: Buffer, options?: ZlibOptions): any;
- export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
- export function inflateSync(buf: Buffer, options?: ZlibOptions): any;
- export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
- export function inflateRawSync(buf: Buffer, options?: ZlibOptions): any;
- export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void;
- export function unzipSync(buf: Buffer, options?: ZlibOptions): any;
-
- // Constants
- export var Z_NO_FLUSH: number;
- export var Z_PARTIAL_FLUSH: number;
- export var Z_SYNC_FLUSH: number;
- export var Z_FULL_FLUSH: number;
- export var Z_FINISH: number;
- export var Z_BLOCK: number;
- export var Z_TREES: number;
- export var Z_OK: number;
- export var Z_STREAM_END: number;
- export var Z_NEED_DICT: number;
- export var Z_ERRNO: number;
- export var Z_STREAM_ERROR: number;
- export var Z_DATA_ERROR: number;
- export var Z_MEM_ERROR: number;
- export var Z_BUF_ERROR: number;
- export var Z_VERSION_ERROR: number;
- export var Z_NO_COMPRESSION: number;
- export var Z_BEST_SPEED: number;
- export var Z_BEST_COMPRESSION: number;
- export var Z_DEFAULT_COMPRESSION: number;
- export var Z_FILTERED: number;
- export var Z_HUFFMAN_ONLY: number;
- export var Z_RLE: number;
- export var Z_FIXED: number;
- export var Z_DEFAULT_STRATEGY: number;
- export var Z_BINARY: number;
- export var Z_TEXT: number;
- export var Z_ASCII: number;
- export var Z_UNKNOWN: number;
- export var Z_DEFLATED: number;
- export var Z_NULL: number;
-}
-
-declare module "os" {
- export interface CpuInfo {
- model: string;
- speed: number;
- times: {
- user: number;
- nice: number;
- sys: number;
- idle: number;
- irq: number;
- };
- }
-
- export interface NetworkInterfaceInfo {
- address: string;
- netmask: string;
- family: string;
- mac: string;
- internal: boolean;
- }
-
- export function tmpdir(): string;
- export function homedir(): string;
- export function endianness(): string;
- export function hostname(): string;
- export function type(): string;
- export function platform(): string;
- export function arch(): string;
- export function release(): string;
- export function uptime(): number;
- export function loadavg(): number[];
- export function totalmem(): number;
- export function freemem(): number;
- export function cpus(): CpuInfo[];
- export function networkInterfaces(): {[index: string]: NetworkInterfaceInfo[]};
- export var EOL: string;
-}
-
-declare module "https" {
- import * as tls from "tls";
- import * as events from "events";
- import * as http from "http";
-
- export interface ServerOptions {
- pfx?: any;
- key?: any;
- passphrase?: string;
- cert?: any;
- ca?: any;
- crl?: any;
- ciphers?: string;
- honorCipherOrder?: boolean;
- requestCert?: boolean;
- rejectUnauthorized?: boolean;
- NPNProtocols?: any;
- SNICallback?: (servername: string) => any;
- }
-
- export interface RequestOptions extends http.RequestOptions{
- pfx?: any;
- key?: any;
- passphrase?: string;
- cert?: any;
- ca?: any;
- ciphers?: string;
- rejectUnauthorized?: boolean;
- secureProtocol?: string;
- }
-
- export interface Agent {
- maxSockets: number;
- sockets: any;
- requests: any;
- }
- export var Agent: {
- new (options?: RequestOptions): Agent;
- };
- export interface Server extends tls.Server { }
- export function createServer(options: ServerOptions, requestListener?: Function): Server;
- export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
- export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest;
- export var globalAgent: Agent;
-}
-
-declare module "punycode" {
- export function decode(string: string): string;
- export function encode(string: string): string;
- export function toUnicode(domain: string): string;
- export function toASCII(domain: string): string;
- export var ucs2: ucs2;
- interface ucs2 {
- decode(string: string): number[];
- encode(codePoints: number[]): string;
- }
- export var version: any;
-}
-
-declare module "repl" {
- import * as stream from "stream";
- import * as events from "events";
-
- export interface ReplOptions {
- prompt?: string;
- input?: NodeJS.ReadableStream;
- output?: NodeJS.WritableStream;
- terminal?: boolean;
- eval?: Function;
- useColors?: boolean;
- useGlobal?: boolean;
- ignoreUndefined?: boolean;
- writer?: Function;
- }
- export function start(options: ReplOptions): events.EventEmitter;
-}
-
-declare module "readline" {
- import * as events from "events";
- import * as stream from "stream";
-
- export interface Key {
- sequence?: string;
- name?: string;
- ctrl?: boolean;
- meta?: boolean;
- shift?: boolean;
- }
-
- export interface ReadLine extends events.EventEmitter {
- setPrompt(prompt: string): void;
- prompt(preserveCursor?: boolean): void;
- question(query: string, callback: (answer: string) => void): void;
- pause(): ReadLine;
- resume(): ReadLine;
- close(): void;
- write(data: string|Buffer, key?: Key): void;
- }
-
- export interface Completer {
- (line: string): CompleterResult;
- (line: string, callback: (err: any, result: CompleterResult) => void): any;
- }
-
- export interface CompleterResult {
- completions: string[];
- line: string;
- }
-
- export interface ReadLineOptions {
- input: NodeJS.ReadableStream;
- output?: NodeJS.WritableStream;
- completer?: Completer;
- terminal?: boolean;
- historySize?: number;
- }
-
- export function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer, terminal?: boolean): ReadLine;
- export function createInterface(options: ReadLineOptions): ReadLine;
-
- export function cursorTo(stream: NodeJS.WritableStream, x: number, y: number): void;
- export function moveCursor(stream: NodeJS.WritableStream, dx: number|string, dy: number|string): void;
- export function clearLine(stream: NodeJS.WritableStream, dir: number): void;
- export function clearScreenDown(stream: NodeJS.WritableStream): void;
-}
-
-declare module "vm" {
- export interface Context { }
- export interface Script {
- runInThisContext(): void;
- runInNewContext(sandbox?: Context): void;
- }
- export function runInThisContext(code: string, filename?: string): void;
- export function runInNewContext(code: string, sandbox?: Context, filename?: string): void;
- export function runInContext(code: string, context: Context, filename?: string): void;
- export function createContext(initSandbox?: Context): Context;
- export function createScript(code: string, filename?: string): Script;
-}
-
-declare module "child_process" {
- import * as events from "events";
- import * as stream from "stream";
-
- export interface ChildProcess extends events.EventEmitter {
- stdin: stream.Writable;
- stdout: stream.Readable;
- stderr: stream.Readable;
- pid: number;
- kill(signal?: string): void;
- send(message: any, sendHandle?: any): void;
- disconnect(): void;
- unref(): void;
- }
-
- export function spawn(command: string, args?: string[], options?: {
- cwd?: string;
- stdio?: any;
- custom?: any;
- env?: any;
- detached?: boolean;
- }): ChildProcess;
- export function exec(command: string, options: {
- cwd?: string;
- stdio?: any;
- customFds?: any;
- env?: any;
- encoding?: string;
- timeout?: number;
- maxBuffer?: number;
- killSignal?: string;
- }, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
- export function exec(command: string, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
- export function execFile(file: string,
- callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
- export function execFile(file: string, args?: string[],
- callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
- export function execFile(file: string, args?: string[], options?: {
- cwd?: string;
- stdio?: any;
- customFds?: any;
- env?: any;
- encoding?: string;
- timeout?: number;
- maxBuffer?: number;
- killSignal?: string;
- }, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
- export function fork(modulePath: string, args?: string[], options?: {
- cwd?: string;
- env?: any;
- execPath?: string;
- execArgv?: string[];
- silent?: boolean;
- uid?: number;
- gid?: number;
- }): ChildProcess;
- export function spawnSync(command: string, args?: string[], options?: {
- cwd?: string;
- input?: string | Buffer;
- stdio?: any;
- env?: any;
- uid?: number;
- gid?: number;
- timeout?: number;
- maxBuffer?: number;
- killSignal?: string;
- encoding?: string;
- }): {
- pid: number;
- output: string[];
- stdout: string | Buffer;
- stderr: string | Buffer;
- status: number;
- signal: string;
- error: Error;
- };
- export function execSync(command: string, options?: {
- cwd?: string;
- input?: string|Buffer;
- stdio?: any;
- env?: any;
- uid?: number;
- gid?: number;
- timeout?: number;
- maxBuffer?: number;
- killSignal?: string;
- encoding?: string;
- }): string | Buffer;
- export function execFileSync(command: string, args?: string[], options?: {
- cwd?: string;
- input?: string|Buffer;
- stdio?: any;
- env?: any;
- uid?: number;
- gid?: number;
- timeout?: number;
- maxBuffer?: number;
- killSignal?: string;
- encoding?: string;
- }): string | Buffer;
-}
-
-declare module "url" {
- export interface Url {
- href?: string;
- protocol?: string;
- auth?: string;
- hostname?: string;
- port?: string;
- host?: string;
- pathname?: string;
- search?: string;
- query?: any; // string | Object
- slashes?: boolean;
- hash?: string;
- path?: string;
- }
-
- export function parse(urlStr: string, parseQueryString?: boolean , slashesDenoteHost?: boolean ): Url;
- export function format(url: Url): string;
- export function resolve(from: string, to: string): string;
-}
-
-declare module "dns" {
- export function lookup(domain: string, family: number, callback: (err: Error, address: string, family: number) =>void ): string;
- export function lookup(domain: string, callback: (err: Error, address: string, family: number) =>void ): string;
- export function resolve(domain: string, rrtype: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolve(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolve4(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolve6(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolveMx(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolveTxt(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolveSrv(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolveNs(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function resolveCname(domain: string, callback: (err: Error, addresses: string[]) =>void ): string[];
- export function reverse(ip: string, callback: (err: Error, domains: string[]) =>void ): string[];
-}
-
-declare module "net" {
- import * as stream from "stream";
-
- export interface Socket extends stream.Duplex {
- // Extended base methods
- write(buffer: Buffer): boolean;
- write(buffer: Buffer, cb?: Function): boolean;
- write(str: string, cb?: Function): boolean;
- write(str: string, encoding?: string, cb?: Function): boolean;
- write(str: string, encoding?: string, fd?: string): boolean;
-
- connect(port: number, host?: string, connectionListener?: Function): void;
- connect(path: string, connectionListener?: Function): void;
- bufferSize: number;
- setEncoding(encoding?: string): void;
- write(data: any, encoding?: string, callback?: Function): void;
- destroy(): void;
- pause(): void;
- resume(): void;
- setTimeout(timeout: number, callback?: Function): void;
- setNoDelay(noDelay?: boolean): void;
- setKeepAlive(enable?: boolean, initialDelay?: number): void;
- address(): { port: number; family: string; address: string; };
- unref(): void;
- ref(): void;
-
- remoteAddress: string;
- remoteFamily: string;
- remotePort: number;
- localAddress: string;
- localPort: number;
- bytesRead: number;
- bytesWritten: number;
-
- // Extended base methods
- end(): void;
- end(buffer: Buffer, cb?: Function): void;
- end(str: string, cb?: Function): void;
- end(str: string, encoding?: string, cb?: Function): void;
- end(data?: any, encoding?: string): void;
- }
-
- export var Socket: {
- new (options?: { fd?: string; type?: string; allowHalfOpen?: boolean; }): Socket;
- };
-
- export interface Server extends Socket {
- listen(port: number, host?: string, backlog?: number, listeningListener?: Function): Server;
- listen(path: string, listeningListener?: Function): Server;
- listen(handle: any, listeningListener?: Function): Server;
- close(callback?: Function): Server;
- address(): { port: number; family: string; address: string; };
- maxConnections: number;
- connections: number;
- }
- export function createServer(connectionListener?: (socket: Socket) =>void ): Server;
- export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: Socket) =>void ): Server;
- export function connect(options: { port: number, host?: string, localAddress? : string, localPort? : string, family? : number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
- export function connect(port: number, host?: string, connectionListener?: Function): Socket;
- export function connect(path: string, connectionListener?: Function): Socket;
- export function createConnection(options: { port: number, host?: string, localAddress? : string, localPort? : string, family? : number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket;
- export function createConnection(port: number, host?: string, connectionListener?: Function): Socket;
- export function createConnection(path: string, connectionListener?: Function): Socket;
- export function isIP(input: string): number;
- export function isIPv4(input: string): boolean;
- export function isIPv6(input: string): boolean;
-}
-
-declare module "dgram" {
- import * as events from "events";
-
- interface RemoteInfo {
- address: string;
- port: number;
- size: number;
- }
-
- interface AddressInfo {
- address: string;
- family: string;
- port: number;
- }
-
- export function createSocket(type: string, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
-
- interface Socket extends events.EventEmitter {
- send(buf: Buffer, offset: number, length: number, port: number, address: string, callback?: (error: Error, bytes: number) => void): void;
- bind(port: number, address?: string, callback?: () => void): void;
- close(): void;
- address(): AddressInfo;
- setBroadcast(flag: boolean): void;
- setMulticastTTL(ttl: number): void;
- setMulticastLoopback(flag: boolean): void;
- addMembership(multicastAddress: string, multicastInterface?: string): void;
- dropMembership(multicastAddress: string, multicastInterface?: string): void;
- }
-}
-
-declare module "fs" {
- import * as stream from "stream";
- import * as events from "events";
-
- interface Stats {
- isFile(): boolean;
- isDirectory(): boolean;
- isBlockDevice(): boolean;
- isCharacterDevice(): boolean;
- isSymbolicLink(): boolean;
- isFIFO(): boolean;
- isSocket(): boolean;
- dev: number;
- ino: number;
- mode: number;
- nlink: number;
- uid: number;
- gid: number;
- rdev: number;
- size: number;
- blksize: number;
- blocks: number;
- atime: Date;
- mtime: Date;
- ctime: Date;
- birthtime: Date;
- }
-
- interface FSWatcher extends events.EventEmitter {
- close(): void;
- }
-
- export interface ReadStream extends stream.Readable {
- close(): void;
- }
- export interface WriteStream extends stream.Writable {
- close(): void;
- bytesWritten: number;
- }
-
- /**
- * Asynchronous rename.
- * @param oldPath
- * @param newPath
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function rename(oldPath: string, newPath: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /**
- * Synchronous rename
- * @param oldPath
- * @param newPath
- */
- export function renameSync(oldPath: string, newPath: string): void;
- export function truncate(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function truncate(path: string, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function truncateSync(path: string, len?: number): void;
- export function ftruncate(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function ftruncate(fd: number, len: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function ftruncateSync(fd: number, len?: number): void;
- export function chown(path: string, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function chownSync(path: string, uid: number, gid: number): void;
- export function fchown(fd: number, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fchownSync(fd: number, uid: number, gid: number): void;
- export function lchown(path: string, uid: number, gid: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function lchownSync(path: string, uid: number, gid: number): void;
- export function chmod(path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function chmod(path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function chmodSync(path: string, mode: number): void;
- export function chmodSync(path: string, mode: string): void;
- export function fchmod(fd: number, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fchmod(fd: number, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fchmodSync(fd: number, mode: number): void;
- export function fchmodSync(fd: number, mode: string): void;
- export function lchmod(path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function lchmod(path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function lchmodSync(path: string, mode: number): void;
- export function lchmodSync(path: string, mode: string): void;
- export function stat(path: string, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
- export function lstat(path: string, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
- export function fstat(fd: number, callback?: (err: NodeJS.ErrnoException, stats: Stats) => any): void;
- export function statSync(path: string): Stats;
- export function lstatSync(path: string): Stats;
- export function fstatSync(fd: number): Stats;
- export function link(srcpath: string, dstpath: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function linkSync(srcpath: string, dstpath: string): void;
- export function symlink(srcpath: string, dstpath: string, type?: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function symlinkSync(srcpath: string, dstpath: string, type?: string): void;
- export function readlink(path: string, callback?: (err: NodeJS.ErrnoException, linkString: string) => any): void;
- export function readlinkSync(path: string): string;
- export function realpath(path: string, callback?: (err: NodeJS.ErrnoException, resolvedPath: string) => any): void;
- export function realpath(path: string, cache: {[path: string]: string}, callback: (err: NodeJS.ErrnoException, resolvedPath: string) =>any): void;
- export function realpathSync(path: string, cache?: { [path: string]: string }): string;
- /*
- * Asynchronous unlink - deletes the file specified in {path}
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function unlink(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /*
- * Synchronous unlink - deletes the file specified in {path}
- *
- * @param path
- */
- export function unlinkSync(path: string): void;
- /*
- * Asynchronous rmdir - removes the directory specified in {path}
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function rmdir(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /*
- * Synchronous rmdir - removes the directory specified in {path}
- *
- * @param path
- */
- export function rmdirSync(path: string): void;
- /*
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdir(path: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /*
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdir(path: string, mode: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /*
- * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdir(path: string, mode: string, callback?: (err?: NodeJS.ErrnoException) => void): void;
- /*
- * Synchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdirSync(path: string, mode?: number): void;
- /*
- * Synchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777.
- *
- * @param path
- * @param mode
- * @param callback No arguments other than a possible exception are given to the completion callback.
- */
- export function mkdirSync(path: string, mode?: string): void;
- export function readdir(path: string, callback?: (err: NodeJS.ErrnoException, files: string[]) => void): void;
- export function readdirSync(path: string): string[];
- export function close(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function closeSync(fd: number): void;
- export function open(path: string, flags: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void;
- export function open(path: string, flags: string, mode: number, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void;
- export function open(path: string, flags: string, mode: string, callback?: (err: NodeJS.ErrnoException, fd: number) => any): void;
- export function openSync(path: string, flags: string, mode?: number): number;
- export function openSync(path: string, flags: string, mode?: string): number;
- export function utimes(path: string, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function utimes(path: string, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function utimesSync(path: string, atime: number, mtime: number): void;
- export function utimesSync(path: string, atime: Date, mtime: Date): void;
- export function futimes(fd: number, atime: number, mtime: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function futimes(fd: number, atime: Date, mtime: Date, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function futimesSync(fd: number, atime: number, mtime: number): void;
- export function futimesSync(fd: number, atime: Date, mtime: Date): void;
- export function fsync(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
- export function fsyncSync(fd: number): void;
- export function write(fd: number, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
- export function write(fd: number, buffer: Buffer, offset: number, length: number, callback?: (err: NodeJS.ErrnoException, written: number, buffer: Buffer) => void): void;
- export function write(fd: number, data: any, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
- export function write(fd: number, data: any, offset: number, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
- export function write(fd: number, data: any, offset: number, encoding: string, callback?: (err: NodeJS.ErrnoException, written: number, str: string) => void): void;
- export function writeSync(fd: number, buffer: Buffer, offset: number, length: number, position: number): number;
- export function read(fd: number, buffer: Buffer, offset: number, length: number, position: number, callback?: (err: NodeJS.ErrnoException, bytesRead: number, buffer: Buffer) => void): void;
- export function readSync(fd: number, buffer: Buffer, offset: number, length: number, position: number): number;
- /*
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param encoding
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, encoding: string, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
- /*
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFile returns a string; otherwise it returns a Buffer.
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, options: { encoding: string; flag?: string; }, callback: (err: NodeJS.ErrnoException, data: string) => void): void;
- /*
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFile returns a string; otherwise it returns a Buffer.
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, options: { flag?: string; }, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
- /*
- * Asynchronous readFile - Asynchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param callback - The callback is passed two arguments (err, data), where data is the contents of the file.
- */
- export function readFile(filename: string, callback: (err: NodeJS.ErrnoException, data: Buffer) => void): void;
- /*
- * Synchronous readFile - Synchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param encoding
- */
- export function readFileSync(filename: string, encoding: string): string;
- /*
- * Synchronous readFile - Synchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFileSync returns a string; otherwise it returns a Buffer.
- */
- export function readFileSync(filename: string, options: { encoding: string; flag?: string; }): string;
- /*
- * Synchronous readFile - Synchronously reads the entire contents of a file.
- *
- * @param fileName
- * @param options An object with optional {encoding} and {flag} properties. If {encoding} is specified, readFileSync returns a string; otherwise it returns a Buffer.
- */
- export function readFileSync(filename: string, options?: { flag?: string; }): Buffer;
- export function writeFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function writeFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function writeFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function writeFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): void;
- export function writeFileSync(filename: string, data: any, options?: { encoding?: string; mode?: string; flag?: string; }): void;
- export function appendFile(filename: string, data: any, options: { encoding?: string; mode?: number; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function appendFile(filename: string, data: any, options: { encoding?: string; mode?: string; flag?: string; }, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function appendFile(filename: string, data: any, callback?: (err: NodeJS.ErrnoException) => void): void;
- export function appendFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): void;
- export function appendFileSync(filename: string, data: any, options?: { encoding?: string; mode?: string; flag?: string; }): void;
- export function watchFile(filename: string, listener: (curr: Stats, prev: Stats) => void): void;
- export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: (curr: Stats, prev: Stats) => void): void;
- export function unwatchFile(filename: string, listener?: (curr: Stats, prev: Stats) => void): void;
- export function watch(filename: string, listener?: (event: string, filename: string) => any): FSWatcher;
- export function watch(filename: string, options: { persistent?: boolean; }, listener?: (event: string, filename: string) => any): FSWatcher;
- export function exists(path: string, callback?: (exists: boolean) => void): void;
- export function existsSync(path: string): boolean;
- /** Constant for fs.access(). File is visible to the calling process. */
- export var F_OK: number;
- /** Constant for fs.access(). File can be read by the calling process. */
- export var R_OK: number;
- /** Constant for fs.access(). File can be written by the calling process. */
- export var W_OK: number;
- /** Constant for fs.access(). File can be executed by the calling process. */
- export var X_OK: number;
- /** Tests a user's permissions for the file specified by path. */
- export function access(path: string, callback: (err: NodeJS.ErrnoException) => void): void;
- export function access(path: string, mode: number, callback: (err: NodeJS.ErrnoException) => void): void;
- /** Synchronous version of fs.access. This throws if any accessibility checks fail, and does nothing otherwise. */
- export function accessSync(path: string, mode ?: number): void;
- export function createReadStream(path: string, options?: {
- flags?: string;
- encoding?: string;
- fd?: number;
- mode?: number;
- autoClose?: boolean;
- }): ReadStream;
- export function createWriteStream(path: string, options?: {
- flags?: string;
- encoding?: string;
- fd?: number;
- mode?: number;
- }): WriteStream;
-}
-
-declare module "path" {
-
- /**
- * A parsed path object generated by path.parse() or consumed by path.format().
- */
- export interface ParsedPath {
- /**
- * The root of the path such as '/' or 'c:\'
- */
- root: string;
- /**
- * The full directory path such as '/home/user/dir' or 'c:\path\dir'
- */
- dir: string;
- /**
- * The file name including extension (if any) such as 'index.html'
- */
- base: string;
- /**
- * The file extension (if any) such as '.html'
- */
- ext: string;
- /**
- * The file name without extension (if any) such as 'index'
- */
- name: string;
- }
-
- /**
- * Normalize a string path, reducing '..' and '.' parts.
- * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
- *
- * @param p string path to normalize.
- */
- export function normalize(p: string): string;
- /**
- * Join all arguments together and normalize the resulting path.
- * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
- *
- * @param paths string paths to join.
- */
- export function join(...paths: any[]): string;
- /**
- * Join all arguments together and normalize the resulting path.
- * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
- *
- * @param paths string paths to join.
- */
- export function join(...paths: string[]): string;
- /**
- * The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
- *
- * Starting from leftmost {from} paramter, resolves {to} to an absolute path.
- *
- * If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
- *
- * @param pathSegments string paths to join. Non-string arguments are ignored.
- */
- export function resolve(...pathSegments: any[]): string;
- /**
- * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
- *
- * @param path path to test.
- */
- export function isAbsolute(path: string): boolean;
- /**
- * Solve the relative path from {from} to {to}.
- * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve.
- *
- * @param from
- * @param to
- */
- export function relative(from: string, to: string): string;
- /**
- * Return the directory name of a path. Similar to the Unix dirname command.
- *
- * @param p the path to evaluate.
- */
- export function dirname(p: string): string;
- /**
- * Return the last portion of a path. Similar to the Unix basename command.
- * Often used to extract the file name from a fully qualified path.
- *
- * @param p the path to evaluate.
- * @param ext optionally, an extension to remove from the result.
- */
- export function basename(p: string, ext?: string): string;
- /**
- * Return the extension of the path, from the last '.' to end of string in the last portion of the path.
- * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string
- *
- * @param p the path to evaluate.
- */
- export function extname(p: string): string;
- /**
- * The platform-specific file separator. '\\' or '/'.
- */
- export var sep: string;
- /**
- * The platform-specific file delimiter. ';' or ':'.
- */
- export var delimiter: string;
- /**
- * Returns an object from a path string - the opposite of format().
- *
- * @param pathString path to evaluate.
- */
- export function parse(pathString: string): ParsedPath;
- /**
- * Returns a path string from an object - the opposite of parse().
- *
- * @param pathString path to evaluate.
- */
- export function format(pathObject: ParsedPath): string;
-
- export module posix {
- export function normalize(p: string): string;
- export function join(...paths: any[]): string;
- export function resolve(...pathSegments: any[]): string;
- export function isAbsolute(p: string): boolean;
- export function relative(from: string, to: string): string;
- export function dirname(p: string): string;
- export function basename(p: string, ext?: string): string;
- export function extname(p: string): string;
- export var sep: string;
- export var delimiter: string;
- export function parse(p: string): ParsedPath;
- export function format(pP: ParsedPath): string;
- }
-
- export module win32 {
- export function normalize(p: string): string;
- export function join(...paths: any[]): string;
- export function resolve(...pathSegments: any[]): string;
- export function isAbsolute(p: string): boolean;
- export function relative(from: string, to: string): string;
- export function dirname(p: string): string;
- export function basename(p: string, ext?: string): string;
- export function extname(p: string): string;
- export var sep: string;
- export var delimiter: string;
- export function parse(p: string): ParsedPath;
- export function format(pP: ParsedPath): string;
- }
-}
-
-declare module "string_decoder" {
- export interface NodeStringDecoder {
- write(buffer: Buffer): string;
- detectIncompleteChar(buffer: Buffer): number;
- }
- export var StringDecoder: {
- new (encoding: string): NodeStringDecoder;
- };
-}
-
-declare module "tls" {
- import * as crypto from "crypto";
- import * as net from "net";
- import * as stream from "stream";
-
- var CLIENT_RENEG_LIMIT: number;
- var CLIENT_RENEG_WINDOW: number;
-
- export interface TlsOptions {
- host?: string;
- port?: number;
- pfx?: any; //string or buffer
- key?: any; //string or buffer
- passphrase?: string;
- cert?: any;
- ca?: any; //string or buffer
- crl?: any; //string or string array
- ciphers?: string;
- honorCipherOrder?: any;
- requestCert?: boolean;
- rejectUnauthorized?: boolean;
- NPNProtocols?: any; //array or Buffer;
- SNICallback?: (servername: string) => any;
- }
-
- export interface ConnectionOptions {
- host?: string;
- port?: number;
- socket?: net.Socket;
- pfx?: any; //string | Buffer
- key?: any; //string | Buffer
- passphrase?: string;
- cert?: any; //string | Buffer
- ca?: any; //Array of string | Buffer
- rejectUnauthorized?: boolean;
- NPNProtocols?: any; //Array of string | Buffer
- servername?: string;
- }
-
- export interface Server extends net.Server {
- // Extended base methods
- listen(port: number, host?: string, backlog?: number, listeningListener?: Function): Server;
- listen(path: string, listeningListener?: Function): Server;
- listen(handle: any, listeningListener?: Function): Server;
-
- listen(port: number, host?: string, callback?: Function): Server;
- close(): Server;
- address(): { port: number; family: string; address: string; };
- addContext(hostName: string, credentials: {
- key: string;
- cert: string;
- ca: string;
- }): void;
- maxConnections: number;
- connections: number;
- }
-
- export interface ClearTextStream extends stream.Duplex {
- authorized: boolean;
- authorizationError: Error;
- getPeerCertificate(): any;
- getCipher: {
- name: string;
- version: string;
- };
- address: {
- port: number;
- family: string;
- address: string;
- };
- remoteAddress: string;
- remotePort: number;
- }
-
- export interface SecurePair {
- encrypted: any;
- cleartext: any;
- }
-
- export interface SecureContextOptions {
- pfx?: any; //string | buffer
- key?: any; //string | buffer
- passphrase?: string;
- cert?: any; // string | buffer
- ca?: any; // string | buffer
- crl?: any; // string | string[]
- ciphers?: string;
- honorCipherOrder?: boolean;
- }
-
- export interface SecureContext {
- context: any;
- }
-
- export function createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: ClearTextStream) =>void ): Server;
- export function connect(options: TlsOptions, secureConnectionListener?: () =>void ): ClearTextStream;
- export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
- export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream;
- export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
- export function createSecureContext(details: SecureContextOptions): SecureContext;
-}
-
-declare module "crypto" {
- export interface CredentialDetails {
- pfx: string;
- key: string;
- passphrase: string;
- cert: string;
- ca: any; //string | string array
- crl: any; //string | string array
- ciphers: string;
- }
- export interface Credentials { context?: any; }
- export function createCredentials(details: CredentialDetails): Credentials;
- export function createHash(algorithm: string): Hash;
- export function createHmac(algorithm: string, key: string): Hmac;
- export function createHmac(algorithm: string, key: Buffer): Hmac;
- export interface Hash {
- update(data: any, input_encoding?: string): Hash;
- digest(encoding: 'buffer'): Buffer;
- digest(encoding: string): any;
- digest(): Buffer;
- }
- export interface Hmac extends NodeJS.ReadWriteStream {
- update(data: any, input_encoding?: string): Hmac;
- digest(encoding: 'buffer'): Buffer;
- digest(encoding: string): any;
- digest(): Buffer;
- }
- export function createCipher(algorithm: string, password: any): Cipher;
- export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;
- export interface Cipher {
- update(data: Buffer): Buffer;
- update(data: string, input_encoding?: string, output_encoding?: string): string;
- final(): Buffer;
- final(output_encoding: string): string;
- setAutoPadding(auto_padding: boolean): void;
- }
- export function createDecipher(algorithm: string, password: any): Decipher;
- export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
- export interface Decipher {
- update(data: Buffer): Buffer;
- update(data: string, input_encoding?: string, output_encoding?: string): string;
- final(): Buffer;
- final(output_encoding: string): string;
- setAutoPadding(auto_padding: boolean): void;
- }
- export function createSign(algorithm: string): Signer;
- export interface Signer extends NodeJS.WritableStream {
- update(data: any): void;
- sign(private_key: string, output_format: string): string;
- }
- export function createVerify(algorith: string): Verify;
- export interface Verify extends NodeJS.WritableStream {
- update(data: any): void;
- verify(object: string, signature: string, signature_format?: string): boolean;
- }
- export function createDiffieHellman(prime_length: number): DiffieHellman;
- export function createDiffieHellman(prime: number, encoding?: string): DiffieHellman;
- export interface DiffieHellman {
- generateKeys(encoding?: string): string;
- computeSecret(other_public_key: string, input_encoding?: string, output_encoding?: string): string;
- getPrime(encoding?: string): string;
- getGenerator(encoding: string): string;
- getPublicKey(encoding?: string): string;
- getPrivateKey(encoding?: string): string;
- setPublicKey(public_key: string, encoding?: string): void;
- setPrivateKey(public_key: string, encoding?: string): void;
- }
- export function getDiffieHellman(group_name: string): DiffieHellman;
- export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, callback: (err: Error, derivedKey: Buffer) => any): void;
- export function pbkdf2(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, digest: string, callback: (err: Error, derivedKey: Buffer) => any): void;
- export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number) : Buffer;
- export function pbkdf2Sync(password: string|Buffer, salt: string|Buffer, iterations: number, keylen: number, digest: string) : Buffer;
- export function randomBytes(size: number): Buffer;
- export function randomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
- export function pseudoRandomBytes(size: number): Buffer;
- export function pseudoRandomBytes(size: number, callback: (err: Error, buf: Buffer) =>void ): void;
-}
-
-declare module "stream" {
- import * as events from "events";
-
- export class Stream extends events.EventEmitter {
- pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
- }
-
- export interface ReadableOptions {
- highWaterMark?: number;
- encoding?: string;
- objectMode?: boolean;
- }
-
- export class Readable extends events.EventEmitter implements NodeJS.ReadableStream {
- readable: boolean;
- constructor(opts?: ReadableOptions);
- _read(size: number): void;
- read(size?: number): any;
- setEncoding(encoding: string): void;
- pause(): void;
- resume(): void;
- pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
- unpipe<T extends NodeJS.WritableStream>(destination?: T): void;
- unshift(chunk: any): void;
- wrap(oldStream: NodeJS.ReadableStream): NodeJS.ReadableStream;
- push(chunk: any, encoding?: string): boolean;
- }
-
- export interface WritableOptions {
- highWaterMark?: number;
- decodeStrings?: boolean;
- objectMode?: boolean;
- }
-
- export class Writable extends events.EventEmitter implements NodeJS.WritableStream {
- writable: boolean;
- constructor(opts?: WritableOptions);
- _write(chunk: any, encoding: string, callback: Function): void;
- write(chunk: any, cb?: Function): boolean;
- write(chunk: any, encoding?: string, cb?: Function): boolean;
- end(): void;
- end(chunk: any, cb?: Function): void;
- end(chunk: any, encoding?: string, cb?: Function): void;
- }
-
- export interface DuplexOptions extends ReadableOptions, WritableOptions {
- allowHalfOpen?: boolean;
- }
-
- // Note: Duplex extends both Readable and Writable.
- export class Duplex extends Readable implements NodeJS.ReadWriteStream {
- writable: boolean;
- constructor(opts?: DuplexOptions);
- _write(chunk: any, encoding: string, callback: Function): void;
- write(chunk: any, cb?: Function): boolean;
- write(chunk: any, encoding?: string, cb?: Function): boolean;
- end(): void;
- end(chunk: any, cb?: Function): void;
- end(chunk: any, encoding?: string, cb?: Function): void;
- }
-
- export interface TransformOptions extends ReadableOptions, WritableOptions {}
-
- // Note: Transform lacks the _read and _write methods of Readable/Writable.
- export class Transform extends events.EventEmitter implements NodeJS.ReadWriteStream {
- readable: boolean;
- writable: boolean;
- constructor(opts?: TransformOptions);
- _transform(chunk: any, encoding: string, callback: Function): void;
- _flush(callback: Function): void;
- read(size?: number): any;
- setEncoding(encoding: string): void;
- pause(): void;
- resume(): void;
- pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
- unpipe<T extends NodeJS.WritableStream>(destination?: T): void;
- unshift(chunk: any): void;
- wrap(oldStream: NodeJS.ReadableStream): NodeJS.ReadableStream;
- push(chunk: any, encoding?: string): boolean;
- write(chunk: any, cb?: Function): boolean;
- write(chunk: any, encoding?: string, cb?: Function): boolean;
- end(): void;
- end(chunk: any, cb?: Function): void;
- end(chunk: any, encoding?: string, cb?: Function): void;
- }
-
- export class PassThrough extends Transform {}
-}
-
-declare module "util" {
- export interface InspectOptions {
- showHidden?: boolean;
- depth?: number;
- colors?: boolean;
- customInspect?: boolean;
- }
-
- export function format(format: any, ...param: any[]): string;
- export function debug(string: string): void;
- export function error(...param: any[]): void;
- export function puts(...param: any[]): void;
- export function print(...param: any[]): void;
- export function log(string: string): void;
- export function inspect(object: any, showHidden?: boolean, depth?: number, color?: boolean): string;
- export function inspect(object: any, options: InspectOptions): string;
- export function isArray(object: any): boolean;
- export function isRegExp(object: any): boolean;
- export function isDate(object: any): boolean;
- export function isError(object: any): boolean;
- export function inherits(constructor: any, superConstructor: any): void;
- export function debuglog(key:string): (msg:string,...param: any[])=>void;
-}
-
-declare module "assert" {
- function internal (value: any, message?: string): void;
- module internal {
- export class AssertionError implements Error {
- name: string;
- message: string;
- actual: any;
- expected: any;
- operator: string;
- generatedMessage: boolean;
-
- constructor(options?: {message?: string; actual?: any; expected?: any;
- operator?: string; stackStartFunction?: Function});
- }
-
- export function fail(actual?: any, expected?: any, message?: string, operator?: string): void;
- export function ok(value: any, message?: string): void;
- export function equal(actual: any, expected: any, message?: string): void;
- export function notEqual(actual: any, expected: any, message?: string): void;
- export function deepEqual(actual: any, expected: any, message?: string): void;
- export function notDeepEqual(acutal: any, expected: any, message?: string): void;
- export function strictEqual(actual: any, expected: any, message?: string): void;
- export function notStrictEqual(actual: any, expected: any, message?: string): void;
- export function deepStrictEqual(actual: any, expected: any, message?: string): void;
- export function notDeepStrictEqual(actual: any, expected: any, message?: string): void;
- export var throws: {
- (block: Function, message?: string): void;
- (block: Function, error: Function, message?: string): void;
- (block: Function, error: RegExp, message?: string): void;
- (block: Function, error: (err: any) => boolean, message?: string): void;
- };
-
- export var doesNotThrow: {
- (block: Function, message?: string): void;
- (block: Function, error: Function, message?: string): void;
- (block: Function, error: RegExp, message?: string): void;
- (block: Function, error: (err: any) => boolean, message?: string): void;
- };
-
- export function ifError(value: any): void;
- }
-
- export = internal;
-}
-
-declare module "tty" {
- import * as net from "net";
-
- export function isatty(fd: number): boolean;
- export interface ReadStream extends net.Socket {
- isRaw: boolean;
- setRawMode(mode: boolean): void;
- isTTY: boolean;
- }
- export interface WriteStream extends net.Socket {
- columns: number;
- rows: number;
- isTTY: boolean;
- }
-}
-
-declare module "domain" {
- import * as events from "events";
-
- export class Domain extends events.EventEmitter {
- run(fn: Function): void;
- add(emitter: events.EventEmitter): void;
- remove(emitter: events.EventEmitter): void;
- bind(cb: (err: Error, data: any) => any): any;
- intercept(cb: (data: any) => any): any;
- dispose(): void;
-
- addListener(event: string, listener: Function): Domain;
- on(event: string, listener: Function): Domain;
- once(event: string, listener: Function): Domain;
- removeListener(event: string, listener: Function): Domain;
- removeAllListeners(event?: string): Domain;
- }
-
- export function create(): Domain;
-}
-
-declare module "constants" {
- export var E2BIG: number;
- export var EACCES: number;
- export var EADDRINUSE: number;
- export var EADDRNOTAVAIL: number;
- export var EAFNOSUPPORT: number;
- export var EAGAIN: number;
- export var EALREADY: number;
- export var EBADF: number;
- export var EBADMSG: number;
- export var EBUSY: number;
- export var ECANCELED: number;
- export var ECHILD: number;
- export var ECONNABORTED: number;
- export var ECONNREFUSED: number;
- export var ECONNRESET: number;
- export var EDEADLK: number;
- export var EDESTADDRREQ: number;
- export var EDOM: number;
- export var EEXIST: number;
- export var EFAULT: number;
- export var EFBIG: number;
- export var EHOSTUNREACH: number;
- export var EIDRM: number;
- export var EILSEQ: number;
- export var EINPROGRESS: number;
- export var EINTR: number;
- export var EINVAL: number;
- export var EIO: number;
- export var EISCONN: number;
- export var EISDIR: number;
- export var ELOOP: number;
- export var EMFILE: number;
- export var EMLINK: number;
- export var EMSGSIZE: number;
- export var ENAMETOOLONG: number;
- export var ENETDOWN: number;
- export var ENETRESET: number;
- export var ENETUNREACH: number;
- export var ENFILE: number;
- export var ENOBUFS: number;
- export var ENODATA: number;
- export var ENODEV: number;
- export var ENOENT: number;
- export var ENOEXEC: number;
- export var ENOLCK: number;
- export var ENOLINK: number;
- export var ENOMEM: number;
- export var ENOMSG: number;
- export var ENOPROTOOPT: number;
- export var ENOSPC: number;
- export var ENOSR: number;
- export var ENOSTR: number;
- export var ENOSYS: number;
- export var ENOTCONN: number;
- export var ENOTDIR: number;
- export var ENOTEMPTY: number;
- export var ENOTSOCK: number;
- export var ENOTSUP: number;
- export var ENOTTY: number;
- export var ENXIO: number;
- export var EOPNOTSUPP: number;
- export var EOVERFLOW: number;
- export var EPERM: number;
- export var EPIPE: number;
- export var EPROTO: number;
- export var EPROTONOSUPPORT: number;
- export var EPROTOTYPE: number;
- export var ERANGE: number;
- export var EROFS: number;
- export var ESPIPE: number;
- export var ESRCH: number;
- export var ETIME: number;
- export var ETIMEDOUT: number;
- export var ETXTBSY: number;
- export var EWOULDBLOCK: number;
- export var EXDEV: number;
- export var WSAEINTR: number;
- export var WSAEBADF: number;
- export var WSAEACCES: number;
- export var WSAEFAULT: number;
- export var WSAEINVAL: number;
- export var WSAEMFILE: number;
- export var WSAEWOULDBLOCK: number;
- export var WSAEINPROGRESS: number;
- export var WSAEALREADY: number;
- export var WSAENOTSOCK: number;
- export var WSAEDESTADDRREQ: number;
- export var WSAEMSGSIZE: number;
- export var WSAEPROTOTYPE: number;
- export var WSAENOPROTOOPT: number;
- export var WSAEPROTONOSUPPORT: number;
- export var WSAESOCKTNOSUPPORT: number;
- export var WSAEOPNOTSUPP: number;
- export var WSAEPFNOSUPPORT: number;
- export var WSAEAFNOSUPPORT: number;
- export var WSAEADDRINUSE: number;
- export var WSAEADDRNOTAVAIL: number;
- export var WSAENETDOWN: number;
- export var WSAENETUNREACH: number;
- export var WSAENETRESET: number;
- export var WSAECONNABORTED: number;
- export var WSAECONNRESET: number;
- export var WSAENOBUFS: number;
- export var WSAEISCONN: number;
- export var WSAENOTCONN: number;
- export var WSAESHUTDOWN: number;
- export var WSAETOOMANYREFS: number;
- export var WSAETIMEDOUT: number;
- export var WSAECONNREFUSED: number;
- export var WSAELOOP: number;
- export var WSAENAMETOOLONG: number;
- export var WSAEHOSTDOWN: number;
- export var WSAEHOSTUNREACH: number;
- export var WSAENOTEMPTY: number;
- export var WSAEPROCLIM: number;
- export var WSAEUSERS: number;
- export var WSAEDQUOT: number;
- export var WSAESTALE: number;
- export var WSAEREMOTE: number;
- export var WSASYSNOTREADY: number;
- export var WSAVERNOTSUPPORTED: number;
- export var WSANOTINITIALISED: number;
- export var WSAEDISCON: number;
- export var WSAENOMORE: number;
- export var WSAECANCELLED: number;
- export var WSAEINVALIDPROCTABLE: number;
- export var WSAEINVALIDPROVIDER: number;
- export var WSAEPROVIDERFAILEDINIT: number;
- export var WSASYSCALLFAILURE: number;
- export var WSASERVICE_NOT_FOUND: number;
- export var WSATYPE_NOT_FOUND: number;
- export var WSA_E_NO_MORE: number;
- export var WSA_E_CANCELLED: number;
- export var WSAEREFUSED: number;
- export var SIGHUP: number;
- export var SIGINT: number;
- export var SIGILL: number;
- export var SIGABRT: number;
- export var SIGFPE: number;
- export var SIGKILL: number;
- export var SIGSEGV: number;
- export var SIGTERM: number;
- export var SIGBREAK: number;
- export var SIGWINCH: number;
- export var SSL_OP_ALL: number;
- export var SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
- export var SSL_OP_CIPHER_SERVER_PREFERENCE: number;
- export var SSL_OP_CISCO_ANYCONNECT: number;
- export var SSL_OP_COOKIE_EXCHANGE: number;
- export var SSL_OP_CRYPTOPRO_TLSEXT_BUG: number;
- export var SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number;
- export var SSL_OP_EPHEMERAL_RSA: number;
- export var SSL_OP_LEGACY_SERVER_CONNECT: number;
- export var SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number;
- export var SSL_OP_MICROSOFT_SESS_ID_BUG: number;
- export var SSL_OP_MSIE_SSLV2_RSA_PADDING: number;
- export var SSL_OP_NETSCAPE_CA_DN_BUG: number;
- export var SSL_OP_NETSCAPE_CHALLENGE_BUG: number;
- export var SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number;
- export var SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number;
- export var SSL_OP_NO_COMPRESSION: number;
- export var SSL_OP_NO_QUERY_MTU: number;
- export var SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number;
- export var SSL_OP_NO_SSLv2: number;
- export var SSL_OP_NO_SSLv3: number;
- export var SSL_OP_NO_TICKET: number;
- export var SSL_OP_NO_TLSv1: number;
- export var SSL_OP_NO_TLSv1_1: number;
- export var SSL_OP_NO_TLSv1_2: number;
- export var SSL_OP_PKCS1_CHECK_1: number;
- export var SSL_OP_PKCS1_CHECK_2: number;
- export var SSL_OP_SINGLE_DH_USE: number;
- export var SSL_OP_SINGLE_ECDH_USE: number;
- export var SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number;
- export var SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number;
- export var SSL_OP_TLS_BLOCK_PADDING_BUG: number;
- export var SSL_OP_TLS_D5_BUG: number;
- export var SSL_OP_TLS_ROLLBACK_BUG: number;
- export var ENGINE_METHOD_DSA: number;
- export var ENGINE_METHOD_DH: number;
- export var ENGINE_METHOD_RAND: number;
- export var ENGINE_METHOD_ECDH: number;
- export var ENGINE_METHOD_ECDSA: number;
- export var ENGINE_METHOD_CIPHERS: number;
- export var ENGINE_METHOD_DIGESTS: number;
- export var ENGINE_METHOD_STORE: number;
- export var ENGINE_METHOD_PKEY_METHS: number;
- export var ENGINE_METHOD_PKEY_ASN1_METHS: number;
- export var ENGINE_METHOD_ALL: number;
- export var ENGINE_METHOD_NONE: number;
- export var DH_CHECK_P_NOT_SAFE_PRIME: number;
- export var DH_CHECK_P_NOT_PRIME: number;
- export var DH_UNABLE_TO_CHECK_GENERATOR: number;
- export var DH_NOT_SUITABLE_GENERATOR: number;
- export var NPN_ENABLED: number;
- export var RSA_PKCS1_PADDING: number;
- export var RSA_SSLV23_PADDING: number;
- export var RSA_NO_PADDING: number;
- export var RSA_PKCS1_OAEP_PADDING: number;
- export var RSA_X931_PADDING: number;
- export var RSA_PKCS1_PSS_PADDING: number;
- export var POINT_CONVERSION_COMPRESSED: number;
- export var POINT_CONVERSION_UNCOMPRESSED: number;
- export var POINT_CONVERSION_HYBRID: number;
- export var O_RDONLY: number;
- export var O_WRONLY: number;
- export var O_RDWR: number;
- export var S_IFMT: number;
- export var S_IFREG: number;
- export var S_IFDIR: number;
- export var S_IFCHR: number;
- export var S_IFLNK: number;
- export var O_CREAT: number;
- export var O_EXCL: number;
- export var O_TRUNC: number;
- export var O_APPEND: number;
- export var F_OK: number;
- export var R_OK: number;
- export var W_OK: number;
- export var X_OK: number;
- export var UV_UDP_REUSEADDR: number;
-}
diff --git a/lib/decl/react-dom.d.ts b/lib/decl/react-dom.d.ts
deleted file mode 100644
index 1f6ca6efd..000000000
--- a/lib/decl/react-dom.d.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-// Type definitions for React v0.14 (react-dom)
-// Project: http://facebook.github.io/react/
-// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-/// <reference path="react.d.ts" />
-
-declare namespace __React {
- namespace __DOM {
- function findDOMNode<E extends Element>(instance: ReactInstance): E;
- function findDOMNode(instance: ReactInstance): Element;
-
- function render<P extends DOMAttributes, T extends Element>(
- element: DOMElement<P, T>,
- container: Element,
- callback?: (element: T) => any): T;
- function render<P>(
- element: SFCElement<P>,
- container: Element,
- callback?: () => any): void;
- function render<P, T extends Component<P, ComponentState>>(
- element: CElement<P, T>,
- container: Element,
- callback?: (component: T) => any): T;
- function render<P>(
- element: ReactElement<P>,
- container: Element,
- callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void;
-
- function unmountComponentAtNode(container: Element): boolean;
-
- var version: string;
-
- function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void;
- function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void;
- function unstable_batchedUpdates(callback: () => any): void;
-
- function unstable_renderSubtreeIntoContainer<P extends DOMAttributes, T extends Element>(
- parentComponent: Component<any, any>,
- element: DOMElement<P, T>,
- container: Element,
- callback?: (element: T) => any): T;
- function unstable_renderSubtreeIntoContainer<P, T extends Component<P, ComponentState>>(
- parentComponent: Component<any, any>,
- element: CElement<P, T>,
- container: Element,
- callback?: (component: T) => any): T;
- function render<P>(
- parentComponent: Component<any, any>,
- element: SFCElement<P>,
- container: Element,
- callback?: () => any): void;
- function unstable_renderSubtreeIntoContainer<P>(
- parentComponent: Component<any, any>,
- element: ReactElement<P>,
- container: Element,
- callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void;
- }
-
- namespace __DOMServer {
- function renderToString(element: ReactElement<any>): string;
- function renderToStaticMarkup(element: ReactElement<any>): string;
- var version: string;
- }
-}
-
-declare module "react-dom" {
- import DOM = __React.__DOM;
- export = DOM;
-}
-
-declare module "react-dom/server" {
- import DOMServer = __React.__DOMServer;
- export = DOMServer;
-}
diff --git a/lib/decl/react-global.d.ts b/lib/decl/react-global.d.ts
deleted file mode 100644
index 912d029e9..000000000
--- a/lib/decl/react-global.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// Type definitions for React v0.14 (namespace)
-// Project: http://facebook.github.io/react/
-// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-/// <reference path="react.d.ts" />
-/// <reference path="react-dom.d.ts" />
-
-import React = __React;
-import ReactDOM = __React.__DOM;
-
diff --git a/lib/decl/react.d.ts b/lib/decl/react.d.ts
deleted file mode 100644
index 5cba33227..000000000
--- a/lib/decl/react.d.ts
+++ /dev/null
@@ -1,2547 +0,0 @@
-// Type definitions for React v0.14
-// Project: http://facebook.github.io/react/
-// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare namespace __React {
-
- //
- // React Elements
- // ----------------------------------------------------------------------
-
- type ReactType = string | ComponentClass<any> | StatelessComponent<any>;
-
- type Key = string | number;
- type Ref<T> = string | ((instance: T) => any);
- type ComponentState = {} | void;
-
- interface Attributes {
- key?: Key;
- }
- interface ClassAttributes<T> extends Attributes {
- ref?: Ref<T>;
- }
-
- interface ReactElement<P> {
- type: string | ComponentClass<P> | SFC<P>;
- props: P;
- key?: Key;
- }
-
- interface SFCElement<P> extends ReactElement<P> {
- type: SFC<P>;
- }
-
- type CElement<P, T extends Component<P, ComponentState>> = ComponentElement<P, T>;
- interface ComponentElement<P, T extends Component<P, ComponentState>> extends ReactElement<P> {
- type: ComponentClass<P>;
- ref?: Ref<T>;
- }
-
- type ClassicElement<P> = CElement<P, ClassicComponent<P, ComponentState>>;
-
- interface DOMElement<P extends DOMAttributes, T extends Element> extends ReactElement<P> {
- type: string;
- ref: Ref<T>;
- }
-
- interface ReactHTMLElement<T extends HTMLElement> extends DOMElement<HTMLAttributes, T> {
- }
-
- interface ReactSVGElement extends DOMElement<SVGAttributes, SVGElement> {
- }
-
- //
- // Factories
- // ----------------------------------------------------------------------
-
- interface Factory<P> {
- (props?: P & Attributes, ...children: ReactNode[]): ReactElement<P>;
- }
-
- interface SFCFactory<P> {
- (props?: P & Attributes, ...children: ReactNode[]): SFCElement<P>;
- }
-
- interface ComponentFactory<P, T extends Component<P, ComponentState>> {
- (props?: P & ClassAttributes<T>, ...children: ReactNode[]): CElement<P, T>;
- }
-
- type CFactory<P, T extends Component<P, ComponentState>> = ComponentFactory<P, T>;
- type ClassicFactory<P> = CFactory<P, ClassicComponent<P, ComponentState>>;
-
- interface DOMFactory<P extends DOMAttributes, T extends Element> {
- (props?: P & ClassAttributes<T>, ...children: ReactNode[]): DOMElement<P, T>;
- }
-
- interface HTMLFactory<T extends HTMLElement> extends DOMFactory<HTMLAttributes, T> {
- }
-
- interface SVGFactory extends DOMFactory<SVGAttributes, SVGElement> {
- }
-
- //
- // React Nodes
- // http://facebook.github.io/react/docs/glossary.html
- // ----------------------------------------------------------------------
-
- type ReactText = string | number;
- type ReactChild = ReactElement<any> | ReactText;
-
- // Should be Array<ReactNode> but type aliases cannot be recursive
- type ReactFragment = {} | Array<ReactChild | any[] | boolean>;
- type ReactNode = ReactChild | ReactFragment | boolean;
-
- //
- // Top Level API
- // ----------------------------------------------------------------------
-
- function createClass<P, S>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>;
-
- function createFactory<P extends DOMAttributes, T extends Element>(
- type: string): DOMFactory<P, T>;
- function createFactory<P>(type: SFC<P>): SFCFactory<P>;
- function createFactory<P>(
- type: ClassType<P, ClassicComponent<P, ComponentState>, ClassicComponentClass<P>>): CFactory<P, ClassicComponent<P, ComponentState>>;
- function createFactory<P, T extends Component<P, ComponentState>, C extends ComponentClass<P>>(
- type: ClassType<P, T, C>): CFactory<P, T>;
- function createFactory<P>(type: ComponentClass<P> | SFC<P>): Factory<P>;
-
- function createElement<P extends DOMAttributes, T extends Element>(
- type: string,
- props?: P & ClassAttributes<T>,
- ...children: ReactNode[]): DOMElement<P, T>;
- function createElement<P>(
- type: SFC<P>,
- props?: P & Attributes,
- ...children: ReactNode[]): SFCElement<P>;
- function createElement<P>(
- type: ClassType<P, ClassicComponent<P, ComponentState>, ClassicComponentClass<P>>,
- props?: P & ClassAttributes<ClassicComponent<P, ComponentState>>,
- ...children: ReactNode[]): CElement<P, ClassicComponent<P, ComponentState>>;
- function createElement<P, T extends Component<P, ComponentState>, C extends ComponentClass<P>>(
- type: ClassType<P, T, C>,
- props?: P & ClassAttributes<T>,
- ...children: ReactNode[]): CElement<P, T>;
- function createElement<P>(
- type: ComponentClass<P> | SFC<P>,
- props?: P & Attributes,
- ...children: ReactNode[]): ReactElement<P>;
-
- function cloneElement<P extends DOMAttributes, T extends Element>(
- element: DOMElement<P, T>,
- props?: P & ClassAttributes<T>,
- ...children: ReactNode[]): DOMElement<P, T>;
- function cloneElement<P extends Q, Q>(
- element: SFCElement<P>,
- props?: Q, // should be Q & Attributes, but then Q is inferred as {}
- ...children: ReactNode[]): SFCElement<P>;
- function cloneElement<P extends Q, Q, T extends Component<P, ComponentState>>(
- element: CElement<P, T>,
- props?: Q, // should be Q & ClassAttributes<T>
- ...children: ReactNode[]): CElement<P, T>;
- function cloneElement<P extends Q, Q>(
- element: ReactElement<P>,
- props?: Q, // should be Q & Attributes
- ...children: ReactNode[]): ReactElement<P>;
-
- function isValidElement<P>(object: {}): object is ReactElement<P>;
-
- var DOM: ReactDOM;
- var PropTypes: ReactPropTypes;
- var Children: ReactChildren;
- var version: string;
-
- //
- // Component API
- // ----------------------------------------------------------------------
-
- type ReactInstance = Component<any, any> | Element;
-
- // Base component for plain JS classes
- class Component<P, S> implements ComponentLifecycle<P, S> {
- constructor(props?: P, context?: any);
- setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
- setState(state: S, callback?: () => any): void;
- forceUpdate(callback?: () => any): void;
- render(): JSX.Element;
-
- // React.Props<T> is now deprecated, which means that the `children`
- // property is not available on `P` by default, even though you can
- // always pass children as variadic arguments to `createElement`.
- // In the future, if we can define its call signature conditionally
- // on the existence of `children` in `P`, then we should remove this.
- props: P & { children?: ReactNode };
- state: S;
- context: any;
- refs: {
- [key: string]: ReactInstance
- };
- }
-
- class PureComponent<P, S> extends Component<P, S> {}
-
- interface ClassicComponent<P, S> extends Component<P, S> {
- replaceState(nextState: S, callback?: () => any): void;
- isMounted(): boolean;
- getInitialState?(): S;
- }
-
- interface ChildContextProvider<CC> {
- getChildContext(): CC;
- }
-
- //
- // Class Interfaces
- // ----------------------------------------------------------------------
-
- type SFC<P> = StatelessComponent<P>;
- interface StatelessComponent<P> {
- (props: P, context?: any): ReactElement<any>;
- propTypes?: ValidationMap<P>;
- contextTypes?: ValidationMap<any>;
- defaultProps?: P;
- displayName?: string;
- }
-
- interface ComponentClass<P> {
- new(props?: P, context?: any): Component<P, ComponentState>;
- propTypes?: ValidationMap<P>;
- contextTypes?: ValidationMap<any>;
- childContextTypes?: ValidationMap<any>;
- defaultProps?: P;
- displayName?: string;
- }
-
- interface ClassicComponentClass<P> extends ComponentClass<P> {
- new(props?: P, context?: any): ClassicComponent<P, ComponentState>;
- getDefaultProps?(): P;
- }
-
- /**
- * We use an intersection type to infer multiple type parameters from
- * a single argument, which is useful for many top-level API defs.
- * See https://github.com/Microsoft/TypeScript/issues/7234 for more info.
- */
- type ClassType<P, T extends Component<P, ComponentState>, C extends ComponentClass<P>> =
- C &
- (new() => T) &
- (new() => { props: P });
-
- //
- // Component Specs and Lifecycle
- // ----------------------------------------------------------------------
-
- interface ComponentLifecycle<P, S> {
- componentWillMount?(): void;
- componentDidMount?(): void;
- componentWillReceiveProps?(nextProps: P, nextContext: any): void;
- shouldComponentUpdate?(nextProps: P, nextState: S, nextContext: any): boolean;
- componentWillUpdate?(nextProps: P, nextState: S, nextContext: any): void;
- componentDidUpdate?(prevProps: P, prevState: S, prevContext: any): void;
- componentWillUnmount?(): void;
- }
-
- interface Mixin<P, S> extends ComponentLifecycle<P, S> {
- mixins?: Mixin<P, S>;
- statics?: {
- [key: string]: any;
- };
-
- displayName?: string;
- propTypes?: ValidationMap<any>;
- contextTypes?: ValidationMap<any>;
- childContextTypes?: ValidationMap<any>;
-
- getDefaultProps?(): P;
- getInitialState?(): S;
- }
-
- interface ComponentSpec<P, S> extends Mixin<P, S> {
- render(): ReactElement<any>;
-
- [propertyName: string]: any;
- }
-
- //
- // Event System
- // ----------------------------------------------------------------------
-
- interface SyntheticEvent {
- bubbles: boolean;
- cancelable: boolean;
- currentTarget: EventTarget;
- defaultPrevented: boolean;
- eventPhase: number;
- isTrusted: boolean;
- nativeEvent: Event;
- preventDefault(): void;
- isDefaultPrevented(): boolean;
- stopPropagation(): void;
- isPropagationStopped(): boolean;
- persist(): void;
- target: EventTarget;
- timeStamp: Date;
- type: string;
- }
-
- interface ClipboardEvent extends SyntheticEvent {
- clipboardData: DataTransfer;
- }
-
- interface CompositionEvent extends SyntheticEvent {
- data: string;
- }
-
- interface DragEvent extends MouseEvent {
- dataTransfer: DataTransfer;
- }
-
- interface FocusEvent extends SyntheticEvent {
- relatedTarget: EventTarget;
- }
-
- interface FormEvent extends SyntheticEvent {
- }
-
- interface KeyboardEvent extends SyntheticEvent {
- altKey: boolean;
- charCode: number;
- ctrlKey: boolean;
- getModifierState(key: string): boolean;
- key: string;
- keyCode: number;
- locale: string;
- location: number;
- metaKey: boolean;
- repeat: boolean;
- shiftKey: boolean;
- which: number;
- }
-
- interface MouseEvent extends SyntheticEvent {
- altKey: boolean;
- button: number;
- buttons: number;
- clientX: number;
- clientY: number;
- ctrlKey: boolean;
- getModifierState(key: string): boolean;
- metaKey: boolean;
- pageX: number;
- pageY: number;
- relatedTarget: EventTarget;
- screenX: number;
- screenY: number;
- shiftKey: boolean;
- }
-
- interface TouchEvent extends SyntheticEvent {
- altKey: boolean;
- changedTouches: TouchList;
- ctrlKey: boolean;
- getModifierState(key: string): boolean;
- metaKey: boolean;
- shiftKey: boolean;
- targetTouches: TouchList;
- touches: TouchList;
- }
-
- interface UIEvent extends SyntheticEvent {
- detail: number;
- view: AbstractView;
- }
-
- interface WheelEvent extends MouseEvent {
- deltaMode: number;
- deltaX: number;
- deltaY: number;
- deltaZ: number;
- }
-
- interface AnimationEvent extends SyntheticEvent {
- animationName: string;
- pseudoElement: string;
- elapsedTime: number;
- }
-
- interface TransitionEvent extends SyntheticEvent {
- propertyName: string;
- pseudoElement: string;
- elapsedTime: number;
- }
-
- //
- // Event Handler Types
- // ----------------------------------------------------------------------
-
- interface EventHandler<E extends SyntheticEvent> {
- (event: E): void;
- }
-
- type ReactEventHandler = EventHandler<SyntheticEvent>;
-
- type ClipboardEventHandler = EventHandler<ClipboardEvent>;
- type CompositionEventHandler = EventHandler<CompositionEvent>;
- type DragEventHandler = EventHandler<DragEvent>;
- type FocusEventHandler = EventHandler<FocusEvent>;
- type FormEventHandler = EventHandler<FormEvent>;
- type KeyboardEventHandler = EventHandler<KeyboardEvent>;
- type MouseEventHandler = EventHandler<MouseEvent>;
- type TouchEventHandler = EventHandler<TouchEvent>;
- type UIEventHandler = EventHandler<UIEvent>;
- type WheelEventHandler = EventHandler<WheelEvent>;
- type AnimationEventHandler = EventHandler<AnimationEvent>;
- type TransitionEventHandler = EventHandler<TransitionEvent>;
-
- //
- // Props / DOM Attributes
- // ----------------------------------------------------------------------
-
- /**
- * @deprecated. This was used to allow clients to pass `ref` and `key`
- * to `createElement`, which is no longer necessary due to intersection
- * types. If you need to declare a props object before passing it to
- * `createElement` or a factory, use `ClassAttributes<T>`:
- *
- * ```ts
- * var b: Button;
- * var props: ButtonProps & ClassAttributes<Button> = {
- * ref: b => button = b, // ok!
- * label: "I'm a Button"
- * };
- * ```
- */
- interface Props<T> {
- children?: ReactNode;
- key?: Key;
- ref?: Ref<T>;
- }
-
- interface HTMLProps<T> extends HTMLAttributes, ClassAttributes<T> {
- }
-
- interface SVGProps extends SVGAttributes, ClassAttributes<SVGElement> {
- }
-
- interface DOMAttributes {
- children?: ReactNode;
- dangerouslySetInnerHTML?: {
- __html: string;
- };
-
- // Clipboard Events
- onCopy?: ClipboardEventHandler;
- onCut?: ClipboardEventHandler;
- onPaste?: ClipboardEventHandler;
-
- // Composition Events
- onCompositionEnd?: CompositionEventHandler;
- onCompositionStart?: CompositionEventHandler;
- onCompositionUpdate?: CompositionEventHandler;
-
- // Focus Events
- onFocus?: FocusEventHandler;
- onBlur?: FocusEventHandler;
-
- // Form Events
- onChange?: FormEventHandler;
- onInput?: FormEventHandler;
- onSubmit?: FormEventHandler;
-
- // Image Events
- onLoad?: ReactEventHandler;
- onError?: ReactEventHandler; // also a Media Event
-
- // Keyboard Events
- onKeyDown?: KeyboardEventHandler;
- onKeyPress?: KeyboardEventHandler;
- onKeyUp?: KeyboardEventHandler;
-
- // Media Events
- onAbort?: ReactEventHandler;
- onCanPlay?: ReactEventHandler;
- onCanPlayThrough?: ReactEventHandler;
- onDurationChange?: ReactEventHandler;
- onEmptied?: ReactEventHandler;
- onEncrypted?: ReactEventHandler;
- onEnded?: ReactEventHandler;
- onLoadedData?: ReactEventHandler;
- onLoadedMetadata?: ReactEventHandler;
- onLoadStart?: ReactEventHandler;
- onPause?: ReactEventHandler;
- onPlay?: ReactEventHandler;
- onPlaying?: ReactEventHandler;
- onProgress?: ReactEventHandler;
- onRateChange?: ReactEventHandler;
- onSeeked?: ReactEventHandler;
- onSeeking?: ReactEventHandler;
- onStalled?: ReactEventHandler;
- onSuspend?: ReactEventHandler;
- onTimeUpdate?: ReactEventHandler;
- onVolumeChange?: ReactEventHandler;
- onWaiting?: ReactEventHandler;
-
- // MouseEvents
- onClick?: MouseEventHandler;
- onContextMenu?: MouseEventHandler;
- onDoubleClick?: MouseEventHandler;
- onDrag?: DragEventHandler;
- onDragEnd?: DragEventHandler;
- onDragEnter?: DragEventHandler;
- onDragExit?: DragEventHandler;
- onDragLeave?: DragEventHandler;
- onDragOver?: DragEventHandler;
- onDragStart?: DragEventHandler;
- onDrop?: DragEventHandler;
- onMouseDown?: MouseEventHandler;
- onMouseEnter?: MouseEventHandler;
- onMouseLeave?: MouseEventHandler;
- onMouseMove?: MouseEventHandler;
- onMouseOut?: MouseEventHandler;
- onMouseOver?: MouseEventHandler;
- onMouseUp?: MouseEventHandler;
-
- // Selection Events
- onSelect?: ReactEventHandler;
-
- // Touch Events
- onTouchCancel?: TouchEventHandler;
- onTouchEnd?: TouchEventHandler;
- onTouchMove?: TouchEventHandler;
- onTouchStart?: TouchEventHandler;
-
- // UI Events
- onScroll?: UIEventHandler;
-
- // Wheel Events
- onWheel?: WheelEventHandler;
-
- // Animation Events
- onAnimationStart?: AnimationEventHandler;
- onAnimationEnd?: AnimationEventHandler;
- onAnimationIteration?: AnimationEventHandler;
-
- // Transition Events
- onTransitionEnd?: TransitionEventHandler;
- }
-
- // This interface is not complete. Only properties accepting
- // unitless numbers are listed here (see CSSProperty.js in React)
- interface CSSProperties {
-
- /**
- * Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how justify-content aligns individual items within the main-axis.
- */
- alignContent?: any;
-
- /**
- * Sets the default alignment in the cross axis for all of the flex container's items, including anonymous flex items, similarly to how justify-content aligns items along the main axis.
- */
- alignItems?: any;
-
- /**
- * Allows the default alignment to be overridden for individual flex items.
- */
- alignSelf?: any;
-
- /**
- * This property allows precise alignment of elements, such as graphics, that do not have a baseline-table or lack the desired baseline in their baseline-table. With the alignment-adjust property, the position of the baseline identified by the alignment-baseline can be explicitly determined. It also determines precisely the alignment point for each glyph within a textual element.
- */
- alignmentAdjust?: any;
-
- alignmentBaseline?: any;
-
- /**
- * Defines a length of time to elapse before an animation starts, allowing an animation to begin execution some time after it is applied.
- */
- animationDelay?: any;
-
- /**
- * Defines whether an animation should run in reverse on some or all cycles.
- */
- animationDirection?: any;
-
- /**
- * Specifies how many times an animation cycle should play.
- */
- animationIterationCount?: any;
-
- /**
- * Defines the list of animations that apply to the element.
- */
- animationName?: any;
-
- /**
- * Defines whether an animation is running or paused.
- */
- animationPlayState?: any;
-
- /**
- * Allows changing the style of any element to platform-based interface elements or vice versa.
- */
- appearance?: any;
-
- /**
- * Determines whether or not the “back” side of a transformed element is visible when facing the viewer.
- */
- backfaceVisibility?: any;
-
- /**
- * Shorthand property to set the values for one or more of:
- * background-clip, background-color, background-image,
- * background-origin, background-position, background-repeat,
- * background-size, and background-attachment.
- */
- background?: any;
-
- /**
- * If a background-image is specified, this property determines
- * whether that image's position is fixed within the viewport,
- * or scrolls along with its containing block.
- */
- backgroundAttachment?: "scroll" | "fixed" | "local";
-
- /**
- * This property describes how the element's background images should blend with each other and the element's background color.
- * The value is a list of blend modes that corresponds to each background image. Each element in the list will apply to the corresponding element of background-image. If a property doesn’t have enough comma-separated values to match the number of layers, the UA must calculate its used value by repeating the list of values until there are enough.
- */
- backgroundBlendMode?: any;
-
- /**
- * Sets the background color of an element.
- */
- backgroundColor?: any;
-
- backgroundComposite?: any;
-
- /**
- * Applies one or more background images to an element. These can be any valid CSS image, including url() paths to image files or CSS gradients.
- */
- backgroundImage?: any;
-
- /**
- * Specifies what the background-position property is relative to.
- */
- backgroundOrigin?: any;
-
- /**
- * Sets the position of a background image.
- */
- backgroundPosition?: any;
-
- /**
- * Background-repeat defines if and how background images will be repeated after they have been sized and positioned
- */
- backgroundRepeat?: any;
-
- /**
- * Obsolete - spec retired, not implemented.
- */
- baselineShift?: any;
-
- /**
- * Non standard. Sets or retrieves the location of the Dynamic HTML (DHTML) behavior.
- */
- behavior?: any;
-
- /**
- * Shorthand property that defines the different properties of all four sides of an element's border in a single declaration. It can be used to set border-width, border-style and border-color, or a subset of these.
- */
- border?: any;
-
- /**
- * Shorthand that sets the values of border-bottom-color,
- * border-bottom-style, and border-bottom-width.
- */
- borderBottom?: any;
-
- /**
- * Sets the color of the bottom border of an element.
- */
- borderBottomColor?: any;
-
- /**
- * Defines the shape of the border of the bottom-left corner.
- */
- borderBottomLeftRadius?: any;
-
- /**
- * Defines the shape of the border of the bottom-right corner.
- */
- borderBottomRightRadius?: any;
-
- /**
- * Sets the line style of the bottom border of a box.
- */
- borderBottomStyle?: any;
-
- /**
- * Sets the width of an element's bottom border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
- */
- borderBottomWidth?: any;
-
- /**
- * Border-collapse can be used for collapsing the borders between table cells
- */
- borderCollapse?: any;
-
- /**
- * The CSS border-color property sets the color of an element's four borders. This property can have from one to four values, made up of the elementary properties: • border-top-color
- * • border-right-color
- * • border-bottom-color
- * • border-left-color The default color is the currentColor of each of these values.
- * If you provide one value, it sets the color for the element. Two values set the horizontal and vertical values, respectively. Providing three values sets the top, vertical, and bottom values, in that order. Four values set all for sides: top, right, bottom, and left, in that order.
- */
- borderColor?: any;
-
- /**
- * Specifies different corner clipping effects, such as scoop (inner curves), bevel (straight cuts) or notch (cut-off rectangles). Works along with border-radius to specify the size of each corner effect.
- */
- borderCornerShape?: any;
-
- /**
- * The property border-image-source is used to set the image to be used instead of the border style. If this is set to none the border-style is used instead.
- */
- borderImageSource?: any;
-
- /**
- * The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
- */
- borderImageWidth?: any;
-
- /**
- * Shorthand property that defines the border-width, border-style and border-color of an element's left border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the left border — border-left-width, border-left-style and border-left-color.
- */
- borderLeft?: any;
-
- /**
- * The CSS border-left-color property sets the color of an element's left border. This page explains the border-left-color value, but often you will find it more convenient to fix the border's left color as part of a shorthand set, either border-left or border-color.
- * Colors can be defined several ways. For more information, see Usage.
- */
- borderLeftColor?: any;
-
- /**
- * Sets the style of an element's left border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
- */
- borderLeftStyle?: any;
-
- /**
- * Sets the width of an element's left border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
- */
- borderLeftWidth?: any;
-
- /**
- * Shorthand property that defines the border-width, border-style and border-color of an element's right border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the right border — border-right-width, border-right-style and border-right-color.
- */
- borderRight?: any;
-
- /**
- * Sets the color of an element's right border. This page explains the border-right-color value, but often you will find it more convenient to fix the border's right color as part of a shorthand set, either border-right or border-color.
- * Colors can be defined several ways. For more information, see Usage.
- */
- borderRightColor?: any;
-
- /**
- * Sets the style of an element's right border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
- */
- borderRightStyle?: any;
-
- /**
- * Sets the width of an element's right border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
- */
- borderRightWidth?: any;
-
- /**
- * Specifies the distance between the borders of adjacent cells.
- */
- borderSpacing?: any;
-
- /**
- * Sets the style of an element's four borders. This property can have from one to four values. With only one value, the value will be applied to all four borders; otherwise, this works as a shorthand property for each of border-top-style, border-right-style, border-bottom-style, border-left-style, where each border style may be assigned a separate value.
- */
- borderStyle?: any;
-
- /**
- * Shorthand property that defines the border-width, border-style and border-color of an element's top border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the top border — border-top-width, border-top-style and border-top-color.
- */
- borderTop?: any;
-
- /**
- * Sets the color of an element's top border. This page explains the border-top-color value, but often you will find it more convenient to fix the border's top color as part of a shorthand set, either border-top or border-color.
- * Colors can be defined several ways. For more information, see Usage.
- */
- borderTopColor?: any;
-
- /**
- * Sets the rounding of the top-left corner of the element.
- */
- borderTopLeftRadius?: any;
-
- /**
- * Sets the rounding of the top-right corner of the element.
- */
- borderTopRightRadius?: any;
-
- /**
- * Sets the style of an element's top border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
- */
- borderTopStyle?: any;
-
- /**
- * Sets the width of an element's top border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
- */
- borderTopWidth?: any;
-
- /**
- * Sets the width of an element's four borders. This property can have from one to four values. This is a shorthand property for setting values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
- */
- borderWidth?: any;
-
- /**
- * This property specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the bottom edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
- */
- bottom?: any;
-
- /**
- * Obsolete.
- */
- boxAlign?: any;
-
- /**
- * Breaks a box into fragments creating new borders, padding and repeating backgrounds or lets it stay as a continuous box on a page break, column break, or, for inline elements, at a line break.
- */
- boxDecorationBreak?: any;
-
- /**
- * Deprecated
- */
- boxDirection?: any;
-
- /**
- * Do not use. This property has been replaced by the flex-wrap property.
- * Gets or sets a value that specifies the direction to add successive rows or columns when the value of box-lines is set to multiple.
- */
- boxLineProgression?: any;
-
- /**
- * Do not use. This property has been replaced by the flex-wrap property.
- * Gets or sets a value that specifies whether child elements wrap onto multiple lines or columns based on the space available in the object.
- */
- boxLines?: any;
-
- /**
- * Do not use. This property has been replaced by flex-order.
- * Specifies the ordinal group that a child element of the object belongs to. This ordinal value identifies the display order (along the axis defined by the box-orient property) for the group.
- */
- boxOrdinalGroup?: any;
-
- /**
- * Deprecated.
- */
- boxFlex?: number;
-
- /**
- * Deprecated.
- */
- boxFlexGroup?: number;
-
- /**
- * The CSS break-after property allows you to force a break on multi-column layouts. More specifically, it allows you to force a break after an element. It allows you to determine if a break should occur, and what type of break it should be. The break-after CSS property describes how the page, column or region break behaves after the generated box. If there is no generated box, the property is ignored.
- */
- breakAfter?: any;
-
- /**
- * Control page/column/region breaks that fall above a block of content
- */
- breakBefore?: any;
-
- /**
- * Control page/column/region breaks that fall within a block of content
- */
- breakInside?: any;
-
- /**
- * The clear CSS property specifies if an element can be positioned next to or must be positioned below the floating elements that precede it in the markup.
- */
- clear?: any;
-
- /**
- * Deprecated; see clip-path.
- * Lets you specify the dimensions of an absolutely positioned element that should be visible, and the element is clipped into this shape, and displayed.
- */
- clip?: any;
-
- /**
- * Clipping crops an graphic, so that only a portion of the graphic is rendered, or filled. This clip-rule property, when used with the clip-path property, defines which clip rule, or algorithm, to use when filling the different parts of a graphics.
- */
- clipRule?: any;
-
- /**
- * The color property sets the color of an element's foreground content (usually text), accepting any standard CSS color from keywords and hex values to RGB(a) and HSL(a).
- */
- color?: any;
-
- /**
- * Describes the number of columns of the element.
- */
- columnCount?: number;
-
- /**
- * Specifies how to fill columns (balanced or sequential).
- */
- columnFill?: any;
-
- /**
- * The column-gap property controls the width of the gap between columns in multi-column elements.
- */
- columnGap?: any;
-
- /**
- * Sets the width, style, and color of the rule between columns.
- */
- columnRule?: any;
-
- /**
- * Specifies the color of the rule between columns.
- */
- columnRuleColor?: any;
-
- /**
- * Specifies the width of the rule between columns.
- */
- columnRuleWidth?: any;
-
- /**
- * The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
- */
- columnSpan?: any;
-
- /**
- * Specifies the width of columns in multi-column elements.
- */
- columnWidth?: any;
-
- /**
- * This property is a shorthand property for setting column-width and/or column-count.
- */
- columns?: any;
-
- /**
- * The counter-increment property accepts one or more names of counters (identifiers), each one optionally followed by an integer which specifies the value by which the counter should be incremented (e.g. if the value is 2, the counter increases by 2 each time it is invoked).
- */
- counterIncrement?: any;
-
- /**
- * The counter-reset property contains a list of one or more names of counters, each one optionally followed by an integer (otherwise, the integer defaults to 0.) Each time the given element is invoked, the counters specified by the property are set to the given integer.
- */
- counterReset?: any;
-
- /**
- * The cue property specifies sound files (known as an "auditory icon") to be played by speech media agents before and after presenting an element's content; if only one file is specified, it is played both before and after. The volume at which the file(s) should be played, relative to the volume of the main element, may also be specified. The icon files may also be set separately with the cue-before and cue-after properties.
- */
- cue?: any;
-
- /**
- * The cue-after property specifies a sound file (known as an "auditory icon") to be played by speech media agents after presenting an element's content; the volume at which the file should be played may also be specified. The shorthand property cue sets cue sounds for both before and after the element is presented.
- */
- cueAfter?: any;
-
- /**
- * Specifies the mouse cursor displayed when the mouse pointer is over an element.
- */
- cursor?: any;
-
- /**
- * The direction CSS property specifies the text direction/writing direction. The rtl is used for Hebrew or Arabic text, the ltr is for other languages.
- */
- direction?: any;
-
- /**
- * This property specifies the type of rendering box used for an element. It is a shorthand property for many other display properties.
- */
- display?: any;
-
- /**
- * The ‘fill’ property paints the interior of the given graphical element. The area to be painted consists of any areas inside the outline of the shape. To determine the inside of the shape, all subpaths are considered, and the interior is determined according to the rules associated with the current value of the ‘fill-rule’ property. The zero-width geometric outline of a shape is included in the area to be painted.
- */
- fill?: any;
-
- /**
- * SVG: Specifies the opacity of the color or the content the current object is filled with.
- */
- fillOpacity?: number;
-
- /**
- * The ‘fill-rule’ property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.
- * The ‘fill-rule’ property provides two options for how the inside of a shape is determined:
- */
- fillRule?: any;
-
- /**
- * Applies various image processing effects. This property is largely unsupported. See Compatibility section for more information.
- */
- filter?: any;
-
- /**
- * Shorthand for `flex-grow`, `flex-shrink`, and `flex-basis`.
- */
- flex?: number | string;
-
- /**
- * Obsolete, do not use. This property has been renamed to align-items.
- * Specifies the alignment (perpendicular to the layout axis defined by the flex-direction property) of child elements of the object.
- */
- flexAlign?: any;
-
- /**
- * The flex-basis CSS property describes the initial main size of the flex item before any free space is distributed according to the flex factors described in the flex property (flex-grow and flex-shrink).
- */
- flexBasis?: any;
-
- /**
- * The flex-direction CSS property describes how flex items are placed in the flex container, by setting the direction of the flex container's main axis.
- */
- flexDirection?: any;
-
- /**
- * The flex-flow CSS property defines the flex container's main and cross axis. It is a shorthand property for the flex-direction and flex-wrap properties.
- */
- flexFlow?: any;
-
- /**
- * Specifies the flex grow factor of a flex item.
- */
- flexGrow?: number;
-
- /**
- * Do not use. This property has been renamed to align-self
- * Specifies the alignment (perpendicular to the layout axis defined by flex-direction) of child elements of the object.
- */
- flexItemAlign?: any;
-
- /**
- * Do not use. This property has been renamed to align-content.
- * Specifies how a flexbox's lines align within the flexbox when there is extra space along the axis that is perpendicular to the axis defined by the flex-direction property.
- */
- flexLinePack?: any;
-
- /**
- * Gets or sets a value that specifies the ordinal group that a flexbox element belongs to. This ordinal value identifies the display order for the group.
- */
- flexOrder?: any;
-
- /**
- * Specifies the flex shrink factor of a flex item.
- */
- flexShrink?: number;
-
- /**
- * Elements which have the style float are floated horizontally. These elements can move as far to the left or right of the containing element. All elements after the floating element will flow around it, but elements before the floating element are not impacted. If several floating elements are placed after each other, they will float next to each other as long as there is room.
- */
- float?: any;
-
- /**
- * Flows content from a named flow (specified by a corresponding flow-into) through selected elements to form a dynamic chain of layout regions.
- */
- flowFrom?: any;
-
- /**
- * The font property is shorthand that allows you to do one of two things: you can either set up six of the most mature font properties in one line, or you can set one of a choice of keywords to adopt a system font setting.
- */
- font?: any;
-
- /**
- * The font-family property allows one or more font family names and/or generic family names to be specified for usage on the selected element(s)' text. The browser then goes through the list; for each character in the selection it applies the first font family that has an available glyph for that character.
- */
- fontFamily?: any;
-
- /**
- * The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text. This property controls <bold>metric kerning</bold> - that utilizes adjustment data contained in the font. Optical Kerning is not supported as yet.
- */
- fontKerning?: any;
-
- /**
- * Specifies the size of the font. Used to compute em and ex units.
- */
- fontSize?: number | string;
-
- /**
- * The font-size-adjust property adjusts the font-size of the fallback fonts defined with font-family, so that the x-height is the same no matter what font is used. This preserves the readability of the text when fallback happens.
- */
- fontSizeAdjust?: any;
-
- /**
- * Allows you to expand or condense the widths for a normal, condensed, or expanded font face.
- */
- fontStretch?: any;
-
- /**
- * The font-style property allows normal, italic, or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face. Oblique faces can be simulated by artificially sloping the glyphs of the regular face.
- */
- fontStyle?: any;
-
- /**
- * This value specifies whether the user agent is allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces.
- */
- fontSynthesis?: any;
-
- /**
- * The font-variant property enables you to select the small-caps font within a font family.
- */
- fontVariant?: any;
-
- /**
- * Fonts can provide alternate glyphs in addition to default glyph for a character. This property provides control over the selection of these alternate glyphs.
- */
- fontVariantAlternates?: any;
-
- /**
- * Specifies the weight or boldness of the font.
- */
- fontWeight?: "normal" | "bold" | "lighter" | "bolder" | number;
-
- /**
- * Lays out one or more grid items bound by 4 grid lines. Shorthand for setting grid-column-start, grid-column-end, grid-row-start, and grid-row-end in a single declaration.
- */
- gridArea?: any;
-
- /**
- * Controls a grid item's placement in a grid area, particularly grid position and a grid span. Shorthand for setting grid-column-start and grid-column-end in a single declaration.
- */
- gridColumn?: any;
-
- /**
- * Controls a grid item's placement in a grid area as well as grid position and a grid span. The grid-column-end property (with grid-row-start, grid-row-end, and grid-column-start) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
- */
- gridColumnEnd?: any;
-
- /**
- * Determines a grid item's placement by specifying the starting grid lines of a grid item's grid area . A grid item's placement in a grid area consists of a grid position and a grid span. See also ( grid-row-start, grid-row-end, and grid-column-end)
- */
- gridColumnStart?: any;
-
- /**
- * Gets or sets a value that indicates which row an element within a Grid should appear in. Shorthand for setting grid-row-start and grid-row-end in a single declaration.
- */
- gridRow?: any;
-
- /**
- * Determines a grid item’s placement by specifying the block-end. A grid item's placement in a grid area consists of a grid position and a grid span. The grid-row-end property (with grid-row-start, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
- */
- gridRowEnd?: any;
-
- /**
- * Specifies a row position based upon an integer location, string value, or desired row size.
- * css/properties/grid-row is used as short-hand for grid-row-position and grid-row-position
- */
- gridRowPosition?: any;
-
- gridRowSpan?: any;
-
- /**
- * Specifies named grid areas which are not associated with any particular grid item, but can be referenced from the grid-placement properties. The syntax of the grid-template-areas property also provides a visualization of the structure of the grid, making the overall layout of the grid container easier to understand.
- */
- gridTemplateAreas?: any;
-
- /**
- * Specifies (with grid-template-rows) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
- */
- gridTemplateColumns?: any;
-
- /**
- * Specifies (with grid-template-columns) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
- */
- gridTemplateRows?: any;
-
- /**
- * Sets the height of an element. The content area of the element height does not include the padding, border, and margin of the element.
- */
- height?: any;
-
- /**
- * Specifies the minimum number of characters in a hyphenated word
- */
- hyphenateLimitChars?: any;
-
- /**
- * Indicates the maximum number of successive hyphenated lines in an element. The ‘no-limit’ value means that there is no limit.
- */
- hyphenateLimitLines?: any;
-
- /**
- * Specifies the maximum amount of trailing whitespace (before justification) that may be left in a line before hyphenation is triggered to pull part of a word from the next line back up into the current one.
- */
- hyphenateLimitZone?: any;
-
- /**
- * Specifies whether or not words in a sentence can be split by the use of a manual or automatic hyphenation mechanism.
- */
- hyphens?: any;
-
- imeMode?: any;
-
- /**
- * Defines how the browser distributes space between and around flex items
- * along the main-axis of their container.
- */
- justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around";
-
- layoutGrid?: any;
-
- layoutGridChar?: any;
-
- layoutGridLine?: any;
-
- layoutGridMode?: any;
-
- layoutGridType?: any;
-
- /**
- * Sets the left edge of an element
- */
- left?: any;
-
- /**
- * The letter-spacing CSS property specifies the spacing behavior between text characters.
- */
- letterSpacing?: any;
-
- /**
- * Deprecated. Gets or sets line-breaking rules for text in selected languages such as Japanese, Chinese, and Korean.
- */
- lineBreak?: any;
-
- lineClamp?: number;
-
- /**
- * Specifies the height of an inline block level element.
- */
- lineHeight?: number | string;
-
- /**
- * Shorthand property that sets the list-style-type, list-style-position and list-style-image properties in one declaration.
- */
- listStyle?: any;
-
- /**
- * This property sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker. That also means that if the image is not available, it will show the style specified by list-style-property
- */
- listStyleImage?: any;
-
- /**
- * Specifies if the list-item markers should appear inside or outside the content flow.
- */
- listStylePosition?: any;
-
- /**
- * Specifies the type of list-item marker in a list.
- */
- listStyleType?: any;
-
- /**
- * The margin property is shorthand to allow you to set all four margins of an element at once. Its equivalent longhand properties are margin-top, margin-right, margin-bottom and margin-left. Negative values are also allowed.
- */
- margin?: any;
-
- /**
- * margin-bottom sets the bottom margin of an element.
- */
- marginBottom?: any;
-
- /**
- * margin-left sets the left margin of an element.
- */
- marginLeft?: any;
-
- /**
- * margin-right sets the right margin of an element.
- */
- marginRight?: any;
-
- /**
- * margin-top sets the top margin of an element.
- */
- marginTop?: any;
-
- /**
- * The marquee-direction determines the initial direction in which the marquee content moves.
- */
- marqueeDirection?: any;
-
- /**
- * The 'marquee-style' property determines a marquee's scrolling behavior.
- */
- marqueeStyle?: any;
-
- /**
- * This property is shorthand for setting mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-composite and mask-size. Omitted values are set to their original properties' initial values.
- */
- mask?: any;
-
- /**
- * This property is shorthand for setting mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, and mask-border-repeat. Omitted values are set to their original properties' initial values.
- */
- maskBorder?: any;
-
- /**
- * This property specifies how the images for the sides and the middle part of the mask image are scaled and tiled. The first keyword applies to the horizontal sides, the second one applies to the vertical ones. If the second keyword is absent, it is assumed to be the same as the first, similar to the CSS border-image-repeat property.
- */
- maskBorderRepeat?: any;
-
- /**
- * This property specifies inward offsets from the top, right, bottom, and left edges of the mask image, dividing it into nine regions: four corners, four edges, and a middle. The middle image part is discarded and treated as fully transparent black unless the fill keyword is present. The four values set the top, right, bottom and left offsets in that order, similar to the CSS border-image-slice property.
- */
- maskBorderSlice?: any;
-
- /**
- * Specifies an image to be used as a mask. An image that is empty, fails to download, is non-existent, or cannot be displayed is ignored and does not mask the element.
- */
- maskBorderSource?: any;
-
- /**
- * This property sets the width of the mask box image, similar to the CSS border-image-width property.
- */
- maskBorderWidth?: any;
-
- /**
- * Determines the mask painting area, which defines the area that is affected by the mask. The painted content of an element may be restricted to this area.
- */
- maskClip?: any;
-
- /**
- * For elements rendered as a single box, specifies the mask positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes box-decoration-break operates on to determine the mask positioning area(s).
- */
- maskOrigin?: any;
-
- /**
- * This property must not be used. It is no longer included in any standard or standard track specification, nor is it implemented in any browser. It is only used when the text-align-last property is set to size. It controls allowed adjustments of font-size to fit line content.
- */
- maxFontSize?: any;
-
- /**
- * Sets the maximum height for an element. It prevents the height of the element to exceed the specified value. If min-height is specified and is greater than max-height, max-height is overridden.
- */
- maxHeight?: any;
-
- /**
- * Sets the maximum width for an element. It limits the width property to be larger than the value specified in max-width.
- */
- maxWidth?: any;
-
- /**
- * Sets the minimum height for an element. It prevents the height of the element to be smaller than the specified value. The value of min-height overrides both max-height and height.
- */
- minHeight?: any;
-
- /**
- * Sets the minimum width of an element. It limits the width property to be not smaller than the value specified in min-width.
- */
- minWidth?: any;
-
- /**
- * Specifies the transparency of an element.
- */
- opacity?: number;
-
- /**
- * Specifies the order used to lay out flex items in their flex container.
- * Elements are laid out in the ascending order of the order value.
- */
- order?: number;
-
- /**
- * In paged media, this property defines the minimum number of lines in
- * a block container that must be left at the bottom of the page.
- */
- orphans?: number;
-
- /**
- * The CSS outline property is a shorthand property for setting one or more of the individual outline properties outline-style, outline-width and outline-color in a single rule. In most cases the use of this shortcut is preferable and more convenient.
- * Outlines differ from borders in the following ways: • Outlines do not take up space, they are drawn above the content.
- * • Outlines may be non-rectangular. They are rectangular in Gecko/Firefox. Internet Explorer attempts to place the smallest contiguous outline around all elements or shapes that are indicated to have an outline. Opera draws a non-rectangular shape around a construct.
- */
- outline?: any;
-
- /**
- * The outline-color property sets the color of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out.
- */
- outlineColor?: any;
-
- /**
- * The outline-offset property offsets the outline and draw it beyond the border edge.
- */
- outlineOffset?: any;
-
- /**
- * The overflow property controls how extra content exceeding the bounding box of an element is rendered. It can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
- */
- overflow?: any;
-
- /**
- * Specifies the preferred scrolling methods for elements that overflow.
- */
- overflowStyle?: any;
-
- /**
- * Controls how extra content exceeding the x-axis of the bounding box of an element is rendered.
- */
- overflowX?: any;
-
- /**
- * Controls how extra content exceeding the y-axis of the bounding box of an element is rendered.
- */
- overflowY?: any;
-
- /**
- * The padding optional CSS property sets the required padding space on one to four sides of an element. The padding area is the space between an element and its border. Negative values are not allowed but decimal values are permitted. The element size is treated as fixed, and the content of the element shifts toward the center as padding is increased.
- * The padding property is a shorthand to avoid setting each side separately (padding-top, padding-right, padding-bottom, padding-left).
- */
- padding?: any;
-
- /**
- * The padding-bottom CSS property of an element sets the padding space required on the bottom of an element. The padding area is the space between the content of the element and its border. Contrary to margin-bottom values, negative values of padding-bottom are invalid.
- */
- paddingBottom?: any;
-
- /**
- * The padding-left CSS property of an element sets the padding space required on the left side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-left values, negative values of padding-left are invalid.
- */
- paddingLeft?: any;
-
- /**
- * The padding-right CSS property of an element sets the padding space required on the right side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-right values, negative values of padding-right are invalid.
- */
- paddingRight?: any;
-
- /**
- * The padding-top CSS property of an element sets the padding space required on the top of an element. The padding area is the space between the content of the element and its border. Contrary to margin-top values, negative values of padding-top are invalid.
- */
- paddingTop?: any;
-
- /**
- * The page-break-after property is supported in all major browsers. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
- */
- pageBreakAfter?: any;
-
- /**
- * The page-break-before property sets the page-breaking behavior before an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
- */
- pageBreakBefore?: any;
-
- /**
- * Sets the page-breaking behavior inside an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
- */
- pageBreakInside?: any;
-
- /**
- * The pause property determines how long a speech media agent should pause before and after presenting an element. It is a shorthand for the pause-before and pause-after properties.
- */
- pause?: any;
-
- /**
- * The pause-after property determines how long a speech media agent should pause after presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
- */
- pauseAfter?: any;
-
- /**
- * The pause-before property determines how long a speech media agent should pause before presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
- */
- pauseBefore?: any;
-
- /**
- * The perspective property defines how far an element is placed from the view on the z-axis, from the screen to the viewer.
- * Perspective defines how an object is viewed. In graphic arts, perspective is the representation on a flat surface of what the viewer's eye would see in a 3D space. (See Wikipedia for more information about graphical perspective and for related illustrations.)
- * The illusion of perspective on a flat surface, such as a computer screen, is created by projecting points on the flat surface as they would appear if the flat surface were a window through which the viewer was looking at the object. In discussion of virtual environments, this flat surface is called a projection plane.
- */
- perspective?: any;
-
- /**
- * The perspective-origin property establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.
- * When used with perspective, perspective-origin changes the appearance of an object, as if a viewer were looking at it from a different origin. An object appears differently if a viewer is looking directly at it versus looking at it from below, above, or from the side. Thus, the perspective-origin is like a vanishing point.
- * The default value of perspective-origin is 50% 50%. This displays an object as if the viewer's eye were positioned directly at the center of the screen, both top-to-bottom and left-to-right. A value of 0% 0% changes the object as if the viewer was looking toward the top left angle. A value of 100% 100% changes the appearance as if viewed toward the bottom right angle.
- */
- perspectiveOrigin?: any;
-
- /**
- * The pointer-events property allows you to control whether an element can be the target for the pointing device (e.g, mouse, pen) events.
- */
- pointerEvents?: any;
-
- /**
- * The position property controls the type of positioning used by an element within its parent elements. The effect of the position property depends on a lot of factors, for example the position property of parent elements.
- */
- position?: any;
-
- /**
- * Obsolete: unsupported.
- * This property determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its "ink" lines up with the first glyph in the line above and below.
- */
- punctuationTrim?: any;
-
- /**
- * Sets the type of quotation marks for embedded quotations.
- */
- quotes?: any;
-
- /**
- * Controls whether the last region in a chain displays additional 'overset' content according its default overflow property, or if it displays a fragment of content as if it were flowing into a subsequent region.
- */
- regionFragment?: any;
-
- /**
- * The rest-after property determines how long a speech media agent should pause after presenting an element's main content, before presenting that element's exit cue sound. It may be replaced by the shorthand property rest, which sets rest time before and after.
- */
- restAfter?: any;
-
- /**
- * The rest-before property determines how long a speech media agent should pause after presenting an intro cue sound for an element, before presenting that element's main content. It may be replaced by the shorthand property rest, which sets rest time before and after.
- */
- restBefore?: any;
-
- /**
- * Specifies the position an element in relation to the right side of the containing element.
- */
- right?: any;
-
- rubyAlign?: any;
-
- rubyPosition?: any;
-
- /**
- * Defines the alpha channel threshold used to extract a shape from an image. Can be thought of as a "minimum opacity" threshold; that is, a value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.
- */
- shapeImageThreshold?: any;
-
- /**
- * A future level of CSS Shapes will define a shape-inside property, which will define a shape to wrap content within the element. See Editor's Draft <http://dev.w3.org/csswg/css-shapes/> and CSSWG wiki page on next-level plans <http://wiki.csswg.org/spec/css-shapes>
- */
- shapeInside?: any;
-
- /**
- * Adds a margin to a shape-outside. In effect, defines a new shape that is the smallest contour around all the points that are the shape-margin distance outward perpendicular to each point on the underlying shape. For points where a perpendicular direction is not defined (e.g., a triangle corner), takes all points on a circle centered at the point and with a radius of the shape-margin distance. This property accepts only non-negative values.
- */
- shapeMargin?: any;
-
- /**
- * Declares a shape around which text should be wrapped, with possible modifications from the shape-margin property. The shape defined by shape-outside and shape-margin changes the geometry of a float element's float area.
- */
- shapeOutside?: any;
-
- /**
- * The speak property determines whether or not a speech synthesizer will read aloud the contents of an element.
- */
- speak?: any;
-
- /**
- * The speak-as property determines how the speech synthesizer interprets the content: words as whole words or as a sequence of letters, numbers as a numerical value or a sequence of digits, punctuation as pauses in speech or named punctuation characters.
- */
- speakAs?: any;
-
- /**
- * SVG: Specifies the opacity of the outline on the current object.
- */
- strokeOpacity?: number;
-
- /**
- * SVG: Specifies the width of the outline on the current object.
- */
- strokeWidth?: number;
-
- /**
- * The tab-size CSS property is used to customise the width of a tab (U+0009) character.
- */
- tabSize?: any;
-
- /**
- * The 'table-layout' property controls the algorithm used to lay out the table cells, rows, and columns.
- */
- tableLayout?: any;
-
- /**
- * The text-align CSS property describes how inline content like text is aligned in its parent block element. text-align does not control the alignment of block elements itself, only their inline content.
- */
- textAlign?: any;
-
- /**
- * The text-align-last CSS property describes how the last line of a block element or a line before line break is aligned in its parent block element.
- */
- textAlignLast?: any;
-
- /**
- * The text-decoration CSS property is used to set the text formatting to underline, overline, line-through or blink.
- * underline and overline decorations are positioned under the text, line-through over it.
- */
- textDecoration?: any;
-
- /**
- * Sets the color of any text decoration, such as underlines, overlines, and strike throughs.
- */
- textDecorationColor?: any;
-
- /**
- * Sets what kind of line decorations are added to an element, such as underlines, overlines, etc.
- */
- textDecorationLine?: any;
-
- textDecorationLineThrough?: any;
-
- textDecorationNone?: any;
-
- textDecorationOverline?: any;
-
- /**
- * Specifies what parts of an element’s content are skipped over when applying any text decoration.
- */
- textDecorationSkip?: any;
-
- /**
- * This property specifies the style of the text decoration line drawn on the specified element. The intended meaning for the values are the same as those of the border-style-properties.
- */
- textDecorationStyle?: any;
-
- textDecorationUnderline?: any;
-
- /**
- * The text-emphasis property will apply special emphasis marks to the elements text. Slightly similar to the text-decoration property only that this property can have affect on the line-height. It also is noted that this is shorthand for text-emphasis-style and for text-emphasis-color.
- */
- textEmphasis?: any;
-
- /**
- * The text-emphasis-color property specifies the foreground color of the emphasis marks.
- */
- textEmphasisColor?: any;
-
- /**
- * The text-emphasis-style property applies special emphasis marks to an element's text.
- */
- textEmphasisStyle?: any;
-
- /**
- * This property helps determine an inline box's block-progression dimension, derived from the text-height and font-size properties for non-replaced elements, the height or the width for replaced elements, and the stacked block-progression dimension for inline-block elements. The block-progression dimension determines the position of the padding, border and margin for the element.
- */
- textHeight?: any;
-
- /**
- * Specifies the amount of space horizontally that should be left on the first line of the text of an element. This horizontal spacing is at the beginning of the first line and is in respect to the left edge of the containing block box.
- */
- textIndent?: any;
-
- textJustifyTrim?: any;
-
- textKashidaSpace?: any;
-
- /**
- * The text-line-through property is a shorthand property for text-line-through-style, text-line-through-color and text-line-through-mode. (Considered obsolete; use text-decoration instead.)
- */
- textLineThrough?: any;
-
- /**
- * Specifies the line colors for the line-through text decoration.
- * (Considered obsolete; use text-decoration-color instead.)
- */
- textLineThroughColor?: any;
-
- /**
- * Sets the mode for the line-through text decoration, determining whether the text decoration affects the space characters or not.
- * (Considered obsolete; use text-decoration-skip instead.)
- */
- textLineThroughMode?: any;
-
- /**
- * Specifies the line style for line-through text decoration.
- * (Considered obsolete; use text-decoration-style instead.)
- */
- textLineThroughStyle?: any;
-
- /**
- * Specifies the line width for the line-through text decoration.
- */
- textLineThroughWidth?: any;
-
- /**
- * The text-overflow shorthand CSS property determines how overflowed content that is not displayed is signaled to the users. It can be clipped, display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string. It covers the two long-hand properties text-overflow-mode and text-overflow-ellipsis
- */
- textOverflow?: any;
-
- /**
- * The text-overline property is the shorthand for the text-overline-style, text-overline-width, text-overline-color, and text-overline-mode properties.
- */
- textOverline?: any;
-
- /**
- * Specifies the line color for the overline text decoration.
- */
- textOverlineColor?: any;
-
- /**
- * Sets the mode for the overline text decoration, determining whether the text decoration affects the space characters or not.
- */
- textOverlineMode?: any;
-
- /**
- * Specifies the line style for overline text decoration.
- */
- textOverlineStyle?: any;
-
- /**
- * Specifies the line width for the overline text decoration.
- */
- textOverlineWidth?: any;
-
- /**
- * The text-rendering CSS property provides information to the browser about how to optimize when rendering text. Options are: legibility, speed or geometric precision.
- */
- textRendering?: any;
-
- /**
- * Obsolete: unsupported.
- */
- textScript?: any;
-
- /**
- * The CSS text-shadow property applies one or more drop shadows to the text and <text-decorations> of an element. Each shadow is specified as an offset from the text, along with optional color and blur radius values.
- */
- textShadow?: any;
-
- /**
- * This property transforms text for styling purposes. (It has no effect on the underlying content.)
- */
- textTransform?: any;
-
- /**
- * Unsupported.
- * This property will add a underline position value to the element that has an underline defined.
- */
- textUnderlinePosition?: any;
-
- /**
- * After review this should be replaced by text-decoration should it not?
- * This property will set the underline style for text with a line value for underline, overline, and line-through.
- */
- textUnderlineStyle?: any;
-
- /**
- * This property specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the top edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
- */
- top?: any;
-
- /**
- * Determines whether touch input may trigger default behavior supplied by the user agent, such as panning or zooming.
- */
- touchAction?: any;
-
- /**
- * CSS transforms allow elements styled with CSS to be transformed in two-dimensional or three-dimensional space. Using this property, elements can be translated, rotated, scaled, and skewed. The value list may consist of 2D and/or 3D transform values.
- */
- transform?: any;
-
- /**
- * This property defines the origin of the transformation axes relative to the element to which the transformation is applied.
- */
- transformOrigin?: any;
-
- /**
- * This property allows you to define the relative position of the origin of the transformation grid along the z-axis.
- */
- transformOriginZ?: any;
-
- /**
- * This property specifies how nested elements are rendered in 3D space relative to their parent.
- */
- transformStyle?: any;
-
- /**
- * The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay. It allows to define the transition between two states of an element.
- */
- transition?: any;
-
- /**
- * Defines when the transition will start. A value of ‘0s’ means the transition will execute as soon as the property is changed. Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
- */
- transitionDelay?: any;
-
- /**
- * The 'transition-duration' property specifies the length of time a transition animation takes to complete.
- */
- transitionDuration?: any;
-
- /**
- * The 'transition-property' property specifies the name of the CSS property to which the transition is applied.
- */
- transitionProperty?: any;
-
- /**
- * Sets the pace of action within a transition
- */
- transitionTimingFunction?: any;
-
- /**
- * The unicode-bidi CSS property specifies the level of embedding with respect to the bidirectional algorithm.
- */
- unicodeBidi?: any;
-
- /**
- * unicode-range allows you to set a specific range of characters to be downloaded from a font (embedded using @font-face) and made available for use on the current page.
- */
- unicodeRange?: any;
-
- /**
- * This is for all the high level UX stuff.
- */
- userFocus?: any;
-
- /**
- * For inputing user content
- */
- userInput?: any;
-
- /**
- * The vertical-align property controls how inline elements or text are vertically aligned compared to the baseline. If this property is used on table-cells it controls the vertical alignment of content of the table cell.
- */
- verticalAlign?: any;
-
- /**
- * The visibility property specifies whether the boxes generated by an element are rendered.
- */
- visibility?: any;
-
- /**
- * The voice-balance property sets the apparent position (in stereo sound) of the synthesized voice for spoken media.
- */
- voiceBalance?: any;
-
- /**
- * The voice-duration property allows the author to explicitly set the amount of time it should take a speech synthesizer to read an element's content, for example to allow the speech to be synchronized with other media. With a value of auto (the default) the length of time it takes to read the content is determined by the content itself and the voice-rate property.
- */
- voiceDuration?: any;
-
- /**
- * The voice-family property sets the speaker's voice used by a speech media agent to read an element. The speaker may be specified as a named character (to match a voice option in the speech reading software) or as a generic description of the age and gender of the voice. Similar to the font-family property for visual media, a comma-separated list of fallback options may be given in case the speech reader does not recognize the character name or cannot synthesize the requested combination of generic properties.
- */
- voiceFamily?: any;
-
- /**
- * The voice-pitch property sets pitch or tone (high or low) for the synthesized speech when reading an element; the pitch may be specified absolutely or relative to the normal pitch for the voice-family used to read the text.
- */
- voicePitch?: any;
-
- /**
- * The voice-range property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element. Emphasized text, grammatical structures and punctuation may all be rendered as changes in pitch, this property determines how strong or obvious those changes are; large ranges are associated with enthusiastic or emotional speech, while small ranges are associated with flat or mechanical speech.
- */
- voiceRange?: any;
-
- /**
- * The voice-rate property sets the speed at which the voice synthesized by a speech media agent will read content.
- */
- voiceRate?: any;
-
- /**
- * The voice-stress property sets the level of vocal emphasis to be used for synthesized speech reading the element.
- */
- voiceStress?: any;
-
- /**
- * The voice-volume property sets the volume for spoken content in speech media. It replaces the deprecated volume property.
- */
- voiceVolume?: any;
-
- /**
- * The white-space property controls whether and how white space inside the element is collapsed, and whether lines may wrap at unforced "soft wrap" opportunities.
- */
- whiteSpace?: any;
-
- /**
- * Obsolete: unsupported.
- */
- whiteSpaceTreatment?: any;
-
- /**
- * In paged media, this property defines the mimimum number of lines
- * that must be left at the top of the second page.
- */
- widows?: number;
-
- /**
- * Specifies the width of the content area of an element. The content area of the element width does not include the padding, border, and margin of the element.
- */
- width?: any;
-
- /**
- * The word-break property is often used when there is long generated content that is strung together without and spaces or hyphens to beak apart. A common case of this is when there is a long URL that does not have any hyphens. This case could potentially cause the breaking of the layout as it could extend past the parent element.
- */
- wordBreak?: any;
-
- /**
- * The word-spacing CSS property specifies the spacing behavior between "words".
- */
- wordSpacing?: any;
-
- /**
- * An alias of css/properties/overflow-wrap, word-wrap defines whether to break words when the content exceeds the boundaries of its container.
- */
- wordWrap?: any;
-
- /**
- * Specifies how exclusions affect inline content within block-level elements. Elements lay out their inline content in their content area but wrap around exclusion areas.
- */
- wrapFlow?: any;
-
- /**
- * Set the value that is used to offset the inner wrap shape from other shapes. Inline content that intersects a shape with this property will be pushed by this shape's margin.
- */
- wrapMargin?: any;
-
- /**
- * Obsolete and unsupported. Do not use.
- * This CSS property controls the text when it reaches the end of the block in which it is enclosed.
- */
- wrapOption?: any;
-
- /**
- * writing-mode specifies if lines of text are laid out horizontally or vertically, and the direction which lines of text and blocks progress.
- */
- writingMode?: any;
-
- /**
- * The z-index property specifies the z-order of an element and its descendants.
- * When elements overlap, z-order determines which one covers the other.
- */
- zIndex?: "auto" | number;
-
- /**
- * Sets the initial zoom factor of a document defined by @viewport.
- */
- zoom?: "auto" | number;
-
- [propertyName: string]: any;
- }
-
- interface HTMLAttributes extends DOMAttributes {
- // React-specific Attributes
- defaultChecked?: boolean;
- defaultValue?: string | string[];
-
- // Standard HTML Attributes
- accept?: string;
- acceptCharset?: string;
- accessKey?: string;
- action?: string;
- allowFullScreen?: boolean;
- allowTransparency?: boolean;
- alt?: string;
- async?: boolean;
- autoComplete?: string;
- autoFocus?: boolean;
- autoPlay?: boolean;
- capture?: boolean;
- cellPadding?: number | string;
- cellSpacing?: number | string;
- charSet?: string;
- challenge?: string;
- checked?: boolean;
- classID?: string;
- className?: string;
- cols?: number;
- colSpan?: number;
- content?: string;
- contentEditable?: boolean;
- contextMenu?: string;
- controls?: boolean;
- coords?: string;
- crossOrigin?: string;
- data?: string;
- dateTime?: string;
- default?: boolean;
- defer?: boolean;
- dir?: string;
- disabled?: boolean;
- download?: any;
- draggable?: boolean;
- encType?: string;
- form?: string;
- formAction?: string;
- formEncType?: string;
- formMethod?: string;
- formNoValidate?: boolean;
- formTarget?: string;
- frameBorder?: number | string;
- headers?: string;
- height?: number | string;
- hidden?: boolean;
- high?: number;
- href?: string;
- hrefLang?: string;
- htmlFor?: string;
- httpEquiv?: string;
- id?: string;
- inputMode?: string;
- integrity?: string;
- is?: string;
- keyParams?: string;
- keyType?: string;
- kind?: string;
- label?: string;
- lang?: string;
- list?: string;
- loop?: boolean;
- low?: number;
- manifest?: string;
- marginHeight?: number;
- marginWidth?: number;
- max?: number | string;
- maxLength?: number;
- media?: string;
- mediaGroup?: string;
- method?: string;
- min?: number | string;
- minLength?: number;
- multiple?: boolean;
- muted?: boolean;
- name?: string;
- nonce?: string;
- noValidate?: boolean;
- open?: boolean;
- optimum?: number;
- pattern?: string;
- placeholder?: string;
- poster?: string;
- preload?: string;
- radioGroup?: string;
- readOnly?: boolean;
- rel?: string;
- required?: boolean;
- reversed?: boolean;
- role?: string;
- rows?: number;
- rowSpan?: number;
- sandbox?: string;
- scope?: string;
- scoped?: boolean;
- scrolling?: string;
- seamless?: boolean;
- selected?: boolean;
- shape?: string;
- size?: number;
- sizes?: string;
- span?: number;
- spellCheck?: boolean;
- src?: string;
- srcDoc?: string;
- srcLang?: string;
- srcSet?: string;
- start?: number;
- step?: number | string;
- style?: CSSProperties;
- summary?: string;
- tabIndex?: number;
- target?: string;
- title?: string;
- type?: string;
- useMap?: string;
- value?: string | string[];
- width?: number | string;
- wmode?: string;
- wrap?: string;
-
- // RDFa Attributes
- about?: string;
- datatype?: string;
- inlist?: any;
- prefix?: string;
- property?: string;
- resource?: string;
- typeof?: string;
- vocab?: string;
-
- // Non-standard Attributes
- autoCapitalize?: string;
- autoCorrect?: string;
- autoSave?: string;
- color?: string;
- itemProp?: string;
- itemScope?: boolean;
- itemType?: string;
- itemID?: string;
- itemRef?: string;
- results?: number;
- security?: string;
- unselectable?: boolean;
-
- // Allows aria- and data- Attributes
- [key: string]: any;
- }
-
- interface SVGAttributes extends HTMLAttributes {
- clipPath?: string;
- colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
- cx?: number | string;
- cy?: number | string;
- d?: string;
- dx?: number | string;
- dy?: number | string;
- fill?: string;
- fillOpacity?: number | string;
- filter?: string;
- fontFamily?: string;
- fontSize?: number | string;
- fx?: number | string;
- fy?: number | string;
- gradientTransform?: string;
- gradientUnits?: string;
- in?: string;
- markerEnd?: string;
- markerMid?: string;
- markerStart?: string;
- offset?: number | string;
- opacity?: number | string;
- patternContentUnits?: string;
- patternUnits?: string;
- points?: string;
- preserveAspectRatio?: string;
- r?: number | string;
- result?: string;
- rx?: number | string;
- ry?: number | string;
- spreadMethod?: string;
- stdDeviation?: number | string
- stopColor?: string;
- stopOpacity?: number | string;
- stroke?: string;
- strokeDasharray?: string;
- strokeLinecap?: "butt" | "round" | "square" | "inherit";
- strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
- strokeMiterlimit?: string;
- strokeOpacity?: number | string;
- strokeWidth?: number | string;
- textAnchor?: string;
- transform?: string;
- type?: string;
- values?: string;
- version?: string;
- viewBox?: string;
- x1?: number | string;
- x2?: number | string;
- x?: number | string;
- xlinkActuate?: string;
- xlinkArcrole?: string;
- xlinkHref?: string;
- xlinkRole?: string;
- xlinkShow?: string;
- xlinkTitle?: string;
- xlinkType?: string;
- xmlBase?: string;
- xmlLang?: string;
- xmlSpace?: string;
- y1?: number | string;
- y2?: number | string;
- y?: number | string;
- }
-
- //
- // React.DOM
- // ----------------------------------------------------------------------
-
- interface ReactDOM {
- // HTML
- a: HTMLFactory<HTMLAnchorElement>;
- abbr: HTMLFactory<HTMLElement>;
- address: HTMLFactory<HTMLElement>;
- area: HTMLFactory<HTMLAreaElement>;
- article: HTMLFactory<HTMLElement>;
- aside: HTMLFactory<HTMLElement>;
- audio: HTMLFactory<HTMLAudioElement>;
- b: HTMLFactory<HTMLElement>;
- base: HTMLFactory<HTMLBaseElement>;
- bdi: HTMLFactory<HTMLElement>;
- bdo: HTMLFactory<HTMLElement>;
- big: HTMLFactory<HTMLElement>;
- blockquote: HTMLFactory<HTMLElement>;
- body: HTMLFactory<HTMLBodyElement>;
- br: HTMLFactory<HTMLBRElement>;
- button: HTMLFactory<HTMLButtonElement>;
- canvas: HTMLFactory<HTMLCanvasElement>;
- caption: HTMLFactory<HTMLElement>;
- cite: HTMLFactory<HTMLElement>;
- code: HTMLFactory<HTMLElement>;
- col: HTMLFactory<HTMLTableColElement>;
- colgroup: HTMLFactory<HTMLTableColElement>;
- data: HTMLFactory<HTMLElement>;
- datalist: HTMLFactory<HTMLDataListElement>;
- dd: HTMLFactory<HTMLElement>;
- del: HTMLFactory<HTMLElement>;
- details: HTMLFactory<HTMLElement>;
- dfn: HTMLFactory<HTMLElement>;
- dialog: HTMLFactory<HTMLElement>;
- div: HTMLFactory<HTMLDivElement>;
- dl: HTMLFactory<HTMLDListElement>;
- dt: HTMLFactory<HTMLElement>;
- em: HTMLFactory<HTMLElement>;
- embed: HTMLFactory<HTMLEmbedElement>;
- fieldset: HTMLFactory<HTMLFieldSetElement>;
- figcaption: HTMLFactory<HTMLElement>;
- figure: HTMLFactory<HTMLElement>;
- footer: HTMLFactory<HTMLElement>;
- form: HTMLFactory<HTMLFormElement>;
- h1: HTMLFactory<HTMLHeadingElement>;
- h2: HTMLFactory<HTMLHeadingElement>;
- h3: HTMLFactory<HTMLHeadingElement>;
- h4: HTMLFactory<HTMLHeadingElement>;
- h5: HTMLFactory<HTMLHeadingElement>;
- h6: HTMLFactory<HTMLHeadingElement>;
- head: HTMLFactory<HTMLHeadElement>;
- header: HTMLFactory<HTMLElement>;
- hgroup: HTMLFactory<HTMLElement>;
- hr: HTMLFactory<HTMLHRElement>;
- html: HTMLFactory<HTMLHtmlElement>;
- i: HTMLFactory<HTMLElement>;
- iframe: HTMLFactory<HTMLIFrameElement>;
- img: HTMLFactory<HTMLImageElement>;
- input: HTMLFactory<HTMLInputElement>;
- ins: HTMLFactory<HTMLModElement>;
- kbd: HTMLFactory<HTMLElement>;
- keygen: HTMLFactory<HTMLElement>;
- label: HTMLFactory<HTMLLabelElement>;
- legend: HTMLFactory<HTMLLegendElement>;
- li: HTMLFactory<HTMLLIElement>;
- link: HTMLFactory<HTMLLinkElement>;
- main: HTMLFactory<HTMLElement>;
- map: HTMLFactory<HTMLMapElement>;
- mark: HTMLFactory<HTMLElement>;
- menu: HTMLFactory<HTMLElement>;
- menuitem: HTMLFactory<HTMLElement>;
- meta: HTMLFactory<HTMLMetaElement>;
- meter: HTMLFactory<HTMLElement>;
- nav: HTMLFactory<HTMLElement>;
- noscript: HTMLFactory<HTMLElement>;
- object: HTMLFactory<HTMLObjectElement>;
- ol: HTMLFactory<HTMLOListElement>;
- optgroup: HTMLFactory<HTMLOptGroupElement>;
- option: HTMLFactory<HTMLOptionElement>;
- output: HTMLFactory<HTMLElement>;
- p: HTMLFactory<HTMLParagraphElement>;
- param: HTMLFactory<HTMLParamElement>;
- picture: HTMLFactory<HTMLElement>;
- pre: HTMLFactory<HTMLPreElement>;
- progress: HTMLFactory<HTMLProgressElement>;
- q: HTMLFactory<HTMLQuoteElement>;
- rp: HTMLFactory<HTMLElement>;
- rt: HTMLFactory<HTMLElement>;
- ruby: HTMLFactory<HTMLElement>;
- s: HTMLFactory<HTMLElement>;
- samp: HTMLFactory<HTMLElement>;
- script: HTMLFactory<HTMLElement>;
- section: HTMLFactory<HTMLElement>;
- select: HTMLFactory<HTMLSelectElement>;
- small: HTMLFactory<HTMLElement>;
- source: HTMLFactory<HTMLSourceElement>;
- span: HTMLFactory<HTMLSpanElement>;
- strong: HTMLFactory<HTMLElement>;
- style: HTMLFactory<HTMLStyleElement>;
- sub: HTMLFactory<HTMLElement>;
- summary: HTMLFactory<HTMLElement>;
- sup: HTMLFactory<HTMLElement>;
- table: HTMLFactory<HTMLTableElement>;
- tbody: HTMLFactory<HTMLTableSectionElement>;
- td: HTMLFactory<HTMLTableDataCellElement>;
- textarea: HTMLFactory<HTMLTextAreaElement>;
- tfoot: HTMLFactory<HTMLTableSectionElement>;
- th: HTMLFactory<HTMLTableHeaderCellElement>;
- thead: HTMLFactory<HTMLTableSectionElement>;
- time: HTMLFactory<HTMLElement>;
- title: HTMLFactory<HTMLTitleElement>;
- tr: HTMLFactory<HTMLTableRowElement>;
- track: HTMLFactory<HTMLTrackElement>;
- u: HTMLFactory<HTMLElement>;
- ul: HTMLFactory<HTMLUListElement>;
- "var": HTMLFactory<HTMLElement>;
- video: HTMLFactory<HTMLVideoElement>;
- wbr: HTMLFactory<HTMLElement>;
-
- // SVG
- svg: SVGFactory;
- circle: SVGFactory;
- defs: SVGFactory;
- ellipse: SVGFactory;
- g: SVGFactory;
- image: SVGFactory;
- line: SVGFactory;
- linearGradient: SVGFactory;
- mask: SVGFactory;
- path: SVGFactory;
- pattern: SVGFactory;
- polygon: SVGFactory;
- polyline: SVGFactory;
- radialGradient: SVGFactory;
- rect: SVGFactory;
- stop: SVGFactory;
- symbol: SVGFactory;
- text: SVGFactory;
- tspan: SVGFactory;
- use: SVGFactory;
- }
-
- //
- // React.PropTypes
- // ----------------------------------------------------------------------
-
- interface Validator<T> {
- (object: T, key: string, componentName: string): Error;
- }
-
- interface Requireable<T> extends Validator<T> {
- isRequired: Validator<T>;
- }
-
- interface ValidationMap<T> {
- [key: string]: Validator<T>;
- }
-
- interface ReactPropTypes {
- any: Requireable<any>;
- array: Requireable<any>;
- bool: Requireable<any>;
- func: Requireable<any>;
- number: Requireable<any>;
- object: Requireable<any>;
- string: Requireable<any>;
- node: Requireable<any>;
- element: Requireable<any>;
- instanceOf(expectedClass: {}): Requireable<any>;
- oneOf(types: any[]): Requireable<any>;
- oneOfType(types: Validator<any>[]): Requireable<any>;
- arrayOf(type: Validator<any>): Requireable<any>;
- objectOf(type: Validator<any>): Requireable<any>;
- shape(type: ValidationMap<any>): Requireable<any>;
- }
-
- //
- // React.Children
- // ----------------------------------------------------------------------
-
- interface ReactChildren {
- map<T>(children: ReactNode, fn: (child: ReactChild, index: number) => T): T[];
- forEach(children: ReactNode, fn: (child: ReactChild, index: number) => any): void;
- count(children: ReactNode): number;
- only(children: ReactNode): ReactElement<any>;
- toArray(children: ReactNode): ReactChild[];
- }
-
- //
- // Browser Interfaces
- // https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts
- // ----------------------------------------------------------------------
-
- interface AbstractView {
- styleMedia: StyleMedia;
- document: Document;
- }
-
- interface Touch {
- identifier: number;
- target: EventTarget;
- screenX: number;
- screenY: number;
- clientX: number;
- clientY: number;
- pageX: number;
- pageY: number;
- }
-
- interface TouchList {
- [index: number]: Touch;
- length: number;
- item(index: number): Touch;
- identifiedTouch(identifier: number): Touch;
- }
-}
-
-declare module "react" {
- export = __React;
-}
-
-declare namespace JSX {
- import React = __React;
-
- interface Element extends React.ReactElement<any> { }
- interface ElementClass extends React.Component<any, any> {
- render(): JSX.Element;
- }
- interface ElementAttributesProperty { props: {}; }
-
- interface IntrinsicAttributes extends React.Attributes { }
- interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> { }
-
- interface IntrinsicElements {
- // HTML
- a: React.HTMLProps<HTMLAnchorElement>;
- abbr: React.HTMLProps<HTMLElement>;
- address: React.HTMLProps<HTMLElement>;
- area: React.HTMLProps<HTMLAreaElement>;
- article: React.HTMLProps<HTMLElement>;
- aside: React.HTMLProps<HTMLElement>;
- audio: React.HTMLProps<HTMLAudioElement>;
- b: React.HTMLProps<HTMLElement>;
- base: React.HTMLProps<HTMLBaseElement>;
- bdi: React.HTMLProps<HTMLElement>;
- bdo: React.HTMLProps<HTMLElement>;
- big: React.HTMLProps<HTMLElement>;
- blockquote: React.HTMLProps<HTMLElement>;
- body: React.HTMLProps<HTMLBodyElement>;
- br: React.HTMLProps<HTMLBRElement>;
- button: React.HTMLProps<HTMLButtonElement>;
- canvas: React.HTMLProps<HTMLCanvasElement>;
- caption: React.HTMLProps<HTMLElement>;
- cite: React.HTMLProps<HTMLElement>;
- code: React.HTMLProps<HTMLElement>;
- col: React.HTMLProps<HTMLTableColElement>;
- colgroup: React.HTMLProps<HTMLTableColElement>;
- data: React.HTMLProps<HTMLElement>;
- datalist: React.HTMLProps<HTMLDataListElement>;
- dd: React.HTMLProps<HTMLElement>;
- del: React.HTMLProps<HTMLElement>;
- details: React.HTMLProps<HTMLElement>;
- dfn: React.HTMLProps<HTMLElement>;
- dialog: React.HTMLProps<HTMLElement>;
- div: React.HTMLProps<HTMLDivElement>;
- dl: React.HTMLProps<HTMLDListElement>;
- dt: React.HTMLProps<HTMLElement>;
- em: React.HTMLProps<HTMLElement>;
- embed: React.HTMLProps<HTMLEmbedElement>;
- fieldset: React.HTMLProps<HTMLFieldSetElement>;
- figcaption: React.HTMLProps<HTMLElement>;
- figure: React.HTMLProps<HTMLElement>;
- footer: React.HTMLProps<HTMLElement>;
- form: React.HTMLProps<HTMLFormElement>;
- h1: React.HTMLProps<HTMLHeadingElement>;
- h2: React.HTMLProps<HTMLHeadingElement>;
- h3: React.HTMLProps<HTMLHeadingElement>;
- h4: React.HTMLProps<HTMLHeadingElement>;
- h5: React.HTMLProps<HTMLHeadingElement>;
- h6: React.HTMLProps<HTMLHeadingElement>;
- head: React.HTMLProps<HTMLHeadElement>;
- header: React.HTMLProps<HTMLElement>;
- hgroup: React.HTMLProps<HTMLElement>;
- hr: React.HTMLProps<HTMLHRElement>;
- html: React.HTMLProps<HTMLHtmlElement>;
- i: React.HTMLProps<HTMLElement>;
- iframe: React.HTMLProps<HTMLIFrameElement>;
- img: React.HTMLProps<HTMLImageElement>;
- input: React.HTMLProps<HTMLInputElement>;
- ins: React.HTMLProps<HTMLModElement>;
- kbd: React.HTMLProps<HTMLElement>;
- keygen: React.HTMLProps<HTMLElement>;
- label: React.HTMLProps<HTMLLabelElement>;
- legend: React.HTMLProps<HTMLLegendElement>;
- li: React.HTMLProps<HTMLLIElement>;
- link: React.HTMLProps<HTMLLinkElement>;
- main: React.HTMLProps<HTMLElement>;
- map: React.HTMLProps<HTMLMapElement>;
- mark: React.HTMLProps<HTMLElement>;
- menu: React.HTMLProps<HTMLElement>;
- menuitem: React.HTMLProps<HTMLElement>;
- meta: React.HTMLProps<HTMLMetaElement>;
- meter: React.HTMLProps<HTMLElement>;
- nav: React.HTMLProps<HTMLElement>;
- noscript: React.HTMLProps<HTMLElement>;
- object: React.HTMLProps<HTMLObjectElement>;
- ol: React.HTMLProps<HTMLOListElement>;
- optgroup: React.HTMLProps<HTMLOptGroupElement>;
- option: React.HTMLProps<HTMLOptionElement>;
- output: React.HTMLProps<HTMLElement>;
- p: React.HTMLProps<HTMLParagraphElement>;
- param: React.HTMLProps<HTMLParamElement>;
- picture: React.HTMLProps<HTMLElement>;
- pre: React.HTMLProps<HTMLPreElement>;
- progress: React.HTMLProps<HTMLProgressElement>;
- q: React.HTMLProps<HTMLQuoteElement>;
- rp: React.HTMLProps<HTMLElement>;
- rt: React.HTMLProps<HTMLElement>;
- ruby: React.HTMLProps<HTMLElement>;
- s: React.HTMLProps<HTMLElement>;
- samp: React.HTMLProps<HTMLElement>;
- script: React.HTMLProps<HTMLElement>;
- section: React.HTMLProps<HTMLElement>;
- select: React.HTMLProps<HTMLSelectElement>;
- small: React.HTMLProps<HTMLElement>;
- source: React.HTMLProps<HTMLSourceElement>;
- span: React.HTMLProps<HTMLSpanElement>;
- strong: React.HTMLProps<HTMLElement>;
- style: React.HTMLProps<HTMLStyleElement>;
- sub: React.HTMLProps<HTMLElement>;
- summary: React.HTMLProps<HTMLElement>;
- sup: React.HTMLProps<HTMLElement>;
- table: React.HTMLProps<HTMLTableElement>;
- tbody: React.HTMLProps<HTMLTableSectionElement>;
- td: React.HTMLProps<HTMLTableDataCellElement>;
- textarea: React.HTMLProps<HTMLTextAreaElement>;
- tfoot: React.HTMLProps<HTMLTableSectionElement>;
- th: React.HTMLProps<HTMLTableHeaderCellElement>;
- thead: React.HTMLProps<HTMLTableSectionElement>;
- time: React.HTMLProps<HTMLElement>;
- title: React.HTMLProps<HTMLTitleElement>;
- tr: React.HTMLProps<HTMLTableRowElement>;
- track: React.HTMLProps<HTMLTrackElement>;
- u: React.HTMLProps<HTMLElement>;
- ul: React.HTMLProps<HTMLUListElement>;
- "var": React.HTMLProps<HTMLElement>;
- video: React.HTMLProps<HTMLVideoElement>;
- wbr: React.HTMLProps<HTMLElement>;
-
- // SVG
- svg: React.SVGProps;
-
- circle: React.SVGProps;
- clipPath: React.SVGProps;
- defs: React.SVGProps;
- desc: React.SVGProps;
- ellipse: React.SVGProps;
- feBlend: React.SVGProps;
- feColorMatrix: React.SVGProps;
- feComponentTransfer: React.SVGProps;
- feComposite: React.SVGProps;
- feConvolveMatrix: React.SVGProps;
- feDiffuseLighting: React.SVGProps;
- feDisplacementMap: React.SVGProps;
- feDistantLight: React.SVGProps;
- feFlood: React.SVGProps;
- feFuncA: React.SVGProps;
- feFuncB: React.SVGProps;
- feFuncG: React.SVGProps;
- feFuncR: React.SVGProps;
- feGaussianBlur: React.SVGProps;
- feImage: React.SVGProps;
- feMerge: React.SVGProps;
- feMergeNode: React.SVGProps;
- feMorphology: React.SVGProps;
- feOffset: React.SVGProps;
- fePointLight: React.SVGProps;
- feSpecularLighting: React.SVGProps;
- feSpotLight: React.SVGProps;
- feTile: React.SVGProps;
- feTurbulence: React.SVGProps;
- filter: React.SVGProps;
- foreignObject: React.SVGProps;
- g: React.SVGProps;
- image: React.SVGProps;
- line: React.SVGProps;
- linearGradient: React.SVGProps;
- marker: React.SVGProps;
- mask: React.SVGProps;
- metadata: React.SVGProps;
- path: React.SVGProps;
- pattern: React.SVGProps;
- polygon: React.SVGProps;
- polyline: React.SVGProps;
- radialGradient: React.SVGProps;
- rect: React.SVGProps;
- stop: React.SVGProps;
- switch: React.SVGProps;
- symbol: React.SVGProps;
- text: React.SVGProps;
- textPath: React.SVGProps;
- tspan: React.SVGProps;
- use: React.SVGProps;
- view: React.SVGProps;
- }
-}
diff --git a/lib/decl/systemjs/systemjs.d.ts b/lib/decl/systemjs/systemjs.d.ts
deleted file mode 100644
index 4d84b399c..000000000
--- a/lib/decl/systemjs/systemjs.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-interface System {
- import(name: string): Promise<any>;
- defined: any;
- amdDefine: () => void;
- amdRequire: () => void;
- baseURL: string;
- paths: { [key: string]: string };
- meta: { [key: string]: Object };
- config: any;
- newModule(obj: Object): any;
- normalizeSync(name: string): string;
- set(moduleName: string, module: any): void;
-}
-
-
-declare var System: System;
-
-declare module "systemjs" {
- export = System;
-} \ No newline at end of file
diff --git a/lib/decl/urijs/URIjs.d.ts b/lib/decl/urijs/URIjs.d.ts
deleted file mode 100644
index 23d79218b..000000000
--- a/lib/decl/urijs/URIjs.d.ts
+++ /dev/null
@@ -1,236 +0,0 @@
-// Type definitions for URI.js 1.15.1
-// Project: https://github.com/medialize/URI.js
-// Definitions by: RodneyJT <https://github.com/RodneyJT>, Brian Surowiec <https://github.com/xt0rted>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-/// <reference path="../jquery/jquery.d.ts" />
-
-declare module uri {
-
- interface URI {
- absoluteTo(path: string): URI;
- absoluteTo(path: URI): URI;
- addFragment(fragment: string): URI;
- addQuery(qry: string): URI;
- addQuery(qry: Object): URI;
- addSearch(qry: string): URI;
- addSearch(key: string, value:any): URI;
- addSearch(qry: Object): URI;
- authority(): string;
- authority(authority: string): URI;
-
- clone(): URI;
-
- directory(): string;
- directory(dir: boolean): string;
- directory(dir: string): URI;
- domain(): string;
- domain(domain: boolean): string;
- domain(domain: string): URI;
-
- duplicateQueryParameters(val: boolean): URI;
-
- equals(): boolean;
- equals(url: string): boolean;
-
- filename(): string;
- filename(file: boolean): string;
- filename(file: string): URI;
- fragment(): string;
- fragment(fragment: string): URI;
- fragmentPrefix(prefix: string): URI;
-
- hash(): string;
- hash(hash: string): URI;
- host(): string;
- host(host: string): URI;
- hostname(): string;
- hostname(hostname: string): URI;
- href(): string;
- href(url: string): void;
-
- is(qry: string): boolean;
- iso8859(): URI;
-
- normalize(): URI;
- normalizeFragment(): URI;
- normalizeHash(): URI;
- normalizeHostname(): URI;
- normalizePath(): URI;
- normalizePathname(): URI;
- normalizePort(): URI;
- normalizeProtocol(): URI;
- normalizeQuery(): URI;
- normalizeSearch(): URI;
-
- password(): string;
- password(pw: string): URI;
- path(): string;
- path(path: boolean): string;
- path(path: string): URI;
- pathname(): string;
- pathname(path: boolean): string;
- pathname(path: string): URI;
- port(): string;
- port(port: string): URI;
- protocol(): string;
- protocol(protocol: string): URI;
-
- query(): string;
- query(qry: string): URI;
- query(qry: boolean): Object;
- query(qry: Object): URI;
-
- readable(): string;
- relativeTo(path: string): URI;
- removeQuery(qry: string): URI;
- removeQuery(qry: Object): URI;
- removeSearch(qry: string): URI;
- removeSearch(qry: Object): URI;
- resource(): string;
- resource(resource: string): URI;
-
- scheme(): string;
- scheme(protocol: string): URI;
- search(): string;
- search(qry: string): URI;
- search(qry: boolean): any;
- search(qry: Object): URI;
- segment(): string[];
- segment(segments: string[]): URI;
- segment(position: number): string;
- segment(position: number, level: string): URI;
- segment(segment: string): URI;
- setQuery(key: string, value: string): URI;
- setQuery(qry: Object): URI;
- setSearch(key: string, value: string): URI;
- setSearch(qry: Object): URI;
- subdomain(): string;
- subdomain(subdomain: string): URI;
- suffix(): string;
- suffix(suffix: boolean): string;
- suffix(suffix: string): URI;
-
- tld(): string;
- tld(tld: boolean): string;
- tld(tld: string): URI;
-
- unicode(): URI;
- userinfo(): string;
- userinfo(userinfo: string): URI;
- username(): string;
- username(uname: string): URI;
-
- valueOf(): string;
- }
-
- interface URIOptions {
- protocol?: string;
- username?: string;
- password?: string;
- hostname?: string;
- port?: string;
- path?: string;
- query?: string;
- fragment?: string;
- }
-
- interface URIStatic {
- (): URI;
- (value: string | URIOptions | HTMLElement): URI;
-
- new (): URI;
- new (value: string | URIOptions | HTMLElement): URI;
-
- addQuery(data: Object, prop: string, value: string): Object;
- addQuery(data: Object, qryObj: Object): Object;
-
- build(parts: {
- protocol: string;
- username: string;
- password: string;
- hostname: string;
- port: string;
- path: string;
- query: string;
- fragment: string;
- }): string;
- buildAuthority(parts: {
- username?: string;
- password?: string;
- hostname?: string;
- port?: string;
- }): string;
- buildHost(parts: {
- hostname?: string;
- port?: string;
- }): string;
- buildQuery(qry: Object): string;
- buildQuery(qry: Object, duplicates: boolean): string;
- buildUserinfo(parts: {
- username?: string;
- password?: string;
- }): string;
-
- commonPath(path1: string, path2: string): string;
-
- decode(str: string): string;
- decodeQuery(qry: string): string;
-
- encode(str: string): string;
- encodeQuery(qry: string): string;
- encodeReserved(str: string): string;
- expand(template: string, vals: Object): URI;
-
- iso8859(): void;
-
- parse(url: string): {
- protocol: string;
- username: string;
- password: string;
- hostname: string;
- port: string;
- path: string;
- query: string;
- fragment: string;
- };
- parseAuthority(url: string, parts: {
- username?: string;
- password?: string;
- hostname?: string;
- port?: string;
- }): string;
- parseHost(url: string, parts: {
- hostname?: string;
- port?: string;
- }): string;
- parseQuery(url: string): Object;
- parseUserinfo(url: string, parts: {
- username?: string;
- password?: string;
- }): string;
-
- removeQuery(data: Object, prop: string, value: string): Object;
- removeQuery(data: Object, props: string[]): Object;
- removeQuery(data: Object, props: Object): Object;
-
- unicode(): void;
-
- withinString(source: string, func: (url: string) => string): string;
- }
-
-}
-
-interface JQuery {
- uri(): uri.URI;
-}
-
-declare var URI: uri.URIStatic;
-
-declare module 'URI' {
- export = URI;
-}
-
-declare module 'urijs' {
- export = URI;
-}
diff --git a/lib/emscripten/taler-emscripten-lib.js b/lib/emscripten/taler-emscripten-lib.js
deleted file mode 100644
index 2bf0f03dc..000000000
--- a/lib/emscripten/taler-emscripten-lib.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER}if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=console.log;if(!Module["printErr"])Module["printErr"]=console.warn;var nodeFS;var nodePath;Module["read"]=function read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);return binary?ret:ret.toString()};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};Module["readAsync"]=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.warn(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){abort("NO_DYNAMIC_EXECUTION=1 was set, cannot eval")}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=undefined;var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,prepVararg:(function(ptr,type){if(type==="double"||type==="i64"){if(ptr&7){assert((ptr&7)===4);ptr+=4}}else{assert((ptr&3)===0)}return ptr}),getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){assert(args.length==sig.length-1);assert("dynCall_"+sig in Module,"bad function pointer type - no table for sig '"+sig+"'");return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}else{assert(sig.length==1);assert("dynCall_"+sig in Module,"bad function pointer type - no table for sig '"+sig+"'");return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(var i=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return 2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}var sigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){if(sig.length===1){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func)}}else if(sig.length===2){sigCache[func]=function dynCall_wrapper(arg){return Runtime.dynCall(sig,func,[arg])}}else{sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,Array.prototype.slice.call(arguments))}}}return sigCache[func]}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){var ret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;assert((STACKTOP|0)<(STACK_MAX|0)|0)|0;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+(assert(!staticSealed),size)|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){assert(DYNAMICTOP_PTR);var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=(ret+size+15|0)&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;if(end>=TOTAL_MEMORY){var success=enlargeMemory();if(!success){HEAP32[DYNAMICTOP_PTR>>2]=ret;return 0}}return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var ABORT=false;var EXITSTATUS=0;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}function getCFunc(ident){var func=Module["_"+ident];if(!func){abort("NO_DYNAMIC_EXECUTION=1 was set, cannot eval")}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var JSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=Runtime.stackAlloc(len);stringToUTF8(str,ret,len)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args,opts){var func=getCFunc(ident);var cArgs=[];var stack=0;assert(returnType!=="array",'Return type should not be "array".');if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);if((!opts||!opts.async)&&typeof EmterpreterAsync==="object"){assert(!EmterpreterAsync.state,"cannot start async op with normal JS calling ccall")}if(opts&&opts.async)assert(!returnType,"async ccalls cannot return values");if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0){if(opts&&opts.async){EmterpreterAsync.asyncFinalizers.push((function(){Runtime.stackRestore(stack)}));return}Runtime.stackRestore(stack)}return ret};cwrap=function cwrap(ident,returnType,argTypes){return(function(){Runtime.warnOnce("NO_DYNAMIC_EXECUTION was set, "+"using slow cwrap implementation");return ccall(ident,returnType,argTypes,arguments)})}}))();Module["ccall"]=ccall;Module["cwrap"]=cwrap;function setValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var ALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[typeof _malloc==="function"?_malloc:Runtime.staticAlloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i<size){var curr=slab[i];if(typeof curr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}assert(type,"Must know what type to store in allocate!");if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}Module["allocate"]=allocate;function getMemory(size){if(!staticSealed)return Runtime.staticAlloc(size);if(!runtimeInitialized)return Runtime.dynamicAlloc(size);return _malloc(size)}Module["getMemory"]=getMemory;function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){assert(ptr+i<TOTAL_MEMORY);t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(hasUtf<128){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}return Module["UTF8ToString"](ptr)}Module["Pointer_stringify"]=Pointer_stringify;function AsciiToString(ptr){var str="";while(1){var ch=HEAP8[ptr++>>0];if(!ch)return str;str+=String.fromCharCode(ch)}}Module["AsciiToString"]=AsciiToString;function stringToAscii(str,outPtr){return writeAsciiToMemory(str,outPtr,false)}Module["stringToAscii"]=stringToAscii;var UTF8Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(u8Array,idx){var endPtr=idx;while(u8Array[endPtr])++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder){return UTF8Decoder.decode(u8Array.subarray(idx,endPtr))}else{var u0,u1,u2,u3,u4,u5;var str="";while(1){u0=u8Array[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}}Module["UTF8ArrayToString"]=UTF8ArrayToString;function UTF8ToString(ptr){return UTF8ArrayToString(HEAPU8,ptr)}Module["UTF8ToString"]=UTF8ToString;function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}Module["stringToUTF8Array"]=stringToUTF8Array;function stringToUTF8(str,outPtr,maxBytesToWrite){assert(typeof maxBytesToWrite=="number","stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!");return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}Module["stringToUTF8"]=stringToUTF8;function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){++len}else if(u<=2047){len+=2}else if(u<=65535){len+=3}else if(u<=2097151){len+=4}else if(u<=67108863){len+=5}else{len+=6}}return len}Module["lengthBytesUTF8"]=lengthBytesUTF8;var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function demangle(func){var hasLibcxxabi=!!Module["___cxa_demangle"];if(hasLibcxxabi){try{var s=func.substr(1);var len=lengthBytesUTF8(s)+1;var buf=_malloc(len);stringToUTF8(s,buf,len);var status=_malloc(4);var ret=Module["___cxa_demangle"](buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}return func}Runtime.warnOnce("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling");return func}function demangleAll(text){return text.replace(/__Z[\w\d_]+/g,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();return demangleAll(js)}Module["stackTrace"]=stackTrace;var PAGE_SIZE=4096;var HEAP;var buffer;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferViews(){Module["HEAP8"]=HEAP8=new Int8Array(buffer);Module["HEAP16"]=HEAP16=new Int16Array(buffer);Module["HEAP32"]=HEAP32=new Int32Array(buffer);Module["HEAPU8"]=HEAPU8=new Uint8Array(buffer);Module["HEAPU16"]=HEAPU16=new Uint16Array(buffer);Module["HEAPU32"]=HEAPU32=new Uint32Array(buffer);Module["HEAPF32"]=HEAPF32=new Float32Array(buffer);Module["HEAPF64"]=HEAPF64=new Float64Array(buffer)}var STATIC_BASE,STATICTOP,staticSealed;var STACK_BASE,STACKTOP,STACK_MAX;var DYNAMIC_BASE,DYNAMICTOP_PTR;STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0;staticSealed=false;function writeStackCookie(){assert((STACK_MAX&3)==0);HEAPU32[(STACK_MAX>>2)-1]=34821223;HEAPU32[(STACK_MAX>>2)-2]=2310721022}function checkStackCookie(){if(HEAPU32[(STACK_MAX>>2)-1]!=34821223||HEAPU32[(STACK_MAX>>2)-2]!=2310721022){abort("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x"+HEAPU32[(STACK_MAX>>2)-2].toString(16)+" "+HEAPU32[(STACK_MAX>>2)-1].toString(16))}if(HEAP32[0]!==1668509029)throw"Runtime error: The application has corrupted its heap memory area (address zero)!"}function abortStackOverflow(allocSize){abort("Stack overflow! Attempted to allocate "+allocSize+" bytes on the stack, but stack has only "+(STACK_MAX-asm.stackSave()+allocSize)+" bytes available!")}function abortOnCannotGrowMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}function enlargeMemory(){abortOnCannotGrowMemory()}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;var totalMemory=64*1024;while(totalMemory<TOTAL_MEMORY||totalMemory<2*TOTAL_STACK){if(totalMemory<16*1024*1024){totalMemory*=2}else{totalMemory+=16*1024*1024}}if(totalMemory!==TOTAL_MEMORY){Module.printErr("increasing TOTAL_MEMORY to "+totalMemory+" to be compliant with the asm.js spec (and given that TOTAL_STACK="+TOTAL_STACK+")");TOTAL_MEMORY=totalMemory}assert(typeof Int32Array!=="undefined"&&typeof Float64Array!=="undefined"&&!!(new Int32Array(1))["subarray"]&&!!(new Int32Array(1))["set"],"JS engine does not provide full typed array support");if(Module["buffer"]){buffer=Module["buffer"];assert(buffer.byteLength===TOTAL_MEMORY,"provided buffer should be "+TOTAL_MEMORY+" bytes, but it is "+buffer.byteLength)}else{buffer=new ArrayBuffer(TOTAL_MEMORY)}updateGlobalBufferViews();function getTotalMemory(){return TOTAL_MEMORY}HEAP32[0]=1668509029;HEAP16[1]=25459;if(HEAPU8[2]!==115||HEAPU8[3]!==99)throw"Runtime error: expected the system to be little-endian!";Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Runtime.dynCall("v",func)}else{Runtime.dynCall("vi",func,[callback.arg])}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){checkStackCookie();if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){checkStackCookie();callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){checkStackCookie();callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}function postRun(){checkStackCookie();if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.");chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){Runtime.warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!");var lastChar,end;if(dontAddNull){end=buffer+lengthBytesUTF8(string);lastChar=HEAP8[end]}stringToUTF8(string,buffer,Infinity);if(dontAddNull)HEAP8[end]=lastChar}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){assert(str.charCodeAt(i)===str.charCodeAt(i)&255);HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];if(!Math["clz32"])Math["clz32"]=(function(x){x=x>>>0;for(var i=0;i<32;i++){if(x&1<<31-i)return i}return 32});Math.clz32=Math["clz32"];if(!Math["trunc"])Math["trunc"]=(function(x){return x<0?Math.ceil(x):Math.floor(x)});Math.trunc=Math["trunc"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_min=Math.min;var Math_clz32=Math.clz32;var Math_trunc=Math.trunc;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;var runDependencyTracking={};function getUniqueRunDependency(id){var orig=id;while(1){if(!runDependencyTracking[id])return id;id=orig+Math.random()}return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(id){assert(!runDependencyTracking[id]);runDependencyTracking[id]=1;if(runDependencyWatcher===null&&typeof setInterval!=="undefined"){runDependencyWatcher=setInterval((function(){if(ABORT){clearInterval(runDependencyWatcher);runDependencyWatcher=null;return}var shown=false;for(var dep in runDependencyTracking){if(!shown){shown=true;Module.printErr("still waiting on run dependencies:")}Module.printErr("dependency: "+dep)}if(shown){Module.printErr("(end of list)")}}),1e4)}}else{Module.printErr("warning: run dependency added without ID")}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(id){assert(runDependencyTracking[id]);delete runDependencyTracking[id]}else{Module.printErr("warning: run dependency removed without ID")}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};var ASM_CONSTS=[];STATIC_BASE=8;STATICTOP=STATIC_BASE+73360;__ATINIT__.push({func:(function(){_GNUNET_util_cl_init()})},{func:(function(){_GNUNET_CRYPTO_random_init()})},{func:(function(){_gpg_err_init()})},{func:(function(){_TALER_gcrypt_init()})});allocate([0,0,0,0,0,0,0,0,102,154,0,127,199,106,69,159,152,186,249,23,254,223,149,34,17,154,0,127,199,106,69,159,152,186,249,23,254,223,149,51,6,154,0,127,199,106,69,159,152,186,249,23,254,223,149,33,255,255,255,255,255,255,255,255,34,174,40,215,152,47,138,66,205,101,239,35,145,68,55,113,47,59,77,236,207,251,192,181,188,219,137,129,165,219,181,233,56,181,72,243,91,194,86,57,25,208,5,182,241,17,241,89,155,79,25,175,164,130,63,146,24,129,109,218,213,94,28,171,66,2,3,163,152,170,7,216,190,111,112,69,1,91,131,18,140,178,228,78,190,133,49,36,226,180,255,213,195,125,12,85,111,137,123,242,116,93,190,114,177,150,22,59,254,177,222,128,53,18,199,37,167,6,220,155,148,38,105,207,116,241,155,193,210,74,241,158,193,105,155,228,227,37,79,56,134,71,190,239,181,213,140,139,198,157,193,15,101,156,172,119,204,161,12,36,117,2,43,89,111,44,233,45,131,228,166,110,170,132,116,74,212,251,65,189,220,169,176,92,181,83,17,131,218,136,249,118,171,223,102,238,82,81,62,152,16,50,180,45,109,198,49,168,63,33,251,152,200,39,3,176,228,14,239,190,199,127,89,191,194,143,168,61,243,11,224,198,37,167,10,147,71,145,167,213,111,130,3,224,81,99,202,6,112,110,14,10,103,41,41,20,252,47,210,70,133,10,183,39,38,201,38,92,56,33,27,46,237,42,196,90,252,109,44,77,223,179,149,157,19,13,56,83,222,99,175,139,84,115,10,101,168,178,119,60,187,10,106,118,230,174,237,71,46,201,194,129,59,53,130,20,133,44,114,146,100,3,241,76,161,232,191,162,1,48,66,188,75,102,26,168,145,151,248,208,112,139,75,194,48,190,84,6,163,81,108,199,24,82,239,214,25,232,146,209,16,169,101,85,36,6,153,214,42,32,113,87,133,53,14,244,184,209,187,50,112,160,106,16,200,208,210,184,22,193,164,25,83,171,65,81,8,108,55,30,153,235,142,223,76,119,72,39,168,72,155,225,181,188,176,52,99,90,201,197,179,12,28,57,203,138,65,227,74,170,216,78,115,227,99,119,79,202,156,91,163,184,178,214,243,111,46,104,252,178,239,93,238,130,143,116,96,47,23,67,111,99,165,120,114,171,240,161,20,120,200,132,236,57,100,26,8,2,199,140,40,30,99,35,250,255,190,144,233,189,130,222,235,108,80,164,21,121,198,178,247,163,249,190,43,83,114,227,242,120,113,198,156,97,38,234,206,62,39,202,7,194,192,33,199,184,134,209,30,235,224,205,214,125,218,234,120,209,110,238,127,79,125,245,186,111,23,114,170,103,240,6,166,152,200,162,197,125,99,10,174,13,249,190,4,152,63,17,27,71,28,19,53,11,113,27,132,125,4,35,245,119,219,40,147,36,199,64,123,171,202,50,188,190,201,21,10,190,158,60,76,13,16,156,196,103,29,67,182,66,62,203,190,212,197,76,42,126,101,252,156,41,127,89,236,250,214,58,171,111,203,95,23,88,71,74,140,25,68,108,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,102,85,0,0,255,255,255,255,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,37,89,0,0,2,0,0,0,49,89,0,0,4,0,0,0,61,89,0,0,8,0,0,0,73,89,0,0,16,0,0,0,86,89,0,0,32,0,0,0,96,89,0,0,64,0,0,0,107,89,0,0,128,0,0,0,119,89,0,0,0,1,0,0,132,89,0,0,0,2,0,0,144,89,0,0,0,4,0,0,157,89,0,0,0,8,0,0,167,89,0,0,0,16,0,0,178,89,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,17,0,0,0,0,0,0,0,2,0,0,0,11,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,2,0,0,0,11,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,2,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,0,0,0,0,164,17,0,0,220,28,0,0,80,29,0,0,176,32,0,0,240,48,0,0,0,0,0,0,210,140,0,0,0,1,0,0,0,0,0,0,2,0,0,0,1,0,0,0,102,96,0,0,169,96,0,0,175,96,0,0,243,96,0,0,54,97,0,0,121,97,0,0,188,97,0,0,193,97,0,0,192,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,204,97,0,0,255,97,0,0,50,98,0,0,101,98,0,0,152,98,0,0,203,98,0,0,254,98,0,0,3,99,0,0,224,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,14,99,0,0,73,99,0,0,132,99,0,0,191,99,0,0,250,99,0,0,53,100,0,0,254,98,0,0,112,100,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,123,100,0,0,190,100,0,0,1,101,0,0,68,101,0,0,135,101,0,0,202,101,0,0,254,98,0,0,13,102,0,0,128,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,24,102,0,0,123,102,0,0,222,102,0,0,65,103,0,0,164,103,0,0,7,104,0,0,254,98,0,0,106,104,0,0,9,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,117,104,0,0,252,104,0,0,131,105,0,0,9,106,0,0,143,106,0,0,22,107,0,0,254,98,0,0,157,107,0,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,173,107,0,0,216,107,0,0,3,108,0,0,46,108,0,0,89,108,0,0,132,108,0,0,254,98,0,0,175,108,0,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,191,108,0,0,242,108,0,0,37,109,0,0,88,109,0,0,139,109,0,0,190,109,0,0,254,98,0,0,241,109,0,0,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,110,0,0,60,110,0,0,119,110,0,0,178,110,0,0,237,110,0,0,40,111,0,0,254,98,0,0,99,111,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,111,0,0,182,111,0,0,249,111,0,0,60,112,0,0,127,112,0,0,194,112,0,0,254,98,0,0,5,113,0,0,64,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,113,0,0,104,113,0,0,187,113,0,0,14,114,0,0,97,114,0,0,180,114,0,0,254,98,0,0,7,115,0,0,128,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,115,0,0,122,115,0,0,221,115,0,0,64,116,0,0,163,116,0,0,6,117,0,0,254,98,0,0,105,117,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,121,117,0,0,252,117,0,0,127,118,0,0,2,119,0,0,133,119,0,0,8,120,0,0,254,98,0,0,139,120,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,153,120,0,0,220,120,0,0,31,121,0,0,98,121,0,0,165,121,0,0,232,121,0,0,254,98,0,0,43,122,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,122,0,0,131,122,0,0,198,122,0,0,9,123,0,0,76,123,0,0,143,123,0,0,254,98,0,0,210,123,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,231,123,0,0,42,124,0,0,109,124,0,0,176,124,0,0,76,123,0,0,243,124,0,0,254,98,0,0,54,125,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,75,125,0,0,142,125,0,0,209,125,0,0,20,126,0,0,87,126,0,0,154,126,0,0,254,98,0,0,221,126,0,0,255,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,235,126,0,0,220,120,0,0,110,127,0,0,241,127,0,0,116,128,0,0,247,128,0,0,254,98,0,0,122,129,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,138,129,0,0,13,130,0,0,144,130,0,0,19,131,0,0,150,131,0,0,25,132,0,0,254,98,0,0,156,132,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,132,0,0,47,133,0,0,178,133,0,0,53,134,0,0,184,134,0,0,59,135,0,0,254,98,0,0,190,135,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,200,135,0,0,87,126,0,0,220,120,0,0,11,136,0,0,78,136,0,0,145,136,0,0,254,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,140,0,0,212,136,0,0,193,97,0,0,235,136,0,0,193,97,0,0,255,136,0,0,193,97,0,0,10,137,0,0,193,97,0,0,20,137,0,0,3,99,0,0,29,137,0,0,3,99,0,0,39,137,0,0,3,99,0,0,52,137,0,0,112,100,0,0,61,137,0,0,112,100,0,0,81,137,0,0,112,100,0,0,92,137,0,0,112,100,0,0,102,137,0,0,13,102,0,0,111,137,0,0,13,102,0,0,121,137,0,0,13,102,0,0,134,137,0,0,106,104,0,0,143,137,0,0,106,104,0,0,153,137,0,0,106,104,0,0,166,137,0,0,157,107,0,0,175,137,0,0,175,108,0,0,196,137,0,0,241,109,0,0,217,137,0,0,99,111,0,0,238,137,0,0,5,113,0,0,3,138,0,0,7,115,0,0,24,138,0,0,105,117,0,0,46,138,0,0,139,120,0,0,68,138,0,0,43,122,0,0,85,138,0,0,210,123,0,0,102,138,0,0,54,125,0,0,119,138,0,0,43,122,0,0,136,138,0,0,54,125,0,0,160,138,0,0,43,122,0,0,184,138,0,0,54,125,0,0,201,138,0,0,122,129,0,0,218,138,0,0,156,132,0,0,238,138,0,0,190,135,0,0,2,139,0,0,0,0,0,0,0,0,0,0,110,141,0,0,124,141,0,0,153,141,0,0,22,75,122,123,252,248,25,226,227,149,251,231,59,86,224,163,135,189,100,34,46,131,31,214,16,39,12,215,234,37,5,84,151,88,191,117,192,90,153,74,109,3,79,101,248,240,230,253,202,234,177,163,77,74,107,75,99,110,7,10,56,188,231,55,158,141,0,0,172,141,0,0,181,141,0,0,135,170,124,222,165,239,97,157,79,240,180,36,26,29,108,176,35,121,244,226,206,78,194,120,122,208,179,5,69,225,124,222,218,168,51,183,214,184,167,2,3,139,39,78,174,163,244,228,190,157,145,78,235,97,241,112,46,105,108,32,58,18,104,84,202,141,0,0,217,141,0,0,12,142,0,0,250,115,176,8,157,86,162,132,239,176,240,117,108,137,11,233,177,181,219,221,142,232,26,54,85,248,62,51,178,39,157,57,191,62,132,130,121,167,34,200,6,180,133,164,126,103,200,7,185,70,163,55,190,232,148,38,116,39,136,89,225,50,146,251,33,142,0,0,48,142,0,0,99,142,0,0,176,186,70,86,55,69,140,105,144,229,168,197,246,29,74,247,229,118,217,127,249,75,135,45,231,111,128,80,54,30,227,219,169,28,165,193,26,162,94,180,214,121,39,92,197,120,128,99,165,241,151,65,18,12,79,45,226,173,235,235,16,162,152,221,125,142,0,0,141,142,0,0,196,142,0,0,128,178,66,99,199,193,163,235,183,20,147,193,221,123,232,180,155,70,209,244,27,74,238,193,18,27,1,55,131,248,243,82,107,86,208,55,224,95,37,152,189,15,210,33,93,106,30,82,149,230,79,115,246,63,10,236,139,145,90,152,93,120,101,152,72,143,0,0,89,143,0,0,196,142,0,0,227,123,106,119,93,200,125,186,164,223,169,249,110,94,63,253,222,189,113,248,134,114,137,134,93,245,163,45,32,205,201,68,182,2,44,172,60,73,130,177,13,94,235,85,195,228,222,21,19,70,118,251,109,224,68,96,101,201,116,64,250,140,106,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,110,141,0,0,124,141,0,0,153,141,0,0,175,69,210,227,118,72,64,49,97,127,120,210,181,138,107,27,156,126,244,100,245,160,27,71,228,46,195,115,99,34,68,94,142,34,64,202,94,105,226,199,139,50,57,236,250,178,22,73,158,141,0,0,172,141,0,0,181,141,0,0,175,208,57,68,216,72,149,98,107,8,37,244,171,70,144,127,21,249,218,219,228,16,30,198,130,170,3,76,124,235,197,156,250,234,158,169,7,110,222,127,74,241,82,232,178,250,156,182,202,141,0,0,217,141,0,0,12,142,0,0,136,6,38,8,211,230,173,138,10,162,172,224,20,200,168,111,10,166,53,217,71,172,159,235,232,62,244,229,89,102,20,75,42,90,179,157,193,56,20,185,78,58,182,225,1,163,79,39,33,142,0,0,48,142,0,0,99,142,0,0,62,138,105,183,120,60,37,133,25,51,171,98,144,175,108,167,122,153,129,72,8,80,0,156,197,87,124,110,31,87,59,78,104,1,221,35,196,167,214,121,204,248,163,134,198,116,207,251,125,142,0,0,141,142,0,0,196,142,0,0,78,206,8,68,133,129,62,144,136,210,198,58,4,27,197,180,79,158,241,1,42,43,88,143,60,209,31,5,3,58,196,198,12,46,246,171,64,48,254,130,150,36,141,241,99,244,73,82,72,143,0,0,89,143,0,0,196,142,0,0,102,23,23,142,148,31,2,13,53,30,47,37,78,143,211,44,96,36,32,254,176,184,251,154,220,206,187,130,70,30,153,197,166,120,204,49,231,153,23,109,56,96,230,17,12,70,82,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,110,141,0,0,124,141,0,0,153,141,0,0,91,220,193,70,191,96,117,78,106,4,36,38,8,149,117,199,90,0,63,8,157,39,57,131,157,236,88,185,100,236,56,67,158,141,0,0,172,141,0,0,181,141,0,0,176,52,76,97,216,219,56,83,92,168,175,206,175,11,241,43,136,29,194,0,201,131,61,167,38,233,55,108,46,50,207,247,202,141,0,0,217,141,0,0,12,142,0,0,119,62,169,30,54,128,14,70,133,77,184,235,208,145,129,167,41,89,9,139,62,248,193,34,217,99,85,20,206,213,101,254,33,142,0,0,48,142,0,0,99,142,0,0,130,85,138,56,154,68,60,14,164,204,129,152,153,242,8,58,133,240,250,163,229,120,248,7,122,46,63,244,103,41,102,91,125,142,0,0,141,142,0,0,196,142,0,0,96,228,49,89,30,224,182,127,13,138,38,170,203,245,183,127,142,11,198,33,55,40,197,20,5,70,4,15,14,227,127,84,72,143,0,0,89,143,0,0,196,142,0,0,155,9,255,167,27,148,47,203,39,99,95,188,213,176,233,68,191,220,99,100,79,7,19,147,138,127,81,83,92,58,53,226,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,110,141,0,0,124,141,0,0,153,141,0,0,163,14,1,9,139,198,219,191,69,105,15,58,126,158,109,15,139,190,162,163,158,97,72,0,143,208,94,68,158,141,0,0,172,141,0,0,181,141,0,0,137,111,177,18,138,187,223,25,104,50,16,124,212,157,243,63,71,180,177,22,153,18,186,79,83,104,75,34,202,141,0,0,217,141,0,0,12,142,0,0,127,179,203,53,136,198,193,246,255,169,105,77,125,106,210,100,147,101,176,193,246,93,105,209,236,131,51,234,33,142,0,0,48,142,0,0,99,142,0,0,108,17,80,104,116,1,60,172,106,42,188,27,179,130,98,124,236,106,144,216,110,252,1,45,231,175,236,90,125,142,0,0,141,142,0,0,196,142,0,0,149,233,160,219,150,32,149,173,174,190,155,45,111,13,188,226,212,153,241,18,242,210,183,39,63,166,135,14,72,143,0,0,89,143,0,0,196,142,0,0,58,133,65,102,172,93,159,2,63,84,213,23,208,179,157,189,148,103,112,219,156,43,149,201,246,245,101,209,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,30,0,0,240,31,0,0,180,30,0,0,48,32,0,0,112,32,0,0,196,29,0,0,0,0,0,0,156,2,0,0,247,147,0,0,2,0,0,0,252,147,0,0,1,0,0,0,0,148,0,0,8,0,0,0,7,148,0,0,3,0,0,0,17,148,0,0,3,0,0,0,24,148,0,0,9,0,0,0,31,148,0,0,10,0,0,0,38,148,0,0,11,0,0,0,45,148,0,0,5,0,0,0,49,148,0,0,45,1,0,0,53,148,0,0,6,0,0,0,59,148,0,0,7,0,0,0,0,0,0,0,0,0,0,0,92,50,0,0,4,30,0,0,0,0,0,0,7,0,0,0,2,0,0,0,187,148,0,0,228,17,0,0,244,17,0,0,16,0,0,0,128,0,0,0,248,1,0,0,1,0,0,0,2,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,3,151,0,0,12,151,0,0,19,151,0,0,0,0,0,0,167,150,0,0,1,0,0,0,190,150,0,0,3,0,0,0,213,150,0,0,5,0,0,0,236,150,0,0,2,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,43,126,21,22,40,174,210,166,171,247,21,136,9,207,79,60,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,107,193,190,226,46,64,159,150,233,61,126,17,115,147,23,42,59,63,217,46,183,45,173,32,51,52,73,248,232,60,251,74,174,45,138,87,30,3,172,156,158,183,111,172,69,175,142,81,200,166,69,55,160,179,169,63,205,227,205,173,159,28,229,139,48,200,28,70,163,92,228,17,229,251,193,25,26,10,82,239,38,117,31,103,163,203,177,64,177,128,140,241,135,164,244,223,246,159,36,69,223,79,155,23,173,43,65,123,230,108,55,16,192,75,5,53,124,93,28,14,234,196,198,111,159,247,242,230,5,0,0,0,43,126,21,22,40,174,210,166,171,247,21,136,9,207,79,60,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,107,193,190,226,46,64,159,150,233,61,126,17,115,147,23,42,59,63,217,46,183,45,173,32,51,52,73,248,232,60,251,74,174,45,138,87,30,3,172,156,158,183,111,172,69,175,142,81,119,137,80,141,22,145,143,3,245,60,82,218,197,78,216,37,48,200,28,70,163,92,228,17,229,251,193,25,26,10,82,239,151,64,5,30,156,95,236,246,67,68,247,168,34,96,237,204,246,159,36,69,223,79,155,23,173,43,65,123,230,108,55,16,48,76,101,40,246,89,199,120,102,165,16,217,193,214,174,94,198,99,99,165,248,124,124,132,238,119,119,153,246,123,123,141,255,242,242,13,214,107,107,189,222,111,111,177,145,197,197,84,96,48,48,80,2,1,1,3,206,103,103,169,86,43,43,125,231,254,254,25,181,215,215,98,77,171,171,230,236,118,118,154,143,202,202,69,31,130,130,157,137,201,201,64,250,125,125,135,239,250,250,21,178,89,89,235,142,71,71,201,251,240,240,11,65,173,173,236,179,212,212,103,95,162,162,253,69,175,175,234,35,156,156,191,83,164,164,247,228,114,114,150,155,192,192,91,117,183,183,194,225,253,253,28,61,147,147,174,76,38,38,106,108,54,54,90,126,63,63,65,245,247,247,2,131,204,204,79,104,52,52,92,81,165,165,244,209,229,229,52,249,241,241,8,226,113,113,147,171,216,216,115,98,49,49,83,42,21,21,63,8,4,4,12,149,199,199,82,70,35,35,101,157,195,195,94,48,24,24,40,55,150,150,161,10,5,5,15,47,154,154,181,14,7,7,9,36,18,18,54,27,128,128,155,223,226,226,61,205,235,235,38,78,39,39,105,127,178,178,205,234,117,117,159,18,9,9,27,29,131,131,158,88,44,44,116,52,26,26,46,54,27,27,45,220,110,110,178,180,90,90,238,91,160,160,251,164,82,82,246,118,59,59,77,183,214,214,97,125,179,179,206,82,41,41,123,221,227,227,62,94,47,47,113,19,132,132,151,166,83,83,245,185,209,209,104,0,0,0,0,193,237,237,44,64,32,32,96,227,252,252,31,121,177,177,200,182,91,91,237,212,106,106,190,141,203,203,70,103,190,190,217,114,57,57,75,148,74,74,222,152,76,76,212,176,88,88,232,133,207,207,74,187,208,208,107,197,239,239,42,79,170,170,229,237,251,251,22,134,67,67,197,154,77,77,215,102,51,51,85,17,133,133,148,138,69,69,207,233,249,249,16,4,2,2,6,254,127,127,129,160,80,80,240,120,60,60,68,37,159,159,186,75,168,168,227,162,81,81,243,93,163,163,254,128,64,64,192,5,143,143,138,63,146,146,173,33,157,157,188,112,56,56,72,241,245,245,4,99,188,188,223,119,182,182,193,175,218,218,117,66,33,33,99,32,16,16,48,229,255,255,26,253,243,243,14,191,210,210,109,129,205,205,76,24,12,12,20,38,19,19,53,195,236,236,47,190,95,95,225,53,151,151,162,136,68,68,204,46,23,23,57,147,196,196,87,85,167,167,242,252,126,126,130,122,61,61,71,200,100,100,172,186,93,93,231,50,25,25,43,230,115,115,149,192,96,96,160,25,129,129,152,158,79,79,209,163,220,220,127,68,34,34,102,84,42,42,126,59,144,144,171,11,136,136,131,140,70,70,202,199,238,238,41,107,184,184,211,40,20,20,60,167,222,222,121,188,94,94,226,22,11,11,29,173,219,219,118,219,224,224,59,100,50,50,86,116,58,58,78,20,10,10,30,146,73,73,219,12,6,6,10,72,36,36,108,184,92,92,228,159,194,194,93,189,211,211,110,67,172,172,239,196,98,98,166,57,145,145,168,49,149,149,164,211,228,228,55,242,121,121,139,213,231,231,50,139,200,200,67,110,55,55,89,218,109,109,183,1,141,141,140,177,213,213,100,156,78,78,210,73,169,169,224,216,108,108,180,172,86,86,250,243,244,244,7,207,234,234,37,202,101,101,175,244,122,122,142,71,174,174,233,16,8,8,24,111,186,186,213,240,120,120,136,74,37,37,111,92,46,46,114,56,28,28,36,87,166,166,241,115,180,180,199,151,198,198,81,203,232,232,35,161,221,221,124,232,116,116,156,62,31,31,33,150,75,75,221,97,189,189,220,13,139,139,134,15,138,138,133,224,112,112,144,124,62,62,66,113,181,181,196,204,102,102,170,144,72,72,216,6,3,3,5,247,246,246,1,28,14,14,18,194,97,97,163,106,53,53,95,174,87,87,249,105,185,185,208,23,134,134,145,153,193,193,88,58,29,29,39,39,158,158,185,217,225,225,56,235,248,248,19,43,152,152,179,34,17,17,51,210,105,105,187,169,217,217,112,7,142,142,137,51,148,148,167,45,155,155,182,60,30,30,34,21,135,135,146,201,233,233,32,135,206,206,73,170,85,85,255,80,40,40,120,165,223,223,122,3,140,140,143,89,161,161,248,9,137,137,128,26,13,13,23,101,191,191,218,215,230,230,49,132,66,66,198,208,104,104,184,130,65,65,195,41,153,153,176,90,45,45,119,30,15,15,17,123,176,176,203,168,84,84,252,109,187,187,214,44,22,22,58,81,244,167,80,126,65,101,83,26,23,164,195,58,39,94,150,59,171,107,203,31,157,69,241,172,250,88,171,75,227,3,147,32,48,250,85,173,118,109,246,136,204,118,145,245,2,76,37,79,229,215,252,197,42,203,215,38,53,68,128,181,98,163,143,222,177,90,73,37,186,27,103,69,234,14,152,93,254,192,225,195,47,117,2,129,76,240,18,141,70,151,163,107,211,249,198,3,143,95,231,21,146,156,149,191,109,122,235,149,82,89,218,212,190,131,45,88,116,33,211,73,224,105,41,142,201,200,68,117,194,137,106,244,142,121,120,153,88,62,107,39,185,113,221,190,225,79,182,240,136,173,23,201,32,172,102,125,206,58,180,99,223,74,24,229,26,49,130,151,81,51,96,98,83,127,69,177,100,119,224,187,107,174,132,254,129,160,28,249,8,43,148,112,72,104,88,143,69,253,25,148,222,108,135,82,123,248,183,171,115,211,35,114,75,2,226,227,31,143,87,102,85,171,42,178,235,40,7,47,181,194,3,134,197,123,154,211,55,8,165,48,40,135,242,35,191,165,178,2,3,106,186,237,22,130,92,138,207,28,43,167,121,180,146,243,7,242,240,78,105,226,161,101,218,244,205,6,5,190,213,209,52,98,31,196,166,254,138,52,46,83,157,162,243,85,160,5,138,225,50,164,246,235,117,11,131,236,57,64,96,239,170,94,113,159,6,189,110,16,81,62,33,138,249,150,221,6,61,221,62,5,174,77,230,189,70,145,84,141,181,113,196,93,5,4,6,212,111,96,80,21,255,25,152,251,36,214,189,233,151,137,64,67,204,103,217,158,119,176,232,66,189,7,137,139,136,231,25,91,56,121,200,238,219,161,124,10,71,124,66,15,233,248,132,30,201,0,0,0,0,9,128,134,131,50,43,237,72,30,17,112,172,108,90,114,78,253,14,255,251,15,133,56,86,61,174,213,30,54,45,57,39,10,15,217,100,104,92,166,33,155,91,84,209,36,54,46,58,12,10,103,177,147,87,231,15,180,238,150,210,27,155,145,158,128,192,197,79,97,220,32,162,90,119,75,105,28,18,26,22,226,147,186,10,192,160,42,229,60,34,224,67,18,27,23,29,14,9,13,11,242,139,199,173,45,182,168,185,20,30,169,200,87,241,25,133,175,117,7,76,238,153,221,187,163,127,96,253,247,1,38,159,92,114,245,188,68,102,59,197,91,251,126,52,139,67,41,118,203,35,198,220,182,237,252,104,184,228,241,99,215,49,220,202,66,99,133,16,19,151,34,64,132,198,17,32,133,74,36,125,210,187,61,248,174,249,50,17,199,41,161,109,29,158,47,75,220,178,48,243,13,134,82,236,119,193,227,208,43,179,22,108,169,112,185,153,17,148,72,250,71,233,100,34,168,252,140,196,160,240,63,26,86,125,44,216,34,51,144,239,135,73,78,199,217,56,209,193,140,202,162,254,152,212,11,54,166,245,129,207,165,122,222,40,218,183,142,38,63,173,191,164,44,58,157,228,80,120,146,13,106,95,204,155,84,126,70,98,246,141,19,194,144,216,184,232,46,57,247,94,130,195,175,245,159,93,128,190,105,208,147,124,111,213,45,169,207,37,18,179,200,172,153,59,16,24,125,167,232,156,99,110,219,59,187,123,205,38,120,9,110,89,24,244,236,154,183,1,131,79,154,168,230,149,110,101,170,255,230,126,33,188,207,8,239,21,232,230,186,231,155,217,74,111,54,206,234,159,9,212,41,176,124,214,49,164,178,175,42,63,35,49,198,165,148,48,53,162,102,192,116,78,188,55,252,130,202,166,224,144,208,176,51,167,216,21,241,4,152,74,65,236,218,247,127,205,80,14,23,145,246,47,118,77,214,141,67,239,176,77,204,170,77,84,228,150,4,223,158,209,181,227,76,106,136,27,193,44,31,184,70,101,81,127,157,94,234,4,1,140,53,93,250,135,116,115,251,11,65,46,179,103,29,90,146,219,210,82,233,16,86,51,109,214,71,19,154,215,97,140,55,161,12,122,89,248,20,142,235,19,60,137,206,169,39,238,183,97,201,53,225,28,229,237,122,71,177,60,156,210,223,89,85,242,115,63,24,20,206,121,115,199,55,191,83,247,205,234,95,253,170,91,223,61,111,20,120,68,219,134,202,175,243,129,185,104,196,62,56,36,52,44,194,163,64,95,22,29,195,114,188,226,37,12,40,60,73,139,255,13,149,65,57,168,1,113,8,12,179,222,216,180,228,156,100,86,193,144,123,203,132,97,213,50,182,112,72,108,92,116,208,184,87,66,82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125,1,0,0,0,2,0,0,0,4,0,0,0,8,0,0,0,16,0,0,0,32,0,0,0,64,0,0,0,128,0,0,0,27,0,0,0,54,0,0,0,108,0,0,0,216,0,0,0,171,0,0,0,77,0,0,0,154,0,0,0,47,0,0,0,94,0,0,0,188,0,0,0,99,0,0,0,198,0,0,0,151,0,0,0,53,0,0,0,106,0,0,0,212,0,0,0,179,0,0,0,125,0,0,0,250,0,0,0,239,0,0,0,197,0,0,0,145,0,0,0,8,0,0,0,2,0,0,0,27,151,0,0,28,29,0,0,40,29,0,0,16,0,0,0,192,0,0,0,248,1,0,0,1,0,0,0,2,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,130,151,0,0,142,151,0,0,0,0,0,0,34,151,0,0,1,0,0,0,58,151,0,0,3,0,0,0,82,151,0,0,5,0,0,0,106,151,0,0,2,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,2,0,0,0,150,151,0,0,144,29,0,0,156,29,0,0,16,0,0,0,0,1,0,0,248,1,0,0,1,0,0,0,2,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,253,151,0,0,9,152,0,0,0,0,0,0,157,151,0,0,1,0,0,0,181,151,0,0,3,0,0,0,205,151,0,0,5,0,0,0,229,151,0,0,2,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,17,152,0,0,27,152,0,0,15,0,0,0,248,29,0,0,20,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,184,0,0,0,0,0,0,0,42,152,0,0,57,152,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,189,153,0,0,88,30,0,0,193,153,0,0,196,153,0,0,203,153,0,0,205,153,0,0,207,153,0,0,1,0,0,0,2,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,3,0,0,0,9,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,255,159,0,0,27,165,0,0,39,165,0,0,0,0,0,0,2,0,0,0,2,0,0,0,64,165,0,0,69,165,0,0,15,0,0,0,156,30,0,0,20,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,184,0,0,0,10,0,0,0,147,165,0,0,168,165,0,0,186,165,0,0,200,165,0,0,214,165,0,0,0,0,0,0,11,0,0,0,2,0,0,0,232,165,0,0,239,165,0,0,19,0,0,0,232,30,0,0,28,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,5,0,0,0,192,0,0,0,11,0,0,0,245,166,0,0,0,0,0,0,152,47,138,66,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,241,155,193,193,105,155,228,134,71,190,239,198,157,193,15,204,161,12,36,111,44,233,45,170,132,116,74,220,169,176,92,218,136,249,118,82,81,62,152,109,198,49,168,200,39,3,176,199,127,89,191,243,11,224,198,71,145,167,213,81,99,202,6,103,41,41,20,133,10,183,39,56,33,27,46,252,109,44,77,19,13,56,83,84,115,10,101,187,10,106,118,46,201,194,129,133,44,114,146,161,232,191,162,75,102,26,168,112,139,75,194,163,81,108,199,25,232,146,209,36,6,153,214,133,53,14,244,112,160,106,16,22,193,164,25,8,108,55,30,76,119,72,39,181,188,176,52,179,12,28,57,74,170,216,78,79,202,156,91,243,111,46,104,238,130,143,116,111,99,165,120,20,120,200,132,8,2,199,140,250,255,190,144,235,108,80,164,247,163,249,190,242,120,113,198,8,0,0,0,2,0,0,0,12,167,0,0,19,167,0,0,19,0,0,0,36,32,0,0,32,0,0,0,4,0,0,0,1,0,0,0,3,0,0,0,5,0,0,0,192,0,0,0,11,0,0,0,38,167,0,0,61,167,0,0,0,0,0,0,10,0,0,0,2,0,0,0,83,167,0,0,90,167,0,0,19,0,0,0,100,32,0,0,64,0,0,0,5,0,0,0,1,0,0,0,4,0,0,0,6,0,0,0,224,0,0,0,12,0,0,0,104,169,0,0,127,169,0,0,0,0,0,0,9,0,0,0,2,0,0,0,149,169,0,0,156,169,0,0,19,0,0,0,164,32,0,0,48,0,0,0,6,0,0,0,1,0,0,0,4,0,0,0,6,0,0,0,224,0,0,0,12,0,0,0,175,169,0,0,198,169,0,0,0,0,0,0,10,0,0,0,0,0,0,0,220,169,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,1,0,0,160,16,0,0,13,0,0,0,14,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,117,50,188,188,243,33,236,236,198,67,32,32,244,201,179,179,219,3,218,218,123,139,2,2,251,43,226,226,200,250,158,158,74,236,201,201,211,9,212,212,230,107,24,24,107,159,30,30,69,14,152,152,125,56,178,178,232,210,166,166,75,183,38,38,214,87,60,60,50,138,147,147,216,238,130,130,253,152,82,82,55,212,123,123,113,55,187,187,241,151,91,91,225,131,71,71,48,60,36,36,15,226,81,81,248,198,186,186,27,243,74,74,135,72,191,191,250,112,13,13,6,179,176,176,63,222,117,117,94,253,210,210,186,32,125,125,174,49,102,102,91,163,58,58,138,28,89,89,0,0,0,0,188,147,205,205,157,224,26,26,109,44,174,174,193,171,127,127,177,199,43,43,14,185,190,190,128,160,224,224,93,16,138,138,210,82,59,59,213,186,100,100,160,136,216,216,132,165,231,231,7,232,95,95,20,17,27,27,181,194,44,44,144,180,252,252,44,39,49,49,163,101,128,128,178,42,115,115,115,129,12,12,76,95,121,121,84,65,107,107,146,2,75,75,116,105,83,83,54,143,148,148,81,31,131,131,56,54,42,42,176,156,196,196,189,200,34,34,90,248,213,213,252,195,189,189,96,120,72,72,98,206,255,255,150,7,76,76,108,119,65,65,66,230,199,199,247,36,235,235,16,20,28,28,124,99,93,93,40,34,54,54,39,192,103,103,140,175,233,233,19,249,68,68,149,234,20,20,156,187,245,245,199,24,207,207,36,45,63,63,70,227,192,192,59,219,114,114,112,108,84,84,202,76,41,41,227,53,240,240,133,254,8,8,203,23,198,198,17,79,243,243,208,228,140,140,147,89,164,164,184,150,202,202,166,59,104,104,131,77,184,184,32,40,56,56,255,46,229,229,159,86,173,173,119,132,11,11,195,29,200,200,204,255,153,153,3,237,88,88,111,154,25,25,8,10,14,14,191,126,149,149,64,80,112,112,231,48,247,247,43,207,110,110,226,110,31,31,121,61,181,181,12,15,9,9,170,52,97,97,130,22,87,87,65,11,159,159,58,128,157,157,234,100,17,17,185,205,37,37,228,221,175,175,154,8,69,69,164,141,223,223,151,92,163,163,126,213,234,234,218,88,53,53,122,208,237,237,23,252,67,67,102,203,248,248,148,177,251,251,161,211,55,55,29,64,250,250,61,104,194,194,240,204,180,180,222,93,50,50,179,113,156,156,11,231,86,86,114,218,227,227,167,96,135,135,28,27,21,21,239,58,249,249,209,191,99,99,83,169,52,52,62,133,154,154,143,66,177,177,51,209,124,124,38,155,136,136,95,166,61,61,236,215,161,161,118,223,228,228,42,148,129,129,73,1,145,145,129,251,15,15,136,170,238,238,238,97,22,22,33,115,215,215,196,245,151,151,26,168,165,165,235,63,254,254,217,181,109,109,197,174,120,120,57,109,197,197,153,229,29,29,205,164,118,118,173,220,62,62,49,103,203,203,139,71,182,182,1,91,239,239,24,30,18,18,35,197,96,96,221,176,106,106,31,246,77,77,78,233,206,206,45,124,222,222,249,157,85,85,72,90,126,126,79,178,33,33,242,122,3,3,101,38,160,160,142,25,94,94,120,102,90,90,92,75,101,101,88,78,98,98,25,69,253,253,141,244,6,6,229,134,64,64,152,190,242,242,87,172,51,51,103,144,23,23,127,142,5,5,5,94,232,232,100,125,79,79,175,106,137,137,99,149,16,16,182,47,116,116,254,117,10,10,245,146,92,92,183,116,155,155,60,51,45,45,165,214,48,48,206,73,46,46,233,137,73,73,104,114,70,70,68,85,119,119,224,216,168,168,77,4,150,150,67,189,40,40,105,41,169,169,41,121,217,217,46,145,134,134,172,135,209,209,21,74,244,244,89,21,141,141,168,130,214,214,10,188,185,185,158,13,66,66,110,193,246,246,71,184,47,47,223,6,221,221,52,57,35,35,53,98,204,204,106,196,241,241,207,18,193,193,220,235,133,133,34,158,143,143,201,161,113,113,192,240,144,144,155,83,170,170,137,241,1,1,212,225,139,139,237,140,78,78,171,111,142,142,18,162,171,171,162,62,111,111,13,84,230,230,82,242,219,219,187,123,146,146,2,182,183,183,47,202,105,105,169,217,57,57,215,12,211,211,97,35,167,167,30,173,162,162,180,153,195,195,80,68,108,108,4,5,7,7,246,127,4,4,194,70,39,39,22,167,172,172,37,118,208,208,134,19,80,80,86,247,220,220,85,26,132,132,9,81,225,225,190,37,122,122,145,239,19,19,57,57,217,169,23,23,144,103,156,156,113,179,166,166,210,232,7,7,5,4,82,82,152,253,128,128,101,163,228,228,223,118,69,69,8,154,75,75,2,146,224,224,160,128,90,90,102,120,175,175,221,228,106,106,176,221,99,99,191,209,42,42,54,56,230,230,84,13,32,32,67,198,204,204,98,53,242,242,190,152,18,18,30,24,235,235,36,247,161,161,215,236,65,65,119,108,40,40,189,67,188,188,50,117,123,123,212,55,136,136,155,38,13,13,112,250,68,68,249,19,251,251,177,148,126,126,90,72,3,3,122,242,140,140,228,208,182,182,71,139,36,36,60,48,231,231,165,132,107,107,65,84,221,221,6,223,96,96,197,35,253,253,69,25,58,58,163,91,194,194,104,61,141,141,21,89,236,236,33,243,102,102,49,174,111,111,62,162,87,87,22,130,16,16,149,99,239,239,91,1,184,184,77,131,134,134,145,46,109,109,181,217,131,131,31,81,170,170,83,155,93,93,99,124,104,104,59,166,254,254,63,235,48,48,214,165,122,122,37,190,172,172,167,22,9,9,15,12,240,240,53,227,167,167,35,97,144,144,240,192,233,233,175,140,157,157,128,58,92,92,146,245,12,12,129,115,49,49,39,44,208,208,118,37,86,86,231,11,146,146,123,187,206,206,233,78,1,1,241,137,30,30,159,107,52,52,169,83,241,241,196,106,195,195,153,180,91,91,151,241,71,71,131,225,24,24,107,230,34,34,200,189,152,152,14,69,31,31,110,226,179,179,201,244,116,116,47,182,248,248,203,102,153,153,255,204,20,20,234,149,88,88,237,3,220,220,247,86,139,139,225,212,21,21,27,28,162,162,173,30,211,211,12,215,226,226,43,251,200,200,29,195,94,94,25,142,44,44,194,181,73,73,137,233,193,193,18,207,149,149,126,191,125,125,32,186,17,17,100,234,11,11,132,119,197,197,109,57,137,137,106,175,124,124,209,51,113,113,161,201,255,255,206,98,187,187,55,113,15,15,251,129,181,181,61,121,225,225,81,9,62,62,220,173,63,63,45,36,118,118,164,205,85,85,157,249,130,130,238,216,64,64,134,229,120,120,174,197,37,37,205,185,150,150,4,77,119,119,85,68,14,14,10,8,80,80,19,134,247,247,48,231,55,55,211,161,250,250,64,29,97,97,52,170,78,78,140,237,176,176,179,6,84,84,108,112,115,115,42,178,59,59,82,210,159,159,11,65,2,2,139,123,216,216,136,160,243,243,79,17,203,203,103,49,39,39,70,194,103,103,192,39,252,252,180,144,56,56,40,32,4,4,127,246,72,72,120,96,229,229,46,255,76,76,7,150,101,101,75,92,43,43,199,177,142,142,111,171,66,66,13,158,245,245,187,156,219,219,242,82,74,74,243,27,61,61,166,95,164,164,89,147,185,185,188,10,249,249,58,239,19,19,239,145,8,8,254,133,145,145,1,73,22,22,97,238,222,222,124,45,33,33,178,79,177,177,66,143,114,114,219,59,47,47,184,71,191,191,72,135,174,174,44,109,192,192,227,70,60,60,87,214,154,154,133,62,169,169,41,105,79,79,125,100,129,129,148,42,46,46,73,206,198,198,23,203,105,105,202,47,189,189,195,252,163,163,92,151,232,232,94,5,237,237,208,122,209,209,135,172,5,5,142,127,100,100,186,213,165,165,168,26,38,38,183,75,190,190,185,14,135,135,96,167,213,213,248,90,54,54,34,40,27,27,17,20,117,117,222,63,217,217,121,41,238,238,170,136,45,45,51,60],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);allocate([121,121,95,76,183,183,182,2,202,202,150,184,53,53,88,218,196,196,156,176,67,67,252,23,132,132,26,85,77,77,246,31,89,89,28,138,178,178,56,125,51,51,172,87,207,207,24,199,6,6,244,141,83,83,105,116,155,155,116,183,151,151,245,196,173,173,86,159,227,227,218,114,234,234,213,126,244,244,74,21,143,143,158,34,171,171,162,18,98,98,78,88,95,95,232,7,29,29,229,153,35,35,57,52,246,246,193,110,108,108,68,80,50,50,93,222,70,70,114,104,160,160,38,101,205,205,147,188,218,218,3,219,186,186,198,248,158,158,250,200,214,214,130,168,110,110,207,43,112,112,80,64,133,133,235,220,10,10,117,254,147,147,138,50,223,223,141,164,41,41,76,202,28,28,20,16,215,215,115,33,180,180,204,240,212,212,9,211,138,138,16,93,81,81,226,15,0,0,0,0,25,25,154,111,26,26,224,157,148,148,143,54,199,199,230,66,201,201,236,74,210,210,253,94,127,127,171,193,168,168,216,224,50,188,117,188,33,236,243,236,67,32,198,32,201,179,244,179,3,218,219,218,139,2,123,2,43,226,251,226,250,158,200,158,236,201,74,201,9,212,211,212,107,24,230,24,159,30,107,30,14,152,69,152,56,178,125,178,210,166,232,166,183,38,75,38,87,60,214,60,138,147,50,147,238,130,216,130,152,82,253,82,212,123,55,123,55,187,113,187,151,91,241,91,131,71,225,71,60,36,48,36,226,81,15,81,198,186,248,186,243,74,27,74,72,191,135,191,112,13,250,13,179,176,6,176,222,117,63,117,253,210,94,210,32,125,186,125,49,102,174,102,163,58,91,58,28,89,138,89,0,0,0,0,147,205,188,205,224,26,157,26,44,174,109,174,171,127,193,127,199,43,177,43,185,190,14,190,160,224,128,224,16,138,93,138,82,59,210,59,186,100,213,100,136,216,160,216,165,231,132,231,232,95,7,95,17,27,20,27,194,44,181,44,180,252,144,252,39,49,44,49,101,128,163,128,42,115,178,115,129,12,115,12,95,121,76,121,65,107,84,107,2,75,146,75,105,83,116,83,143,148,54,148,31,131,81,131,54,42,56,42,156,196,176,196,200,34,189,34,248,213,90,213,195,189,252,189,120,72,96,72,206,255,98,255,7,76,150,76,119,65,108,65,230,199,66,199,36,235,247,235,20,28,16,28,99,93,124,93,34,54,40,54,192,103,39,103,175,233,140,233,249,68,19,68,234,20,149,20,187,245,156,245,24,207,199,207,45,63,36,63,227,192,70,192,219,114,59,114,108,84,112,84,76,41,202,41,53,240,227,240,254,8,133,8,23,198,203,198,79,243,17,243,228,140,208,140,89,164,147,164,150,202,184,202,59,104,166,104,77,184,131,184,40,56,32,56,46,229,255,229,86,173,159,173,132,11,119,11,29,200,195,200,255,153,204,153,237,88,3,88,154,25,111,25,10,14,8,14,126,149,191,149,80,112,64,112,48,247,231,247,207,110,43,110,110,31,226,31,61,181,121,181,15,9,12,9,52,97,170,97,22,87,130,87,11,159,65,159,128,157,58,157,100,17,234,17,205,37,185,37,221,175,228,175,8,69,154,69,141,223,164,223,92,163,151,163,213,234,126,234,88,53,218,53,208,237,122,237,252,67,23,67,203,248,102,248,177,251,148,251,211,55,161,55,64,250,29,250,104,194,61,194,204,180,240,180,93,50,222,50,113,156,179,156,231,86,11,86,218,227,114,227,96,135,167,135,27,21,28,21,58,249,239,249,191,99,209,99,169,52,83,52,133,154,62,154,66,177,143,177,209,124,51,124,155,136,38,136,166,61,95,61,215,161,236,161,223,228,118,228,148,129,42,129,1,145,73,145,251,15,129,15,170,238,136,238,97,22,238,22,115,215,33,215,245,151,196,151,168,165,26,165,63,254,235,254,181,109,217,109,174,120,197,120,109,197,57,197,229,29,153,29,164,118,205,118,220,62,173,62,103,203,49,203,71,182,139,182,91,239,1,239,30,18,24,18,197,96,35,96,176,106,221,106,246,77,31,77,233,206,78,206,124,222,45,222,157,85,249,85,90,126,72,126,178,33,79,33,122,3,242,3,38,160,101,160,25,94,142,94,102,90,120,90,75,101,92,101,78,98,88,98,69,253,25,253,244,6,141,6,134,64,229,64,190,242,152,242,172,51,87,51,144,23,103,23,142,5,127,5,94,232,5,232,125,79,100,79,106,137,175,137,149,16,99,16,47,116,182,116,117,10,254,10,146,92,245,92,116,155,183,155,51,45,60,45,214,48,165,48,73,46,206,46,137,73,233,73,114,70,104,70,85,119,68,119,216,168,224,168,4,150,77,150,189,40,67,40,41,169,105,169,121,217,41,217,145,134,46,134,135,209,172,209,74,244,21,244,21,141,89,141,130,214,168,214,188,185,10,185,13,66,158,66,193,246,110,246,184,47,71,47,6,221,223,221,57,35,52,35,98,204,53,204,196,241,106,241,18,193,207,193,235,133,220,133,158,143,34,143,161,113,201,113,240,144,192,144,83,170,155,170,241,1,137,1,225,139,212,139,140,78,237,78,111,142,171,142,162,171,18,171,62,111,162,111,84,230,13,230,242,219,82,219,123,146,187,146,182,183,2,183,202,105,47,105,217,57,169,57,12,211,215,211,35,167,97,167,173,162,30,162,153,195,180,195,68,108,80,108,5,7,4,7,127,4,246,4,70,39,194,39,167,172,22,172,118,208,37,208,19,80,134,80,247,220,86,220,26,132,85,132,81,225,9,225,37,122,190,122,239,19,145,19,217,169,57,217,144,103,23,144,113,179,156,113,210,232,166,210,5,4,7,5,152,253,82,152,101,163,128,101,223,118,228,223,8,154,69,8,2,146,75,2,160,128,224,160,102,120,90,102,221,228,175,221,176,221,106,176,191,209,99,191,54,56,42,54,84,13,230,84,67,198,32,67,98,53,204,98,190,152,242,190,30,24,18,30,36,247,235,36,215,236,161,215,119,108,65,119,189,67,40,189,50,117,188,50,212,55,123,212,155,38,136,155,112,250,13,112,249,19,68,249,177,148,251,177,90,72,126,90,122,242,3,122,228,208,140,228,71,139,182,71,60,48,36,60,165,132,231,165,65,84,107,65,6,223,221,6,197,35,96,197,69,25,253,69,163,91,58,163,104,61,194,104,21,89,141,21,33,243,236,33,49,174,102,49,62,162,111,62,22,130,87,22,149,99,16,149,91,1,239,91,77,131,184,77,145,46,134,145,181,217,109,181,31,81,131,31,83,155,170,83,99,124,93,99,59,166,104,59,63,235,254,63,214,165,48,214,37,190,122,37,167,22,172,167,15,12,9,15,53,227,240,53,35,97,167,35,240,192,144,240,175,140,233,175,128,58,157,128,146,245,92,146,129,115,12,129,39,44,49,39,118,37,208,118,231,11,86,231,123,187,146,123,233,78,206,233,241,137,1,241,159,107,30,159,169,83,52,169,196,106,241,196,153,180,195,153,151,241,91,151,131,225,71,131,107,230,24,107,200,189,34,200,14,69,152,14,110,226,31,110,201,244,179,201,47,182,116,47,203,102,248,203,255,204,153,255,234,149,20,234,237,3,88,237,247,86,220,247,225,212,139,225,27,28,21,27,173,30,162,173,12,215,211,12,43,251,226,43,29,195,200,29,25,142,94,25,194,181,44,194,137,233,73,137,18,207,193,18,126,191,149,126,32,186,125,32,100,234,17,100,132,119,11,132,109,57,197,109,106,175,137,106,209,51,124,209,161,201,113,161,206,98,255,206,55,113,187,55,251,129,15,251,61,121,181,61,81,9,225,81,220,173,62,220,45,36,63,45,164,205,118,164,157,249,85,157,238,216,130,238,134,229,64,134,174,197,120,174,205,185,37,205,4,77,150,4,85,68,119,85,10,8,14,10,19,134,80,19,48,231,247,48,211,161,55,211,64,29,250,64,52,170,97,52,140,237,78,140,179,6,176,179,108,112,84,108,42,178,115,42,82,210,59,82,11,65,159,11,139,123,2,139,136,160,216,136,79,17,243,79,103,49,203,103,70,194,39,70,192,39,103,192,180,144,252,180,40,32,56,40,127,246,4,127,120,96,72,120,46,255,229,46,7,150,76,7,75,92,101,75,199,177,43,199,111,171,142,111,13,158,66,13,187,156,245,187,242,82,219,242,243,27,74,243,166,95,61,166,89,147,164,89,188,10,185,188,58,239,249,58,239,145,19,239,254,133,8,254,1,73,145,1,97,238,22,97,124,45,222,124,178,79,33,178,66,143,177,66,219,59,114,219,184,71,47,184,72,135,191,72,44,109,174,44,227,70,192,227,87,214,60,87,133,62,154,133,41,105,169,41,125,100,79,125,148,42,129,148,73,206,46,73,23,203,198,23,202,47,105,202,195,252,189,195,92,151,163,92,94,5,232,94,208,122,237,208,135,172,209,135,142,127,5,142,186,213,100,186,168,26,165,168,183,75,38,183,185,14,190,185,96,167,135,96,248,90,213,248,34,40,54,34,17,20,27,17,222,63,117,222,121,41,217,121,170,136,238,170,51,60,45,51,95,76,121,95,182,2,183,182,150,184,202,150,88,218,53,88,156,176,196,156,252,23,67,252,26,85,132,26,246,31,77,246,28,138,89,28,56,125,178,56,172,87,51,172,24,199,207,24,244,141,6,244,105,116,83,105,116,183,155,116,245,196,151,245,86,159,173,86,218,114,227,218,213,126,234,213,74,21,244,74,158,34,143,158,162,18,171,162,78,88,98,78,232,7,95,232,229,153,29,229,57,52,35,57,193,110,246,193,68,80,108,68,93,222,50,93,114,104,70,114,38,101,160,38,147,188,205,147,3,219,218,3,198,248,186,198,250,200,158,250,130,168,214,130,207,43,110,207,80,64,112,80,235,220,133,235,117,254,10,117,138,50,147,138,141,164,223,141,76,202,41,76,20,16,28,20,115,33,215,115,204,240,180,204,9,211,212,9,16,93,138,16,226,15,81,226,0,0,0,0,154,111,25,154,224,157,26,224,143,54,148,143,230,66,199,230,236,74,201,236,253,94,210,253,171,193,127,171,216,224,168,216,47,1,0,0,0,0,0,0,211,177,0,0,0,0,0,0,0,0,0,0,16,0,0,0,128,0,0,0,160,16,0,0,13,0,0,0,14,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,152,47,138,66,145,68,55,113,207,251,192,181,165,219,181,233,91,194,86,57,241,17,241,89,164,130,63,146,213,94,28,171,152,170,7,216,1,91,131,18,190,133,49,36,195,125,12,85,116,93,190,114,254,177,222,128,167,6,220,155,116,241,155,193,193,105,155,228,134,71,190,239,198,157,193,15,204,161,12,36,111,44,233,45,170,132,116,74,220,169,176,92,218,136,249,118,82,81,62,152,109,198,49,168,200,39,3,176,199,127,89,191,243,11,224,198,71,145,167,213,81,99,202,6,103,41,41,20,133,10,183,39,56,33,27,46,252,109,44,77,19,13,56,83,84,115,10,101,187,10,106,118,46,201,194,129,133,44,114,146,161,232,191,162,75,102,26,168,112,139,75,194,163,81,108,199,25,232,146,209,36,6,153,214,133,53,14,244,112,160,106,16,22,193,164,25,8,108,55,30,76,119,72,39,181,188,176,52,179,12,28,57,74,170,216,78,79,202,156,91,243,111,46,104,238,130,143,116,111,99,165,120,20,120,200,132,8,2,199,140,250,255,190,144,235,108,80,164,247,163,249,190,242,120,113,198,18,0,0,0,0,0,0,0,3,0,0,0,46,184,0,0,176,50,0,0,50,184,0,0,58,184,0,0,67,184,0,0,70,184,0,0,50,184,0,0,3,0,0,0,7,0,0,0,16,0,0,0,17,0,0,0,18,0,0,0,19,0,0,0,8,0,0,0,20,0,0,0,4,0,0,0,21,0,0,0,9,0,0,0,244,194,0,0,248,194,0,0,254,194,0,0,3,195,0,0,9,195,0,0,0,0,0,0,16,0,0,0,7,0,0,0,22,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,22,0,0,0,37,0,0,0,63,0,0,0,92,0,0,0,117,0,0,0,132,0,0,0,147,0,0,0,161,0,0,0,175,0,0,0,190,0,0,0,205,0,0,0,230,0,0,0,243,0,0,0,2,1,0,0,16,1,0,0,27,1,0,0,41,1,0,0,63,1,0,0,79,1,0,0,109,1,0,0,129,1,0,0,153,1,0,0,179,1,0,0,204,1,0,0,222,1,0,0,231,1,0,0,241,1,0,0,1,2,0,0,14,2,0,0,28,2,0,0,47,2,0,0,71,2,0,0,91,2,0,0,107,2,0,0,122,2,0,0,138,2,0,0,154,2,0,0,171,2,0,0,185,2,0,0,201,2,0,0,228,2,0,0,245,2,0,0,9,3,0,0,28,3,0,0,45,3,0,0,65,3,0,0,77,3,0,0,91,3,0,0,104,3,0,0,120,3,0,0,139,3,0,0,158,3,0,0,178,3,0,0,198,3,0,0,212,3,0,0,234,3,0,0,254,3,0,0,6,4,0,0,10,4,0,0,24,4,0,0,47,4,0,0,55,4,0,0,70,4,0,0,83,4,0,0,98,4,0,0,127,4,0,0,156,4,0,0,179,4,0,0,195,4,0,0,211,4,0,0,231,4,0,0,244,4,0,0,3,5,0,0,20,5,0,0,36,5,0,0,53,5,0,0,70,5,0,0,82,5,0,0,95,5,0,0,126,5,0,0,147,5,0,0,167,5,0,0,188,5,0,0,210,5,0,0,222,5,0,0,237,5,0,0,245,5,0,0,2,6,0,0,11,6,0,0,29,6,0,0,40,6,0,0,51,6,0,0,65,6,0,0,85,6,0,0,98,6,0,0,110,6,0,0,124,6,0,0,136,6,0,0,156,6,0,0,175,6,0,0,195,6,0,0,217,6,0,0,241,6,0,0,6,7,0,0,29,7,0,0,50,7,0,0,65,7,0,0,76,7,0,0,96,7,0,0,109,7,0,0,122,7,0,0,139,7,0,0,161,7,0,0,175,7,0,0,195,7,0,0,211,7,0,0,225,7,0,0,236,7,0,0,0,8,0,0,23,8,0,0,44,8,0,0,59,8,0,0,80,8,0,0,102,8,0,0,118,8,0,0,132,8,0,0,148,8,0,0,162,8,0,0,179,8,0,0,191,8,0,0,223,8,0,0,243,8,0,0,255,8,0,0,9,9,0,0,21,9,0,0,39,9,0,0,60,9,0,0,72,9,0,0,87,9,0,0,104,9,0,0,119,9,0,0,135,9,0,0,149,9,0,0,168,9,0,0,187,9,0,0,210,9,0,0,231,9,0,0,255,9,0,0,17,10,0,0,39,10,0,0,62,10,0,0,80,10,0,0,92,10,0,0,110,10,0,0,127,10,0,0,141,10,0,0,158,10,0,0,173,10,0,0,196,10,0,0,215,10,0,0,228,10,0,0,247,10,0,0,15,11,0,0,42,11,0,0,55,11,0,0,80,11,0,0,91,11,0,0,110,11,0,0,122,11,0,0,138,11,0,0,156,11,0,0,183,11,0,0,190,11,0,0,205,11,0,0,221,11,0,0,237,11,0,0,1,12,0,0,14,12,0,0,26,12,0,0,43,12,0,0,55,12,0,0,72,12,0,0,86,12,0,0,102,12,0,0,129,12,0,0,152,12,0,0,175,12,0,0,198,12,0,0,213,12,0,0,230,12,0,0,248,12,0,0,13,13,0,0,32,13,0,0,63,13,0,0,81,13,0,0,99,13,0,0,121,13,0,0,147,13,0,0,174,13,0,0,191,13,0,0,232,13,0,0,8,14,0,0,46,14,0,0,73,14,0,0,103,14,0,0,133,14,0,0,161,14,0,0,198,14,0,0,222,14,0,0,14,15,0,0,56,15,0,0,96,15,0,0,132,15,0,0,143,15,0,0,161,15,0,0,178,15,0,0,209,15,0,0,230,15,0,0,255,15,0,0,14,16,0,0,38,16,0,0,57,16,0,0,93,16,0,0,114,16,0,0,143,16,0,0,163,16,0,0,190,16,0,0,218,16,0,0,233,16,0,0,244,16,0,0,5,17,0,0,42,17,0,0,87,17,0,0,131,17,0,0,171,17,0,0,209,17,0,0,247,17,0,0,33,18,0,0,67,18,0,0,112,18,0,0,157,18,0,0,170,18,0,0,180,18,0,0,193,18,0,0,228,18,0,0,248,18,0,0,10,19,0,0,33,19,0,0,57,19,0,0,78,19,0,0,106,19,0,0,136,19,0,0,164,19,0,0,184,19,0,0,208,19,0,0,235,19,0,0,253,19,0,0,15,20,0,0,43,20,0,0,58,20,0,0,74,20,0,0,102,20,0,0,125,20,0,0,145,20,0,0,162,20,0,0,190,20,0,0,214,20,0,0,239,20,0,0,3,21,0,0,23,21,0,0,42,21,0,0,71,21,0,0,95,21,0,0,123,21,0,0,150,21,0,0,176,21,0,0,205,21,0,0,229,21,0,0,254,21,0,0,25,22,0,0,54,22,0,0,71,22,0,0,96,22,0,0,119,22,0,0,141,22,0,0,160,22,0,0,182,22,0,0,215,22,0,0,245,22,0,0,12,23,0,0,47,23,0,0,63,23,0,0,83,23,0,0,103,23,0,0,120,23,0,0,147,23,0,0,160,23,0,0,182,23,0,0,202,23,0,0,230,23,0,0,2,24,0,0,21,24,0,0,39,24,0,0,80,24,0,0,120,24,0,0,159,24,0,0,173,24,0,0,208,24,0,0,247,24,0,0,24,25,0,0,51,25,0,0,74,25,0,0,104,25,0,0,135,25,0,0,164,25,0,0,190,25,0,0,213,25,0,0,233,25,0,0,252,25,0,0,22,26,0,0,43,26,0,0,76,26,0,0,113,26,0,0,147,26,0,0,172,26,0,0,201,26,0,0,221,26,0,0,248,26,0,0,28,27,0,0,50,27,0,0,72,27,0,0,100,27,0,0,139,27,0,0,173,27,0,0,195,27,0,0,227,27,0,0,250,27,0,0,31,28,0,0,60,28,0,0,77,28,0,0,105,28,0,0,132,28,0,0,153,28,0,0,180,28,0,0,204,28,0,0,219,28,0,0,247,28,0,0,15,29,0,0,34,29,0,0,56,29,0,0,93,29,0,0,119,29,0,0,145,29,0,0,171,29,0,0,197,29,0,0,223,29,0,0,249,29,0,0,19,30,0,0,45,30,0,0,71,30,0,0,98,30,0,0,125,30,0,0,152,30,0,0,179,30,0,0,206,30,0,0,233,30,0,0,4,31,0,0,27,31,0,0,48,31,0,0,60,31,0,0,7,0,0,0,13,0,0,0,98,0,0,0,99,0,0,0,68,0,0,0,97,0,0,0,11,0,0,0,114,0,0,0,0,0,0,0,0,0,0,0,52,0,0,0,9,0,0,0,77,0,0,0,74,0,0,0,53,0,0,0,0,0,0,0,56,0,0,0,57,0,0,0,59,0,0,0,16,0,0,0,125,0,0,0,10,0,0,0,44,0,0,0,70,0,0,0,103,0,0,0,111,0,0,0,104,0,0,0,0,0,0,0,35,0,0,0,35,0,0,0,89,0,0,0,0,0,0,0,33,0,0,0,73,0,0,0,122,0,0,0,17,0,0,0,14,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,0,113,0,0,0,43,0,0,0,0,0,0,0,84,0,0,0,115,0,0,0,4,0,0,0,22,0,0,0,5,0,0,0,106,0,0,0,21,0,0,0,120,0,0,0,51,0,0,0,45,0,0,0,46,0,0,0,47,0,0,0,79,0,0,0,80,0,0,0,83,0,0,0,82,0,0,0,81,0,0,0,48,0,0,0,40,0,0,0,124,0,0,0,24,0,0,0,31,0,0,0,90,0,0,0,72,0,0,0,36,0,0,0,119,0,0,0,0,0,0,0,100,0,0,0,102,0,0,0,101,0,0,0,23,0,0,0,55,0,0,0,105,0,0,0,50,0,0,0,61,0,0,0,19,0,0,0,2,0,0,0,8,0,0,0,37,0,0,0,67,0,0,0,123,0,0,0,12,0,0,0,42,0,0,0,64,0,0,0,65,0,0,0,92,0,0,0,28,0,0,0,63,0,0,0,60,0,0,0,38,0,0,0,15,0,0,0,107,0,0,0,20,0,0,0,39,0,0,0,118,0,0,0,88,0,0,0,95,0,0,0,25,0,0,0,76,0,0,0,6,0,0,0,95,0,0,0,75,0,0,0,1,0,0,0,96,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71,0,0,0,93,0,0,0,91,0,0,0,34,0,0,0,78,0,0,0,66,0,0,0,121,0,0,0,85,0,0,0,30,0,0,0,0,0,0,0,108,0,0,0,94,0,0,0,29,0,0,0,3,0,0,0,69,0,0,0,116,0,0,0,86,0,0,0,62,0,0,0,110,0,0,0,109,0,0,0,26,0,0,0,117,0,0,0,49,0,0,0,87,0,0,0,11,0,0,0,18,0,0,0,54,0,0,0,107,128,0,0,81,128,0,0,127,128,0,0,47,128,0,0,49,128,0,0,104,128,0,0,0,128,0,0,82,128,0,0,11,128,0,0,21,128,0,0,6,128,0,0,138,128,0,0,86,128,0,0,1,128,0,0,36,128,0,0,95,128,0,0,19,128,0,0,35,128,0,0,139,128,0,0,80,128,0,0,97,128,0,0,51,128,0,0,48,128,0,0,75,128,0,0,65,128,0,0,102,128,0,0,134,128,0,0,37,128,0,0,91,128,0,0,126,128,0,0,122,128,0,0,66,128,0,0,109,128,0,0,32,128,0,0,117,128,0,0,28,128,0,0,29,128,0,0,69,128,0,0,83,128,0,0,94,128,0,0,98,128,0,0,63,128,0,0,87,128,0,0,43,128,0,0,22,128,0,0,54,128,0,0,55,128,0,0,56,128,0,0,62,128,0,0,136,128,0,0,78,128,0,0,53,128,0,0,10,128,0,0,14,128,0,0,140,128,0,0,76,128,0,0,16,128,0,0,17,128,0,0,18,128,0,0,93,128,0,0,79,128,0,0,131,128,0,0,92,128,0,0,88,128,0,0,89,128,0,0,119,128,0,0,84,128,0,0,4,128,0,0,128,128,0,0,23,128,0,0,114,128,0,0,68,128,0,0,33,128,0,0,13,128,0,0,106,128,0,0,103,128,0,0,12,128,0,0,118,128,0,0,57,128,0,0,58,128,0,0,61,128,0,0,60,128,0,0,59,128,0,0,45,128,0,0,121,128,0,0,130,128,0,0,137,128,0,0,100,128,0,0,30,128,0,0,67,128,0,0,116,128,0,0,90,128,0,0,115,128,0,0,125,128,0,0,101,128,0,0,105,128,0,0,108,128,0,0,5,128,0,0,2,128,0,0,3,128,0,0,72,128,0,0,74,128,0,0,73,128,0,0,24,128,0,0,26,128,0,0,77,128,0,0,50,128,0,0,96,128,0,0,124,128,0,0,133,128,0,0,132,128,0,0,25,128,0,0,41,128,0,0,42,128,0,0,7,128,0,0,46,128,0,0,129,128,0,0,135,128,0,0,99,128,0,0,70,128,0,0,52,128,0,0,120,128,0,0,34,128,0,0,85,128,0,0,64,128,0,0,20,128,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,5,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,24,0,0,0,136,26,1,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,61,0,0,40,62,0,0,5,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,24,0,0,0,144,30,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,32,0,0,0,9,0,0,0,10,0,0,0,13,0,0,0,11,0,0,0,12,0,0,0,133,0,0,0,0,32,0,0,1,32,0,0,2,32,0,0,3,32,0,0,4,32,0,0,5,32,0,0,6,32,0,0,8,32,0,0,9,32,0,0,10,32,0,0,40,32,0,0,41,32,0,0,95,32,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,0,0,60,64,0,0,3,0,0,0,0,0,0,0,45,244,81,88,207,140,177,192,70,246,181,203,41,49,3,199,4,91,112,48,180,93,253,32,120,127,139,154,216,89,41,80,104,72,137,171,167,86,3,108,255,183,205,136,63,212,119,180,43,165,163,112,241,186,228,168,252,65,131,253,217,111,225,138,122,47,45,116,150,7,31,13,9,94,3,118,44,112,247,64,165,44,167,111,87,65,168,170,116,223,160,88,100,3,74,199,196,60,83,174,175,95,24,4,21,177,227,109,40,134,171,12,164,191,67,240,233,80,129,57,87,22,82,55,3,0,5,0,7,0,11,0,13,0,17,0,19,0,23,0,29,0,31,0,37,0,41,0,43,0,47,0,53,0,59,0,61,0,67,0,71,0,73,0,79,0,83,0,89,0,97,0,101,0,103,0,107,0,109,0,113,0,127,0,131,0,137,0,139,0,149,0,151,0,157,0,163,0,167,0,173,0,179,0,181,0,191,0,193,0,197,0,199,0,211,0,223,0,227,0,229,0,233,0,239,0,241,0,251,0,1,1,7,1,13,1,15,1,21,1,25,1,27,1,37,1,51,1,55,1,57,1,61,1,75,1,81,1,91,1,93,1,97,1,103,1,111,1,117,1,123,1,127,1,133,1,141,1,145,1,153,1,163,1,165,1,175,1,177,1,183,1,187,1,193,1,201,1,205,1,207,1,211,1,223,1,231,1,235,1,243,1,247,1,253,1,9,2,11,2,29,2,35,2,45,2,51,2,57,2,59,2,65,2,75,2,81,2,87,2,89,2,95,2,101,2,105,2,107,2,119,2,129,2,131,2,135,2,141,2,147,2,149,2,161,2,165,2,171,2,179,2,189,2,197,2,207,2,215,2,221,2,227,2,231,2,239,2,245,2,249,2,1,3,5,3,19,3,29,3,41,3,43,3,53,3,55,3,59,3,61,3,71,3,85,3,89,3,91,3,95,3,109,3,113,3,115,3,119,3,139,3,143,3,151,3,161,3,169,3,173,3,179,3,185,3,199,3,203,3,209,3,215,3,223,3,229,3,241,3,245,3,251,3,253,3,7,4,9,4,15,4,25,4,27,4,37,4,39,4,45,4,63,4,67,4,69,4,73,4,79,4,85,4,93,4,99,4,105,4,127,4,129,4,139,4,147,4,157,4,163,4,169,4,177,4,189,4,193,4,199,4,205,4,207,4,213,4,225,4,235,4,253,4,255,4,3,5,9,5,11,5,17,5,21,5,23,5,27,5,39,5,41,5,47,5,81,5,87,5,93,5,101,5,119,5,129,5,143,5,147,5,149,5,153,5,159,5,167,5,171,5,173,5,179,5,191,5,201,5,203,5,207,5,209,5,213,5,219,5,231,5,243,5,251,5,7,6,13,6,17,6,23,6,31,6,35,6,43,6,47,6,61,6,65,6,71,6,73,6,77,6,83,6,85,6,91,6,101,6,121,6,127,6,131,6,133,6,157,6,161,6,163,6,173,6,185,6,187,6,197,6,205,6,211,6,217,6,223,6,241,6,247,6,251,6,253,6,9,7,19,7,31,7,39,7,55,7,69,7,75,7,79,7,81,7,85,7,87,7,97,7,109,7,115,7,121,7,139,7,141,7,157,7,159,7,181,7,187,7,195,7,201,7,205,7,207,7,211,7,219,7,225,7,235,7,237,7,247,7,5,8,15,8,21,8,33,8,35,8,39,8,41,8,51,8,63,8,65,8,81,8,83,8,89,8,93,8,95,8,105,8,113,8,131,8,155,8,159,8,165,8,173,8,189,8,191,8,195,8,203,8,219,8,221,8,225,8,233,8,239,8,245,8,249,8,5,9,7,9,29,9,35,9,37,9,43,9,47,9,53,9,67,9,73,9,77,9,79,9,85,9,89,9,95,9,107,9,113,9,119,9,133,9,137,9,143,9,155,9,163,9,169,9,173,9,199,9,217,9,227,9,235,9,239,9,245,9,247,9,253,9,19,10,31,10,33,10,49,10,57,10,61,10,73,10,87,10,97,10,99,10,103,10,111,10,117,10,123,10,127,10,129,10,133,10,139,10,147,10,151,10,153,10,159,10,169,10,171,10,181,10,189,10,193,10,207,10,217,10,229,10,231,10,237,10,241,10,243,10,3,11,17,11,21,11,27,11,35,11,41,11,45,11,63,11,71,11,81,11,87,11,93,11,101,11,111,11,123,11,137,11,141,11,147,11,153,11,155,11,183,11,185,11,195,11,203,11,207,11,221,11,225,11,233,11,245,11,251,11,7,12,11,12,17,12,37,12,47,12,49,12,65,12,91,12,95,12,97,12,109,12,115,12,119,12,131,12,137,12,145,12,149,12,157,12,179,12,181,12,185,12,187,12,199,12,227,12,229,12,235,12,241,12,247,12,251,12,1,13,3,13,15,13,19,13,31,13,33,13,43,13,45,13,61,13,63,13,79,13,85,13,105,13,121,13,129,13,133,13,135,13,139,13,141,13,163,13,171,13,183,13,189,13,199,13,201,13,205,13,211,13,213,13,219,13,229,13,231,13,243,13,253,13,255,13,9,14,23,14,29,14,33,14,39,14,47,14,53,14,59,14,75,14,87,14,89,14,93,14,107,14,113,14,117,14,125,14,135,14,143,14,149,14,155,14,177,14,183,14,185,14,195,14,209,14,213,14,219,14,237,14,239,14,249,14,7,15,11,15,13,15,23,15,37,15,41,15,49,15,67,15,71,15,77,15,79,15,83,15,89,15,91,15,103,15,107,15,127,15,149,15,161,15,163,15,167,15,173,15,179,15,181,15,187,15,209,15,211,15,217,15,233,15,239,15,251,15,253,15,3,16,15,16,31,16,33,16,37,16,43,16,57,16,61,16,63,16,81,16,105,16,115,16,121,16,123,16,133,16,135,16,145,16,147,16,157,16,163,16,165,16,175,16,177,16,187,16,193,16,201,16,231,16,241,16,243,16,253,16,5,17,11,17,21,17,39,17,45,17,57,17,69,17,71,17,89,17,95,17,99,17,105,17,111,17,129,17,131,17,141,17,155,17,161,17,165,17,167,17,171,17,195,17,197,17,209,17,215,17,231,17,239,17,245,17,251,17,13,18,29,18,31,18,35,18,41,18,43,18,49,18,55,18,65,18,71,18,83,18,95,18,113,18,115,18,121,18,125,18,143,18,151,18,175,18,179,18,181,18,185,18,191,18,193,18,205,18,209,18,223,18,253,18,7,19,13,19,25,19,39,19,45,19,55,19,67,19,69,19,73,19,79,19,87,19,93,19,103,19,105,19,109,19,123,19,129,19,135,19,0,0,0,0,194,1,132,3,70,2,8,7,202,6,140,4,78,5,16,14,210,15,148,13,86,12,24,9,218,8,156,10,94,11,32,28,226,29,164,31,102,30,40,27,234,26,172,24,110,25,48,18,242,19,180,17,118,16,56,21,250,20,188,22,126,23,64,56,130,57,196,59,6,58,72,63,138,62,204,60,14,61,80,54,146,55,212,53,22,52,88,49,154,48,220,50,30,51,96,36,162,37,228,39,38,38,104,35,170,34,236,32,46,33,112,42,178,43,244,41,54,40,120,45,186,44,252,46,62,47,128,112,66,113,4,115,198,114,136,119,74,118,12,116,206,117,144,126,82,127,20,125,214,124,152,121,90,120,28,122,222,123,160,108,98,109,36,111,230,110,168,107,106,106,44,104,238,105,176,98,114,99,52,97,246,96,184,101,122,100,60,102,254,103,192,72,2,73,68,75,134,74,200,79,10,78,76,76,142,77,208,70,18,71,84,69,150,68,216,65,26,64,92,66,158,67,224,84,34,85,100,87,166,86,232,83,42,82,108,80,174,81,240,90,50,91,116,89,182,88,248,93,58,92,124,94,190,95,0,225,194,224,132,226,70,227,8,230,202,231,140,229,78,228,16,239,210,238,148,236,86,237,24,232,218,233,156,235,94,234,32,253,226,252,164,254,102,255,40,250,234,251,172,249,110,248,48,243,242,242,180,240,118,241,56,244,250,245,188,247,126,246,64,217,130,216,196,218,6,219,72,222,138,223,204,221,14,220,80,215,146,214,212,212,22,213,88,208,154,209,220,211,30,210,96,197,162,196,228,198,38,199,104,194,170,195,236,193,46,192,112,203,178,202,244,200,54,201,120,204,186,205,252,207,62,206,128,145,66,144,4,146,198,147,136,150,74,151,12,149,206,148,144,159,82,158,20,156,214,157,152,152,90,153,28,155,222,154,160,141,98,140,36,142,230,143,168,138,106,139,44,137,238,136,176,131,114,130,52,128,246,129,184,132,122,133,60,135,254,134,192,169,2,168,68,170,134,171,200,174,10,175,76,173,142,172,208,167,18,166,84,164,150,165,216,160,26,161,92,163,158,162,224,181,34,180,100,182,166,183,232,178,42,179,108,177,174,176,240,187,50,186,116,184,182,185,248,188,58,189,124,191,190,190,73,0,49,1,83,0,127,1,48,1,105,0,120,1,255,0,129,1,83,2,130,1,131,1,132,1,133,1,134,1,84,2,135,1,136,1,137,1,86,2,138,1,87,2,139,1,140,1,142,1,221,1,143,1,89,2,144,1,91,2,145,1,146,1,147,1,96,2,148,1,99,2,150,1,105,2,151,1,104,2,152,1,153,1,156,1,111,2,157,1,114,2,159,1,117,2,166,1,128,2,167,1,168,1,169,1,131,2,172,1,173,1,174,1,136,2,175,1,176,1,177,1,138,2,178,1,139,2,183,1,146,2,184,1,185,1,188,1,189,1,196,1,198,1,196,1,197,1,197,1,198,1,199,1,201,1,199,1,200,1,200,1,201,1,202,1,204,1,202,1,203,1,203,1,204,1,241,1,243,1,241,1,242,1,242,1,243,1,244,1,245,1,246,1,149,1,247,1,191,1,32,2,158,1,134,3,172,3,136,3,173,3,137,3,174,3,138,3,175,3,140,3,204,3,142,3,205,3,143,3,206,3,153,3,69,3,153,3,190,31,163,3,194,3,247,3,248,3,250,3,251,3,96,30,155,30,223,0,223,0,158,30,223,0,89,31,81,31,91,31,83,31,93,31,85,31,95,31,87,31,188,31,179,31,204,31,195,31,236,31,229,31,252,31,243,31,58,2,101,44,59,2,60,2,61,2,154,1,62,2,102,44,65,2,66,2,67,2,128,1,68,2,137,2,69,2,140,2,244,3,184,3,249,3,242,3,253,3,123,3,254,3,124,3,255,3,125,3,192,4,207,4,38,33,201,3,42,33,107,0,43,33,229,0,50,33,78,33,131,33,132,33,96,44,97,44,98,44,107,2,99,44,125,29,100,44,125,2,109,44,81,2,110,44,113,2,111,44,80,2,112,44,82,2,114,44,115,44,117,44,118,44,126,44,63,2,127,44,64,2,242,44,243,44,125,167,121,29,139,167,140,167,141,167,101,2,170,167,102,2,199,16,39,45,205,16,45,45,118,3,119,3,156,3,181,0,146,3,208,3,152,3,209,3,166,3,213,3,160,3,214,3,154,3,240,3,161,3,241,3,149,3,245,3,207,3,215,3,0,0,0,0,65,0,32,26,192,0,32,31,0,1,1,47,50,1,1,5,57,1,1,15,74,1,1,45,121,1,1,5,112,3,1,3,145,3,32,17,163,3,32,9,0,4,80,16,16,4,32,32,96,4,1,33,138,4,1,53,193,4,1,13,208,4,1,63,20,5,1,19,49,5,48,38,160,1,1,5,179,1,1,3,205,1,1,15,222,1,1,17,248,1,1,39,34,2,1,17,216,3,1,23,0,30,1,149,160,30,1,95,8,31,248,8,24,31,248,6,40,31,248,8,56,31,248,8,72,31,248,6,104,31,248,8,136,31,248,8,152,31,248,8,168,31,248,8,184,31,248,2,186,31,182,2,200,31,170,4,216,31,248,2,218,31,156,2,232,31,248,2,234,31,144,2,248,31,128,2,250,31,130,2,70,2,1,9,16,5,1,3,96,33,16,16,0,44,48,47,103,44,1,5,128,44,1,99,235,44,1,3,64,166,1,45,128,166,1,23,34,167,1,13,50,167,1,61,121,167,1,3,126,167,1,9,144,167,1,3,160,167,1,9,33,255,32,26,0,0,0,0,119,114,97,112,46,99,0,99,111,109,109,111,110,95,97,108,108,111,99,97,116,105,111,110,46,99,0,71,78,85,78,69,84,95,120,109,97,108,108,111,99,95,0,109,97,108,108,111,99,0,71,78,85,78,69,84,95,120,102,114,101,101,95,0,71,78,85,78,69,84,95,115,110,112,114,105,110,116,102,0,99,111,109,109,111,110,95,108,111,103,103,105,110,103,46,99,0,37,115,45,37,100,0,109,121,108,111,103,0,108,111,99,97,108,116,105,109,101,32,101,114,114,111,114,0,37,98,32,37,100,32,37,72,58,37,77,58,37,83,45,37,37,48,54,117,0,42,32,37,115,0,37,115,32,37,115,32,37,115,32,37,115,0,69,82,82,79,82,0,87,65,82,78,73,78,71,0,77,69,83,83,65,71,69,0,73,78,70,79,0,68,69,66,85,71,0,78,79,78,69,0,73,78,86,65,76,73,68,0,77,101,115,115,97,103,101,32,96,37,46,42,115,39,32,114,101,112,101,97,116,101,100,32,37,117,32,116,105,109,101,115,32,105,110,32,116,104,101,32,108,97,115,116,32,37,115,10,0,71,78,85,78,69,84,95,108,111,103,95,115,107,105,112,0,99,114,121,112,116,111,95,115,121,109,109,101,116,114,105,99,46,99,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,115,121,109,109,101,116,114,105,99,95,101,110,99,114,121,112,116,0,115,101,116,117,112,95,99,105,112,104,101,114,95,116,119,111,102,105,115,104,0,115,101,116,117,112,95,99,105,112,104,101,114,95,97,101,115,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,115,121,109,109,101,116,114,105,99,95,100,101,99,114,121,112,116,0,99,114,121,112,116,111,95,101,99,99,46,99,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,99,100,115,97,95,107,101,121,95,103,101,116,95,112,117,98,108,105,99,0,113,64,101,100,100,115,97,0,40,112,114,105,118,97,116,101,45,107,101,121,40,101,99,99,40,99,117,114,118,101,32,34,69,100,50,53,53,49,57,34,41,40,100,32,37,98,41,41,41,0,100,101,99,111,100,101,95,112,114,105,118,97,116,101,95,101,99,100,115,97,95,107,101,121,0,103,99,114,121,95,115,101,120,112,95,98,117,105,108,100,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,100,100,115,97,95,107,101,121,95,103,101,116,95,112,117,98,108,105,99,0,40,112,114,105,118,97,116,101,45,107,101,121,40,101,99,99,40,99,117,114,118,101,32,34,69,100,50,53,53,49,57,34,41,40,102,108,97,103,115,32,101,100,100,115,97,41,40,100,32,37,98,41,41,41,0,100,101,99,111,100,101,95,112,114,105,118,97,116,101,95,101,100,100,115,97,95,107,101,121,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,99,100,104,101,95,107,101,121,95,103,101,116,95,112,117,98,108,105,99,0,100,101,99,111,100,101,95,112,114,105,118,97,116,101,95,101,99,100,104,101,95,107,101,121,0,40,103,101,110,107,101,121,40,101,99,99,40,99,117,114,118,101,32,34,69,100,50,53,53,49,57,34,41,40,102,108,97,103,115,32,101,100,100,115,97,32,110,111,45,107,101,121,116,101,115,116,41,41,41,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,99,100,104,101,95,107,101,121,95,99,114,101,97,116,101,0,103,99,114,121,95,112,107,95,103,101,110,107,101,121,0,107,101,121,95,102,114,111,109,95,115,101,120,112,0,40,103,101,110,107,101,121,40,101,99,99,40,99,117,114,118,101,32,34,69,100,50,53,53,49,57,34,41,40,102,108,97,103,115,41,41,41,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,99,100,115,97,95,107,101,121,95,99,114,101,97,116,101,0,40,103,101,110,107,101,121,40,101,99,99,40,99,117,114,118,101,32,34,69,100,50,53,53,49,57,34,41,40,102,108,97,103,115,32,101,100,100,115,97,41,41,41,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,100,100,115,97,95,107,101,121,95,99,114,101,97,116,101,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,100,100,115,97,95,115,105,103,110,0,69,100,68,83,65,32,115,105,103,110,105,110,103,32,102,97,105,108,101,100,32,97,116,32,37,115,58,37,100,58,32,37,115,10,0,40,100,97,116,97,40,102,108,97,103,115,32,101,100,100,115,97,41,40,104,97,115,104,45,97,108,103,111,32,37,115,41,40,118,97,108,117,101,32,37,98,41,41,0,100,97,116,97,95,116,111,95,101,100,100,115,97,95,118,97,108,117,101,0,40,112,117,98,108,105,99,45,107,101,121,40,101,99,99,40,99,117,114,118,101,32,69,100,50,53,53,49,57,41,40,113,32,37,98,41,41,41,0,40,115,105,103,45,118,97,108,40,101,100,100,115,97,40,114,32,37,98,41,40,115,32,37,98,41,41,41,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,100,100,115,97,95,118,101,114,105,102,121,0,40,112,117,98,108,105,99,45,107,101,121,40,101,99,99,40,99,117,114,118,101,32,69,100,50,53,53,49,57,41,40,102,108,97,103,115,32,101,100,100,115,97,41,40,113,32,37,98,41,41,41,0,69,100,68,83,65,32,115,105,103,110,97,116,117,114,101,32,118,101,114,105,102,105,99,97,116,105,111,110,32,102,97,105,108,101,100,32,97,116,32,37,115,58,37,100,58,32,37,115,10,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,99,99,95,101,99,100,104,0,103,101,116,95,97,102,102,105,110,101,32,102,97,105,108,101,100],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+10240);allocate([71,78,85,78,69,84,95,67,82,89,80,84,79,95,101,99,100,104,95,101,100,100,115,97,0,99,114,121,112,116,111,95,104,97,115,104,46,99,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,104,97,115,104,95,99,111,110,116,101,120,116,95,115,116,97,114,116,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,104,97,115,104,95,99,111,110,116,101,120,116,95,102,105,110,105,115,104,0,99,114,121,112,116,111,95,107,100,102,46,99,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,107,100,102,95,109,111,100,95,109,112,105,0,99,114,121,112,116,111,95,109,112,105,46,99,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,109,112,105,95,112,114,105,110,116,95,117,110,115,105,103,110,101,100,0,96,37,115,39,32,102,97,105,108,101,100,32,97,116,32,37,115,58,37,100,32,119,105,116,104,32,101,114,114,111,114,58,32,37,115,10,0,103,99,114,121,95,109,112,105,95,112,114,105,110,116,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,109,112,105,95,115,99,97,110,95,117,110,115,105,103,110,101,100,0,103,99,114,121,95,109,112,105,95,115,99,97,110,0,49,46,54,46,48,0,108,105,98,103,99,114,121,112,116,32,104,97,115,32,110,111,116,32,116,104,101,32,101,120,112,101,99,116,101,100,32,118,101,114,115,105,111,110,32,40,118,101,114,115,105,111,110,32,37,115,32,105,115,32,114,101,113,117,105,114,101,100,41,46,10,0,99,114,121,112,116,111,95,114,97,110,100,111,109,46,99,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,97,110,100,111,109,95,105,110,105,116,0,70,97,105,108,101,100,32,116,111,32,115,101,116,32,108,105,98,103,99,114,121,112,116,32,111,112,116,105,111,110,32,37,115,58,32,37,115,10,0,68,73,83,65,66,76,69,95,83,69,67,77,69,77,0,69,78,65,66,76,69,95,81,85,73,67,75,95,82,65,78,68,79,77,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,97,110,100,111,109,95,117,51,50,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,97,110,100,111,109,95,98,108,111,99,107,0,40,103,101,110,107,101,121,40,114,115,97,40,110,98,105,116,115,32,37,100,41,41,41,0,99,114,121,112,116,111,95,114,115,97,46,99,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,112,114,105,118,97,116,101,95,107,101,121,95,99,114,101,97,116,101,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,112,114,105,118,97,116,101,95,107,101,121,95,101,110,99,111,100,101,0,117,116,105,108,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,112,114,105,118,97,116,101,95,107,101,121,95,100,101,99,111,100,101,0,68,101,99,111,100,101,100,32,112,114,105,118,97,116,101,32,107,101,121,32,105,115,32,110,111,116,32,118,97,108,105,100,10,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,112,114,105,118,97,116,101,95,107,101,121,95,103,101,116,95,112,117,98,108,105,99,0,69,120,116,101,114,110,97,108,32,112,114,111,116,111,99,111,108,32,118,105,111,108,97,116,105,111,110,32,100,101,116,101,99,116,101,100,32,97,116,32,37,115,58,37,100,46,10,0,40,112,117,98,108,105,99,45,107,101,121,40,114,115,97,40,110,32,37,109,41,40,101,32,37,109,41,41,41,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,112,117,98,108,105,99,95,107,101,121,95,101,110,99,111,100,101,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,112,117,98,108,105,99,95,107,101,121,95,100,101,99,111,100,101,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,115,105,103,110,97,116,117,114,101,95,101,110,99,111,100,101,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,98,108,105,110,100,0,110,117,109,101,114,105,99,95,109,112,105,95,97,108,108,111,99,95,110,95,112,114,105,110,116,0,66,108,105,110,100,105,110,103,32,75,68,70,32,101,120,116,114,97,116,111,114,32,72,77,65,67,32,107,101,121,0,114,115,97,95,98,108,105,110,100,105,110,103,95,107,101,121,95,100,101,114,105,118,101,0,66,108,105,110,100,105,110,103,32,75,68,70,0,114,115,97,95,102,117,108,108,95,100,111,109,97,105,110,95,104,97,115,104,0,82,83,65,45,70,68,65,32,70,84,112,115,87,33,0,40,100,97,116,97,32,40,102,108,97,103,115,32,114,97,119,41,32,40,118,97,108,117,101,32,37,77,41,41,0,109,112,105,95,116,111,95,115,101,120,112,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,115,105,103,110,97,116,117,114,101,95,100,101,99,111,100,101,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,117,110,98,108,105,110,100,0,40,115,105,103,45,118,97,108,32,40,114,115,97,32,40,115,32,37,77,41,41,41,0,71,78,85,78,69,84,95,67,82,89,80,84,79,95,114,115,97,95,118,101,114,105,102,121,0,82,83,65,32,115,105,103,110,97,116,117,114,101,32,118,101,114,105,102,105,99,97,116,105,111,110,32,102,97,105,108,101,100,32,97,116,32,37,115,58,37,100,58,32,37,115,10,0,115,116,114,105,110,103,115,46,99,0,37,108,108,117,32,37,115,0,102,111,114,101,118,101,114,0,109,115,0,109,0,100,97,121,0,100,97,121,115,0,194,181,115,0,48,32,109,115,0,71,78,85,78,69,84,95,83,84,82,73,78,71,83,95,100,97,116,97,95,116,111,95,115,116,114,105,110,103,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,74,75,77,78,80,81,82,83,84,86,87,88,89,90,0,71,78,85,78,69,84,95,83,84,82,73,78,71,83,95,115,116,114,105,110,103,95,116,111,95,100,97,116,97,0,118,105,115,105,98,105,108,105,116,121,46,99,0,103,99,114,121,95,109,100,95,104,97,115,104,95,98,117,102,102,101,114,0,99,97,108,108,101,100,32,105,110,32,110,111,110,45,111,112,101,114,97,116,105,111,110,97,108,32,115,116,97,116,101,0,103,99,114,121,95,109,100,95,103,101,116,95,97,108,103,111,0,117,115,101,100,32,105,110,32,110,111,110,45,111,112,101,114,97,116,105,111,110,97,108,32,115,116,97,116,101,0,103,99,114,121,95,114,97,110,100,111,109,105,122,101,0,103,99,114,121,95,99,114,101,97,116,101,95,110,111,110,99,101,0,109,105,115,99,46,99,0,95,103,99,114,121,95,102,97,116,97,108,95,101,114,114,111,114,0,10,70,97,116,97,108,32,101,114,114,111,114,58,32,0,70,97,116,97,108,58,32,0,79,104,104,104,104,32,106,101,101,101,101,58,32,0,68,66,71,58,32,0,91,85,110,107,110,111,119,110,32,108,111,103,32,108,101,118,101,108,32,37,100,93,58,32,0,95,103,99,114,121,95,108,111,103,118,0,105,110,116,101,114,110,97,108,32,101,114,114,111,114,32,40,102,97,116,97,108,32,111,114,32,98,117,103,41,0,46,46,46,32,116,104,105,115,32,105,115,32,97,32,98,117,103,32,40,37,115,58,37,100,58,37,115,41,10,0,65,115,115,101,114,116,105,111,110,32,96,37,115,39,32,102,97,105,108,101,100,32,40,37,115,58,37,100,58,37,115,41,10,0,32,0,37,115,58,37,115,0,37,42,115,32,32,0,37,48,50,120,0,32,92,10,0,37,42,115,32,37,42,115,0,32,40,110,117,108,108,41,0,32,91,37,117,32,98,105,116,93,0,32,91,111,117,116,32,111,102,32,99,111,114,101,93,0,45,0,43,0,100,105,118,105,100,101,32,98,121,32,122,101,114,111,0,103,108,111,98,97,108,46,99,0,103,108,111,98,97,108,95,105,110,105,116,0,49,46,55,46,48,45,98,101,116,97,50,51,48,0,118,101,114,115,105,111,110,58,37,115,58,10,0,99,105,112,104,101,114,115,58,37,115,58,10,0,97,101,115,58,116,119,111,102,105,115,104,0,112,117,98,107,101,121,115,58,37,115,58,10,0,114,115,97,58,101,99,99,0,100,105,103,101,115,116,115,58,37,115,58,10,0,115,104,97,50,53,54,58,115,104,97,53,49,50,0,114,110,100,45,109,111,100,58,108,105,110,117,120,58,10,0,99,112,117,45,97,114,99,104,58,58,10,0,109,112,105,45,97,115,109,58,37,115,58,10,0,104,119,102,108,105,115,116,58,0,37,115,58,0,10,0,102,105,112,115,45,109,111,100,101,58,37,99,58,37,99,58,10,0,115,116,97,110,100,97,114,100,0,102,105,112,115,0,115,121,115,116,101,109,0,112,114,105,110,116,95,99,111,110,102,105,103,0,114,110,103,45,116,121,112,101,58,37,115,58,37,100,58,10,0,111,117,116,32,111,102,32,99,111,114,101,32,105,110,32,115,101,99,117,114,101,32,109,101,109,111,114,121,0,92,120,37,48,50,120,0,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,48,49,50,51,52,53,54,55,56,57,45,46,47,95,58,42,43,61,0,115,101,120,112,46,99,0,100,111,95,118,115,101,120,112,95,115,115,99,97,110,0,37,100,0,37,117,0,38,92,0,95,103,99,114,121,95,115,101,120,112,95,102,105,110,100,95,116,111,107,101,110,0,95,103,99,114,121,95,115,101,120,112,95,110,116,104,0,3,4,0,37,117,58,0,95,103,99,114,121,95,115,101,120,112,95,115,112,114,105,110,116,0,37,48,50,88,0,8,9,11,10,12,13,34,39,92,0,45,46,47,95,58,42,43,61,0,112,97,100,108,111,99,107,45,114,110,103,0,112,97,100,108,111,99,107,45,97,101,115,0,112,97,100,108,111,99,107,45,115,104,97,0,112,97,100,108,111,99,107,45,109,109,117,108,0,105,110,116,101,108,45,99,112,117,0,105,110,116,101,108,45,98,109,105,50,0,105,110,116,101,108,45,115,115,115,101,51,0,105,110,116,101,108,45,112,99,108,109,117,108,0,105,110,116,101,108,45,97,101,115,110,105,0,105,110,116,101,108,45,114,100,114,97,110,100,0,105,110,116,101,108,45,97,118,120,0,105,110,116,101,108,45,97,118,120,50,0,97,114,109,45,110,101,111,110,0,47,101,116,99,47,103,99,114,121,112,116,47,104,119,102,46,100,101,110,121,0,109,101,109,111,114,121,32,97,116,32,37,112,32,99,111,114,114,117,112,116,101,100,32,40,117,110,100,101,114,102,108,111,119,61,37,48,50,120,41,10,0,109,101,109,111,114,121,32,97,116,32,37,112,32,99,111,114,114,117,112,116,101,100,32,40,111,118,101,114,102,108,111,119,61,37,48,50,120,41,10,0,87,97,114,110,105,110,103,58,32,117,115,105,110,103,32,105,110,115,101,99,117,114,101,32,109,101,109,111,114,121,33,10,0,102,97,105,108,101,100,32,116,111,32,100,114,111,112,32,115,101,116,117,105,100,10,0,79,111,112,115,44,32,115,101,99,117,114,101,32,109,101,109,111,114,121,32,112,111,111,108,32,97,108,114,101,97,100,121,32,105,110,105,116,105,97,108,105,122,101,100,10,0,80,108,101,97,115,101,32,110,111,116,101,32,116,104,97,116,32,121,111,117,32,100,111,110,39,116,32,104,97,118,101,32,115,101,99,117,114,101,32,109,101,109,111,114,121,32,111,110,32,116,104,105,115,32,115,121,115,116,101,109,10,0,115,101,99,117,114,101,32,109,101,109,111,114,121,32,105,115,32,100,105,115,97,98,108,101,100,0,99,97,110,39,116,32,109,109,97,112,32,112,111,111,108,32,111,102,32,37,117,32,98,121,116,101,115,58,32,37,115,32,45,32,117,115,105,110,103,32,109,97,108,108,111,99,10,0,99,97,110,39,116,32,97,108,108,111,99,97,116,101,32,109,101,109,111,114,121,32,112,111,111,108,32,111,102,32,37,117,32,98,121,116,101,115,10,0,111,112,101,114,97,116,105,111,110,32,105,115,32,110,111,116,32,112,111,115,115,105,98,108,101,32,119,105,116,104,111,117,116,32,105,110,105,116,105,97,108,105,122,101,100,32,115,101,99,117,114,101,32,109,101,109,111,114,121,10,0,115,101,99,117,114,101,32,109,101,109,111,114,121,32,112,111,111,108,32,105,115,32,110,111,116,32,108,111,99,107,101,100,32,119,104,105,108,101,32,105,110,32,70,73,80,83,32,109,111,100,101,10,0,115,101,99,109,101,109,32,117,115,97,103,101,58,32,37,117,47,37,108,117,32,98,121,116,101,115,32,105,110,32,37,117,32,98,108,111,99,107,115,10,0,33,100,111,110,101,0,102,105,112,115,46,99,0,95,103,99,114,121,95,105,110,105,116,105,97,108,105,122,101,95,102,105,112,115,95,109,111,100,101,0,33,110,111,95,102,105,112,115,95,109,111,100,101,95,114,101,113,117,105,114,101,100,0,47,101,116,99,47,103,99,114,121,112,116,47,102,105,112,115,95,101,110,97,98,108,101,100,0,47,112,114,111,99,47,115,121,115,47,99,114,121,112,116,111,47,102,105,112,115,95,101,110,97,98,108,101,100,0,114,0,47,112,114,111,99,47,118,101,114,115,105,111,110,0,70,65,84,65,76,58,32,101,114,114,111,114,32,114,101,97,100,105,110,103,32,96,37,115,39,32,105,110,32,108,105,98,103,99,114,121,112,116,58,32,37,115,10,0,70,65,84,65,76,58,32,102,97,105,108,101,100,32,116,111,32,99,114,101,97,116,101,32,116,104,101,32,70,83,77,32,108,111,99,107,32,105,110,32,108,105,98,103,99,114,121,112,116,58,32,37,115,10,0,103,114,97,110,116,101,100,0,100,101,110,105,101,100,0,108,105,98,103,99,114,121,112,116,32,115,116,97,116,101,32,116,114,97,110,115,105,116,105,111,110,32,37,115,32,61,62,32,37,115,32,37,115,10,0,80,111,119,101,114,45,79,110,0,73,110,105,116,0,83,101,108,102,45,84,101,115,116,0,79,112,101,114,97,116,105,111,110,97,108,0,69,114,114,111,114,0,70,97,116,97,108,45,69,114,114,111,114,0,83,104,117,116,100,111,119,110,0,70,65,84,65,76,58,32,102,97,105,108,101,100,32,116,111,32,114,101,108,101,97,115,101,32,116,104,101,32,70,83,77,32,108,111,99,107,32,105,110,32,108,105,98,103,114,121,112,116,58,32,37,115,10,0,70,65,84,65,76,58,32,102,97,105,108,101,100,32,116,111,32,97,99,113,117,105,114,101,32,116,104,101,32,70,83,77,32,108,111,99,107,32,105,110,32,108,105,98,103,114,121,112,116,58,32,37,115,10,0,95,103,99,114,121,95,102,105,112,115,95,109,111,100,101,32,40,41,0,95,103,99,114,121,95,105,110,97,99,116,105,118,97,116,101,95,102,105,112,115,95,109,111,100,101,0,102,97,116,97,108,32,0,44,32,102,117,110,99,116,105,111,110,32,0,110,111,32,100,101,115,99,114,105,112,116,105,111,110,32,97,118,97,105,108,97,98,108,101,0,37,115,101,114,114,111,114,32,105,110,32,108,105,98,103,99,114,121,112,116,44,32,102,105,108,101,32,37,115,44,32,108,105,110,101,32,37,100,37,115,37,115,58,32,37,115,10,0,72,77,65,67,45,0,79,107,97,121,0,32,40,0,108,105,98,103,99,114,121,112,116,32,115,101,108,102,116,101,115,116,58,32,37,115,32,37,115,37,115,32,40,37,100,41,58,32,37,115,37,115,37,115,37,115,10,0,98,97,100,32,99,111,110,116,101,120,116,32,116,121,112,101,32,37,100,32,103,105,118,101,110,32,116,111,32,95,103,99,114,121,95,99,116,120,95,97,108,108,111,99,10,0,99,84,120,0,98,97,100,32,112,111,105,110,116,101,114,32,37,112,32,112,97,115,115,101,100,32,116,111,32,95,103,99,114,121,95,99,116,120,95,103,101,116,95,112,111,105,110,116,101,114,10,0,119,114,111,110,103,32,99,111,110,116,101,120,116,32,116,121,112,101,32,37,100,32,114,101,113,117,101,115,116,32,102,111,114,32,99,111,110,116,101,120,116,32,37,112,32,111,102,32,116,121,112,101,32,37,100,10,0,98,97,100,32,112,111,105,110,116,101,114,32,37,112,32,112,97,115,115,101,100,32,116,111,32,103,99,114,121,95,99,116,120,95,114,101,108,97,115,101,10,0,98,97,100,32,99,111,110,116,101,120,116,32,116,121,112,101,32,37,100,32,100,101,116,101,99,116,101,100,32,105,110,32,103,99,114,121,95,99,116,120,95,114,101,108,97,115,101,10,0,103,99,114,121,95,99,105,112,104,101,114,95,99,108,111,115,101,58,32,97,108,114,101,97,100,121,32,99,108,111,115,101,100,47,105,110,118,97,108,105,100,32,104,97,110,100,108,101,0,99,105,112,104,101,114,46,99,0,99,105,112,104,101,114,95,101,110,99,114,121,112,116,0,99,105,112,104,101,114,32,109,111,100,101,32,78,79,78,69,32,117,115,101,100,0,99,105,112,104,101,114,95,101,110,99,114,121,112,116,58,32,105,110,118,97,108,105,100,32,109,111,100,101,32,37,100,10,0,99,105,112,104,101,114,95,100,101,99,114,121,112,116,0,99,105,112,104,101,114,95,100,101,99,114,121,112,116,58,32,105,110,118,97,108,105,100,32,109,111,100,101,32,37,100,10,0,87,65,82,78,73,78,71,58,32,99,105,112,104,101,114,95,115,101,116,105,118,58,32,105,118,108,101,110,61,37,117,32,98,108,107,108,101,110,61,37,117,10,0,99,105,112,104,101,114,95,115,101,116,105,118,0,73,86,32,108,101,110,103,116,104,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,98,108,111,99,107,108,101,110,103,116,104,0,48,120,55,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,69,68,0,45,48,120,48,49,0,45,48,120,50,68,70,67,57,51,49,49,68,52,57,48,48,49,56,67,55,51,51,56,66,70,56,54,56,56,56,54,49,55,54,55,70,70,56,70,70,53,66,50,66,69,66,69,50,55,53,52,56,65,49,52,66,50,51,53,69,67,65,54,56,55,52,65,0,48,120,49,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,49,52,68,69,70,57,68,69,65,50,70,55,57,67,68,54,53,56,49,50,54,51,49,65,53,67,70,53,68,51,69,68,0,48,120,50,49,54,57,51,54,68,51,67,68,54,69,53,51,70,69,67,48,65,52,69,50,51,49,70,68,68,54,68,67,53,67,54,57,50,67,67,55,54,48,57,53,50,53,65,55,66,50,67,57,53,54,50,68,54,48,56,70,50,53,68,53,49,65,0,48,120,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,53,56,0,48,120,48,56,0,78,73,83,84,32,80,45,49,57,50,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,101,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,101,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,99,0,48,120,54,52,50,49,48,53,49,57,101,53,57,99,56,48,101,55,48,102,97,55,101,57,97,98,55,50,50,52,51,48,52,57,102,101,98,56,100,101,101,99,99,49,52,54,98,57,98,49,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,57,57,100,101,102,56,51,54,49,52,54,98,99,57,98,49,98,52,100,50,50,56,51,49,0,48,120,49,56,56,100,97,56,48,101,98,48,51,48,57,48,102,54,55,99,98,102,50,48,101,98,52,51,97,49,56,56,48,48,102,52,102,102,48,97,102,100,56,50,102,102,49,48,49,50,0,48,120,48,55,49,57,50,98,57,53,102,102,99,56,100,97,55,56,54,51,49,48,49,49,101,100,54,98,50,52,99,100,100,53,55,51,102,57,55,55,97,49,49,101,55,57,52,56,49,49,0,48,120,48,49,0,78,73,83,84,32,80,45,50,50,52,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,49,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,101,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,101,0,48,120,98,52,48,53,48,97,56,53,48,99,48,52,98,51,97,98,102,53,52,49,51,50,53,54,53,48,52,52,98,48,98,55,100,55,98,102,100,56,98,97,50,55,48,98,51,57,52,51,50,51,53,53,102,102,98,52,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,49,54,97,50,101,48,98,56,102,48,51,101,49,51,100,100,50,57,52,53,53,99,53,99,50,97,51,100,0,48,120,98,55,48,101,48,99,98,100,54,98,98,52,98,102,55,102,51,50,49,51,57,48,98,57,52,97,48,51,99,49,100,51,53,54,99,50,49,49,50,50,51,52,51,50,56,48,100,54,49,49,53,99,49,100,50,49,0,48,120,98,100,51,55,54,51,56,56,98,53,102,55,50,51,102,98,52,99,50,50,100,102,101,54,99,100,52,51,55,53,97,48,53,97,48,55,52,55,54,52,52,52,100,53,56,49,57,57,56,53,48,48,55,101,51,52,0,78,73,83,84,32,80,45,50,53,54,0,48,120,102,102,102,102,102,102,102,102,48,48,48,48,48,48,48,49,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,0,48,120,102,102,102,102,102,102,102,102,48,48,48,48,48,48,48,49,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,99,0,48,120,53,97,99,54,51,53,100,56,97,97,51,97,57,51,101,55,98,51,101,98,98,100,53,53,55,54,57,56,56,54,98,99,54,53,49,100,48,54,98,48,99,99,53,51,98,48,102,54,51,98,99,101,51,99,51,101,50,55,100,50,54,48,52,98,0,48,120,102,102,102,102,102,102,102,102,48,48,48,48,48,48,48,48,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,98,99,101,54,102,97,97,100,97,55,49,55,57,101,56,52,102,51,98,57,99,97,99,50,102,99,54,51,50,53,53,49,0,48,120,54,98,49,55,100,49,102,50,101,49,50,99,52,50,52,55,102,56,98,99,101,54,101,53,54,51,97,52,52,48,102,50,55,55,48,51,55,100,56,49,50,100,101,98,51,51,97,48,102,52,97,49,51,57,52,53,100,56,57,56,99,50,57,54,0,48,120,52,102,101,51,52,50,101,50,102,101,49,97,55,102,57,98,56,101,101,55,101,98,52,97,55,99,48,102,57,101,49,54,50,98,99,101,51,51,53,55,54,98,51,49,53,101,99,101,99,98,98,54,52,48,54,56,51,55,98,102,53,49,102,53,0,78,73,83,84,32,80,45,51,56,52,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,101,102,102,102,102,102,102,102,102,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,102,102,102,102,102,102,102,102,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,101,102,102,102,102,102,102,102,102,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,102,102,102,102,102,102,102,99,0,48,120,98,51,51,49,50,102,97,55,101,50,51,101,101,55,101,52,57,56,56,101,48,53,54,98,101,51,102,56,50,100,49,57,49,56,49,100,57,99,54,101,102,101,56,49,52,49,49,50,48,51,49,52,48,56,56,102,53,48,49,51,56,55,53,97,99,54,53,54,51,57,56,100,56,97,50,101,100,49,57,100,50,97,56,53,99,56,101,100,100,51,101,99,50,97,101,102,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,99,55,54,51,52,100,56,49,102,52,51,55,50,100,100,102,53,56,49,97,48,100,98,50,52,56,98,48,97,55,55,97,101,99,101,99,49,57,54,97,99,99,99,53,50,57,55,51,0,48,120,97,97,56,55,99,97,50,50,98,101,56,98,48,53,51,55,56,101,98,49,99,55,49,101,102,51,50,48,97,100,55,52,54,101,49,100,51,98,54,50,56,98,97,55,57,98,57,56,53,57,102,55,52,49,101,48,56,50,53,52,50,97,51,56,53,53,48,50,102,50,53,100,98,102,53,53,50,57,54,99,51,97,53,52,53,101,51,56,55,50,55,54,48,97,98,55,0,48,120,51,54,49,55,100,101,52,97,57,54,50,54,50,99,54,102,53,100,57,101,57,56,98,102,57,50,57,50,100,99,50,57,102,56,102,52,49,100,98,100,50,56,57,97,49,52,55,99,101,57,100,97,51,49,49,51,98,53,102,48,98,56,99,48,48,97,54,48,98,49,99,101,49,100,55,101,56,49,57,100,55,97,52,51,49,100,55,99,57,48,101,97,48,101,53,102,0,78,73,83,84,32,80,45,53,50,49,0,48,120,48,49,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,0,48,120,48,49,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,99,0,48,120,48,53,49,57,53,51,101,98,57,54,49,56,101,49,99,57,97,49,102,57,50,57,97,50,49,97,48,98,54,56,53,52,48,101,101,97,50,100,97,55,50,53,98,57,57,98,51,49,53,102,51,98,56,98,52,56,57,57,49,56,101,102,49,48,57,101,49,53,54,49,57,51,57,53,49,101,99,55,101,57,51,55,98,49,54,53,50,99,48,98,100,51,98,98,49,98,102,48,55,51,53,55,51,100,102,56,56,51,100,50,99,51,52,102,49,101,102,52,53,49,102,100,52,54,98,53,48,51,102,48,48,0,48,120,49,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,97,53,49,56,54,56,55,56,51,98,102,50,102,57,54,54,98,55,102,99,99,48,49,52,56,102,55,48,57,97,53,100,48,51,98,98,53,99,57,98,56,56,57,57,99,52,55,97,101,98,98,54,102,98,55,49,101,57,49,51,56,54,52,48,57,0,48,120,48,48,99,54,56,53,56,101,48,54,98,55,48,52,48,52,101,57,99,100,57,101,51,101,99,98,54,54,50,51,57,53,98,52,52,50,57,99,54,52,56,49,51,57,48,53,51,102,98,53,50,49,102,56,50,56,97,102,54,48,54,98,52,100,51,100,98,97,97,49,52,98,53,101,55,55,101,102,101,55,53,57,50,56,102,101,49,100,99,49,50,55,97,50,102,102,97,56,100,101,51,51,52,56,98,51,99,49,56,53,54,97,52,50,57,98,102,57,55,101,55,101,51,49,99,50,101,53,98,100,54,54,0,48,120,48,49,49,56,51,57,50,57,54,97,55,56,57,97,51,98,99,48,48,52,53,99,56,97,53,102,98,52,50,99,55,100,49,98,100,57,57,56,102,53,52,52,52,57,53,55,57,98,52,52,54,56,49,55,97,102,98,100,49,55,50,55,51,101,54,54,50,99,57,55,101,101,55,50,57,57,53,101,102,52,50,54,52,48,99,53,53,48,98,57,48,49,51,102,97,100,48,55,54,49,51,53,51,99,55,48,56,54,97,50,55,50,99,50,52,48,56,56,98,101,57,52,55,54,57,102,100,49,54,54,53,48,0,98,114,97,105,110,112,111,111,108,80,49,54,48,114,49,0,48,120,101,57,53,101,52,97,53,102,55,51,55,48,53,57,100,99,54,48,100,102,99,55,97,100,57,53,98,51,100,56,49,51,57,53,49,53,54,50,48,102,0,48,120,51,52,48,101,55,98,101,50,97,50,56,48,101,98,55,52,101,50,98,101,54,49,98,97,100,97,55,52,53,100,57,55,101,56,102,55,99,51,48,48,0,48,120,49,101,53,56,57,97,56,53,57,53,52,50,51,52,49,50,49,51,52,102,97,97,50,100,98,100,101,99,57,53,99,56,100,56,54,55,53,101,53,56,0,48,120,101,57,53,101,52,97,53,102,55,51,55,48,53,57,100,99,54,48,100,102,53,57,57,49,100,52,53,48,50,57,52,48,57,101,54,48,102,99,48,57,0,48,120,98,101,100,53,97,102,49,54,101,97,51,102,54,97,52,102,54,50,57,51,56,99,52,54,51,49,101,98,53,97,102,55,98,100,98,99,100,98,99,51,0,48,120,49,54,54,55,99,98,52,55,55,97,49,97,56,101,99,51,51,56,102,57,52,55,52,49,54,54,57,99,57,55,54,51,49,54,100,97,54,51,50,49,0,98,114,97,105,110,112,111,111,108,80,49,57,50,114,49,0,48,120,99,51,48,50,102,52,49,100,57,51,50,97,51,54,99,100,97,55,97,51,52,54,51,48,57,51,100,49,56,100,98,55,56,102,99,101,52,55,54,100,101,49,97,56,54,50,57,55,0,48,120,54,97,57,49,49,55,52,48,55,54,98,49,101,48,101,49,57,99,51,57,99,48,51,49,102,101,56,54,56,53,99,49,99,97,101,48,52,48,101,53,99,54,57,97,50,56,101,102,0,48,120,52,54,57,97,50,56,101,102,55,99,50,56,99,99,97,51,100,99,55,50,49,100,48,52,52,102,52,52,57,54,98,99,99,97,55,101,102,52,49,52,54,102,98,102,50,53,99,57,0,48,120,99,51,48,50,102,52,49,100,57,51,50,97,51,54,99,100,97,55,97,51,52,54,50,102,57,101,57,101,57,49,54,98,53,98,101,56,102,49,48,50,57,97,99,52,97,99,99,49,0,48,120,99,48,97,48,54,52,55,101,97,97,98,54,97,52,56,55,53,51,98,48,51,51,99,53,54,99,98,48,102,48,57,48,48,97,50,102,53,99,52,56,53,51,51,55,53,102,100,54,0,48,120,49,52,98,54,57,48,56,54,54,97,98,100,53,98,98,56,56,98,53,102,52,56,50,56,99,49,52,57,48,48,48,50,101,54,55,55,51,102,97,50,102,97,50,57,57,98,56,102,0,98,114,97,105,110,112,111,111,108,80,50,50,52,114,49,0,48,120,100,55,99,49,51,52,97,97,50,54,52,51,54,54,56,54,50,97,49,56,51,48,50,53,55,53,100,49,100,55,56,55,98,48,57,102,48,55,53,55,57,55,100,97,56,57,102,53,55,101,99,56,99,48,102,102,0,48,120,54,56,97,53,101,54,50,99,97,57,99,101,54,99,49,99,50,57,57,56,48,51,97,54,99,49,53,51,48,98,53,49,52,101,49,56,50,97,100,56,98,48,48,52,50,97,53,57,99,97,100,50,57,102,52,51,0,48,120,50,53,56,48,102,54,51,99,99,102,101,52,52,49,51,56,56,55,48,55,49,51,98,49,97,57,50,51,54,57,101,51,51,101,50,49,51,53,100,50,54,54,100,98,98,51,55,50,51,56,54,99,52,48,48,98,0,48,120,100,55,99,49,51,52,97,97,50,54,52,51,54,54,56,54,50,97,49,56,51,48,50,53,55,53,100,48,102,98,57,56,100,49,49,54,98,99,52,98,54,100,100,101,98,99,97,51,97,53,97,55,57,51,57,102,0,48,120,48,100,57,48,50,57,97,100,50,99,55,101,53,99,102,52,51,52,48,56,50,51,98,50,97,56,55,100,99,54,56,99,57,101,52,99,101,51,49,55,52,99,49,101,54,101,102,100,101,101,49,50,99,48,55,100,0,48,120,53,56,97,97,53,54,102,55,55,50,99,48,55,50,54,102,50,52,99,54,98,56,57,101,52,101,99,100,97,99,50,52,51,53,52,98,57,101,57,57,99,97,97,51,102,54,100,51,55,54,49,52,48,50,99,100,0,98,114,97,105,110,112,111,111,108,80,50,53,54,114,49,0,48,120,97,57,102,98,53,55,100,98,97,49,101,101,97,57,98,99,51,101,54,54,48,97,57,48,57,100,56,51,56,100,55,50,54,101,51,98,102,54,50,51,100,53,50,54,50,48,50,56,50,48,49,51,52,56,49,100,49,102,54,101,53,51,55,55,0,48,120,55,100,53,97,48,57,55,53,102,99,50,99,51,48,53,55,101,101,102,54,55,53,51,48,52,49,55,97,102,102,101,55,102,98,56,48,53,53,99,49,50,54,100,99,53,99,54,99,101,57,52,97,52,98,52,52,102,51,51,48,98,53,100,57,0,48,120,50,54,100,99,53,99,54,99,101,57,52,97,52,98,52,52,102,51,51,48,98,53,100,57,98,98,100,55,55,99,98,102,57,53,56,52,49,54,50,57,53,99,102,55,101,49,99,101,54,98,99,99,100,99,49,56,102,102,56,99,48,55,98,54,0,48,120,97,57,102,98,53,55,100,98,97,49,101,101,97,57,98,99,51,101,54,54,48,97,57,48,57,100,56,51,56,100,55,49,56,99,51,57,55,97,97,51,98,53,54,49,97,54,102,55,57,48,49,101,48,101,56,50,57,55,52,56,53,54,97,55,0,48,120,56,98,100,50,97,101,98,57,99,98,55,101,53,55,99,98,50,99,52,98,52,56,50,102,102,99,56,49,98,55,97,102,98,57,100,101,50,55,101,49,101,51,98,100,50,51,99,50,51,97,52,52,53,51,98,100,57,97,99,101,51,50,54,50,0,48,120,53,52,55,101,102,56,51,53,99,51,100,97,99,52,102,100,57,55,102,56,52,54,49,97,49,52,54,49,49,100,99,57,99,50,55,55,52,53,49,51,50,100,101,100,56,101,53,52,53,99,49,100,53,52,99,55,50,102,48,52,54,57,57,55,0,98,114,97,105,110,112,111,111,108,80,51,50,48,114,49,0,48,120,100,51,53,101,52,55,50,48,51,54,98,99,52,102,98,55,101,49,51,99,55,56,53,101,100,50,48,49,101,48,54,53,102,57,56,102,99,102,97,54,102,54,102,52,48,100,101,102,52,102,57,50,98,57,101,99,55,56,57,51,101,99,50,56,102,99,100,52,49,50,98,49,102,49,98,51,50,101,50,55,0,48,120,51,101,101,51,48,98,53,54,56,102,98,97,98,48,102,56,56,51,99,99,101,98,100,52,54,100,51,102,51,98,98,56,97,50,97,55,51,53,49,51,102,53,101,98,55,57,100,97,54,54,49,57,48,101,98,48,56,53,102,102,97,57,102,52,57,50,102,51,55,53,97,57,55,100,56,54,48,101,98,52,0,48,120,53,50,48,56,56,51,57,52,57,100,102,100,98,99,52,50,100,51,97,100,49,57,56,54,52,48,54,56,56,97,54,102,101,49,51,102,52,49,51,52,57,53,53,52,98,52,57,97,99,99,51,49,100,99,99,100,56,56,52,53,51,57,56,49,54,102,53,101,98,52,97,99,56,102,98,49,102,49,97,54,0,48,120,100,51,53,101,52,55,50,48,51,54,98,99,52,102,98,55,101,49,51,99,55,56,53,101,100,50,48,49,101,48,54,53,102,57,56,102,99,102,97,53,98,54,56,102,49,50,97,51,50,100,52,56,50,101,99,55,101,101,56,54,53,56,101,57,56,54,57,49,53,53,53,98,52,52,99,53,57,51,49,49,0,48,120,52,51,98,100,55,101,57,97,102,98,53,51,100,56,98,56,53,50,56,57,98,99,99,52,56,101,101,53,98,102,101,54,102,50,48,49,51,55,100,49,48,97,48,56,55,101,98,54,101,55,56,55,49,101,50,97,49,48,97,53,57,57,99,55,49,48,97,102,56,100,48,100,51,57,101,50,48,54,49,49,0,48,120,49,52,102,100,100,48,53,53,52,53,101,99,49,99,99,56,97,98,52,48,57,51,50,52,55,102,55,55,50,55,53,101,48,55,52,51,102,102,101,100,49,49,55,49,56,50,101,97,97,57,99,55,55,56,55,55,97,97,97,99,54,97,99,55,100,51,53,50,52,53,100,49,54,57,50,101,56,101,101,49,0,98,114,97,105,110,112,111,111,108,80,51,56,52,114,49,0,48,120,56,99,98,57,49,101,56,50,97,51,51,56,54,100,50,56,48,102,53,100,54,102,55,101,53,48,101,54,52,49,100,102,49,53,50,102,55,49,48,57,101,100,53,52,53,54,98,52,49,50,98,49,100,97,49,57,55,102,98,55,49,49,50,51,97,99,100,51,97,55,50,57,57,48,49,100,49,97,55,49,56,55,52,55,48,48,49,51,51,49,48,55,101,99,53,51,0,48,120,55,98,99,51,56,50,99,54,51,100,56,99,49,53,48,99,51,99,55,50,48,56,48,97,99,101,48,53,97,102,97,48,99,50,98,101,97,50,56,101,52,102,98,50,50,55,56,55,49,51,57,49,54,53,101,102,98,97,57,49,102,57,48,102,56,97,97,53,56,49,52,97,53,48,51,97,100,52,101,98,48,52,97,56,99,55,100,100,50,50,99,101,50,56,50,54,0,48,120,48,52,97,56,99,55,100,100,50,50,99,101,50,56,50,54,56,98,51,57,98,53,53,52,49,54,102,48,52,52,55,99,50,102,98,55,55,100,101,49,48,55,100,99,100,50,97,54,50,101,56,56,48,101,97,53,51,101,101,98,54,50,100,53,55,99,98,52,51,57,48,50,57,53,100,98,99,57,57,52,51,97,98,55,56,54,57,54,102,97,53,48,52,99,49,49,0,48,120,56,99,98,57,49,101,56,50,97,51,51,56,54,100,50,56,48,102,53,100,54,102,55,101,53,48,101,54,52,49,100,102,49,53,50,102,55,49,48,57,101,100,53,52,53,54,98,51,49,102,49,54,54,101,54,99,97,99,48,52,50,53,97,55,99,102,51,97,98,54,97,102,54,98,55,102,99,51,49,48,51,98,56,56,51,50,48,50,101,57,48,52,54,53,54,53,0,48,120,49,100,49,99,54,52,102,48,54,56,99,102,52,53,102,102,97,50,97,54,51,97,56,49,98,55,99,49,51,102,54,98,56,56,52,55,97,51,101,55,55,101,102,49,52,102,101,51,100,98,55,102,99,97,102,101,48,99,98,100,49,48,101,56,101,56,50,54,101,48,51,52,51,54,100,54,52,54,97,97,101,102,56,55,98,50,101,50,52,55,100,52,97,102,49,101,0,48,120,56,97,98,101,49,100,55,53,50,48,102,57,99,50,97,52,53,99,98,49,101,98,56,101,57,53,99,102,100,53,53,50,54,50,98,55,48,98,50,57,102,101,101,99,53,56,54,52,101,49,57,99,48,53,52,102,102,57,57,49,50,57,50,56,48,101,52,54,52,54,50,49,55,55,57,49,56,49,49,49,52,50,56,50,48,51,52,49,50,54,51,99,53,51,49,53,0,98,114,97,105,110,112,111,111,108,80,53,49,50,114,49,0,48,120,97,97,100,100,57,100,98,56,100,98,101,57,99,52,56,98,51,102,100,52,101,54,97,101,51,51,99,57,102,99,48,55,99,98,51,48,56,100,98,51,98,51,99,57,100,50,48,101,100,54,54,51,57,99,99,97,55,48,51,51,48,56,55,49,55,100,52,100,57,98,48,48,57,98,99,54,54,56,52,50,97,101,99,100,97,49,50,97,101,54,97,51,56,48,101,54,50,56,56,49,102,102,50,102,50,100,56,50,99,54,56,53,50,56,97,97,54,48,53,54,53,56,51,97,52,56,102,51,0,48,120,55,56,51,48,97,51,51,49,56,98,54,48,51,98,56,57,101,50,51,50,55,49,52,53,97,99,50,51,52,99,99,53,57,52,99,98,100,100,56,100,51,100,102,57,49,54,49,48,97,56,51,52,52,49,99,97,101,97,57,56,54,51,98,99,50,100,101,100,53,100,53,97,97,56,50,53,51,97,97,49,48,97,50,101,102,49,99,57,56,98,57,97,99,56,98,53,55,102,49,49,49,55,97,55,50,98,102,50,99,55,98,57,101,55,99,49,97,99,52,100,55,55,102,99,57,52,99,97,0,48,120,51,100,102,57,49,54,49,48,97,56,51,52,52,49,99,97,101,97,57,56,54,51,98,99,50,100,101,100,53,100,53,97,97,56,50,53,51,97,97,49,48,97,50,101,102,49,99,57,56,98,57,97,99,56,98,53,55,102,49,49,49,55,97,55,50,98,102,50,99,55,98,57,101,55,99,49,97,99,52,100,55,55,102,99,57,52,99,97,100,99,48,56,51,101,54,55,57,56,52,48,53,48,98,55,53,101,98,97,101,53,100,100,50,56,48,57,98,100,54,51,56,48,49,54,102,55,50,51,0,48,120,97,97,100,100,57,100,98,56,100,98,101,57,99,52,56,98,51,102,100,52,101,54,97,101,51,51,99,57,102,99,48,55,99,98,51,48,56,100,98,51,98,51,99,57,100,50,48,101,100,54,54,51,57,99,99,97,55,48,51,51,48,56,55,48,53,53,51,101,53,99,52,49,52,99,97,57,50,54,49,57,52,49,56,54,54,49,49,57,55,102,97,99,49,48,52,55,49,100,98,49,100,51,56,49,48,56,53,100,100,97,100,100,98,53,56,55,57,54,56,50,57,99,97,57,48,48,54,57,0,48,120,56,49,97,101,101,52,98,100,100,56,50,101,100,57,54,52,53,97,50,49,51,50,50,101,57,99,52,99,54,97,57,51,56,53,101,100,57,102,55,48,98,53,100,57,49,54,99,49,98,52,51,98,54,50,101,101,102,52,100,48,48,57,56,101,102,102,51,98,49,102,55,56,101,50,100,48,100,52,56,100,53,48,100,49,54,56,55,98,57,51,98,57,55,100,53,102,55,99,54,100,53,48,52,55,52,48,54,97,53,101,54,56,56,98,51,53,50,50,48,57,98,99,98,57,102,56,50,50],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+20480);allocate([48,120,55,100,100,101,51,56,53,100,53,54,54,51,51,50,101,99,99,48,101,97,98,102,97,57,99,102,55,56,50,50,102,100,102,50,48,57,102,55,48,48,50,52,97,53,55,98,49,97,97,48,48,48,99,53,53,98,56,56,49,102,56,49,49,49,98,50,100,99,100,101,52,57,52,97,53,102,52,56,53,101,53,98,99,97,52,98,100,56,56,97,50,55,54,51,97,101,100,49,99,97,50,98,50,102,97,56,102,48,53,52,48,54,55,56,99,100,49,101,48,102,51,97,100,56,48,56,57,50,0,71,79,83,84,50,48,48,49,45,116,101,115,116,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,52,51,49,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,55,0,48,120,53,102,98,102,102,52,57,56,97,97,57,51,56,99,101,55,51,57,98,56,101,48,50,50,102,98,97,102,101,102,52,48,53,54,51,102,54,101,54,97,51,52,55,50,102,99,50,97,53,49,52,99,48,99,101,57,100,97,101,50,51,98,55,101,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,49,53,48,102,101,56,97,49,56,57,50,57,55,54,49,53,52,99,53,57,99,102,99,49,57,51,97,99,99,102,53,98,51,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,50,0,48,120,48,56,101,50,97,56,97,48,101,54,53,49,52,55,100,52,98,100,54,51,49,54,48,51,48,101,49,54,100,49,57,99,56,53,99,57,55,102,48,97,57,99,97,50,54,55,49,50,50,98,57,54,97,98,98,99,101,97,55,101,56,102,99,56,0,71,79,83,84,50,48,48,49,45,67,114,121,112,116,111,80,114,111,45,65,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,100,57,55,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,100,57,52,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,97,54,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,54,99,54,49,49,48,55,48,57,57,53,97,100,49,48,48,52,53,56,52,49,98,48,57,98,55,54,49,98,56,57,51,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,49,0,48,120,56,100,57,49,101,52,55,49,101,48,57,56,57,99,100,97,50,55,100,102,53,48,53,97,52,53,51,102,50,98,55,54,51,53,50,57,52,102,50,100,100,102,50,51,101,51,98,49,50,50,97,99,99,57,57,99,57,101,57,102,49,101,49,52,0,71,79,83,84,50,48,48,49,45,67,114,121,112,116,111,80,114,111,45,66,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,99,57,57,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,99,57,54,0,48,120,51,101,49,97,102,52,49,57,97,50,54,57,97,53,102,56,54,54,97,55,100,51,99,50,53,99,51,100,102,56,48,97,101,57,55,57,50,53,57,51,55,51,102,102,50,98,49,56,50,102,52,57,100,52,99,101,55,101,49,98,98,99,56,98,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,49,53,102,55,48,48,99,102,102,102,49,97,54,50,52,101,53,101,52,57,55,49,54,49,98,99,99,56,97,49,57,56,102,0,48,120,51,102,97,56,49,50,52,51,53,57,102,57,54,54,56,48,98,56,51,100,49,99,51,101,98,50,99,48,55,48,101,53,99,53,52,53,99,57,56,53,56,100,48,51,101,99,102,98,55,52,52,98,102,56,100,55,49,55,55,49,55,101,102,99,0,71,79,83,84,50,48,48,49,45,67,114,121,112,116,111,80,114,111,45,67,0,48,120,57,98,57,102,54,48,53,102,53,97,56,53,56,49,48,55,97,98,49,101,99,56,53,101,54,98,52,49,99,56,97,97,99,102,56,52,54,101,56,54,55,56,57,48,53,49,100,51,55,57,57,56,102,55,98,57,48,50,50,100,55,53,57,98,0,48,120,57,98,57,102,54,48,53,102,53,97,56,53,56,49,48,55,97,98,49,101,99,56,53,101,54,98,52,49,99,56,97,97,99,102,56,52,54,101,56,54,55,56,57,48,53,49,100,51,55,57,57,56,102,55,98,57,48,50,50,100,55,53,57,56,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,48,53,97,0,48,120,57,98,57,102,54,48,53,102,53,97,56,53,56,49,48,55,97,98,49,101,99,56,53,101,54,98,52,49,99,56,97,97,53,56,50,99,97,51,53,49,49,101,100,100,102,98,55,52,102,48,50,102,51,97,54,53,57,56,57,56,48,98,98,57,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,0,48,120,52,49,101,99,101,53,53,55,52,51,55,49,49,97,56,99,51,99,98,102,51,55,56,51,99,100,48,56,99,48,101,101,52,100,52,100,99,52,52,48,100,52,54,52,49,97,56,102,51,54,54,101,53,53,48,100,102,100,98,51,98,98,54,55,0,71,79,83,84,50,48,49,50,45,116,101,115,116,0,48,120,52,53,51,49,97,99,100,49,102,101,48,48,50,51,99,55,53,53,48,100,50,54,55,98,54,98,50,102,101,101,56,48,57,50,50,98,49,52,98,50,102,102,98,57,48,102,48,52,100,52,101,98,55,99,48,57,98,53,100,50,100,49,53,100,102,49,100,56,53,50,55,52,49,97,102,52,55,48,52,97,48,52,53,56,48,52,55,101,56,48,101,52,53,52,54,100,51,53,98,56,51,51,54,102,97,99,50,50,52,100,100,56,49,54,54,52,98,98,102,53,50,56,98,101,54,51,55,51,0,48,120,49,99,102,102,48,56,48,54,97,51,49,49,49,54,100,97,50,57,100,56,99,102,97,53,52,101,53,55,101,98,55,52,56,98,99,53,102,51,55,55,101,52,57,52,48,48,102,100,100,55,56,56,98,54,52,57,101,99,97,49,97,99,52,51,54,49,56,51,52,48,49,51,98,50,97,100,55,51,50,50,52,56,48,97,56,57,99,97,53,56,101,48,99,102,55,52,98,99,57,101,53,52,48,99,50,97,100,100,54,56,57,55,102,97,100,48,97,51,48,56,52,102,51,48,50,97,100,99,0,48,120,52,53,51,49,97,99,100,49,102,101,48,48,50,51,99,55,53,53,48,100,50,54,55,98,54,98,50,102,101,101,56,48,57,50,50,98,49,52,98,50,102,102,98,57,48,102,48,52,100,52,101,98,55,99,48,57,98,53,100,50,100,49,53,100,97,56,50,102,50,100,55,101,99,98,49,100,98,97,99,55,49,57,57,48,53,99,53,101,101,99,99,52,50,51,102,49,100,56,54,101,50,53,101,100,98,101,50,51,99,53,57,53,100,54,52,52,97,97,102,49,56,55,101,54,101,54,100,102,0,48,120,50,52,100,49,57,99,99,54,52,53,55,50,101,101,51,48,102,51,57,54,98,102,54,101,98,98,102,100,55,97,54,99,53,50,49,51,98,51,98,51,100,55,48,53,55,99,99,56,50,53,102,57,49,48,57,51,97,54,56,99,100,55,54,50,102,100,54,48,54,49,49,50,54,50,99,100,56,51,56,100,99,54,98,54,48,97,97,55,101,101,101,56,48,52,101,50,56,98,99,56,52,57,57,55,55,102,97,99,51,51,98,52,98,53,51,48,102,49,98,49,50,48,50,52,56,97,57,97,0,48,120,50,98,98,51,49,50,97,52,51,98,100,50,99,101,54,101,48,100,48,50,48,54,49,51,99,56,53,55,97,99,100,100,99,102,98,102,48,54,49,101,57,49,101,53,102,50,99,51,102,51,50,52,52,55,99,50,53,57,102,51,57,98,50,99,56,51,97,98,49,53,54,100,55,55,102,49,52,57,54,98,102,55,101,98,51,51,53,49,101,49,101,101,52,101,52,51,100,99,49,97,49,56,98,57,49,98,50,52,54,52,48,98,54,100,98,98,57,50,99,98,49,97,100,100,51,55,49,101,0,71,79,83,84,50,48,49,50,45,116,99,50,54,45,65,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,100,99,55,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,100,99,52,0,48,120,101,56,99,50,53,48,53,100,101,100,102,99,56,54,100,100,99,49,98,100,48,98,50,98,54,54,54,55,102,49,100,97,51,52,98,56,50,53,55,52,55,54,49,99,98,48,101,56,55,57,98,100,48,56,49,99,102,100,48,98,54,50,54,53,101,101,51,99,98,48,57,48,102,51,48,100,50,55,54,49,52,99,98,52,53,55,52,48,49,48,100,97,57,48,100,100,56,54,50,101,102,57,100,52,101,98,101,101,52,55,54,49,53,48,51,49,57,48,55,56,53,97,55,49,99,55,54,48,0,48,120,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,50,55,101,54,57,53,51,50,102,52,56,100,56,57,49,49,54,102,102,50,50,98,56,100,52,101,48,53,54,48,54,48,57,98,52,98,51,56,97,98,102,97,100,50,98,56,53,100,99,97,99,100,98,49,52,49,49,102,49,48,98,50,55,53,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,51,0,48,120,55,53,48,51,99,102,101,56,55,97,56,51,54,97,101,51,97,54,49,98,56,56,49,54,101,50,53,52,53,48,101,54,99,101,53,101,49,99,57,51,97,99,102,49,97,98,99,49,55,55,56,48,54,52,102,100,99,98,101,102,97,57,50,49,100,102,49,54,50,54,98,101,52,102,100,48,51,54,101,57,51,100,55,53,101,54,97,53,48,101,51,97,52,49,101,57,56,48,50,56,102,101,53,102,99,50,51,53,102,53,98,56,56,57,97,53,56,57,99,98,53,50,49,53,102,50,97,52,0,71,79,83,84,50,48,49,50,45,116,99,50,54,45,66,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,54,102,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,54,99,0,48,120,54,56,55,100,49,98,52,53,57,100,99,56,52,49,52,53,55,101,51,101,48,54,99,102,54,102,53,101,50,53,49,55,98,57,55,99,55,100,54,49,52,97,102,49,51,56,98,99,98,102,56,53,100,99,56,48,54,99,52,98,50,56,57,102,51,101,57,54,53,100,50,100,98,49,52,49,54,100,50,49,55,102,56,98,50,55,54,102,97,100,49,97,98,54,57,99,53,48,102,55,56,98,101,101,49,102,97,51,49,48,54,101,102,98,56,99,99,98,99,55,99,53,49,52,48,49,49,54,0,48,120,56,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,49,52,57,97,49,101,99,49,52,50,53,54,53,97,53,52,53,97,99,102,100,98,55,55,98,100,57,100,52,48,99,102,97,56,98,57,57,54,55,49,50,49,48,49,98,101,97,48,101,99,54,51,52,54,99,53,52,51,55,52,102,50,53,98,100,0,48,120,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,50,0,48,120,49,97,56,102,55,101,100,97,51,56,57,98,48,57,52,99,50,99,48,55,49,101,51,54,52,55,97,56,57,52,48,102,51,99,49,50,51,98,54,57,55,53,55,56,99,50,49,51,98,101,54,100,100,57,101,54,99,56,101,99,55,51,51,53,100,99,98,50,50,56,102,100,49,101,100,102,52,97,51,57,49,53,50,99,98,99,97,97,102,56,99,48,51,57,56,56,50,56,48,52,49,48,53,53,102,57,52,99,101,101,101,99,55,101,50,49,51,52,48,55,56,48,102,101,52,49,98,100,0,115,101,99,112,50,53,54,107,49,0,48,120,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,69,70,70,70,70,70,67,50,70,0,48,120,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,69,66,65,65,69,68,67,69,54,65,70,52,56,65,48,51,66,66,70,68,50,53,69,56,67,68,48,51,54,52,49,52,49,0,48,120,55,57,66,69,54,54,55,69,70,57,68,67,66,66,65,67,53,53,65,48,54,50,57,53,67,69,56,55,48,66,48,55,48,50,57,66,70,67,68,66,50,68,67,69,50,56,68,57,53,57,70,50,56,49,53,66,49,54,70,56,49,55,57,56,0,48,120,52,56,51,65,68,65,55,55,50,54,65,51,67,52,54,53,53,68,65,52,70,66,70,67,48,69,49,49,48,56,65,56,70,68,49,55,66,52,52,56,65,54,56,53,53,52,49,57,57,67,52,55,68,48,56,70,70,66,49,48,68,52,66,56,0,49,46,51,46,54,46,49,46,52,46,49,46,49,49,53,57,49,46,49,53,46,49,0,49,46,50,46,56,52,48,46,49,48,48,52,53,46,51,46,49,46,49,0,112,114,105,109,101,49,57,50,118,49,0,115,101,99,112,49,57,50,114,49,0,110,105,115,116,112,49,57,50,0,115,101,99,112,50,50,52,114,49,0,49,46,51,46,49,51,50,46,48,46,51,51,0,110,105,115,116,112,50,50,52,0,49,46,50,46,56,52,48,46,49,48,48,52,53,46,51,46,49,46,55,0,112,114,105,109,101,50,53,54,118,49,0,115,101,99,112,50,53,54,114,49,0,110,105,115,116,112,50,53,54,0,115,101,99,112,51,56,52,114,49,0,49,46,51,46,49,51,50,46,48,46,51,52,0,110,105,115,116,112,51,56,52,0,115,101,99,112,53,50,49,114,49,0,49,46,51,46,49,51,50,46,48,46,51,53,0,110,105,115,116,112,53,50,49,0,49,46,51,46,51,54,46,51,46,51,46,50,46,56,46,49,46,49,46,49,0,49,46,51,46,51,54,46,51,46,51,46,50,46,56,46,49,46,49,46,51,0,49,46,51,46,51,54,46,51,46,51,46,50,46,56,46,49,46,49,46,53,0,49,46,51,46,51,54,46,51,46,51,46,50,46,56,46,49,46,49,46,55,0,49,46,51,46,51,54,46,51,46,51,46,50,46,56,46,49,46,49,46,57,0,49,46,51,46,51,54,46,51,46,51,46,50,46,56,46,49,46,49,46,49,49,0,49,46,51,46,51,54,46,51,46,51,46,50,46,56,46,49,46,49,46,49,51,0,49,46,50,46,54,52,51,46,50,46,50,46,51,53,46,48,0,49,46,50,46,54,52,51,46,50,46,50,46,51,53,46,49,0,49,46,50,46,54,52,51,46,50,46,50,46,51,53,46,50,0,49,46,50,46,54,52,51,46,50,46,50,46,51,53,46,51,0,71,79,83,84,50,48,48,49,45,67,114,121,112,116,111,80,114,111,45,88,99,104,65,0,71,79,83,84,50,48,48,49,45,67,114,121,112,116,111,80,114,111,45,88,99,104,66,0,49,46,50,46,54,52,51,46,50,46,50,46,51,54,46,48,0,49,46,50,46,54,52,51,46,50,46,50,46,51,54,46,49,0,49,46,50,46,54,52,51,46,55,46,49,46,50,46,49,46,50,46,49,0,49,46,50,46,54,52,51,46,55,46,49,46,50,46,49,46,50,46,50,0,49,46,51,46,49,51,50,46,48,46,49,48,0,48,120,48,52,0,45,112,97,98,103,110,104,0,98,0,103,0,104,0,100,0,46,120,0,46,121,0,46,122,0,101,99,99,32,103,101,116,32,112,97,114,97,109,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,10,0,40,112,117,98,108,105,99,45,107,101,121,40,101,99,99,40,112,37,109,41,40,97,37,109,41,40,98,37,109,41,40,103,37,109,41,40,110,37,109,41,40,104,37,109,41,41,41,0,103,46,120,0,103,46,121,0,113,46,120,0,113,46,121,0,101,100,100,115,97,95,101,110,99,111,100,101,112,111,105,110,116,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,10,0,48,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,68,0,50,66,56,51,50,52,56,48,52,70,67,49,68,70,48,66,50,66,52,68,48,48,57,57,51,68,70,66,68,55,65,55,50,70,52,51,49,56,48,54,65,68,50,70,69,52,55,56,67,52,69,69,49,66,50,55,52,65,48,69,65,48,66,48,0,115,99,97,110,110,105,110,103,32,69,67,67,32,112,97,114,97,109,101,116,101,114,32,102,97,105,108,101,100,58,32,37,115,10,0,101,99,103,101,110,32,32,32,32,32,32,112,107,0,42,32,101,95,112,107,0,32,32,101,95,112,107,0,32,32,32,32,32,109,0,32,32,32,114,0,32,32,32,101,95,114,0,32,72,40,82,43,41,0,32,32,32,101,95,115,0,87,101,105,101,114,115,116,114,97,115,115,0,69,100,119,97,114,100,115,0,83,116,97,110,100,97,114,100,0,69,100,50,53,53,49,57,0,109,112,105,95,112,114,105,110,116,32,102,97,105,108,101,100,58,32,37,115,10,0,109,112,105,95,115,99,97,110,32,102,97,105,108,101,100,58,32,37,115,10,0,104,109,97,99,0,97,108,103,111,114,105,116,104,109,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,105,110,118,97,108,105,100,32,116,101,115,116,115,32,100,97,116,97,0,103,99,114,121,95,109,100,95,115,101,116,107,101,121,32,102,97,105,108,101,100,0,103,99,114,121,95,109,100,95,114,101,97,100,32,102,97,105,108,101,100,0,100,111,101,115,32,110,111,116,32,109,97,116,99,104,0,100,97,116,97,45,50,56,32,107,101,121,45,52,0,119,104,97,116,32,100,111,32,121,97,32,119,97,110,116,32,102,111,114,32,110,111,116,104,105,110,103,63,0,74,101,102,101,0,100,97,116,97,45,57,32,107,101,121,45,50,48,0,72,105,32,84,104,101,114,101,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,100,97,116,97,45,53,48,32,107,101,121,45,50,48,0,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,0,100,97,116,97,45,53,48,32,107,101,121,45,50,54,0,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,100,97,116,97,45,53,52,32,107,101,121,45,49,51,49,0,84,101,115,116,32,85,115,105,110,103,32,76,97,114,103,101,114,32,84,104,97,110,32,66,108,111,99,107,45,83,105,122,101,32,75,101,121,32,45,32,72,97,115,104,32,75,101,121,32,70,105,114,115,116,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,0,100,97,116,97,45,49,53,50,32,107,101,121,45,49,51,49,0,84,104,105,115,32,105,115,32,97,32,116,101,115,116,32,117,115,105,110,103,32,97,32,108,97,114,103,101,114,32,116,104,97,110,32,98,108,111,99,107,45,115,105,122,101,32,107,101,121,32,97,110,100,32,97,32,108,97,114,103,101,114,32,116,104,97,110,32,98,108,111,99,107,45,115,105,122,101,32,100,97,116,97,46,32,84,104,101,32,107,101,121,32,110,101,101,100,115,32,116,111,32,98,101,32,104,97,115,104,101,100,32,98,101,102,111,114,101,32,98,101,105,110,103,32,117,115,101,100,32,98,121,32,116,104,101,32,72,77,65,67,32,97,108,103,111,114,105,116,104,109,46,0,95,103,99,114,121,95,104,109,97,99,50,53,54,95,110,101,119,32,102,97,105,108,101,100,0,95,103,99,114,121,95,104,109,97,99,50,53,54,95,102,105,110,97,108,105,122,101,32,102,97,105,108,101,100,0,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,105,110,32,115,101,99,111,110,100,32,105,109,112,108,101,109,101,110,116,97,116,105,111,110,0,70,73,80,83,45,49,57,56,97,44,32,65,46,49,0,83,97,109,112,108,101,32,35,49,0,79,76,163,213,214,139,167,204,10,18,8,201,198,30,156,93,160,64,60,10,0,70,73,80,83,45,49,57,56,97,44,32,65,46,50,0,83,97,109,112,108,101,32,35,50,0,9,34,211,64,95,170,61,25,79,130,164,88,48,115,125,92,198,199,93,36,0,70,73,80,83,45,49,57,56,97,44,32,65,46,51,0,83,97,109,112,108,101,32,35,51,0,188,244,30,171,139,178,216,2,243,208,92,175,124,176,146,236,248,209,163,170,0,70,73,80,83,45,49,57,56,97,44,32,65,46,52,0,83,97,109,112,108,101,32,35,52,0,158,168,134,239,226,104,219,236,206,66,12,117,36,223,50,224,117,26,42,38,0,111,105,100,46,0,79,73,68,46,0,109,100,95,101,110,97,98,108,101,58,32,97,108,103,111,114,105,116,104,109,32,37,100,32,110,111,116,32,97,118,97,105,108,97,98,108,101,10,0,77,68,53,32,117,115,101,100,0,109,100,46,99,0,109,100,95,119,114,105,116,101,0,79,111,112,115,58,32,109,100,32,100,101,98,117,103,32,97,108,114,101,97,100,121,32,115,116,97,114,116,101,100,10,0,100,98,103,109,100,45,37,48,53,100,46,37,46,49,48,115,0,119,0,109,100,32,100,101,98,117,103,58,32,99,97,110,39,116,32,111,112,101,110,32,37,115,10,0,109,111,114,101,32,116,104,97,110,32,111,110,101,32,97,108,103,111,114,105,116,104,109,32,105,110,32,109,100,95,114,101,97,100,40,48,41,10,0,109,100,95,114,101,97,100,0,109,100,95,103,101,116,95,97,108,103,111,0,112,111,115,115,105,98,108,101,32,117,115,97,103,101,32,101,114,114,111,114,0,87,65,82,78,73,78,71,58,32,109,111,114,101,32,116,104,97,110,32,111,110,101,32,97,108,103,111,114,105,116,104,109,32,105,110,32,109,100,95,103,101,116,95,97,108,103,111,40,41,10,0,107,101,121,108,101,110,32,60,61,32,104,100,45,62,99,116,120,45,62,109,97,99,112,97,100,115,95,66,115,105,122,101,0,112,114,101,112,97,114,101,95,109,97,99,112,97,100,115,0,103,99,114,121,95,109,100,95,111,112,101,110,32,102,97,105,108,101,100,32,102,111,114,32,97,108,103,111,32,37,100,58,32,37,115,0,110,111,32,65,83,78,46,49,32,79,73,68,32,102,111,114,32,109,100,32,97,108,103,111,32,37,100,10,0,112,114,105,109,101,103,101,110,0,99,97,110,39,116,32,103,101,110,101,114,97,116,101,32,97,32,112,114,105,109,101,32,119,105,116,104,32,108,101,115,115,32,116,104,97,110,32,37,100,32,98,105,116,115,10,0,111,118,101,114,102,108,111,119,32,105,110,32,112,114,105,109,101,32,103,101,110,101,114,97,116,105,111,110,10,0,95,103,99,114,121,95,109,112,105,95,99,109,112,40,32,40,120,41,44,32,40,110,109,105,110,117,115,49,41,32,41,32,60,32,48,32,38,38,32,95,103,99,114,121,95,109,112,105,95,99,109,112,95,117,105,40,32,40,120,41,44,32,40,49,41,32,41,32,62,32,48,0,112,114,105,109,101,103,101,110,46,99,0,105,115,95,112,114,105,109,101,0,112,115,115,0,114,97,119,0,99,111,109,112,0,111,97,101,112,0,112,107,99,115,49,0,112,97,114,97,109,0,110,111,99,111,109,112,0,114,102,99,54,57,55,57,0,110,111,112,97,114,97,109,0,112,107,99,115,49,45,114,97,119,0,105,103,110,105,110,118,102,108,97,103,0,110,111,45,107,101,121,116,101,115,116,0,110,111,45,98,108,105,110,100,105,110,103,0,117,115,101,45,102,105,112,115,49,56,54,0,117,115,101,45,102,105,112,115,49,56,54,45,50,0,110,98,105,116,115,0,114,115,97,45,117,115,101,45,101,0,115,105,103,45,118,97,108,0,104,97,115,104,45,97,108,103,111,0,108,97,98,101,108,0,114,97,110,100,111,109,45,111,118,101,114,114,105,100,101,0,115,104,97,49,0,109,100,53,0,115,104,97,50,53,54,0,114,105,112,101,109,100,49,54,48,0,114,109,100,49,54,48,0,115,104,97,51,56,52,0,115,104,97,53,49,50,0,115,104,97,50,50,52,0,109,100,50,0,109,100,52,0,116,105,103,101,114,0,104,97,118,97,108,0,100,97,116,97,0,104,97,115,104,0,115,97,108,116,45,108,101,110,103,116,104,0,63,0,112,114,105,118,97,116,101,45,107,101,121,0,112,117,98,108,105,99,45,107,101,121,0,103,101,110,107,101,121,0,97,108,103,111,114,105,116,104,109,32,100,105,115,97,98,108,101,100,0,97,108,103,111,114,105,116,104,109,32,110,111,116,32,102,111,117,110,100,0,110,111,32,115,101,108,102,116,101,115,116,32,97,118,97,105,108,97,98,108,101,0,109,111,100,117,108,101,0,65,69,83,0,99,105,112,104,101,114,0,8,9,10,11,13,14,15,16,18,19,20,21,23,24,25,26,28,29,30,31,33,34,35,36,38,39,40,41,43,44,45,46,6,154,0,127,199,106,69,159,152,186,249,23,254,223,149,33,8,14,149,23,235,22,119,113,154,207,114,128,134,4,10,227,65,69,83,45,50,53,54,32,116,101,115,116,32,101,110,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,65,69,83,45,50,53,54,32,116,101,115,116,32,100,101,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,4,5,6,7,9,10,11,12,14,15,16,17,19,20,21,22,24,25,26,27,29,30,31,32,118,119,116,117,241,242,243,244,248,249,230,231,119,112,113,114,93,30,242,13,206,214,188,188,18,19,26,199,197,71,136,170,65,69,83,45,49,57,50,32,116,101,115,116,32,101,110,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,65,69,83,45,49,57,50,32,116,101,115,116,32,100,101,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,99,102,98,0,111,102,98,0,110,111,32,116,101,115,116,32,100,97,116,97,32,102,111,114,32,116,104,105,115,32,109,111,100,101,0,111,112,101,110,0,115,101,116,32,107,101,121,0,115,101,116,32,73,86,0,101,110,99,114,121,112,116,32,99,111,109,109,97,110,100,0,101,110,99,114,121,112,116,32,109,105,115,109,97,116,99,104,0,100,101,99,114,121,112,116,32,99,111,109,109,97,110,100,0,100,101,99,114,121,112,116,32,109,105,115,109,97,116,99,104,0,232,233,234,235,237,238,239,240,242,243,244,245,247,248,249,250,1,75,175,34,120,166,157,51,29,81,128,16,54,67,233,154,103,67,195,209,81,154,180,242,205,154,120,171,9,165,17,189,65,69,83,45,49,50,56,32,116,101,115,116,32,101,110,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,65,69,83,45,49,50,56,32,116,101,115,116,32,100,101,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,49,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,50,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,51,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,52,0,82,73,74,78,68,65,69,76,0,65,69,83,49,50,56,0,65,69,83,45,49,50,56,0,65,69,83,49,57,50,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,50,49,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,50,50,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,50,51,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,50,52,0,82,73,74,78,68,65,69,76,49,57,50,0,65,69,83,45,49,57,50,0,65,69,83,50,53,54,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,52,49,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,52,50,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,52,51,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,49,46,52,52,0,82,73,74,78,68,65,69,76,50,53,54,0,65,69,83,45,50,53,54,0,82,73,80,69,77,68,49,54,48,0,48,33,48,9,6,5,43,36,3,2,1,5,0,4,20,49,46,51,46,51,54,46,51,46,51,46,49,46,50,0,49,46,51,46,51,54,46,51,46,50,46,49,0,105,32,62,32,48,0,114,115,97,45,99,111,109,109,111,110,46,99,0,95,103,99,114,121,95,114,115,97,95,112,107,99,115,49,95,101,110,99,111,100,101,95,102,111,114,95,101,110,99,0,110,32,61,61,32,110,102,114,97,109,101,0,80,75,67,83,35,49,32,98,108,111,99,107,32,116,121,112,101,32,50,32,101,110,99,111,100,101,100,32,100,97,116,97,0,118,97,108,117,101,32,101,120,116,114,97,99,116,101,100,32,102,114,111,109,32,80,75,67,83,35,49,32,98,108,111,99,107,32,116,121,112,101,32,50,32,101,110,99,111,100,101,100,32,100,97,116,97,0,105,32,62,32,49,0,95,103,99,114,121,95,114,115,97,95,112,107,99,115,49,95,101,110,99,111,100,101,95,102,111,114,95,115,105,103,0,80,75,67,83,35,49,32,98,108,111,99,107,32,116,121,112,101,32,49,32,101,110,99,111,100,101,100,32,100,97,116,97,0,95,103,99,114,121,95,114,115,97,95,112,107,99,115,49,95,101,110,99,111,100,101,95,114,97,119,95,102,111,114,95,115,105,103,0,79,65,69,80,32,101,110,99,111,100,101,100,32,100,97,116,97,0,118,97,108,117,101,32,101,120,116,114,97,99,116,101,100,32,102,114,111,109,32,79,65,69,80,32,101,110,99,111,100,101,100,32,100,97,116,97,0,104,108,101,110,0,95,103,99,114,121,95,114,115,97,95,112,115,115,95,101,110,99,111,100,101,0,80,83,83,32,101,110,99,111,100,101,100,32,100,97,116,97,0,95,103,99,114,121,95,114,115,97,95,112,115,115,95,118,101,114,105,102,121,0,82,83,65,0,110,101,0,110,101,100,112,113,117,0,97,0,115,0,110,0,99,111,110,118,101,114,116,0,40,112,114,105,118,97,116,101,45,107,101,121,32,40,114,115,97,32,32,40,110,32,35,48,48,101,48,99,101,57,54,102,57,48,98,54,99,57,101,48,50,102,51,57,50,50,98,101,97,100,97,57,51,102,101,53,48,97,56,55,53,101,97,99,54,98,99,99,49,56,98,98,57,97,57,99,102,50,101,56,52,57,54,53,99,97,97,32,32,32,32,32,32,50,100,49,102,102,57,53,97,55,102,53,52,50,52,54,53,99,54,99,48,99,49,57,100,50,55,54,101,52,53,50,54,99,101,48,52,56,56,54,56,97,55,97,57,49,52,102,100,51,52,51,99,99,51,97,56,55,100,100,55,52,50,57,49,32,32,32,32,32,32,102,102,99,53,54,53,53,48,54,100,53,98,98,98,50,53,99,98,97,99,54,97,48,101,50,100,100,49,102,56,98,99,97,97,98,48,100,52,97,50,57,99,50,102,51,55,99,57,53,48,102,51,54,51,52,56,52,98,102,50,54,57,102,55,32,32,32,32,32,32,56,57,49,52,52,48,52,54,52,98,97,102,55,57,56,50,55,101,48,51,97,51,54,101,55,48,98,56,49,52,57,51,56,101,101,98,100,99,54,51,101,57,54,52,50,52,55,98,101,55,53,100,99,53,56,98,48,49,52,98,55,101,97,50,53,49,35,41,32,32,40,101,32,35,48,49,48,48,48,49,35,41,32,32,40,100,32,35,48,52,54,49,50,57,102,50,52,56,57,100,55,49,53,55,57,98,101,48,97,55,53,102,101,48,50,57,98,100,54,99,100,98,53,55,52,101,98,102,53,55,101,97,56,97,53,98,48,102,100,97,57,52,50,99,97,98,57,52,51,98,49,49,32,32,32,32,32,32,55,100,55,98,98,57,53,101,53,100,50,56,56,55,53,101,48,102,57,102,99,53,102,99,99,48,54,97,55,50,102,54,100,53,48,50,52,54,52,100,97,98,100,101,100,55,56,101,102,54,98,55,49,54,49,55,55,98,56,51,100,53,98,100,32,32,32,32,32,32,99,53,52,51,100,99,53,100,51,102,101,100,57,51,50,101,53,57,102,53,56,57,55,101,57,50,101,54,102,53,56,97,48,102,51,51,52,50,52,49,48,54,97,51,98,54,102,97,50,99,98,102,56,55,55,53,49,48,101,52,97,99,50,49,32,32,32,32,32,32,99,51,101,101,52,55,56,53,49,101,57,55,100,49,50,57,57,54,50,50,50,97,99,51,53,54,54,100,52,99,99,98,48,98,56,51,100,49,54,52,48,55,52,97,98,102,55,100,101,54,53,53,102,99,50,52,52,54,100,97,49,55,56,49,35,41,32,32,40,112,32,35,48,48,101,56,54,49,98,55,48,48,101,49,55,101,56,97,102,101,54,56,51,55,101,55,53,49,50,101,51,53,98,54,99,97,49,49,100,48,97,101,52,55,100,56,98,56,53,49,54,49,99,54,55,98,97,102,54,52,51,55,55,50,49,51,32,32,32,32,32,32,102,101,53,50,100,55,55,50,102,50,48,51,53,98,51,99,97,56,51,48,97,102,52,49,100,56,97,52,49,50,48,101,49,99,49,99,55,48,100,49,50,99,99,50,50,102,48,48,100,50,56,100,51,49,100,100,52,56,97,56,100,52,50,52,102,49,35,41,32,32,40,113,32,35,48,48,102,55,97,55,99,97,53,51,54,55,99,54,54,49,102,56,101,54,50,100,102,51,52,102,48,100,48,53,99,49,48,99,56,56,101,53,52,57,50,51,52,56,100,100,55,98,100,100,99,57,52,50,99,57,97,56,102,51,54,57,102,57,32,32,32,32,32,32,51,53,97,48,55,55,56,53,100,50,100,98,56,48,53,50,49,53,101,100,55,56,54,101,52,50,56,53,100,102,49,54,53,56,101,101,100,51,99,101,56,52,102,52,54,57,98,56,49,98,53,48,100,51,53,56,52,48,55,98,52,97,100,51,54,49,35,41,32,32,40,117,32,35,51,48,52,53,53,57,97,57,101,97,100,53,54,100,50,51,48,57,100,50,48,51,56,49,49,97,54,52,49,98,98,49,97,48,57,54,50,54,98,99,56,101,98,51,54,102,102,102,97,50,51,99,57,54,56,101,99,53,98,100,56,57,49,101,32,32,32,32,32,32,101,98,98,97,102,99,55,51,97,101,54,54,54,101,48,49,98,97,55,99,56,57,57,48,98,97,101,48,54,99,99,50,98,98,101,49,48,98,55,53,101,54,57,102,99,97,99,98,51,53,51,97,54,52,55,51,48,55,57,100,56,101,57,98,35,41,41,41,0,40,112,117,98,108,105,99,45,107,101,121,32,40,114,115,97,32,32,40,110,32,35,48,48,101,48,99,101,57,54,102,57,48,98,54,99,57,101,48,50,102,51,57,50,50,98,101,97,100,97,57,51,102,101,53,48,97,56,55,53,101,97,99,54,98,99,99,49,56,98,98,57,97,57,99,102,50,101,56,52,57,54,53,99,97,97,32,32,32,32,32,32,50,100,49,102,102,57,53,97,55,102,53,52,50,52,54,53,99,54,99,48,99,49,57,100,50,55,54,101,52,53,50,54,99,101,48,52,56,56,54,56,97,55,97,57,49,52,102,100,51,52,51,99,99,51,97,56,55,100,100,55,52,50,57,49,32,32,32,32,32,32,102,102,99,53,54,53,53,48,54,100,53,98,98,98,50,53,99,98,97,99,54,97,48,101,50,100,100,49,102,56,98,99,97,97,98,48,100,52,97,50,57,99,50,102,51,55,99,57,53,48,102,51,54,51,52,56,52,98,102,50,54,57,102,55,32,32,32,32,32,32,56,57,49,52,52,48,52,54,52,98,97,102,55,57,56,50,55,101,48,51,97,51,54,101,55,48,98,56,49,52,57,51,56,101,101,98,100,99,54,51,101,57,54,52,50,52,55,98,101,55,53,100,99,53,56,98,48,49,52,98,55,101,97,50,53,49,35,41,32,32,40,101,32,35,48,49,48,48,48,49,35,41,41,41,0,107,101,121,32,99,111,110,115,105,115,116,101,110,99,121,0,115,105,103,110,0,101,110,99,114,121,112,116,0,40,100,97,116,97,32,40,102,108,97,103,115,32,114,97,119,41,32,40,118,97,108,117,101,32,37,109,41,41,0,99,111,110,118,101,114,116,105,110,103,32,100,97,116,97,32,102,97,105,108,101,100,0,101,110,99,114,121,112,116,32,102,97,105,108,101,100,0,103,99,114,121,95,112,107,95,100,101,99,114,121,112,116,32,114,101,116,117,114,110,101,100,32,103,97,114,98,97,103,101,0,99,105,112,104,101,114,116,101,120,116,32,109,97,116,99,104,101,115,32,112,108,97,105,110,116,101,120,116,0,100,101,99,114,121,112,116,32,102,97,105,108,101,100,0,118,97,108,117,101,0,100,101,99,114,121,112,116,32,114,101,116,117,114,110,101,100,32,110,111,32,112,108,97,105,110,116,101,120,116,0,109,105,115,109,97,116,99,104,0,101,110,99,45,118,97,108,0,114,115,97,0,40,100,97,116,97],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+30720);allocate([32,40,102,108,97,103,115,32,112,107,99,115,49,41,32,40,104,97,115,104,32,115,104,97,49,32,35,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,48,48,97,97,98,98,99,99,100,100,101,101,102,102,49,48,50,48,51,48,52,48,35,41,41,0,40,100,97,116,97,32,40,102,108,97,103,115,32,112,107,99,115,49,41,32,40,104,97,115,104,32,115,104,97,49,32,35,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,48,48,97,97,98,98,99,99,100,100,101,101,102,102,56,48,50,48,51,48,52,48,35,41,41,0,115,105,103,110,105,110,103,32,102,97,105,108,101,100,0,118,101,114,105,102,121,32,102,97,105,108,101,100,0,98,97,100,32,115,105,103,110,97,116,117,114,101,32,110,111,116,32,100,101,116,101,99,116,101,100,0,114,115,97,95,118,101,114,105,102,121,32,100,97,116,97,0,114,115,97,95,118,101,114,105,102,121,32,32,115,105,103,0,114,115,97,95,118,101,114,105,102,121,32,32,32,32,110,0,114,115,97,95,118,101,114,105,102,121,32,32,32,32,101,0,114,115,97,95,118,101,114,105,102,121,32,32,99,109,112,0,114,115,97,95,118,101,114,105,102,121,32,32,32,32,61,62,32,37,115,10,0,114,115,97,95,115,105,103,110,32,32,32,100,97,116,97,0,110,101,100,112,63,113,63,117,63,0,114,115,97,95,115,105,103,110,32,32,32,32,32,32,110,0,114,115,97,95,115,105,103,110,32,32,32,32,32,32,101,0,114,115,97,95,115,105,103,110,32,32,32,32,32,32,100,0,114,115,97,95,115,105,103,110,32,32,32,32,32,32,112,0,114,115,97,95,115,105,103,110,32,32,32,32,32,32,113,0,114,115,97,95,115,105,103,110,32,32,32,32,32,32,117,0,114,115,97,95,115,105,103,110,32,32,32,32,114,101,115,0,40,115,105,103,45,118,97,108,40,114,115,97,40,115,37,98,41,41,41,0,40,115,105,103,45,118,97,108,40,114,115,97,40,115,37,77,41,41,41,0,114,115,97,95,115,105,103,110,32,32,32,32,32,32,61,62,32,37,115,10,0,114,115,97,95,100,101,99,114,121,112,116,32,100,97,116,97,0,114,115,97,95,100,101,99,114,121,112,116,32,32,32,32,110,0,114,115,97,95,100,101,99,114,121,112,116,32,32,32,32,101,0,114,115,97,95,100,101,99,114,121,112,116,32,32,32,32,100,0,114,115,97,95,100,101,99,114,121,112,116,32,32,32,32,112,0,114,115,97,95,100,101,99,114,121,112,116,32,32,32,32,113,0,114,115,97,95,100,101,99,114,121,112,116,32,32,32,32,117,0,114,115,97,95,100,101,99,114,121,112,116,32,32,114,101,115,0,40,118,97,108,117,101,32,37,98,41,0,37,109,0,114,115,97,95,100,101,99,114,121,112,116,32,32,32,32,61,62,32,37,115,10,0,114,115,97,95,101,110,99,114,121,112,116,32,100,97,116,97,0,114,115,97,95,101,110,99,114,121,112,116,32,32,32,32,110,0,114,115,97,95,101,110,99,114,121,112,116,32,32,32,32,101,0,114,115,97,95,101,110,99,114,121,112,116,32,32,114,101,115,0,40,101,110,99,45,118,97,108,40,114,115,97,40,97,37,98,41,41,41,0,40,101,110,99,45,118,97,108,40,114,115,97,40,97,37,109,41,41,41,0,114,115,97,95,101,110,99,114,121,112,116,32,32,32,32,61,62,32,37,115,10,0,114,115,97,95,116,101,115,116,107,101,121,32,32,32,32,61,62,32,37,115,10,0,100,101,114,105,118,101,45,112,97,114,109,115,0,117,115,101,45,120,57,51,49,0,40,109,105,115,99,45,107,101,121,45,105,110,102,111,40,112,45,113,45,115,119,97,112,112,101,100,41,41,0,40,107,101,121,45,100,97,116,97,32,40,112,117,98,108,105,99,45,107,101,121,32,32,40,114,115,97,40,110,37,109,41,40,101,37,109,41,41,41,32,40,112,114,105,118,97,116,101,45,107,101,121,32,32,40,114,115,97,40,110,37,109,41,40,101,37,109,41,40,100,37,109,41,40,112,37,109,41,40,113,37,109,41,40,117,37,109,41,41,41,32,37,83,41,0,114,115,97,46,99,0,103,101,110,101,114,97,116,101,95,115,116,100,0,32,32,112,61,32,0,32,32,113,61,32,0,112,104,105,61,32,0,32,32,103,61,32,0,32,32,102,61,32,0,32,32,110,61,32,0,32,32,101,61,32,0,32,32,100,61,32,0,32,32,117,61,32,0,115,101,108,102,45,116,101,115,116,32,97,102,116,101,114,32,107,101,121,32,103,101,110,101,114,97,116,105,111,110,32,102,97,105,108,101,100,0,88,112,49,0,88,112,50,0,88,112,0,88,113,49,0,88,113,50,0,88,113,0,95,103,99,114,121,95,109,112,105,95,103,99,100,32,40,32,40,103,41,44,32,40,101,41,44,32,40,112,104,105,41,32,41,0,103,101,110,101,114,97,116,101,95,120,57,51,49,0,112,32,97,110,100,32,113,32,97,114,101,32,115,119,97,112,112,101,100,10,0,32,32,113,0,32,32,110,0,32,32,101,0,32,32,100,0,32,32,117,0,95,103,99,114,121,95,109,112,105,95,103,101,116,95,110,98,105,116,115,32,40,40,120,105,41,41,32,61,61,32,49,48,49,0,103,101,110,95,120,57,51,49,95,112,97,114,109,95,120,105,0,95,103,99,114,121,95,109,112,105,95,103,101,116,95,110,98,105,116,115,32,40,40,120,112,41,41,32,61,61,32,110,98,105,116,115,0,103,101,110,95,120,57,51,49,95,112,97,114,109,95,120,112,0,111,112,101,110,112,103,112,45,114,115,97,0,111,105,100,46,49,46,50,46,56,52,48,46,49,49,51,53,52,57,46,49,46,49,46,49,0,83,72,65,49,0,48,33,48,9,6,5,43,14,3,2,26,5,0,4,20,169,153,62,54,71,6,129,106,186,62,37,113,120,80,194,108,156,208,216,157,0,132,152,62,68,28,59,210,110,186,174,74,161,249,81,41,229,229,70,112,241,0,52,170,151,60,212,196,218,164,246,30,235,43,219,173,39,49,101,52,1,111,0,49,46,50,46,56,52,48,46,49,49,51,53,52,57,46,49,46,49,46,53,0,49,46,50,46,56,52,48,46,49,48,48,52,48,46,52,46,51,0,49,46,51,46,49,52,46,51,46,50,46,50,54,0,49,46,51,46,49,52,46,51,46,50,46,50,57,0,49,46,50,46,56,52,48,46,49,48,48,52,53,46,52,46,49,0,83,72,65,50,50,52,0,48,45,48,13,6,9,96,134,72,1,101,3,4,2,4,5,0,4,28,186,120,22,191,143,1,207,234,65,65,64,222,93,174,34,35,176,3,97,163,150,23,122,156,180,16,255,97,242,0,21,173,0,97,98,99,100,98,99,100,101,99,100,101,102,100,101,102,103,101,102,103,104,102,103,104,105,103,104,105,106,104,105,106,107,105,106,107,108,106,107,108,109,107,108,109,110,108,109,110,111,109,110,111,112,110,111,112,113,0,36,141,106,97,210,6,56,184,229,192,38,147,12,62,96,57,163,60,228,89,100,255,33,103,246,236,237,212,25,219,6,193,0,205,199,110,92,153,20,251,146,129,161,199,226,132,215,62,103,241,128,154,72,164,151,32,14,4,109,57,204,199,17,44,208,0,35,9,125,34,52,5,216,34,134,66,164,119,189,162,85,179,42,173,188,228,189,160,179,247,227,108,157,167,0,117,56,139,22,81,39,118,204,93,186,93,161,253,137,1,80,176,198,69,92,180,245,139,25,82,82,37,37,0,32,121,70,85,152,12,145,216,187,180,193,234,151,97,138,75,240,63,66,88,25,72,178,238,78,231,173,103,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,50,46,52,0,83,72,65,50,53,54,0,48,49,48,13,6,9,96,134,72,1,101,3,4,2,1,5,0,4,32,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,50,46,49,0,49,46,50,46,56,52,48,46,49,49,51,53,52,57,46,49,46,49,46,49,49,0,83,72,65,53,49,50,0,48,81,48,13,6,9,96,134,72,1,101,3,4,2,3,5,0,4,64,115,104,111,114,116,32,115,116,114,105,110,103,0,97,98,99,0,221,175,53,161,147,97,122,186,204,65,115,73,174,32,65,49,18,230,250,78,137,169,126,162,10,158,238,230,75,85,211,154,33,146,153,42,39,79,193,168,54,186,60,35,163,254,235,189,69,77,68,35,100,60,232,14,42,154,201,79,165,76,164,159,0,108,111,110,103,32,115,116,114,105,110,103,0,97,98,99,100,101,102,103,104,98,99,100,101,102,103,104,105,99,100,101,102,103,104,105,106,100,101,102,103,104,105,106,107,101,102,103,104,105,106,107,108,102,103,104,105,106,107,108,109,103,104,105,106,107,108,109,110,104,105,106,107,108,109,110,111,105,106,107,108,109,110,111,112,106,107,108,109,110,111,112,113,107,108,109,110,111,112,113,114,108,109,110,111,112,113,114,115,109,110,111,112,113,114,115,116,110,111,112,113,114,115,116,117,0,142,149,155,117,218,227,19,218,140,244,247,40,20,252,20,63,143,119,121,198,235,159,127,161,114,153,174,173,182,136,144,24,80,29,40,158,73,0,247,228,51,27,153,222,196,181,67,58,199,211,41,238,182,221,38,84,94,150,229,91,135,75,233,9,0,111,110,101,32,109,105,108,108,105,111,110,32,34,97,34,0,231,24,72,61,12,231,105,100,78,46,66,199,188,21,180,99,142,31,152,177,59,32,68,40,86,50,168,3,175,169,115,235,222,15,242,68,135,126,166,10,76,176,67,44,229,119,195,27,235,0,156,92,44,73,170,46,78,173,178,23,173,140,192,155,0,100,105,103,101,115,116,0,203,0,117,63,69,163,94,139,181,160,61,105,154,198,80,7,39,44,50,171,14,222,209,99,26,139,96,90,67,255,91,237,128,134,7,43,161,231,204,35,88,186,236,161,52,200,37,167,0,9,51,12,51,247,17,71,232,61,25,47,199,130,205,27,71,83,17,27,23,59,59,5,210,47,160,128,134,227,176,247,18,252,199,199,26,85,126,45,185,102,195,233,250,145,116,96,57,0,157,14,24,9,113,100,116,203,8,110,131,78,49,10,74,28,237,20,158,156,0,242,72,82,121,114,206,197,112,76,42,91,7,184,179,220,56,236,196,235,174,151,221,216,127,61,137,133,0,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,50,46,51,0,49,46,50,46,56,52,48,46,49,49,51,53,52,57,46,49,46,49,46,49,51,0,83,72,65,51,56,52,0,48,65,48,13,6,9,96,134,72,1,101,3,4,2,2,5,0,4,48,50,46,49,54,46,56,52,48,46,49,46,49,48,49,46,51,46,52,46,50,46,50,0,49,46,50,46,56,52,48,46,49,49,51,53,52,57,46,49,46,49,46,49,50,0,84,87,79,70,73,83,72,0,37,115,10,0,0,1,23,2,46,24,83,3,106,47,147,25,52,84,69,4,92,107,182,48,166,148,75,26,140,53,129,85,170,70,13,5,36,93,135,108,155,183,193,49,43,167,163,149,152,76,202,27,230,141,115,54,205,130,18,86,98,171,240,71,79,14,189,6,212,37,210,94,39,136,102,109,214,156,121,184,8,194,223,50,104,44,253,168,138,164,90,150,41,153,34,77,96,203,228,28,123,231,59,142,158,116,244,55,216,206,249,131,111,19,178,87,225,99,220,172,196,241,175,72,10,80,66,15,186,190,199,7,222,213,120,38,101,211,209,95,227,40,33,137,89,103,252,110,177,215,248,157,243,122,58,185,198,9,65,195,174,224,219,51,68,105,146,45,82,254,22,169,12,139,128,165,74,91,181,151,201,42,162,154,192,35,134,78,188,97,239,204,17,229,114,29,61,124,235,232,233,60,234,143,125,159,236,117,30,245,62,56,246,217,63,207,118,250,31,132,160,112,237,20,144,179,126,88,251,226,32,100,208,221,119,173,218,197,64,242,57,176,247,73,180,11,127,81,21,67,145,16,113,187,238,191,133,200,161,1,2,4,8,16,32,64,128,77,154,121,242,169,31,62,124,248,189,55,110,220,245,167,3,6,12,24,48,96,192,205,215,227,139,91,182,33,66,132,69,138,89,178,41,82,164,5,10,20,40,80,160,13,26,52,104,208,237,151,99,198,193,207,211,235,155,123,246,161,15,30,60,120,240,173,23,46,92,184,61,122,244,165,7,14,28,56,112,224,141,87,174,17,34,68,136,93,186,57,114,228,133,71,142,81,162,9,18,36,72,144,109,218,249,191,51,102,204,213,231,131,75,150,97,194,201,223,243,171,27,54,108,216,253,183,35,70,140,85,170,25,50,100,200,221,247,163,11,22,44,88,176,45,90,180,37,74,148,101,202,217,255,179,43,86,172,21,42,84,168,29,58,116,232,157,119,238,145,111,222,241,175,19,38,76,152,125,250,185,63,126,252,181,39,78,156,117,234,153,127,254,177,47,94,188,53,106,212,229,135,67,134,65,130,73,146,105,210,233,159,115,230,129,79,158,113,226,137,95,190,49,98,196,197,199,195,203,219,251,187,59,118,236,149,103,206,209,239,147,107,214,225,143,83,166,1,2,4,8,16,32,64,128,77,154,121,242,169,31,62,124,248,189,55,110,220,245,167,3,6,12,24,48,96,192,205,215,227,139,91,182,33,66,132,69,138,89,178,41,82,164,5,10,20,40,80,160,13,26,52,104,208,237,151,99,198,193,207,211,235,155,123,246,161,15,30,60,120,240,173,23,46,92,184,61,122,244,165,7,14,28,56,112,224,141,87,174,17,34,68,136,93,186,57,114,228,133,71,142,81,162,9,18,36,72,144,109,218,249,191,51,102,204,213,231,131,75,150,97,194,201,223,243,171,27,54,108,216,253,183,35,70,140,85,170,25,50,100,200,221,247,163,11,22,44,88,176,45,90,180,37,74,148,101,202,217,255,179,43,86,172,21,42,84,168,29,58,116,232,157,119,238,145,111,222,241,175,19,38,76,152,125,250,185,63,126,252,181,39,78,156,117,234,153,127,254,177,47,94,188,53,106,212,229,135,67,134,65,130,73,146,105,210,233,159,115,230,129,79,158,113,226,137,95,190,49,98,196,197,199,195,203,169,117,103,243,179,198,232,244,4,219,253,123,163,251,118,200,154,74,146,211,128,230,120,107,228,69,221,125,209,232,56,75,13,214,198,50,53,216,152,253,24,55,247,113,236,241,108,225,67,48,117,15,55,248,38,27,250,135,19,250,148,6,72,63,242,94,208,186,139,174,48,91,132,138,84,0,223,188,35,157,25,109,91,193,61,177,89,14,243,128,174,93,162,210,130,213,99,160,1,132,131,7,46,20,217,181,81,144,155,44,124,163,166,178,235,115,165,76,190,84,22,146,12,116,227,54,97,81,192,56,140,176,58,189,245,90,115,252,44,96,37,98,11,150,187,108,78,66,137,247,107,16,83,124,106,40,180,39,241,140,225,19,230,149,189,156,69,199,226,36,244,70,182,59,102,112,204,202,149,227,3,133,86,203,212,17,28,208,30,147,215,184,251,166,195,131,142,32,181,255,233,159,207,119,191,195,186,204,234,3,119,111,57,8,175,191,51,64,201,231,98,43,113,226,129,121,121,12,9,170,173,130,36,65,205,58,249,234,216,185,229,228,197,154,185,164,77,151,68,126,8,218,134,122,231,23,161,102,29,148,170,161,237,29,6,61,112,240,178,222,210,179,65,11,123,114,160,167,17,28,49,239,194,209,39,83,144,62,32,143,246,51,96,38,255,95,150,236,92,118,177,42,171,73,158,129,156,136,82,238,27,33,95,196,147,26,10,235,239,217,145,197,133,57,73,153,238,205,45,173,79,49,143,139,59,1,71,24,135,35,109,221,70,31,214,78,62,45,105,249,100,72,42,79,206,242,203,101,47,142,252,120,151,92,5,88,122,25,172,141,127,229,213,152,26,87,75,103,14,127,167,5,90,100,40,175,20,99,63,182,41,254,136,245,60,183,76,60,2,165,184,206,218,233,176,104,23,68,85,224,31,77,138,67,125,105,87,41,199,46,141,172,116,21,183,89,196,168,159,10,114,158,126,110,21,71,34,223,18,52,88,53,7,106,153,207,52,220,110,34,80,201,222,192,104,155,101,137,188,212,219,237,248,171,200,18,168,162,43,13,64,82,220,187,254,2,50,47,164,169,202,215,16,97,33,30,240,180,211,80,93,4,15,246,0,194,111,22,157,37,54,134,66,86,74,85,94,9,193,190,224,145,117,243,198,244,219,123,251,200,74,211,230,107,69,125,232,75,214,50,216,253,55,113,241,225,48,15,248,27,135,250,6,63,94,186,174,91,138,0,188,157,109,193,177,14,128,93,210,213,160,132,7,20,181,144,44,163,178,115,76,84,146,116,54,81,56,176,189,90,252,96,98,150,108,66,247,16,124,40,39,140,19,149,156,199,36,70,59,112,202,227,133,203,17,208,147,184,166,131,32,255,159,119,195,204,3,111,8,191,64,231,43,226,121,12,170,130,65,58,234,185,228,154,164,151,126,218,122,23,102,148,161,29,61,240,222,179,11,114,167,28,239,209,83,62,143,51,38,95,236,118,42,73,129,136,238,33,196,26,235,217,197,57,153,205,173,49,139,1,24,35,221,31,78,45,249,72,79,242,101,142,120,92,88,25,141,229,152,87,103,127,5,100,175,99,182,254,245,183,60,165,206,233,104,68,224,77,67,105,41,46,172,21,89,168,10,158,110,71,223,52,53,106,207,220,34,201,192,155,137,212,237,171,18,162,13,82,187,2,47,169,215,97,30,180,80,4,246,194,22,37,134,86,85,9,190,145,169,103,179,232,4,253,163,118,154,146,128,120,228,221,209,56,13,198,53,152,24,247,236,108,67,117,55,38,250,19,148,72,242,208,139,48,132,84,223,35,25,91,61,89,243,174,162,130,99,1,131,46,217,81,155,124,166,235,165,190,22,12,227,97,192,140,58,245,115,44,37,11,187,78,137,107,83,106,180,241,225,230,189,69,226,244,182,102,204,149,3,86,212,28,30,215,251,195,142,181,233,207,191,186,234,119,57,175,51,201,98,113,129,121,9,173,36,205,249,216,229,197,185,77,68,8,134,231,161,29,170,237,6,112,178,210,65,123,160,17,49,194,39,144,32,246,96,255,150,92,177,171,158,156,82,27,95,147,10,239,145,133,73,238,45,79,143,59,71,135,109,70,214,62,105,100,42,206,203,47,252,151,5,122,172,127,213,26,75,14,167,90,40,20,63,41,136,60,76,2,184,218,176,23,85,31,138,125,87,199,141,116,183,196,159,114,126,21,34,18,88,7,153,52,110,80,222,104,101,188,219,248,200,168,43,64,220,254,50,164,202,16,33,240,211,93,15,0,111,157,54,66,74,94,193,224,159,88,159,92,246,18,44,50,182,191,236,47,42,232,195,90,212,145,219,22,231,177,195,158,134,203,8,107,120,159,84,25,1,159,152,9,222,23,17,133,143,170,195,163,186,32,251,195,84,119,111,102,105,115,104,45,49,50,56,32,116,101,115,116,32,101,110,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,84,119,111,102,105,115,104,45,49,50,56,32,116,101,115,116,32,100,101,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,212,59,183,85,110,163,46,70,242,162,130,183,212,91,78,13,87,255,115,157,77,201,44,27,215,252,1,112,12,200,33,111,144,175,233,27,178,136,84,79,44,50,220,35,155,38,53,230,108,180,86,28,64,191,10,151,5,147,28,182,212,8,231,250,84,119,111,102,105,115,104,45,50,53,54,32,116,101,115,116,32,101,110,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,84,119,111,102,105,115,104,45,50,53,54,32,116,101,115,116,32,100,101,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,46,0,84,87,79,70,73,83,72,49,50,56,0,102,97,105,108,101,100,32,116,111,32,97,99,113,117,105,114,101,32,116,104,101,32,110,111,110,99,101,32,98,117,102,102,101,114,32,108,111,99,107,58,32,37,115,10,0,102,97,105,108,101,100,32,116,111,32,114,101,108,101,97,115,101,32,116,104,101,32,110,111,110,99,101,32,98,117,102,102,101,114,32,108,111,99,107,58,32,37,115,10,0,37,115,46,42,0,37,115,46,88,0,37,115,58,32,71,101,116,116,105,110,103,32,89,45,99,111,111,114,100,105,110,97,116,101,32,111,110,32,37,115,32,105,115,32,110,111,116,32,115,117,112,112,111,114,116,101,100,10,0,95,103,99,114,121,95,109,112,105,95,101,99,95,103,101,116,95,97,102,102,105,110,101,0,77,111,110,116,103,111,109,101,114,121,0,101,99,95,105,110,118,109,58,32,105,110,118,101,114,115,101,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,58,10,0,32,32,97,0,32,32,112,0,71,67,82,89,80,84,95,66,65,82,82,69,84,84,0,37,115,58,32,37,115,32,110,111,116,32,121,101,116,32,115,117,112,112,111,114,116,101,100,10,0,95,103,99,114,121,95,109,112,105,95,101,99,95,100,117,112,95,112,111,105,110,116,0,95,103,99,114,121,95,109,112,105,95,101,99,95,97,100,100,95,112,111,105,110,116,115,0,0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,33,98,112,95,109,97,114,107,101,114,0,109,112,105,45,112,111,119,46,99,0,95,103,99,114,121,95,109,112,105,95,112,111,119,109,0,114,101,115,45,62,100,32,61,61,32,114,112,0,105,32,61,61,32,110,108,105,109,98,115,0,109,112,105,99,111,100,101,114,46,99,0,95,103,99,114,121,95,109,112,105,95,115,101,116,95,98,117,102,102,101,114,0,58,103,101,110,101,114,105,99,47,109,112,105,104,45,97,100,100,49,46,99,58,103,101,110,101,114,105,99,47,109,112,105,104,45,115,117,98,49,46,99,58,103,101,110,101,114,105,99,47,109,112,105,104,45,109,117,108,49,46,99,58,103,101,110,101,114,105,99,47,109,112,105,104,45,109,117,108,50,46,99,58,103,101,110,101,114,105,99,47,109,112,105,104,45,109,117,108,51,46,99,58,103,101,110,101,114,105,99,47,109,112,105,104,45,108,115,104,105,102,116,46,99,58,103,101,110,101,114,105,99,47,109,112,105,104,45,114,115,104,105,102,116,46,99,0,105,110,118,97,108,105,100,32,109,112,105,95,99,111,110,115,116,32,115,101,108,101,99,116,111,114,32,37,100,10,0,87,97,114,110,105,110,103,58,32,116,114,121,105,110,103,32,116,111,32,99,104,97,110,103,101,32,97,110,32,105,109,109,117,116,97,98,108,101,32,77,80,73,10,0,105,110,118,97,108,105,100,32,102,108,97,103,32,118,97,108,117,101,32,105,110,32,109,112,105,95,102,114,101,101,10,0,109,112,105,95,103,101,116,95,111,112,97,113,117,101,32,111,110,32,110,111,114,109,97,108,32,109,112,105,10,0,109,112,105,95,115,101,116,95,99,111,110,100,58,32,100,105,102,102,101,114,101,110,116,32,115,105,122,101,115,10,0,109,112,105,95,115,119,97,112,95,99,111,110,100,58,32,100,105,102,102,101,114,101,110,116,32,115,105,122,101,115,10,0,105,110,118,97,108,105,100,32,102,108,97,103,32,118,97,108,117,101,10,0,77,80,73,32,115,117,98,115,121,115,116,101,109,32,110,111,116,32,105,110,105,116,105,97,108,105,122,101,100,10,0,10,10,84,104,105,115,32,105,115,32,76,105,98,103,99,114,121,112,116,32,49,46,55,46,48,45,98,101,116,97,50,51,48,32,45,32,84,104,101,32,71,78,85,32,67,114,121,112,116,111,32,76,105,98,114,97,114,121,10,67,111,112,121,114,105,103,104,116,32,40,67,41,32,50,48,48,48,45,50,48,49,50,32,70,114,101,101,32,83,111,102,116,119,97,114,101,32,70,111,117,110,100,97,116,105,111,110,44,32,73,110,99,46,10,67,111,112,121,114,105,103,104,116,32,40,67,41,32,50,48,49,50,45,50,48,49,52,32,103,49,48,32,67,111,100,101,32,71,109,98,72,10,67,111,112,121,114,105,103,104,116,32,40,67,41,32,50,48,49,51,45,50,48,49,52,32,74,117,115,115,105,32,75,105,118,105,108,105,110,110,97,10,10,40,97,51,54,101,101,55,53,32,50,48,49,54,45,49,48,45,49,51,84,50,49,58,52,57,43,48,48,48,48,41,10,10,10,0,99,105,112,104,101,114,45,99,109,97,99,46,99,0,99,109,97,99,95,103,101,110,101,114,97,116,101,95,115,117,98,107,101,121,115,0,99,45,62,117,110,117,115,101,100,32,60,32,98,108,111,99,107,115,105,122,101,0,99,105,112,104,101,114,45,99,116,114,46,99,0,95,103,99,114,121,95,99,105,112,104,101,114,95,99,116,114,95,101,110,99,114,121,112,116,0,117,110,117,115,101,100,32,61,61,32,98,108,111,99,107,115,105,122,101,0,99,105,112,104,101,114,45,103,99,109,46,99,0,100,111,95,103,104,97,115,104,95,98,117,102,0,102,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,109,101,109,111,114,121,0,115,101,116,107,101,121,32,102,97,105,108,101,100,0,115,101,108,102,116,101,115,116,32,102,111,114,32,67,66,67,32,102,97,105,108,101,100,32,45,32,115,101,101,32,115,121,115,108,111,103,32,102,111,114,32,100,101,116,97,105,108,115,0,115,101,108,102,116,101,115,116,32,102,111,114,32,67,70,66,32,102,97,105,108,101,100,32,45,32,115,101,101,32,115,121,115,108,111,103,32,102,111,114,32,100,101,116,97,105,108,115,0,115,101,108,102,116,101,115,116,32,102,111,114,32,67,84,82,32,102,97,105,108,101,100,32,45,32,115,101,101,32,115,121,115,108,111,103,32,102,111,114,32,100,101,116,97,105,108,115,0,69,67,67,0,112,97,98,103,110,104,113,0,112,97,98,103,110,104,113,100,0,115,119,0,114,115,0,102,108,97,103,115,0,112,63,97,63,98,63,103,63,110,63,104,63,47,113,0,112,63,97,63,98,63,103,63,110,63,104,63,113,0,47,113,0,113,0,99,117,114,118,101,0,112,97,98,103,110,104,113,40,49,58,37,99,37,117,58,0,41,0,108,111,119,45,108,101,118,101,108,0,112,117,98,107,101,121,0,112,0,101,99,99,95,118,101,114,105,102,121,32,100,97,116,97,0,47,114,115,0,101,99,99,95,118,101,114,105,102,121,32,32,115,95,114,0,101,99,99,95,118,101,114,105,102,121,32,32,115,95,115,0,45,112,63,97,63,98,63,103,63,110,63,104,63,47,113,0,43,69,100,68,83,65,0,101,99,99,95,118,101,114,105,102,121,32,105,110,102,111,58,32,37,115,47,37,115,37,115,10,0,101,99,99,95,118,101,114,105,102,121,32,110,97,109,101,58,32,37,115,10,0,101,99,99,95,118,101,114,105,102,121,32,32,32,32,112,0,101,99,99,95,118,101,114,105,102,121,32,32,32,32,97,0,101,99,99,95,118,101,114,105,102,121,32,32,32,32,98,0,101,99,99,95,118,101,114,105,102,121,32,32,103,0,101,99,99,95,118,101,114,105,102,121,32,32,32,32,110,0,101,99,99,95,118,101,114,105,102,121,32,32,32,32,104,0,101,99,99,95,118,101,114,105,102,121,32,32,32,32,113,0,71,111,111,100,0,101,99,99,95,118,101,114,105,102,121,32,32,32,32,61,62,32,37,115,10,0,101,99,99,95,115,105,103,110,32,32,32,100,97,116,97,0,45,112,63,97,63,98,63,103,63,110,63,104,63,47,113,63,43,100,0,47,113,63,43,100,0,101,99,99,95,115,105,103,110,32,32,32,105,110,102,111,58,32,37,115,47,37,115,37,115,10,0,101,99,99,95,115,105,103,110,32,32,32,110,97,109,101,58,32,37,115,10,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,112,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,97,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,98,0,101,99,99,95,115,105,103,110,32,32,32,32,103,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,110,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,104,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,113,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,100,0,40,115,105,103,45,118,97,108,40,101,100,100,115,97,40,114,37,77,41,40,115,37,77,41,41,41,0,40,115,105,103,45,118,97,108,40,103,111,115,116,40,114,37,77,41,40,115,37,77,41,41,41,0,40,115,105,103,45,118,97,108,40,101,99,100,115,97,40,114,37,77,41,40,115,37,77,41,41,41,0,101,99,99,95,115,105,103,110,32,32,32,32,32,32,61,62,32,37,115,10,0,101,0,101,99,99,95,100,101,99,114,121,112,116,32,32,100,95,101,0,45,112,63,97,63,98,63,103,63,110,63,104,63,43,100,0,101,99,99,95,100,101,99,114,121,112,116,32,105,110,102,111,58,32,37,115,47,37,115,10,0,101,99,99,95,100,101,99,114,121,112,116,32,110,97,109,101,58,32,37,115,10,0,101,99,99,95,100,101,99,114,121,112,116,32,32,32,32,112,0,101,99,99,95,100,101,99,114,121,112,116,32,32,32,32,97,0,101,99,99,95,100,101,99,114,121,112,116,32,32,32,32,98,0,101,99,99,95,100,101,99,114,121,112,116,32,32,103,0,101,99,99,95,100,101,99,114,121,112,116,32,32,32,32,110,0,101,99,99,95,100,101,99,114,121,112,116,32,32,32,32,104,0,101,99,99,95,100,101,99,114,121,112,116,32,32,32,32,100,0,101,99,100,104,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,10,0,101,99,99,95,100,101,99,114,121,112,116,32,32,114,101,115,0,40,118,97,108,117,101,32,37,109,41,0,101,99,99,95,100,101,99,114,121,112,116,32,32,32,32,61,62,32,37,115,10,0,101,99,99,95,101,110,99,114,121,112,116,32,100,97,116,97,0,45,112,63,97,63,98,63,103,63,110,63,104,63,43,113,0,101,99,99,95,101,110,99,114,121,112,116,32,105,110,102,111,58,32,37,115,47,37,115,10,0,101,99,99,95,101,110,99,114,121,112,116,32,110,97,109,101,58,32,37,115,10,0,101,99,99,95,101,110,99,114,121,112,116,32,32,32,32,112,0,101,99,99,95,101,110,99,114,121,112,116,32,32,32,32,97,0,101,99,99,95,101,110,99,114,121,112,116,32,32,32,32,98,0,101,99,99,95,101,110,99,114,121,112,116,32,32,103,0,101,99,99,95,101,110,99,114,121,112,116,32,32,32,32,110,0,101,99,99,95,101,110,99,114,121,112,116,32,32,32,32,104,0,101,99,99,95,101,110,99,114,121,112,116,32,32,32,32,113,0,101,99,100,104,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,32,102,111,114,32,107,100,71,10,0,101,99,100,104,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,32,102,111,114,32,107,71,10,0,40,101,110,99,45,118,97,108,40,101,99,100,104,40,115,37,109,41,40,101,37,109,41,41,41,0,101,99,99,95,101,110,99,114,121,112,116,32,32,32,32,61,62,32,37,115,10,0,101,99,99,95,116,101,115,116,107,101,121,32,105,110,102,58,32,37,115,47,37,115,10,0,101,99,99,95,116,101,115,116,107,101,121,32,110,97,109,58,32,37,115,10,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,112,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,97,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,98,0,101,99,99,95,116,101,115,116,107,101,121,32,103,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,110,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,104,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,113,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,100,0,101,99,99,95,116,101,115,116,107,101,121,32,32,32,61,62,32,37,115,10,0,66,97,100,32,99,104,101,99,107,58,32,80,111,105,110,116,32,39,71,39,32,100,111,101,115,32,110,111,116,32,98,101,108,111,110,103,32,116,111,32,99,117,114,118,101,32,39,69,39,33,10,0,66,97,100,32,99,104,101,99,107,58,32,39,71,39,32,99,97,110,110,111,116,32,98,101,32,80,111,105,110,116,32,97,116,32,73,110,102,105,110,105,116,121,33,10,0,99,104,101,99,107,95,115,101,99,114,101,116,95,107,101,121,58,32,69,32,105,115,32,110,111,116,32,97,32,99,117,114,118,101,32,111,102,32,111,114,100,101,114,32,110,10,0,66,97,100,32,99,104,101,99,107,58,32,81,32,99,97,110,32,110,111,116,32,98,101,32,97,32,80,111,105,110,116,32,97,116,32,73,110,102,105,110,105,116,121,33,10,0,66,97,100,32,99,104,101,99,107,58,32,99,111,109,112,117,116,97,116,105,111,110,32,111,102,32,100,71,32,102,97,105,108,101,100,10,0,66,97,100,32,99,104,101,99,107,58,32,84,104,101,114,101,32,105,115,32,78,79,32,99,111,114,114,101,115,112,111,110,100,101,110,99,101,32,98,101,116,119,101,101,110,32,39,100,39,32,97,110,100,32,39,81,39,33,10,0,116,114,97,110,115,105,101,110,116,45,107,101,121,0,101,99,103,101,110,32,99,117,114,118,101,32,105,110,102,111,58,32,37,115,47,37,115,10,0,101,99,103,101,110,32,99,117,114,118,101,32,117,115,101,100,58,32,37,115,10,0,101,99,103,101,110,32,99,117,114,118,101,32,32,32,112,0,101,99,103,101,110,32,99,117,114,118,101,32,32,32,97,0,101,99,103,101,110,32,99,117,114,118,101,32,32,32,98,0,101,99,103,101,110,32,99,117,114,118,101,32,32,32,110,0,101,99,103,101,110,32,99,117,114,118,101,32,32,32,104,0,101,99,103,101,110,32,99,117,114,118,101,32,71,0,101,99,103,101,110,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,32,102,111,114,32,37,115,10,0,71,0,81,0,40,99,117,114,118,101,32,37,115,41,0,40,102,108,97,103,115,32,112,97,114,97,109,41,0,40,102,108,97,103,115,32,101,100,100,115,97,41,0,40,102,108,97,103,115,32,112,97,114,97,109,32,101,100,100,115,97,41,0,40,107,101,121,45,100,97,116,97,32,40,112,117,98,108,105,99,45,107,101,121,32,32,40,101,99,99,37,83,37,83,40,112,37,109,41,40,97,37,109,41,40,98,37,109,41,40,103,37,109,41,40,110,37,109,41,40,104,37,109,41,40,113,37,109,41,41,41,32,40,112,114,105,118,97,116,101,45,107,101,121,32,32,40,101,99,99,37,83,37,83,40,112,37,109,41,40,97,37,109,41,40,98,37,109,41,40,103,37,109,41,40,110,37,109,41,40,104,37,109,41,40,113,37,109,41,40,100,37,109,41,41,41,32,41,0,40,107,101,121,45,100,97,116,97,32,40,112,117,98,108,105,99,45,107,101,121,32,32,40,101,99,99,37,83,37,83,40,113,37,109,41,41,41,32,40,112,114,105,118,97,116,101,45,107,101,121,32,32,40,101,99,99,37,83,37,83,40,113,37,109,41,40,100,37,109,41,41,41,32,41,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,112,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,97,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,98,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,71,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,110,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,104,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,81,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,100,0,101,99,103,101,110,32,114,101,115,117,108,116,32,32,117,115,105,110,103,32,69,100,50,53,53,49,57,43,69,100,68,83,65,10,0,101,99,103,101,110,32,99,111,110,118,101,114,116,101,100,32,81,32,116,111,32,97,32,99,111,109,112,108,105,97,110,116,32,112,111,105,110,116,10,0,101,99,103,101,110,32,100,105,100,110,39,116,32,110,101,101,100,32,116,111,32,99,111,110,118,101,114,116,32,81,32,116,111,32,97,32,99,111,109,112,108,105,97,110,116,32,112,111,105,110,116,10,0,84,101,115,116,105,110,103,32,107,101,121,46,10,0,101,99,100,104,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,32,102,111,114,32,104,107,81,10,0,101,99,100,104,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,32,102,111,114,32,104,100,107,71,10,0,69,67,68,72,32,116,101,115,116,32,102,97,105,108,101,100,46,10,0,69,67,68,83,65,32,111,112,101,114,97,116,105,111,110,58,32,115,105,103,110,32,102,97,105,108,101,100,10,0,69,67,68,83,65,32,111,112,101,114,97,116,105,111,110,58,32,115,105,103,110,44,32,118,101,114,105,102,121,32,102,97,105,108,101,100,10,0,69,67,68,83,65,32,111,112,101,114,97,116,105,111,110,58,32,115,105,103,110,44,32,118,101,114,105,102,121,32,111,107,46,10,0,101,99,99,0,101,99,100,115,97,0,101,99,100,104,0,101,100,100,115,97,0,103,111,115,116,0,100,105,103,101,115,116,32,115,105,122,101,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,101,120,112,101,99,116,101,100,32,115,105,122,101,0,103,99,114,121,95,109,100,95,111,112,101,110,32,102,97,105,108,101,100,0,105,110,118,97,108,105,100,32,68,65,84,65,77,79,68,69,0,100,105,103,101,115,116,32,109,105,115,109,97,116,99,104,0,104,97,115,104,45,99,111,109,109,111,110,46,99,0,95,103,99,114,121,95,109,100,95,98,108,111,99,107,95,119,114,105,116,101,0,80,111,108,121,49,51,48,53,32,115,101,108,102,116,101,115,116,32,102,97,105,108,101,100,32,40,37,115,41,10,0,142,153,59,159,72,104,18,115,194,150,80,186,50,252,118,206,72,51,46,167,22,77,150,164,71,111,184,197,49,161,24,106,192,223,193,124,152,220,232,123,77,167,240,17,236,72,201,114,113,210,194,15,155,146,143,226,39,13,111,184,99,213,23,56,180,142,238,227,20,167,204,138,185,50,22,69,72,229,38,174,144,34,67,104,81,122,207,234,189,107,179,115,43,192,233,218,153,131,43,97,202,1,182,222,86,36,74,158,136,213,249,179,121,115,246,34,164,61,20,166,89,155,31,101,76,180,90,116,227,85,165,238,166,167,37,28,30,114,145,109,17,194,203,33,77,60,37,37,57,18,29,142,35,78,101,45,101,31,164,200,207,248,128,243,255,199,112,63,148,0,229,42,125,251,75,61,51,5,217,80,111,108,121,49,51,48,53,32,116,101,115,116,32,49,32,102,97,105,108,101,100,46,0,80,111,108,121,49,51,48,53,32,116,101,115,116,32,50,32,102,97,105,108,101,100,46,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,111,108,121,49,51,48,53,32,116,101,115,116,32,51,32,102,97,105,108,101,100,46,0,1,2,3,4,5,6,7,255,254,253,252,251,250,249,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,100,175,226,232,214,173,123,189,210,135,249,124,68,98,61,57,80,111,108,121,49,51,48,53,32,116,101,115,116,32,52,32,102,97,105,108,101,100,46,0,102,97,105,108,101,100,32,116,111,32,114,101,108,101,97,115,101,32,116,104,101,32,112,111,111,108,32,108,111,99,107,58,32,37,115,10,0,87,65,82,78,73,78,71,58,32,117,115,105,110,103,32,105,110,115,101,99,117,114,101,32,114,97,110,100,111,109,32,110,117,109,98,101,114,32,103,101,110,101,114,97,116,111,114,33,33,10,0,112,111,111,108,95,105,115,95,108,111,99,107,101,100,0,114,97,110,100,111,109,45,99,115,112,114,110,103,46,99,0,97,100,100,95,114,97,110,100,111,109,110,101,115,115,0,109,105,120,95,112,111,111,108,0,110,111,32,101,110,116,114,111,112,121,32,103,97,116,104,101,114,105,110,103,32,109,111,100,117,108,101,32,100,101,116,101,99,116,101,100,10,0,102,97,105,108,101,100,32,116,111,32,97,99,113,117,105,114,101,32,116,104,101,32,112,111,111,108,32,108,111,99,107,58,32,37,115,10,0,32,40,104,119,114,110,103,32,102,97,105,108,101,100,41,0,114,97,110,100,111,109,32,117,115,97,103,101,58,32,112,111,111,108,115,105,122,101,61,37,100,32,109,105,120,101,100,61,37,108,117,32,112,111,108,108,115,61,37,108,117,47,37,108,117,32,97,100,100,101,100,61,37,108,117,47,37,108,117,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,111,117,116,109,105,120,61,37,108,117,32,103,101,116,108,118,108,49,61,37,108,117,47,37,108,117,32,103,101,116,108,118,108,50,61,37,108,117,47,37,108,117,37,115,10,0,114,101,97,100,95,112,111,111,108,0,116,111,111,32,109,97,110,121,32,114,97,110,100,111,109,32,98,105,116,115,32,114,101,113,117,101,115,116,101,100,10,0,100,111,95,102,97,115,116,95,114,97,110,100,111,109,95,112,111,108,108,0,83,108,111,119,32,101,110,116,114,111,112,121,32,103,97,116,104,101,114,105,110,103,32,109,111,100,117,108,101,32,110,111,116,32,121,101,116,32,105,110,105,116,105,97,108,105,122,101,100,10,0,78,111,32,119,97,121,32,116,111,32,103,97,116,104,101,114,32,101,110,116,114,111,112,121,32,102,111,114,32,116,104,101,32,82,78,71,10,0,114,101,97,100,95,115,101,101,100,95,102,105,108,101,0,99,97,110,39,116,32,111,112,101,110,32,96,37,115,39,58,32,37,115,10,0,99,97,110,39,116,32,115,116,97,116,32,96,37,115,39,58,32,37,115,10,0,96,37,115,39,32,105,115,32,110,111,116,32,97,32,114,101,103,117,108,97,114,32,102,105,108,101,32,45,32,105,103,110,111,114,101,100,10,0,110,111,116,101,58,32,114,97,110,100,111,109,95,115,101,101,100,32,102,105,108,101,32,105,115,32,101,109,112,116,121,10,0,119,97,114,110,105,110,103,58,32,105,110,118,97,108,105,100,32,115,105,122,101,32,111,102,32,114,97,110,100,111,109,95,115,101,101,100,32,102,105,108,101,32,45,32,110,111,116,32,117,115,101,100,10,0,99,97,110,39,116,32,114,101,97,100,32,96,37,115,39,58,32,37,115,10,0,99,97,110,39,116,32,108,111,99,107,32,96,37,115,39],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+40960);allocate([58,32,37,115,10,0,119,97,105,116,105,110,103,32,102,111,114,32,108,111,99,107,32,111,110,32,96,37,115,39,46,46,46,10,0,95,103,99,114,121,95,114,110,103,99,115,112,114,110,103,95,115,101,116,95,115,101,101,100,95,102,105,108,101,0,110,111,116,101,58,32,114,97,110,100,111,109,95,115,101,101,100,32,102,105,108,101,32,110,111,116,32,117,112,100,97,116,101,100,10,0,99,97,110,39,116,32,99,114,101,97,116,101,32,96,37,115,39,58,32,37,115,10,0,99,97,110,39,116,32,119,114,105,116,101,32,96,37,115,39,58,32,37,115,10,0,99,97,110,39,116,32,99,108,111,115,101,32,96,37,115,39,58,32,37,115,10,0,33,110,111,110,99,101,95,99,111,110,116,101,120,116,45,62,116,101,115,116,95,100,116,95,112,116,114,0,114,97,110,100,111,109,45,102,105,112,115,46,99,0,95,103,99,114,121,95,114,110,103,102,105,112,115,95,105,110,105,116,105,97,108,105,122,101,0,33,115,116,100,95,114,110,103,95,99,111,110,116,101,120,116,45,62,116,101,115,116,95,100,116,95,112,116,114,0,33,115,116,114,111,110,103,95,114,110,103,95,99,111,110,116,101,120,116,45,62,116,101,115,116,95,100,116,95,112,116,114,0,102,97,105,108,101,100,32,116,111,32,114,101,108,101,97,115,101,32,116,104,101,32,82,78,71,32,108,111,99,107,58,32,37,115,10,0,109,101,109,111,114,121,32,99,111,114,114,117,112,116,105,111,110,32,100,101,116,101,99,116,101,100,32,105,110,32,82,78,71,32,99,111,110,116,101,120,116,32,37,112,10,0,102,97,105,108,101,100,32,116,111,32,97,99,113,117,105,114,101,32,116,104,101,32,82,78,71,32,108,111,99,107,58,32,37,115,10,0,114,110,103,95,99,116,120,0,102,111,114,107,32,119,105,116,104,111,117,116,32,112,114,111,112,101,114,32,114,101,45,105,110,105,116,105,97,108,105,122,97,116,105,111,110,32,100,101,116,101,99,116,101,100,32,105,110,32,82,78,71,0,115,101,118,101,114,101,32,101,114,114,111,114,32,103,101,116,116,105,110,103,32,114,97,110,100,111,109,10,0,102,105,112,115,95,114,110,103,95,105,115,95,108,111,99,107,101,100,0,120,57,51,49,95,97,101,115,95,100,114,105,118,101,114,0,114,110,103,95,99,116,120,45,62,99,105,112,104,101,114,95,104,100,0,114,110,103,95,99,116,120,45,62,105,115,95,115,101,101,100,101,100,0,116,101,109,112,118,97,108,117,101,95,102,111,114,95,120,57,51,49,95,97,101,115,95,100,114,105,118,101,114,0,100,117,112,108,105,99,97,116,101,32,49,50,56,32,98,105,116,32,98,108,111,99,107,32,114,101,116,117,114,110,101,100,32,98,121,32,82,78,71,0,108,101,110,103,116,104,32,61,61,32,49,54,0,101,110,99,114,121,112,116,95,97,101,115,0,65,69,83,32,101,110,99,114,121,112,116,105,111,110,32,105,110,32,82,78,71,32,102,97,105,108,101,100,58,32,37,115,10,0,120,57,51,49,95,103,101,116,95,100,116,0,103,101,116,116,105,109,101,111,102,100,97,121,40,41,32,102,97,105,108,101,100,58,32,37,115,10,0,120,57,51,49,95,114,101,115,101,101,100,0,120,57,51,49,95,103,101,110,101,114,97,116,101,95,115,101,101,100,0,33,101,110,116,114,111,112,121,95,99,111,108,108,101,99,116,95,98,117,102,102,101,114,0,103,101,116,95,101,110,116,114,111,112,121,0,101,114,114,111,114,32,103,101,116,116,105,110,103,32,101,110,116,114,111,112,121,32,100,97,116,97,10,0,101,110,116,114,111,112,121,95,99,111,108,108,101,99,116,95,99,98,0,101,110,116,114,111,112,121,95,99,111,108,108,101,99,116,95,98,117,102,102,101,114,0,120,57,51,49,95,103,101,110,101,114,97,116,101,95,107,101,121,0,101,114,114,111,114,32,99,114,101,97,116,105,110,103,32,99,105,112,104,101,114,32,99,111,110,116,101,120,116,32,102,111,114,32,82,78,71,58,32,37,115,10,0,101,114,114,111,114,32,99,114,101,97,116,105,110,103,32,107,101,121,32,102,111,114,32,82,78,71,58,32,37,115,10,0,115,101,108,102,116,101,115,116,95,107,97,116,0,101,114,114,111,114,32,99,114,101,97,116,105,110,103,32,99,105,112,104,101,114,32,99,111,110,116,101,120,116,32,102,111,114,32,82,78,71,0,185,202,127,214,160,245,211,66,25,109,132,145,118,28,59,190,72,178,130,152,104,194,128,0,0,0,40,24,0,0,37,0,82,23,141,41,162,213,132,18,157,137,154,69,130,2,247,119,66,156,8,61,130,244,138,64,102,181,73,39,171,66,199,195,14,183,97,60,254,176,190,115,247,110,109,111,29,163,20,250,187,75,193,14,197,251,205,70,190,40,97,231,3,43,55,125,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,247,149,189,74,82,226,158,215,19,211,19,250,32,233,141,188,200,209,229,17,89,82,247,250,55,56,180,197,206,178,176,154,13,156,197,13,22,225,188,237,207,96,98,9,157,32,131,126,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,128,0,129,1,130,2,131,3,160,32,161,33,162,34,163,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,150,237,204,195,221,4,127,117,99,25,55,111,21,34,87,86,122,20,118,119,149,23,126,200,146,232,221,21,203,31,188,177,37,62,46,162,65,27,221,245,33,72,65,113,179,141,47,76,101,114,114,111,114,32,115,101,116,116,105,110,103,32,107,101,121,32,102,111,114,32,82,78,71,0,88,57,46,51,49,32,82,78,71,32,99,111,114,101,32,102,117,110,99,116,105,111,110,32,102,97,105,108,101,100,0,82,78,71,32,111,117,116,112,117,116,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,107,110,111,119,110,32,118,97,108,117,101,0,102,111,114,107,32,100,101,116,101,99,116,105,111,110,32,102,97,105,108,101,100,0,114,97,110,100,111,109,0,75,65,84,0,102,97,105,108,101,100,32,116,111,32,114,101,108,101,97,115,101,32,116,104,101,32,83,121,115,116,101,109,32,82,78,71,32,108,111,99,107,58,32,37,115,10,0,102,97,105,108,101,100,32,116,111,32,97,99,113,117,105,114,101,32,116,104,101,32,83,121,115,116,101,109,32,82,78,71,32,108,111,99,107,58,32,37,115,10,0,98,117,102,102,101,114,0,114,97,110,100,111,109,45,115,121,115,116,101,109,46,99,0,103,101,116,95,114,97,110,100,111,109,0,101,114,114,111,114,32,114,101,97,100,105,110,103,32,114,97,110,100,111,109,32,102,114,111,109,32,115,121,115,116,101,109,32,82,78,71,32,40,114,99,61,37,100,41,10,0,115,121,115,116,101,109,95,114,110,103,95,105,115,95,108,111,99,107,101,100,0,114,101,97,100,95,99,98,0,114,101,97,100,95,99,98,95,98,117,102,102,101,114,0,47,100,101,118,47,114,97,110,100,111,109,0,47,100,101,118,47,117,114,97,110,100,111,109,0,110,101,101,100,95,101,110,116,114,111,112,121,0,115,101,108,101,99,116,40,41,32,101,114,114,111,114,58,32,37,115,10,0,98,111,103,117,115,32,114,101,97,100,32,102,114,111,109,32,114,97,110,100,111,109,32,100,101,118,105,99,101,32,40,110,61,37,100,41,10,0,114,101,97,100,32,101,114,114,111,114,32,111,110,32,114,97,110,100,111,109,32,100,101,118,105,99,101,58,32,37,115,10,0,111,112,101,110,95,100,101,118,95,114,97,110,100,111,109,0,119,97,105,116,95,100,101,118,95,114,97,110,100,111,109,0,99,97,110,39,116,32,111,112,101,110,32,37,115,58,32,37,115,10,0,101,114,114,111,114,32,115,101,116,116,105,110,103,32,70,68,95,67,76,79,69,88,69,67,32,111,110,32,102,100,32,37,100,58,32,37,115,10,0,99,104,111,111,115,105,110,103,32,97,32,114,97,110,100,111,109,32,107,32,111,102,32,37,117,32,98,105,116,115,32,97,116,32,115,101,99,108,101,118,101,108,32,37,100,10,0,9,107,32,116,111,111,32,108,97,114,103,101,32,45,32,97,103,97,105,110,10,0,9,107,32,105,115,32,122,101,114,111,32,45,32,97,103,97,105,110,10,0,1,0,101,99,100,115,97,32,115,105,103,110,32,104,97,115,104,32,32,0,101,99,100,115,97,32,115,105,103,110,32,114,101,115,117,108,116,32,114,32,0,101,99,100,115,97,32,115,105,103,110,32,114,101,115,117,108,116,32,115,32,0,103,111,115,116,32,115,105,103,110,32,104,97,115,104,32,32,0,101,99,99,32,115,105,103,110,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,10,0,103,111,115,116,32,115,105,103,110,32,114,101,115,117,108,116,32,114,32,0,103,111,115,116,32,115,105,103,110,32,114,101,115,117,108,116,32,115,32,0,101,99,99,32,118,101,114,105,102,121,58,32,82,101,106,101,99,116,101,100,10,0,101,99,99,32,118,101,114,105,102,121,58,32,70,97,105,108,101,100,32,116,111,32,103,101,116,32,97,102,102,105,110,101,32,99,111,111,114,100,105,110,97,116,101,115,10,0,32,32,32,32,32,120,0,32,32,32,32,32,114,0,32,32,32,32,32,115,0,101,99,99,32,118,101,114,105,102,121,58,32,78,111,116,32,118,101,114,105,102,105,101,100,10,0,101,99,99,32,118,101,114,105,102,121,58,32,65,99,99,101,112,116,101,100,10,0,33,34,108,111,99,107,32,65,66,73,32,118,101,114,115,105,111,110,34,0,112,111,115,105,120,45,108,111,99,107,46,99,0,103,101,116,95,108,111,99,107,95,111,98,106,101,99,116,0,33,115,116,114,101,97,109,45,62,102,108,97,103,115,46,119,114,105,116,105,110,103,0,101,115,116,114,101,97,109,46,99,0,101,115,95,101,109,112,116,121,0,115,116,114,101,97,109,45,62,102,108,97,103,115,46,119,114,105,116,105,110,103,0,101,115,95,102,108,117,115,104,0,83,117,99,99,101,115,115,0,71,101,110,101,114,97,108,32,101,114,114,111,114,0,85,110,107,110,111,119,110,32,112,97,99,107,101,116,0,85,110,107,110,111,119,110,32,118,101,114,115,105,111,110,32,105,110,32,112,97,99,107,101,116,0,73,110,118,97,108,105,100,32,112,117,98,108,105,99,32,107,101,121,32,97,108,103,111,114,105,116,104,109,0,73,110,118,97,108,105,100,32,100,105,103,101,115,116,32,97,108,103,111,114,105,116,104,109,0,66,97,100,32,112,117,98,108,105,99,32,107,101,121,0,66,97,100,32,115,101,99,114,101,116,32,107,101,121,0,66,97,100,32,115,105,103,110,97,116,117,114,101,0,78,111,32,112,117,98,108,105,99,32,107,101,121,0,67,104,101,99,107,115,117,109,32,101,114,114,111,114,0,66,97,100,32,112,97,115,115,112,104,114,97,115,101,0,73,110,118,97,108,105,100,32,99,105,112,104,101,114,32,97,108,103,111,114,105,116,104,109,0,75,101,121,114,105,110,103,32,111,112,101,110,0,73,110,118,97,108,105,100,32,112,97,99,107,101,116,0,73,110,118,97,108,105,100,32,97,114,109,111,114,0,78,111,32,117,115,101,114,32,73,68,0,78,111,32,115,101,99,114,101,116,32,107,101,121,0,87,114,111,110,103,32,115,101,99,114,101,116,32,107,101,121,32,117,115,101,100,0,66,97,100,32,115,101,115,115,105,111,110,32,107,101,121,0,85,110,107,110,111,119,110,32,99,111,109,112,114,101,115,115,105,111,110,32,97,108,103,111,114,105,116,104,109,0,78,117,109,98,101,114,32,105,115,32,110,111,116,32,112,114,105,109,101,0,73,110,118,97,108,105,100,32,101,110,99,111,100,105,110,103,32,109,101,116,104,111,100,0,73,110,118,97,108,105,100,32,101,110,99,114,121,112,116,105,111,110,32,115,99,104,101,109,101,0,73,110,118,97,108,105,100,32,115,105,103,110,97,116,117,114,101,32,115,99,104,101,109,101,0,73,110,118,97,108,105,100,32,97,116,116,114,105,98,117,116,101,0,78,111,32,118,97,108,117,101,0,78,111,116,32,102,111,117,110,100,0,86,97,108,117,101,32,110,111,116,32,102,111,117,110,100,0,83,121,110,116,97,120,32,101,114,114,111,114,0,66,97,100,32,77,80,73,32,118,97,108,117,101,0,73,110,118,97,108,105,100,32,112,97,115,115,112,104,114,97,115,101,0,73,110,118,97,108,105,100,32,115,105,103,110,97,116,117,114,101,32,99,108,97,115,115,0,82,101,115,111,117,114,99,101,115,32,101,120,104,97,117,115,116,101,100,0,73,110,118,97,108,105,100,32,107,101,121,114,105,110,103,0,84,114,117,115,116,32,68,66,32,101,114,114,111,114,0,66,97,100,32,99,101,114,116,105,102,105,99,97,116,101,0,73,110,118,97,108,105,100,32,117,115,101,114,32,73,68,0,85,110,101,120,112,101,99,116,101,100,32,101,114,114,111,114,0,84,105,109,101,32,99,111,110,102,108,105,99,116,0,75,101,121,115,101,114,118,101,114,32,101,114,114,111,114,0,87,114,111,110,103,32,112,117,98,108,105,99,32,107,101,121,32,97,108,103,111,114,105,116,104,109,0,84,114,105,98,117,116,101,32,116,111,32,68,46,32,65,46,0,87,101,97,107,32,101,110,99,114,121,112,116,105,111,110,32,107,101,121,0,73,110,118,97,108,105,100,32,107,101,121,32,108,101,110,103,116,104,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,83,121,110,116,97,120,32,101,114,114,111,114,32,105,110,32,85,82,73,0,73,110,118,97,108,105,100,32,85,82,73,0,78,101,116,119,111,114,107,32,101,114,114,111,114,0,85,110,107,110,111,119,110,32,104,111,115,116,0,83,101,108,102,116,101,115,116,32,102,97,105,108,101,100,0,68,97,116,97,32,110,111,116,32,101,110,99,114,121,112,116,101,100,0,68,97,116,97,32,110,111,116,32,112,114,111,99,101,115,115,101,100,0,85,110,117,115,97,98,108,101,32,112,117,98,108,105,99,32,107,101,121,0,85,110,117,115,97,98,108,101,32,115,101,99,114,101,116,32,107,101,121,0,73,110,118,97,108,105,100,32,118,97,108,117,101,0,66,97,100,32,99,101,114,116,105,102,105,99,97,116,101,32,99,104,97,105,110,0,77,105,115,115,105,110,103,32,99,101,114,116,105,102,105,99,97,116,101,0,78,111,32,100,97,116,97,0,66,117,103,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,73,110,118,97,108,105,100,32,111,112,101,114,97,116,105,111,110,32,99,111,100,101,0,84,105,109,101,111,117,116,0,73,110,116,101,114,110,97,108,32,101,114,114,111,114,0,69,79,70,32,40,103,99,114,121,112,116,41,0,73,110,118,97,108,105,100,32,111,98,106,101,99,116,0,80,114,111,118,105,100,101,100,32,111,98,106,101,99,116,32,105,115,32,116,111,111,32,115,104,111,114,116,0,80,114,111,118,105,100,101,100,32,111,98,106,101,99,116,32,105,115,32,116,111,111,32,108,97,114,103,101,0,77,105,115,115,105,110,103,32,105,116,101,109,32,105,110,32,111,98,106,101,99,116,0,78,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,67,111,110,102,108,105,99,116,105,110,103,32,117,115,101,0,73,110,118,97,108,105,100,32,99,105,112,104,101,114,32,109,111,100,101,0,73,110,118,97,108,105,100,32,102,108,97,103,0,73,110,118,97,108,105,100,32,104,97,110,100,108,101,0,82,101,115,117,108,116,32,116,114,117,110,99,97,116,101,100,0,73,110,99,111,109,112,108,101,116,101,32,108,105,110,101,0,73,110,118,97,108,105,100,32,114,101,115,112,111,110,115,101,0,78,111,32,97,103,101,110,116,32,114,117,110,110,105,110,103,0,65,103,101,110,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,100,97,116,97,0,85,110,115,112,101,99,105,102,105,99,32,65,115,115,117,97,110,32,115,101,114,118,101,114,32,102,97,117,108,116,0,71,101,110,101,114,97,108,32,65,115,115,117,97,110,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,115,101,115,115,105,111,110,32,107,101,121,0,73,110,118,97,108,105,100,32,83,45,101,120,112,114,101,115,115,105,111,110,0,85,110,115,117,112,112,111,114,116,101,100,32,97,108,103,111,114,105,116,104,109,0,78,111,32,112,105,110,101,110,116,114,121,0,112,105,110,101,110,116,114,121,32,101,114,114,111,114,0,66,97,100,32,80,73,78,0,73,110,118,97,108,105,100,32,110,97,109,101,0,66,97,100,32,100,97,116,97,0,73,110,118,97,108,105,100,32,112,97,114,97,109,101,116,101,114,0,87,114,111,110,103,32,99,97,114,100,0,78,111,32,100,105,114,109,110,103,114,0,100,105,114,109,110,103,114,32,101,114,114,111,114,0,67,101,114,116,105,102,105,99,97,116,101,32,114,101,118,111,107,101,100,0,78,111,32,67,82,76,32,107,110,111,119,110,0,67,82,76,32,116,111,111,32,111,108,100,0,76,105,110,101,32,116,111,111,32,108,111,110,103,0,78,111,116,32,116,114,117,115,116,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,108,101,100,0,66,97,100,32,67,65,32,99,101,114,116,105,102,105,99,97,116,101,0,67,101,114,116,105,102,105,99,97,116,101,32,101,120,112,105,114,101,100,0,67,101,114,116,105,102,105,99,97,116,101,32,116,111,111,32,121,111,117,110,103,0,85,110,115,117,112,112,111,114,116,101,100,32,99,101,114,116,105,102,105,99,97,116,101,0,85,110,107,110,111,119,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,85,110,115,117,112,112,111,114,116,101,100,32,112,114,111,116,101,99,116,105,111,110,0,67,111,114,114,117,112,116,101,100,32,112,114,111,116,101,99,116,105,111,110,0,65,109,98,105,103,117,111,117,115,32,110,97,109,101,0,67,97,114,100,32,101,114,114,111,114,0,67,97,114,100,32,114,101,115,101,116,32,114,101,113,117,105,114,101,100,0,67,97,114,100,32,114,101,109,111,118,101,100,0,73,110,118,97,108,105,100,32,99,97,114,100,0,67,97,114,100,32,110,111,116,32,112,114,101,115,101,110,116,0,78,111,32,80,75,67,83,49,53,32,97,112,112,108,105,99,97,116,105,111,110,0,78,111,116,32,99,111,110,102,105,114,109,101,100,0,67,111,110,102,105,103,117,114,97,116,105,111,110,32,101,114,114,111,114,0,78,111,32,112,111,108,105,99,121,32,109,97,116,99,104,0,73,110,118,97,108,105,100,32,105,110,100,101,120,0,73,110,118,97,108,105,100,32,73,68,0,78,111,32,83,109,97,114,116,67,97,114,100,32,100,97,101,109,111,110,0,83,109,97,114,116,67,97,114,100,32,100,97,101,109,111,110,32,101,114,114,111,114,0,85,110,115,117,112,112,111,114,116,101,100,32,112,114,111,116,111,99,111,108,0,66,97,100,32,80,73,78,32,109,101,116,104,111,100,0,67,97,114,100,32,110,111,116,32,105,110,105,116,105,97,108,105,122,101,100,0,85,110,115,117,112,112,111,114,116,101,100,32,111,112,101,114,97,116,105,111,110,0,87,114,111,110,103,32,107,101,121,32,117,115,97,103,101,0,78,111,116,104,105,110,103,32,102,111,117,110,100,0,87,114,111,110,103,32,98,108,111,98,32,116,121,112,101,0,77,105,115,115,105,110,103,32,118,97,108,117,101,0,72,97,114,100,119,97,114,101,32,112,114,111,98,108,101,109,0,80,73,78,32,98,108,111,99,107,101,100,0,67,111,110,100,105,116,105,111,110,115,32,111,102,32,117,115,101,32,110,111,116,32,115,97,116,105,115,102,105,101,100,0,80,73,78,115,32,97,114,101,32,110,111,116,32,115,121,110,99,101,100,0,73,110,118,97,108,105,100,32,67,82,76,0,66,69,82,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,66,69,82,0,69,108,101,109,101,110,116,32,110,111,116,32,102,111,117,110,100,0,73,100,101,110,116,105,102,105,101,114,32,110,111,116,32,102,111,117,110,100,0,73,110,118,97,108,105,100,32,116,97,103,0,73,110,118,97,108,105,100,32,108,101,110,103,116,104,0,73,110,118,97,108,105,100,32,107,101,121,32,105,110,102,111,0,85,110,101,120,112,101,99,116,101,100,32,116,97,103,0,78,111,116,32,68,69,82,32,101,110,99,111,100,101,100,0,78,111,32,67,77,83,32,111,98,106,101,99,116,0,73,110,118,97,108,105,100,32,67,77,83,32,111,98,106,101,99,116,0,85,110,107,110,111,119,110,32,67,77,83,32,111,98,106,101,99,116,0,85,110,115,117,112,112,111,114,116,101,100,32,67,77,83,32,111,98,106,101,99,116,0,85,110,115,117,112,112,111,114,116,101,100,32,101,110,99,111,100,105,110,103,0,85,110,115,117,112,112,111,114,116,101,100,32,67,77,83,32,118,101,114,115,105,111,110,0,85,110,107,110,111,119,110,32,97,108,103,111,114,105,116,104,109,0,73,110,118,97,108,105,100,32,99,114,121,112,116,111,32,101,110,103,105,110,101,0,80,117,98,108,105,99,32,107,101,121,32,110,111,116,32,116,114,117,115,116,101,100,0,68,101,99,114,121,112,116,105,111,110,32,102,97,105,108,101,100,0,75,101,121,32,101,120,112,105,114,101,100,0,83,105,103,110,97,116,117,114,101,32,101,120,112,105,114,101,100,0,69,110,99,111,100,105,110,103,32,112,114,111,98,108,101,109,0,73,110,118,97,108,105,100,32,115,116,97,116,101,0,68,117,112,108,105,99,97,116,101,100,32,118,97,108,117,101,0,77,105,115,115,105,110,103,32,97,99,116,105,111,110,0,65,83,78,46,49,32,109,111,100,117,108,101,32,110,111,116,32,102,111,117,110,100,0,73,110,118,97,108,105,100,32,79,73,68,32,115,116,114,105,110,103,0,73,110,118,97,108,105,100,32,116,105,109,101,0,73,110,118,97,108,105,100,32,67,82,76,32,111,98,106,101,99,116,0,85,110,115,117,112,112,111,114,116,101,100,32,67,82,76,32,118,101,114,115,105,111,110,0,73,110,118,97,108,105,100,32,99,101,114,116,105,102,105,99,97,116,101,32,111,98,106,101,99,116,0,85,110,107,110,111,119,110,32,110,97,109,101,0,65,32,108,111,99,97,108,101,32,102,117,110,99,116,105,111,110,32,102,97,105,108,101,100,0,78,111,116,32,108,111,99,107,101,100,0,80,114,111,116,111,99,111,108,32,118,105,111,108,97,116,105,111,110,0,73,110,118,97,108,105,100,32,77,65,67,0,73,110,118,97,108,105,100,32,114,101,113,117,101,115,116,0,85,110,107,110,111,119,110,32,101,120,116,101,110,115,105,111,110,0,85,110,107,110,111,119,110,32,99,114,105,116,105,99,97,108,32,101,120,116,101,110,115,105,111,110,0,76,111,99,107,101,100,0,85,110,107,110,111,119,110,32,111,112,116,105,111,110,0,85,110,107,110,111,119,110,32,99,111,109,109,97,110,100,0,78,111,116,32,111,112,101,114,97,116,105,111,110,97,108,0,78,111,32,112,97,115,115,112,104,114,97,115,101,32,103,105,118,101,110,0,78,111,32,80,73,78,32,103,105,118,101,110,0,78,111,116,32,101,110,97,98,108,101,100,0,78,111,32,99,114,121,112,116,111,32,101,110,103,105,110,101,0,77,105,115,115,105,110,103,32,107,101,121,0,84,111,111,32,109,97,110,121,32,111,98,106,101,99,116,115,0,76,105,109,105,116,32,114,101,97,99,104,101,100,0,78,111,116,32,105,110,105,116,105,97,108,105,122,101,100,0,77,105,115,115,105,110,103,32,105,115,115,117,101,114,32,99,101,114,116,105,102,105,99,97,116,101,0,78,111,32,107,101,121,115,101,114,118,101,114,32,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,101,108,108,105,112,116,105,99,32,99,117,114,118,101,0,85,110,107,110,111,119,110,32,101,108,108,105,112,116,105,99,32,99,117,114,118,101,0,68,117,112,108,105,99,97,116,101,100,32,107,101,121,0,65,109,98,105,103,117,111,117,115,32,114,101,115,117,108,116,0,78,111,32,99,114,121,112,116,111,32,99,111,110,116,101,120,116,0,87,114,111,110,103,32,99,114,121,112,116,111,32,99,111,110,116,101,120,116,0,66,97,100,32,99,114,121,112,116,111,32,99,111,110,116,101,120,116,0,67,111,110,102,108,105,99,116,32,105,110,32,116,104,101,32,99,114,121,112,116,111,32,99,111,110,116,101,120,116,0,66,114,111,107,101,110,32,112,117,98,108,105,99,32,107,101,121,0,66,114,111,107,101,110,32,115,101,99,114,101,116,32,107,101,121,0,73,110,118,97,108,105,100,32,77,65,67,32,97,108,103,111,114,105,116,104,109,0,79,112,101,114,97,116,105,111,110,32,102,117,108,108,121,32,99,97,110,99,101,108,108,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,121,101,116,32,102,105,110,105,115,104,101,100,0,66,117,102,102,101,114,32,116,111,111,32,115,104,111,114,116,0,73,110,118,97,108,105,100,32,108,101,110,103,116,104,32,115,112,101,99,105,102,105,101,114,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,83,116,114,105,110,103,32,116,111,111,32,108,111,110,103,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,85,110,109,97,116,99,104,101,100,32,112,97,114,101,110,116,104,101,115,101,115,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,83,45,101,120,112,114,101,115,115,105,111,110,32,110,111,116,32,99,97,110,111,110,105,99,97,108,0,66,97,100,32,99,104,97,114,97,99,116,101,114,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,66,97,100,32,113,117,111,116,97,116,105,111,110,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,90,101,114,111,32,112,114,101,102,105,120,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,78,101,115,116,101,100,32,100,105,115,112,108,97,121,32,104,105,110,116,115,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,85,110,109,97,116,99,104,101,100,32,100,105,115,112,108,97,121,32,104,105,110,116,115,0,85,110,101,120,112,101,99,116,101,100,32,114,101,115,101,114,118,101,100,32,112,117,110,99,116,117,97,116,105,111,110,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,66,97,100,32,104,101,120,97,100,101,99,105,109,97,108,32,99,104,97,114,97,99,116,101,114,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,79,100,100,32,104,101,120,97,100,101,99,105,109,97,108,32,110,117,109,98,101,114,115,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,66,97,100,32,111,99,116,97,108,32,99,104,97,114,97,99,116,101,114,32,105,110,32,83,45,101,120,112,114,101,115,115,105,111,110,0,76,101,103,97,99,121,32,107,101,121,0,82,101,113,117,101,115,116,32,116,111,111,32,115,104,111,114,116,0,82,101,113,117,101,115,116,32,116,111,111,32,108,111,110,103,0,79,98,106,101,99,116,32,105,115,32,105,110,32,116,101,114,109,105,110,97,116,105,111,110,32,115,116,97,116,101,0,78,111,32,99,101,114,116,105,102,105,99,97,116,101,32,99,104,97,105,110,0,67,101,114,116,105,102,105,99,97,116,101,32,105,115,32,116,111,111,32,108,97,114,103,101,0,73,110,118,97,108,105,100,32,114,101,99,111,114,100,0,84,104,101,32,77,65,67,32,100,111,101,115,32,110,111,116,32,118,101,114,105,102,121,0,85,110,101,120,112,101,99,116,101,100,32,109,101,115,115,97,103,101,0,67,111,109,112,114,101,115,115,105,111,110,32,111,114,32,100,101,99,111,109,112,114,101,115,115,105,111,110,32,102,97,105,108,101,100,0,65,32,99,111,117,110,116,101,114,32,119,111,117,108,100,32,119,114,97,112,0,70,97,116,97,108,32,97,108,101,114,116,32,109,101,115,115,97,103,101,32,114,101,99,101,105,118,101,100,0,78,111,32,99,105,112,104,101,114,32,97,108,103,111,114,105,116,104,109,0,77,105,115,115,105,110,103,32,99,108,105,101,110,116,32,99,101,114,116,105,102,105,99,97,116,101,0,67,108,111,115,101,32,110,111,116,105,102,105,99,97,116,105,111,110,32,114,101,99,101,105,118,101,100,0,84,105,99,107,101,116,32,101,120,112,105,114,101,100,0,66,97,100,32,116,105,99,107,101,116,0,85,110,107,110,111,119,110,32,105,100,101,110,116,105,116,121,0,66,97,100,32,99,101,114,116,105,102,105,99,97,116,101,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,99,101,114,116,105,102,105,99,97,116,101,32,114,101,113,117,101,115,116,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,99,101,114,116,105,102,105,99,97,116,101,32,118,101,114,105,102,121,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,99,104,97,110,103,101,32,99,105,112,104,101,114,32,109,101,115,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,99,108,105,101,110,116,32,104,101,108,108,111,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,115,101,114,118,101,114,32,104,101,108,108,111,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,115,101,114,118,101,114,32,104,101,108,108,111,32,100,111,110,101,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,115,104,97,107,101,0,66,97,100,32,102,105,110,105,115,104,101,100,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,115,101,114,118,101,114,32,107,101,121,32,101,120,99,104,97,110,103,101,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,97,100,32,99,108,105,101,110,116,32,107,101,121,32,101,120,99,104,97,110,103,101,32,109,101,115,115,97,103,101,32,105,110,32,104,97,110,100,115,104,97,107,101,0,66,111,103,117,115,32,115,116,114,105,110,103,0,70,111,114,98,105,100,100,101,110,0,75,101,121,32,100,105,115,97,98,108,101,100,0,78,111,116,32,112,111,115,115,105,98,108,101,32,119,105,116,104,32,97,32,99,97,114,100,32,98,97,115,101,100,32,107,101,121,0,73,110,118,97,108,105,100,32,108,111,99,107,32,111,98,106,101,99,116,0,71,101,110,101,114,97,108,32,73,80,67,32,101,114,114,111,114,0,73,80,67,32,97,99,99,101,112,116,32,99,97,108,108,32,102,97,105,108,101,100,0,73,80,67,32,99,111,110,110,101,99,116,32,99,97,108,108,32,102,97,105,108,101,100,0,73,110,118,97,108,105,100,32,73,80,67,32,114,101,115,112,111,110,115,101,0,73,110,118,97,108,105,100,32,118,97,108,117,101,32,112,97,115,115,101,100,32,116,111,32,73,80,67,0,73,110,99,111,109,112,108,101,116,101,32,108,105,110,101,32,112,97,115,115,101,100,32,116,111,32,73,80,67,0,76,105,110,101,32,112,97,115,115,101,100,32,116,111,32,73,80,67,32,116,111,111,32,108,111,110,103,0,78,101,115,116,101,100,32,73,80,67,32,99,111,109,109,97,110,100,115,0,78,111,32,100,97,116,97,32,99,97,108,108,98,97,99,107,32,105,110,32,73,80,67,0,78,111,32,105,110,113,117,105,114,101,32,99,97,108,108,98,97,99,107,32,105,110,32,73,80,67,0,78,111,116,32,97,110,32,73,80,67,32,115,101,114,118,101,114,0,78,111,116,32,97,110,32,73,80,67,32,99,108,105,101,110,116,0,80,114,111,98,108,101,109,32,115,116,97,114,116,105,110,103,32,73,80,67,32,115,101,114,118,101,114,0,73,80,67,32,114,101,97,100,32,101,114,114,111,114,0,73,80,67,32,119,114,105,116,101,32,101,114,114,111,114,0,84,111,111,32,109,117,99,104,32,100,97,116,97,32,102,111,114,32,73,80,67,32,108,97,121,101,114,0,85,110,101,120,112,101,99,116,101,100,32,73,80,67,32,99,111,109,109,97,110,100,0,85,110,107,110,111,119,110,32,73,80,67,32,99,111,109,109,97,110,100,0,73,80,67,32,115,121,110,116,97,120,32,101,114,114,111,114,0,73,80,67,32,99,97,108,108,32,104,97,115,32,98,101,101,110,32,99,97,110,99,101,108,108,101,100,0,78,111,32,105,110,112,117,116,32,115,111,117,114,99,101,32,102,111,114,32,73,80,67,0,78,111,32,111,117,116,112,117,116,32,115,111,117,114,99,101,32,102,111,114,32,73,80,67,0,73,80,67,32,112,97,114,97,109,101,116,101,114,32,101,114,114,111,114,0,85,110,107,110,111,119,110,32,73,80,67,32,105,110,113,117,105,114,101,0,71,101,110,101,114,97,108,32,76,68,65,80,32,101,114,114,111,114,0,71,101,110,101,114,97,108,32,76,68,65,80,32,97,116,116,114,105,98,117,116,101,32,101,114,114,111,114,0,71,101,110,101,114,97,108,32,76,68,65,80,32,110,97,109,101,32,101,114,114,111,114,0,71,101,110,101,114,97,108,32,76,68,65,80,32,115,101,99,117,114,105,116,121,32,101,114,114,111,114,0,71,101,110,101,114,97,108,32,76,68,65,80,32,115,101,114,118,105,99,101,32,101,114,114,111,114,0,71,101,110,101,114,97,108,32,76,68,65,80,32,117,112,100,97,116,101,32,101,114,114,111,114,0,69,120,112,101,114,105,109,101,110,116,97,108,32,76,68,65,80,32,101,114,114,111,114,32,99,111,100,101,0,80,114,105,118,97,116,101,32,76,68,65,80,32,101,114,114,111,114,32,99,111,100,101,0,79,116,104,101,114,32,103,101,110,101,114,97,108,32,76,68,65,80,32,101,114,114,111,114,0,76,68,65,80,32,99,111,110,110,101,99,116,105,110,103,32,102,97,105,108,101,100,32,40,88,41,0,76,68,65,80,32,114,101,102,101,114,114,97,108,32,108,105,109,105,116,32,101,120,99,101,101,100,101,100,0,76,68,65,80,32,99,108,105,101,110,116,32,108,111,111,112,0,78,111,32,76,68,65,80,32,114,101,115,117,108,116,115,32,114,101,116,117,114,110,101,100,0,76,68,65,80,32,99,111,110,116,114,111,108,32,110,111,116,32,102,111,117,110,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,76,68,65,80,0,76,68,65,80,32,99,111,110,110,101,99,116,32,101,114,114,111,114,0,79,117,116,32,111,102,32,109,101,109,111,114,121,32,105,110,32,76,68,65,80,0,66,97,100,32,112,97,114,97,109,101,116,101,114,32,116,111,32,97,110,32,76,68,65,80,32,114,111,117,116,105,110,101,0,85,115,101,114,32,99,97,110,99,101,108,108,101,100,32,76,68,65,80,32,111,112,101,114,97,116,105,111,110,0,66,97,100,32,76,68,65,80,32,115,101,97,114,99,104,32,102,105,108,116,101,114,0,85,110,107,110,111,119,110,32,76,68,65,80,32,97,117,116,104,101,110,116,105,99,97,116,105,111,110,32,109,101,116,104,111,100,0,84,105,109,101,111,117,116,32,105,110,32,76,68,65,80,0,76,68,65,80,32,100,101,99,111,100,105,110,103,32,101,114,114,111,114,0,76,68,65,80,32,101,110,99,111,100,105,110,103,32,101,114,114,111,114,0,76,68,65,80,32,108,111,99,97,108,32,101,114,114,111,114,0,67,97,110,110,111,116,32,99,111,110,116,97,99,116,32,76,68,65,80,32,115,101,114,118,101,114,0,76,68,65,80,32,115,117,99,99,101,115,115,0,76,68,65,80,32,111,112,101,114,97,116,105,111,110,115,32,101,114,114,111,114,0,76,68,65,80,32,112,114,111,116,111,99,111,108,32,101,114,114,111,114,0,84,105,109,101,32,108,105,109,105,116,32,101,120,99,101,101,100,101,100,32,105,110,32,76,68,65,80,0,83,105,122,101,32,108,105,109,105,116,32,101,120,99,101,101,100,101,100,32,105,110,32,76,68,65,80,0,76,68,65,80,32,99,111,109,112,97,114,101,32,102,97,108,115,101,0,76,68,65,80,32,99,111,109,112,97,114,101,32,116,114,117,101,0,76,68,65,80,32,97,117,116,104,101,110,116,105,99,97,116,105,111,110,32,109,101,116,104,111,100,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,116,114,111,110,103,40,101,114,41,32,76,68,65,80,32,97,117,116,104,101,110,116,105,99,97,116,105,111,110,32,114,101,113,117,105,114,101,100,0,80,97,114,116,105,97,108,32,76,68,65,80,32,114,101,115,117,108,116,115,43,114,101,102,101,114,114,97,108,32,114,101,99,101,105,118,101,100,0,76,68,65,80,32,114,101,102,101,114,114,97,108,0,65,100,109,105,110,105,115,116,114,97,116,105,118,101,32,76,68,65,80,32,108,105,109,105,116,32,101,120,99,101,101,100,101,100,0,67,114,105,116,105,99,97,108,32,76,68,65,80,32,101,120,116,101,110,115,105,111,110,32,105,115,32,117,110,97,118,97,105,108,97,98,108,101,0,67,111,110,102,105,100,101,110,116,105,97,108,105,116,121,32,114,101,113,117,105,114,101,100,32,98,121,32,76,68,65,80,0,76,68,65,80,32,83,65,83,76,32,98,105,110,100,32,105,110,32,112,114,111,103,114,101,115,115,0,78,111,32,115,117,99,104,32,76,68,65,80,32,97,116,116,114,105,98,117,116,101,0,85,110,100,101,102,105,110,101,100,32,76,68,65,80,32,97,116,116,114,105,98,117,116,101,32,116,121,112,101,0,73,110,97,112,112,114,111,112,114,105,97,116,101,32,109,97,116,99,104,105,110,103,32,105,110,32,76,68,65,80,0,67,111,110,115,116,114,97,105,110,116,32,118,105,111,108,97,116,105,111,110,32,105,110,32,76,68,65,80,0,76,68,65,80,32,116,121,112,101,32,111,114,32,118,97,108,117,101,32,101,120,105,115,116,115,0,73,110,118,97,108,105,100,32,115,121,110,116,97,120,32,105,110,32,76,68,65,80,0,78,111,32,115,117,99,104,32,76,68,65,80,32,111,98,106,101,99,116,0,76,68,65,80,32,97,108,105,97,115,32,112,114,111,98,108,101,109,0,73,110,118,97,108,105,100,32,68,78,32,115,121,110,116,97,120,32,105,110,32,76,68,65,80,0,76,68,65,80,32,101,110,116,114,121,32,105,115,32,97,32,108,101,97,102,0,76,68,65,80,32,97,108,105,97,115,32,100,101,114,101,102,101,114,101,110,99,105,110,103,32,112,114,111,98,108,101,109,0,76,68,65,80,32,112,114,111,120,121,32,97,117,116,104,111,114,105,122,97,116,105,111,110,32,102,97,105,108,117,114,101,32,40,88,41,0,73,110,97,112,112,114,111,112,114,105,97,116,101,32,76,68,65,80,32,97,117,116,104,101,110,116,105,99,97,116,105,111,110,0,73,110,118,97,108,105,100,32,76,68,65,80,32,99,114,101,100,101,110,116,105,97,108,115,0,73,110,115,117,102,102,105,99,105,101,110,116,32,97,99,99,101,115,115,32,102,111,114,32,76,68,65,80,0,76,68,65,80,32,115,101,114,118,101,114,32,105,115,32,98,117,115,121,0,76,68,65,80,32,115,101,114,118,101,114,32,105,115,32,117,110,97,118,97,105,108,97,98,108,101,0,76,68,65,80,32,115,101,114,118,101,114,32,105,115,32,117,110,119,105,108,108,105,110,103,32,116,111,32,112,101,114,102,111,114,109,0,76,111,111,112,32,100,101,116,101,99,116,101,100,32,98,121,32,76,68,65,80,0,76,68,65,80,32,110,97,109,105,110,103,32,118,105,111,108,97,116,105,111,110,0,76,68,65,80,32,111,98,106,101,99,116,32,99,108,97,115,115,32,118,105,111,108,97,116,105,111,110,0,76,68,65,80,32,111,112,101,114,97,116,105,111,110,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,110,111,110,45,108,101,97,102,0,76,68,65,80,32,111,112,101,114,97,116,105,111,110,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,82,68,78,0,65,108,114,101,97,100,121,32,101,120,105,115,116,115,32,40,76,68,65,80,41,0,67,97,110,110,111,116,32,109,111,100,105,102,121,32,76,68,65,80,32,111,98,106,101,99,116,32,99,108,97,115,115,0,76,68,65,80,32,114,101,115,117,108,116,115,32,116,111,111,32,108,97,114,103,101,0,76,68,65,80,32,111,112,101,114,97,116,105,111,110,32,97,102,102,101,99,116,115,32,109,117,108,116,105,112,108,101,32,68,83,65,115,0,86,105,114,116,117,97,108,32,76,68,65,80,32,108,105,115,116,32,118,105,101,119,32,101,114,114,111,114,0,79,116,104,101,114,32,76,68,65,80,32,101,114,114,111,114,0,82,101,115,111,117,114,99,101,115,32,101,120,104,97,117,115,116,101,100,32,105,110,32,76,67,85,80,0,83,101,99,117,114,105,116,121,32,118,105,111,108,97,116,105,111,110,32,105,110,32,76,67,85,80,0,73,110,118,97,108,105,100,32,100,97,116,97,32,105,110,32,76,67,85,80,0,85,110,115,117,112,112,111,114,116,101,100,32,115,99,104,101,109,101,32,105,110,32,76,67,85,80,0,82,101,108,111,97,100,32,114,101,113,117,105,114,101,100,32,105,110,32,76,67,85,80,0,76,68,65,80,32,99,97,110,99,101,108,108,101,100,0,78,111,32,76,68,65,80,32,111,112,101,114,97,116,105,111,110,32,116,111,32,99,97,110,99,101,108,0,84,111,111,32,108,97,116,101,32,116,111,32,99,97,110,99,101,108,32,76,68,65,80,0,67,97,110,110,111,116,32,99,97,110,99,101,108,32,76,68,65,80,0,76,68,65,80,32,97,115,115,101,114,116,105,111,110,32,102,97,105,108,101,100,0,80,114,111,120,105,101,100,32,97,117,116,104,111,114,105,122,97,116,105,111,110,32,100,101,110,105,101,100,32,98,121,32,76,68,65,80,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,49,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,50,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,51,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,52,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,53,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,54,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,55,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,56,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,57,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,49,48,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,49,49,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,49,50,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+51200);allocate([32,49,51,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,49,52,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,49,53,0,85,115,101,114,32,100,101,102,105,110,101,100,32,101,114,114,111,114,32,99,111,100,101,32,49,54,0,83,121,115,116,101,109,32,101,114,114,111,114,32,119,47,111,32,101,114,114,110,111,0,85,110,107,110,111,119,110,32,115,121,115,116,101,109,32,101,114,114,111,114,0,69,110,100,32,111,102,32,102,105,108,101,0,85,110,107,110,111,119,110,32,101,114,114,111,114,32,99,111,100,101,0,97,109,111,117,110,116,46,99,0,84,65,76,69,82,95,97,109,111,117,110,116,95,99,109,112,0,84,65,76,69,82,95,97,109,111,117,110,116,95,115,117,98,116,114,97,99,116,0,84,65,76,69,82,95,97,109,111,117,110,116,95,97,100,100,0,49,46,54,46,49,0,108,105,98,103,99,114,121,112,116,32,118,101,114,115,105,111,110,32,109,105,115,109,97,116,99,104,10,0,70,97,116,97,108,32,101,114,114,111,114,32,105,110,32,108,105,98,103,99,114,121,112,116,58,32,37,115,10,0,99,114,121,112,116,111,46,99,0,65,115,115,101,114,116,105,111,110,32,102,97,105,108,101,100,32,97,116,32,37,115,58,37,100,46,10,0,116,97,108,101,114,45,99,111,105,110,45,100,101,114,105,118,97,116,105,111,110,0,84,65,76,69,82,95,115,101,116,117,112,95,102,114,101,115,104,95,99,111,105,110,0,18,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,17,34,35,36,17,37,38,39,40,41,42,43,44,17,45,46,47,16,16,48,16,16,16,16,16,16,16,49,50,51,16,52,53,16,16,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,54,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,55,17,17,17,17,56,17,57,58,59,60,61,62,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,63,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,17,64,65,17,66,67,68,69,70,71,72,73,16,16,16,74,75,76,77,78,16,16,16,79,80,16,16,16,16,81,16,16,16,16,16,16,16,16,16,17,17,17,82,83,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,84,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,17,17,85,16,16,16,16,86,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,87,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,88,89,90,91,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,92,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,254,255,255,7,254,255,255,7,0,0,0,0,0,4,32,4,255,255,127,255,255,255,127,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,195,255,3,0,31,80,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,223,60,64,215,255,255,251,255,255,255,255,255,255,255,255,255,191,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,3,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,254,255,255,255,127,2,254,255,255,255,255,0,0,0,0,0,255,191,182,0,255,255,255,7,7,0,0,0,255,7,255,255,255,255,255,255,255,254,255,195,255,255,255,255,255,255,255,255,255,255,255,255,239,31,254,225,255,159,0,0,255,255,255,255,255,255,0,224,255,255,255,255,255,255,255,255,255,255,255,255,3,0,255,255,255,255,255,7,48,4,255,255,255,252,255,31,0,0,255,255,255,1,0,0,0,0,0,0,0,0,253,31,0,0,0,0,0,0,240,3,255,127,255,255,255,255,255,255,255,239,255,223,225,255,207,255,254,254,238,159,249,255,255,253,197,227,159,89,128,176,207,255,3,0,238,135,249,255,255,253,109,195,135,25,2,94,192,255,63,0,238,191,251,255,255,253,237,227,191,27,1,0,207,255,0,0,238,159,249,255,255,253,237,227,159,25,192,176,207,255,2,0,236,199,61,214,24,199,255,195,199,29,129,0,192,255,0,0,238,223,253,255,255,253,239,227,223,29,96,3,207,255,0,0,236,223,253,255,255,253,239,227,223,29,96,64,207,255,6,0,236,223,253,255,255,255,255,231,223,93,128,0,207,255,0,252,236,255,127,252,255,255,251,47,127,128,95,255,0,0,12,0,254,255,255,255,255,127,255,7,63,32,255,3,0,0,0,0,150,37,240,254,174,236,255,59,95,32,255,243,0,0,0,0,1,0,0,0,255,3,0,0,255,254,255,255,255,31,254,255,3,255,255,254,255,255,255,31,0,0,0,0,0,0,0,0,255,255,255,255,255,255,127,249,255,3,255,255,231,193,255,255,127,64,255,51,255,255,255,255,191,32,255,255,255,255,255,247,255,255,255,255,255,255,255,255,255,61,127,61,255,255,255,255,255,61,255,255,255,255,61,127,61,255,127,255,255,255,255,255,255,255,61,255,255,255,255,255,255,255,255,135,0,0,0,0,255,255,0,0,255,255,255,255,255,255,255,255,255,255,31,0,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,159,255,255,254,255,255,7,255,255,255,255,255,255,255,255,255,199,1,0,255,223,15,0,255,255,15,0,255,255,15,0,255,223,13,0,255,255,255,255,255,255,207,255,255,1,128,16,255,3,0,0,0,0,255,3,255,255,255,255,255,255,255,255,255,255,255,0,255,255,255,255,255,7,255,255,255,255,255,255,255,255,63,0,255,255,255,31,255,15,255,1,192,255,255,255,255,63,31,0,255,255,255,255,255,15,255,255,255,3,255,3,0,0,0,0,255,255,255,15,255,255,255,255,255,255,255,127,254,255,31,0,255,3,255,3,128,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,239,255,239,15,255,3,0,0,0,0,255,255,255,255,255,243,255,255,255,255,255,255,191,255,3,0,255,255,255,255,255,255,63,0,255,227,255,255,255,255,255,63,0,0,0,0,0,0,0,0,0,0,0,0,0,222,111,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,255,255,63,63,255,255,255,255,63,63,255,170,255,255,255,63,255,255,255,255,255,255,223,95,220,31,207,15,255,31,220,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,128,0,0,255,31,0,0,0,0,0,0,0,0,0,0,0,0,132,252,47,62,80,189,255,243,224,67,0,0,255,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,255,255,255,255,255,255,3,0,0,255,255,255,255,255,127,255,255,255,255,255,127,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,120,12,0,255,255,255,255,191,32,255,255,255,255,255,255,255,128,0,0,255,255,127,0,127,127,127,127,127,127,127,127,255,255,255,255,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,0,0,0,254,3,62,31,254,255,255,255,255,255,255,255,255,255,127,224,254,255,255,255,255,255,255,255,255,255,255,247,224,255,255,255,255,63,254,255,255,255,255,255,255,255,255,255,255,127,0,0,255,255,255,7,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,0,0,0,0,0,0,0,0,255,255,255,255,255,63,255,31,255,255,255,15,0,0,255,255,255,255,255,127,240,143,255,255,255,128,255,255,255,255,255,255,255,255,255,255,0,0,0,0,128,255,252,255,255,255,255,255,255,255,255,255,255,255,255,121,15,0,255,7,0,0,0,0,0,0,0,0,0,255,187,247,255,255,255,0,0,0,255,255,255,255,255,255,15,0,255,255,255,255,255,255,255,255,15,0,255,3,0,0,252,8,255,255,255,255,255,7,255,255,255,255,7,0,255,255,255,31,255,255,255,255,255,255,247,255,0,128,255,3,0,0,0,0,255,255,255,255,255,255,127,0,255,63,255,3,255,255,127,4,255,255,255,255,255,255,255,127,5,0,0,56,255,255,60,0,126,126,126,0,127,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,7,255,3,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,15,0,255,255,127,248,255,255,255,255,255,15,255,255,255,255,255,255,255,255,255,255,255,255,255,63,255,255,255,255,255,255,255,255,255,255,255,255,255,3,0,0,0,0,127,0,248,224,255,253,127,95,219,255,255,255,255,255,255,255,255,255,255,255,255,255,3,0,0,0,248,255,255,255,255,255,255,255,255,255,255,255,255,63,0,0,255,255,255,255,255,255,255,255,252,255,255,255,255,255,255,0,0,0,0,0,255,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,223,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,0,0,255,3,254,255,255,7,254,255,255,7,192,255,255,255,255,255,255,255,255,255,255,127,252,252,252,28,0,0,0,0,255,239,255,255,127,255,255,183,255,63,255,63,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,7,0,0,0,0,0,0,0,0,255,255,255,255,255,255,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,31,255,255,255,255,255,255,1,0,0,0,0,0,255,255,255,127,0,0,255,255,255,7,0,0,0,0,0,0,255,255,255,63,255,255,255,255,15,255,62,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63,255,3,0,0,0,0,0,0,0,0,0,0,63,253,255,255,255,255,191,145,255,255,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,63,0,255,255,255,3,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,192,0,0,0,0,0,0,0,0,111,240,239,254,255,255,15,0,0,0,0,0,255,255,255,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,63,0,255,255,63,0,255,255,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,63,0,0,0,192,255,0,0,252,255,255,255,255,255,255,1,0,0,255,255,255,1,255,3,255,255,255,255,255,255,199,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,30,0,255,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,63,0,255,3,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,31,0,255,255,255,255,255,127,0,0,248,255,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,223,255,255,255,255,255,255,255,255,223,100,222,255,235,239,255,255,255,255,255,255,255,191,231,223,223,255,255,255,123,95,252,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63,255,255,255,253,255,255,247,255,255,255,247,255,255,223,255,255,255,223,255,255,127,255,255,255,127,255,255,255,253,255,255,255,253,255,255,247,207,255,255,255,255,255,255,239,255,255,255,150,254,247,10,132,234,150,170,150,247,247,94,255,251,255,15,238,251,255,15,0,0,0,0,0,0,0,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0,18,16,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,16,16,34,35,16,36,37,38,39,40,41,42,43,16,44,45,46,17,47,48,17,17,49,17,17,17,50,51,52,53,54,55,56,57,17,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,58,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,59,16,60,61,62,63,64,65,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,66,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,67,16,16,68,16,69,70,71,16,72,16,73,16,16,16,16,74,75,76,77,16,16,78,16,79,80,16,16,16,16,81,16,16,16,16,16,16,16,16,16,16,16,16,16,82,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,83,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,84,85,86,87,16,16,88,89,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,90,16,91,92,93,94,95,96,97,98,16,16,16,16,16,16,16,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,254,255,0,252,1,0,0,248,1,0,0,120,0,0,0,0,255,251,223,251,0,0,128,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,0,252,255,224,175,255,255,255,255,255,255,255,255,255,255,223,255,255,255,255,255,32,64,176,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252,0,0,0,0,0,134,254,255,255,255,0,64,73,0,0,0,0,0,24,0,223,255,0,200,0,0,0,0,0,0,0,1,0,60,0,0,0,0,0,0,0,0,0,0,0,0,16,224,1,30,0,96,255,191,0,0,0,0,0,0,255,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,248,207,3,0,0,0,3,0,32,255,127,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252,0,0,0,0,0,0,0,0,0,16,0,32,30,0,48,0,1,0,0,0,0,0,0,0,0,16,0,32,0,0,0,0,252,15,0,0,0,0,0,0,0,16,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,32,0,0,0,0,3,0,0,0,0,0,0,0,0,16,0,32,0,0,0,0,253,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,255,7,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,255,0,0,0,0,0,0,0,16,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,63,2,0,0,0,0,0,0,0,0,0,4,0,0,0,0,16,0,0,0,0,0,0,128,0,128,192,223,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,254,255,255,255,0,252,255,255,0,0,0,0,0,0,0,0,252,0,0,0,0,0,0,192,255,223,255,7,0,0,0,0,0,0,0,0,0,0,128,6,0,252,0,0,24,62,0,0,128,191,0,204,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,96,255,255,255,31,0,0,255,3,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,0,0,1,0,0,24,0,0,0,0,0,0,0,0,0,56,0,0,0,0,16,0,0,0,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,0,0,254,127,47,0,0,255,3,255,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,196,255,255,255,255,0,0,0,192,0,0,0,0,0,0,0,0,1,0,224,159,0,0,0,0,127,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,16,0,0,252,255,255,255,31,0,0,0,0,0,12,0,0,0,0,0,0,64,0,12,240,0,0,0,0,0,0,192,248,0,0,0,0,0,0,0,192,0,0,0,0,0,0,0,0,255,0,255,255,255,33,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,127,0,0,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,3,224,0,224,0,224,0,96,128,248,255,255,255,252,255,255,255,255,255,127,31,252,241,127,255,127,0,0,255,255,255,3,0,0,255,255,255,255,1,0,123,3,208,193,175,66,0,12,31,188,255,255,0,0,0,0,0,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,15,0,255,255,255,255,127,0,0,0,255,7,0,0,255,255,255,255,255,255,255,255,255,255,63,0,0,0,0,0,0,252,255,255,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,31,255,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,224,135,3,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,127,255,15,0,0,0,0,0,0,0,0,255,255,255,251,255,255,255,255,255,255,255,255,255,255,15,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63,0,0,0,255,15,30,255,255,255,1,252,193,224,0,0,0,0,0,0,0,0,0,0,0,30,1,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,0,0,0,0,255,255,255,255,15,0,0,0,255,255,255,127,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,127,0,0,0,0,0,0,192,0,224,0,0,0,0,0,0,0,0,0,0,0,128,15,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,255,255,127,0,3,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,8,0,0,0,15,255,3,0,0,0,0,0,0,240,0,0,0,0,0,0,0,0,0,16,192,0,0,255,255,3,7,0,0,0,0,0,248,0,0,0,0,8,128,0,0,0,0,0,0,0,0,0,0,8,0,255,63,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,0,0,128,11,0,0,0,0,0,0,0,128,2,0,0,192,0,0,67,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252,255,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,255,255,255,3,127,0,255,255,255,255,247,255,127,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,254,255,0,252,1,0,0,248,1,0,0,248,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,127,0,48,135,255,255,255,255,255,143,255,0,0,0,0,0,0,224,255,255,7,255,15,0,0,0,0,0,0,255,255,255,255,255,63,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,143,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,135,255,0,255,1,0,0,0,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,254,0,0,0,255,0,0,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,63,252,255,63,0,0,0,3,0,0,0,0,0,0,254,3,0,0,0,0,0,0,0,0,0,0,0,0,0,24,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,225,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,7,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63,0,255,255,255,255,127,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63,0,0,0,0,255,255,255,255,255,255,255,255,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,127,0,255,255,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,8,0,0,0,8,0,0,32,0,0,0,32,0,0,128,0,0,0,128,0,0,0,2,0,0,0,2,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,255,255,255,255,255,15,255,255,255,255,255,255,255,255,255,255,255,255,15,0,255,127,254,127,254,255,254,255,0,0,0,0,255,7,255,255,255,127,255,255,255,255,255,255,255,15,255,255,255,255,255,7,0,0,0,0,0,0,0,0,192,255,255,255,7,0,255,255,255,255,255,7,255,1,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,1,0,191,255,255,255,255,255,255,255,255,31,255,255,15,0,255,255,255,255,223,7,0,0,255,255,1,0,255,255,255,255,255,255,255,127,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,30,255,255,255,255,255,255,255,63,15,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,248,255,255,255,255,255,255,255,255,225,255,0,0,0,0,0,0,255,255,255,255,255,255,255,255,63,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,4,7,3,6,5,0,114,119,97,0,47,112,114,111,99,47,115,101,108,102,47,102,100,47,0],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+61440);var tempDoublePtr=STATICTOP;STATICTOP+=16;assert(tempDoublePtr%8==0);var PROCINFO={ppid:1,pid:42,sid:42,pgid:42};var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function ___setErrNo(value){if(Module["___errno_location"])HEAP32[Module["___errno_location"]()>>2]=value;else Module.printErr("failed to set errno from JS");return value}var PATH={splitPath:(function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)}),normalizeArray:(function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}),normalize:(function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path}),dirname:(function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir}),basename:(function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)}),extname:(function(path){return PATH.splitPath(path)[3]}),join:(function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))}),join2:(function(l,r){return PATH.normalize(l+"/"+r)}),resolve:(function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter((function(p){return!!p})),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."}),relative:(function(from,to){from=PATH.resolve(from).substr(1);to=PATH.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")})};var TTY={ttys:[],init:(function(){}),shutdown:(function(){}),register:(function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)}),stream_ops:{open:(function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}stream.tty=tty;stream.seekable=false}),close:(function(stream){stream.tty.ops.flush(stream.tty)}),flush:(function(stream){stream.tty.ops.flush(stream.tty)}),read:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.put_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}for(var i=0;i<length;i++){try{stream.tty.ops.put_char(stream.tty,buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})},default_tty_ops:{get_char:(function(tty){if(!tty.input.length){var result=null;if(ENVIRONMENT_IS_NODE){var BUFSIZE=256;var buf=new Buffer(BUFSIZE);var bytesRead=0;var isPosixPlatform=process.platform!="win32";var fd=process.stdin.fd;if(isPosixPlatform){var usingDevice=false;try{fd=fs.openSync("/dev/stdin","r");usingDevice=true}catch(e){}}try{bytesRead=fs.readSync(fd,buf,0,BUFSIZE,null)}catch(e){if(e.toString().indexOf("EOF")!=-1)bytesRead=0;else throw e}if(usingDevice){fs.closeSync(fd)}if(bytesRead>0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()}),put_char:(function(tty,val){if(val===null||val===10){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}})},default_tty1_ops:{put_char:(function(tty,val){if(val===null||val===10){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}})}};var MEMFS={ops_table:null,mount:(function(mount){return MEMFS.createNode(null,"/",16384|511,0)}),createNode:(function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node}),getFileDataAsRegularArray:(function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i<node.usedBytes;++i)arr.push(node.contents[i]);return arr}return node.contents}),getFileDataAsTypedArray:(function(node){if(!node.contents)return new Uint8Array;if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)}),expandFileStorage:(function(node,newCapacity){if(node.contents&&node.contents.subarray&&newCapacity>node.contents.length){node.contents=MEMFS.getFileDataAsRegularArray(node);node.usedBytes=node.contents.length}if(!node.contents||node.contents.subarray){var prevCapacity=node.contents?node.contents.buffer.byteLength:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity<CAPACITY_DOUBLING_MAX?2:1.125)|0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return}if(!node.contents&&newCapacity>0)node.contents=[];while(node.contents.length<newCapacity)node.contents.push(0)}),resizeFileStorage:(function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(new ArrayBuffer(newSize));if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length<newSize)node.contents.push(0);node.usedBytes=newSize}),node_ops:{getattr:(function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}}),lookup:(function(parent,name){throw FS.genericErrors[ERRNO_CODES.ENOENT]}),mknod:(function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)}),rename:(function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}}}delete old_node.parent.contents[old_node.name];old_node.name=new_name;new_dir.contents[new_name]=old_node;old_node.parent=new_dir}),unlink:(function(parent,name){delete parent.contents[name]}),rmdir:(function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}delete parent.contents[name]}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node}),readlink:(function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return node.link})},stream_ops:{read:(function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);assert(size>=0);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i<size;i++)buffer[offset+i]=contents[position+i]}return size}),write:(function(stream,buffer,offset,length,position,canOwn){if(!length)return 0;var node=stream.node;node.timestamp=Date.now();if(buffer.subarray&&(!node.contents||node.contents.subarray)){if(canOwn){assert(position===0,"canOwn must imply no weird position inside the file");node.contents=buffer.subarray(offset,offset+length);node.usedBytes=length;return length}else if(node.usedBytes===0&&position===0){node.contents=new Uint8Array(buffer.subarray(offset,offset+length));node.usedBytes=length;return length}else if(position+length<=node.usedBytes){node.contents.set(buffer.subarray(offset,offset+length),position);return length}}MEMFS.expandFileStorage(node,position+length);if(node.contents.subarray&&buffer.subarray)node.contents.set(buffer.subarray(offset,offset+length),position);else{for(var i=0;i<length;i++){node.contents[position+i]=buffer[offset+i]}}node.usedBytes=Math.max(node.usedBytes,position+length);return length}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.usedBytes}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}),allocate:(function(stream,offset,length){MEMFS.expandFileStorage(stream.node,offset+length);stream.node.usedBytes=Math.max(stream.node.usedBytes,offset+length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}var ptr;var allocated;var contents=stream.node.contents;if(!(flags&2)&&(contents.buffer===buffer||contents.buffer===buffer.buffer)){allocated=false;ptr=contents.byteOffset}else{if(position>0||position+length<stream.node.usedBytes){if(contents.subarray){contents=contents.subarray(position,position+length)}else{contents=Array.prototype.slice.call(contents,position,position+length)}}allocated=true;ptr=_malloc(length);if(!ptr){throw new FS.ErrnoError(ERRNO_CODES.ENOMEM)}buffer.set(contents,ptr)}return{ptr:ptr,allocated:allocated}}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(mmapFlags&2){return 0}var bytesWritten=MEMFS.stream_ops.write(stream,buffer,0,length,offset,false);return 0})}};var IDBFS={dbs:{},indexedDB:(function(){if(typeof indexedDB!=="undefined")return indexedDB;var ret=null;if(typeof window==="object")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,"IDBFS used, but indexedDB not supported");return ret}),DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:(function(mount){return MEMFS.mount.apply(null,arguments)}),syncfs:(function(mount,populate,callback){IDBFS.getLocalSet(mount,(function(err,local){if(err)return callback(err);IDBFS.getRemoteSet(mount,(function(err,remote){if(err)return callback(err);var src=populate?remote:local;var dst=populate?local:remote;IDBFS.reconcile(src,dst,callback)}))}))}),getDB:(function(name,callback){var db=IDBFS.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBFS.indexedDB().open(name,IDBFS.DB_VERSION)}catch(e){return callback(e)}if(!req){return callback("Unable to connect to IndexedDB")}req.onupgradeneeded=(function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBFS.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBFS.DB_STORE_NAME)}if(!fileStore.indexNames.contains("timestamp")){fileStore.createIndex("timestamp","timestamp",{unique:false})}});req.onsuccess=(function(){db=req.result;IDBFS.dbs[name]=db;callback(null,db)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),getLocalSet:(function(mount,callback){var entries={};function isRealDir(p){return p!=="."&&p!==".."}function toAbsolute(root){return(function(p){return PATH.join2(root,p)})}var check=FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));while(check.length){var path=check.pop();var stat;try{stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){check.push.apply(check,FS.readdir(path).filter(isRealDir).map(toAbsolute(path)))}entries[path]={timestamp:stat.mtime}}return callback(null,{type:"local",entries:entries})}),getRemoteSet:(function(mount,callback){var entries={};IDBFS.getDB(mount.mountpoint,(function(err,db){if(err)return callback(err);var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readonly");transaction.onerror=(function(e){callback(this.error);e.preventDefault()});var store=transaction.objectStore(IDBFS.DB_STORE_NAME);var index=store.index("timestamp");index.openKeyCursor().onsuccess=(function(event){var cursor=event.target.result;if(!cursor){return callback(null,{type:"remote",db:db,entries:entries})}entries[cursor.primaryKey]={timestamp:cursor.key};cursor.continue()})}))}),loadLocalEntry:(function(path,callback){var stat,node;try{var lookup=FS.lookupPath(path);node=lookup.node;stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){return callback(null,{timestamp:stat.mtime,mode:stat.mode})}else if(FS.isFile(stat.mode)){node.contents=MEMFS.getFileDataAsTypedArray(node);return callback(null,{timestamp:stat.mtime,mode:stat.mode,contents:node.contents})}else{return callback(new Error("node type not supported"))}}),storeLocalEntry:(function(path,entry,callback){try{if(FS.isDir(entry.mode)){FS.mkdir(path,entry.mode)}else if(FS.isFile(entry.mode)){FS.writeFile(path,entry.contents,{encoding:"binary",canOwn:true})}else{return callback(new Error("node type not supported"))}FS.chmod(path,entry.mode);FS.utime(path,entry.timestamp,entry.timestamp)}catch(e){return callback(e)}callback(null)}),removeLocalEntry:(function(path,callback){try{var lookup=FS.lookupPath(path);var stat=FS.stat(path);if(FS.isDir(stat.mode)){FS.rmdir(path)}else if(FS.isFile(stat.mode)){FS.unlink(path)}}catch(e){return callback(e)}callback(null)}),loadRemoteEntry:(function(store,path,callback){var req=store.get(path);req.onsuccess=(function(event){callback(null,event.target.result)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),storeRemoteEntry:(function(store,path,entry,callback){var req=store.put(entry,path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),removeRemoteEntry:(function(store,path,callback){var req=store.delete(path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),reconcile:(function(src,dst,callback){var total=0;var create=[];Object.keys(src.entries).forEach((function(key){var e=src.entries[key];var e2=dst.entries[key];if(!e2||e.timestamp>e2.timestamp){create.push(key);total++}}));var remove=[];Object.keys(dst.entries).forEach((function(key){var e=dst.entries[key];var e2=src.entries[key];if(!e2){remove.push(key);total++}}));if(!total){return callback(null)}var completed=0;var db=src.type==="remote"?src.db:dst.db;var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readwrite");var store=transaction.objectStore(IDBFS.DB_STORE_NAME);function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=total){return callback(null)}}transaction.onerror=(function(e){done(this.error);e.preventDefault()});create.sort().forEach((function(path){if(dst.type==="local"){IDBFS.loadRemoteEntry(store,path,(function(err,entry){if(err)return done(err);IDBFS.storeLocalEntry(path,entry,done)}))}else{IDBFS.loadLocalEntry(path,(function(err,entry){if(err)return done(err);IDBFS.storeRemoteEntry(store,path,entry,done)}))}}));remove.sort().reverse().forEach((function(path){if(dst.type==="local"){IDBFS.removeLocalEntry(path,done)}else{IDBFS.removeRemoteEntry(store,path,done)}}))})};var NODEFS={isWindows:false,staticInit:(function(){NODEFS.isWindows=!!process.platform.match(/^win/)}),mount:(function(mount){assert(ENVIRONMENT_IS_NODE);return NODEFS.createNode(null,"/",NODEFS.getMode(mount.opts.root),0)}),createNode:(function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=FS.createNode(parent,name,mode);node.node_ops=NODEFS.node_ops;node.stream_ops=NODEFS.stream_ops;return node}),getMode:(function(path){var stat;try{stat=fs.lstatSync(path);if(NODEFS.isWindows){stat.mode=stat.mode|(stat.mode&146)>>1}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return stat.mode}),realPath:(function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)}),flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:(function(flags){flags&=~2097152;flags&=~2048;flags&=~32768;flags&=~524288;if(flags in NODEFS.flagsToPermissionStringMap){return NODEFS.flagsToPermissionStringMap[flags]}else{throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}}),node_ops:{getattr:(function(node){var path=NODEFS.realPath(node);var stat;try{stat=fs.lstatSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(NODEFS.isWindows&&!stat.blksize){stat.blksize=4096}if(NODEFS.isWindows&&!stat.blocks){stat.blocks=(stat.size+stat.blksize-1)/stat.blksize|0}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}}),setattr:(function(node,attr){var path=NODEFS.realPath(node);try{if(attr.mode!==undefined){fs.chmodSync(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);fs.utimesSync(path,date,date)}if(attr.size!==undefined){fs.truncateSync(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),lookup:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);var mode=NODEFS.getMode(path);return NODEFS.createNode(parent,name,mode)}),mknod:(function(parent,name,mode,dev){var node=NODEFS.createNode(parent,name,mode,dev);var path=NODEFS.realPath(node);try{if(FS.isDir(node.mode)){fs.mkdirSync(path,node.mode)}else{fs.writeFileSync(path,"",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return node}),rename:(function(oldNode,newDir,newName){var oldPath=NODEFS.realPath(oldNode);var newPath=PATH.join2(NODEFS.realPath(newDir),newName);try{fs.renameSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),unlink:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.unlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),rmdir:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.rmdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readdir:(function(node){var path=NODEFS.realPath(node);try{return fs.readdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),symlink:(function(parent,newName,oldPath){var newPath=PATH.join2(NODEFS.realPath(parent),newName);try{fs.symlinkSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readlink:(function(node){var path=NODEFS.realPath(node);try{path=fs.readlinkSync(path);path=NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root),path);return path}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}})},stream_ops:{open:(function(stream){var path=NODEFS.realPath(stream.node);try{if(FS.isFile(stream.node.mode)){stream.nfd=fs.openSync(path,NODEFS.flagsToPermissionString(stream.flags))}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),close:(function(stream){try{if(FS.isFile(stream.node.mode)&&stream.nfd){fs.closeSync(stream.nfd)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),read:(function(stream,buffer,offset,length,position){if(length===0)return 0;var nbuffer=new Buffer(length);var res;try{res=fs.readSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(res>0){for(var i=0;i<res;i++){buffer[offset+i]=nbuffer[i]}}return res}),write:(function(stream,buffer,offset,length,position){var nbuffer=new Buffer(buffer.subarray(offset,offset+length));var res;try{res=fs.writeSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}return res}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){try{var stat=fs.fstatSync(stream.nfd);position+=stat.size}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:(function(mount){assert(ENVIRONMENT_IS_WORKER);if(!WORKERFS.reader)WORKERFS.reader=new FileReaderSync;var root=WORKERFS.createNode(null,"/",WORKERFS.DIR_MODE,0);var createdParents={};function ensureParent(path){var parts=path.split("/");var parent=root;for(var i=0;i<parts.length-1;i++){var curr=parts.slice(0,i+1).join("/");if(!createdParents[curr]){createdParents[curr]=WORKERFS.createNode(parent,parts[i],WORKERFS.DIR_MODE,0)}parent=createdParents[curr]}return parent}function base(path){var parts=path.split("/");return parts[parts.length-1]}Array.prototype.forEach.call(mount.opts["files"]||[],(function(file){WORKERFS.createNode(ensureParent(file.name),base(file.name),WORKERFS.FILE_MODE,0,file,file.lastModifiedDate)}));(mount.opts["blobs"]||[]).forEach((function(obj){WORKERFS.createNode(ensureParent(obj["name"]),base(obj["name"]),WORKERFS.FILE_MODE,0,obj["data"])}));(mount.opts["packages"]||[]).forEach((function(pack){pack["metadata"].files.forEach((function(file){var name=file.filename.substr(1);WORKERFS.createNode(ensureParent(name),base(name),WORKERFS.FILE_MODE,0,pack["blob"].slice(file.start,file.end))}))}));return root}),createNode:(function(parent,name,mode,dev,contents,mtime){var node=FS.createNode(parent,name,mode);node.mode=mode;node.node_ops=WORKERFS.node_ops;node.stream_ops=WORKERFS.stream_ops;node.timestamp=(mtime||new Date).getTime();assert(WORKERFS.FILE_MODE!==WORKERFS.DIR_MODE);if(mode===WORKERFS.FILE_MODE){node.size=contents.size;node.contents=contents}else{node.size=4096;node.contents={}}if(parent){parent.contents[name]=node}return node}),node_ops:{getattr:(function(node){return{dev:1,ino:undefined,mode:node.mode,nlink:1,uid:0,gid:0,rdev:undefined,size:node.size,atime:new Date(node.timestamp),mtime:new Date(node.timestamp),ctime:new Date(node.timestamp),blksize:4096,blocks:Math.ceil(node.size/4096)}}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}}),lookup:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}),mknod:(function(parent,name,mode,dev){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rename:(function(oldNode,newDir,newName){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),unlink:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rmdir:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readdir:(function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),symlink:(function(parent,newName,oldPath){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readlink:(function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)})},stream_ops:{read:(function(stream,buffer,offset,length,position){if(position>=stream.node.size)return 0;var chunk=stream.node.contents.slice(position,position+length);var ab=WORKERFS.reader.readAsArrayBuffer(chunk);buffer.set(new Uint8Array(ab),offset);return chunk.size}),write:(function(stream,buffer,offset,length,position){throw new FS.ErrnoError(ERRNO_CODES.EIO)}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.size}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};STATICTOP+=16;STATICTOP+=16;STATICTOP+=16;var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:(function(e){if(!(e instanceof FS.ErrnoError))throw e+" : "+stackTrace();return ___setErrNo(e.errno)}),lookupPath:(function(path,opts){path=PATH.resolve(FS.cwd(),path);opts=opts||{};if(!path)return{path:"",node:null};var defaults={follow_mount:true,recurse_count:0};for(var key in defaults){if(opts[key]===undefined){opts[key]=defaults[key]}}if(opts.recurse_count>8){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}var parts=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),false);var current=FS.root;var current_path="/";for(var i=0;i<parts.length;i++){var islast=i===parts.length-1;if(islast&&opts.parent){break}current=FS.lookupNode(current,parts[i]);current_path=PATH.join2(current_path,parts[i]);if(FS.isMountpoint(current)){if(!islast||islast&&opts.follow_mount){current=current.mounted.root}}if(!islast||opts.follow){var count=0;while(FS.isLink(current.mode)){var link=FS.readlink(current_path);current_path=PATH.resolve(PATH.dirname(current_path),link);var lookup=FS.lookupPath(current_path,{recurse_count:opts.recurse_count});current=lookup.node;if(count++>40){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}}}}return{path:current_path,node:current}}),getPath:(function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}}),hashName:(function(parentid,name){var hash=0;for(var i=0;i<name.length;i++){hash=(hash<<5)-hash+name.charCodeAt(i)|0}return(parentid+hash>>>0)%FS.nameTable.length}),hashAddNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node}),hashRemoveNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}}),lookupNode:(function(parent,name){var err=FS.mayLookup(parent);if(err){throw new FS.ErrnoError(err,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)}),createNode:(function(parent,name,mode,rdev){if(!FS.FSNode){FS.FSNode=(function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev});FS.FSNode.prototype={};var readMode=292|73;var writeMode=146;Object.defineProperties(FS.FSNode.prototype,{read:{get:(function(){return(this.mode&readMode)===readMode}),set:(function(val){val?this.mode|=readMode:this.mode&=~readMode})},write:{get:(function(){return(this.mode&writeMode)===writeMode}),set:(function(val){val?this.mode|=writeMode:this.mode&=~writeMode})},isFolder:{get:(function(){return FS.isDir(this.mode)})},isDevice:{get:(function(){return FS.isChrdev(this.mode)})}})}var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node}),destroyNode:(function(node){FS.hashRemoveNode(node)}),isRoot:(function(node){return node===node.parent}),isMountpoint:(function(node){return!!node.mounted}),isFile:(function(mode){return(mode&61440)===32768}),isDir:(function(mode){return(mode&61440)===16384}),isLink:(function(mode){return(mode&61440)===40960}),isChrdev:(function(mode){return(mode&61440)===8192}),isBlkdev:(function(mode){return(mode&61440)===24576}),isFIFO:(function(mode){return(mode&61440)===4096}),isSocket:(function(mode){return(mode&49152)===49152}),flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:(function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags}),flagsToPermissionString:(function(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms}),nodePermissions:(function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return ERRNO_CODES.EACCES}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return ERRNO_CODES.EACCES}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return ERRNO_CODES.EACCES}return 0}),mayLookup:(function(dir){var err=FS.nodePermissions(dir,"x");if(err)return err;if(!dir.node_ops.lookup)return ERRNO_CODES.EACCES;return 0}),mayCreate:(function(dir,name){try{var node=FS.lookupNode(dir,name);return ERRNO_CODES.EEXIST}catch(e){}return FS.nodePermissions(dir,"wx")}),mayDelete:(function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var err=FS.nodePermissions(dir,"wx");if(err){return err}if(isdir){if(!FS.isDir(node.mode)){return ERRNO_CODES.ENOTDIR}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return ERRNO_CODES.EBUSY}}else{if(FS.isDir(node.mode)){return ERRNO_CODES.EISDIR}}return 0}),mayOpen:(function(node,flags){if(!node){return ERRNO_CODES.ENOENT}if(FS.isLink(node.mode)){return ERRNO_CODES.ELOOP}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&512){return ERRNO_CODES.EISDIR}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))}),MAX_OPEN_FDS:4096,nextfd:(function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(ERRNO_CODES.EMFILE)}),getStream:(function(fd){return FS.streams[fd]}),createStream:(function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=(function(){});FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:(function(){return this.node}),set:(function(val){this.node=val})},isRead:{get:(function(){return(this.flags&2097155)!==1})},isWrite:{get:(function(){return(this.flags&2097155)!==0})},isAppend:{get:(function(){return this.flags&1024})}})}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream}),closeStream:(function(fd){FS.streams[fd]=null}),chrdev_stream_ops:{open:(function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}}),llseek:(function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)})},major:(function(dev){return dev>>8}),minor:(function(dev){return dev&255}),makedev:(function(ma,mi){return ma<<8|mi}),registerDevice:(function(dev,ops){FS.devices[dev]={stream_ops:ops}}),getDevice:(function(dev){return FS.devices[dev]}),getMounts:(function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts}),syncfs:(function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){console.log("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(err){assert(FS.syncFSRequests>0);FS.syncFSRequests--;return callback(err)}function done(err){if(err){if(!done.errored){done.errored=true;return doCallback(err)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach((function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)}))}),mount:(function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot}),unmount:(function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach((function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}}));node.mounted=null;var idx=node.mount.mounts.indexOf(mount);assert(idx!==-1);node.mount.mounts.splice(idx,1)}),lookup:(function(parent,name){return parent.node_ops.lookup(parent,name)}),mknod:(function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.mayCreate(parent,name);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.mknod(parent,name,mode,dev)}),create:(function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)}),mkdir:(function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)}),mkdev:(function(path,mode,dev){if(typeof dev==="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)}),symlink:(function(oldpath,newpath){if(!PATH.resolve(oldpath)){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var newname=PATH.basename(newpath);var err=FS.mayCreate(parent,newname);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.symlink(parent,newname,oldpath)}),rename:(function(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;try{lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!old_dir||!new_dir)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(ERRNO_CODES.EXDEV)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}relative=PATH.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var err=FS.mayDelete(old_dir,old_name,isdir);if(err){throw new FS.ErrnoError(err)}err=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(err){throw new FS.ErrnoError(err)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(new_dir!==old_dir){err=FS.nodePermissions(old_dir,"w");if(err){throw new FS.ErrnoError(err)}}try{if(FS.trackingDelegate["willMovePath"]){FS.trackingDelegate["willMovePath"](old_path,new_path)}}catch(e){console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}try{if(FS.trackingDelegate["onMovePath"])FS.trackingDelegate["onMovePath"](old_path,new_path)}catch(e){console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}}),rmdir:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,true);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}return node.node_ops.readdir(node)}),unlink:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,false);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.unlink(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readlink:(function(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!link.node_ops.readlink){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return PATH.resolve(FS.getPath(link.parent),link.node_ops.readlink(link))}),stat:(function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!node.node_ops.getattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return node.node_ops.getattr(node)}),lstat:(function(path){return FS.stat(path,true)}),chmod:(function(path,mode,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})}),lchmod:(function(path,mode){FS.chmod(path,mode,true)}),fchmod:(function(fd,mode){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chmod(stream.node,mode)}),chown:(function(path,uid,gid,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{timestamp:Date.now()})}),lchown:(function(path,uid,gid){FS.chown(path,uid,gid,true)}),fchown:(function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chown(stream.node,uid,gid)}),truncate:(function(path,len){if(len<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.nodePermissions(node,"w");if(err){throw new FS.ErrnoError(err)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})}),ftruncate:(function(fd,len){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}FS.truncate(stream.node,len)}),utime:(function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})}),open:(function(path,flags,mode,fd_start,fd_end){if(path===""){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}flags=typeof flags==="string"?FS.modeStringToFlags(flags):flags;mode=typeof mode==="undefined"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path==="object"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}if(!created){var err=FS.mayOpen(node,flags);if(err){throw new FS.ErrnoError(err)}}if(flags&512){FS.truncate(node,0)}flags&=~(128|512);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false},fd_start,fd_end);if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module["logReadFiles"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1;Module["printErr"]("read file: "+path)}}try{if(FS.trackingDelegate["onOpenFile"]){var trackingFlags=0;if((flags&2097155)!==1){trackingFlags|=FS.tracking.openFlags.READ}if((flags&2097155)!==0){trackingFlags|=FS.tracking.openFlags.WRITE}FS.trackingDelegate["onOpenFile"](path,trackingFlags)}}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: "+e.message)}return stream}),close:(function(stream){if(stream.getdents)stream.getdents=null;try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}}),llseek:(function(stream,offset,whence){if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position}),read:(function(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.read){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead}),write:(function(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.write){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if(stream.flags&1024){FS.llseek(stream,0,2)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;try{if(stream.path&&FS.trackingDelegate["onWriteToFile"])FS.trackingDelegate["onWriteToFile"](stream.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return bytesWritten}),allocate:(function(stream,offset,length){if(offset<0||length<=0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}stream.stream_ops.allocate(stream,offset,length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EACCES)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}return stream.stream_ops.mmap(stream,buffer,offset,length,position,prot,flags)}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!stream||!stream.stream_ops.msync){return 0}return stream.stream_ops.msync(stream,buffer,offset,length,mmapFlags)}),munmap:(function(stream){return 0}),ioctl:(function(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(ERRNO_CODES.ENOTTY)}return stream.stream_ops.ioctl(stream,cmd,arg)}),readFile:(function(path,opts){opts=opts||{};opts.flags=opts.flags||"r";opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){ret=UTF8ArrayToString(buf,0)}else if(opts.encoding==="binary"){ret=buf}FS.close(stream);return ret}),writeFile:(function(path,data,opts){opts=opts||{};opts.flags=opts.flags||"w";opts.encoding=opts.encoding||"utf8";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var stream=FS.open(path,opts.flags,opts.mode);if(opts.encoding==="utf8"){var buf=new Uint8Array(lengthBytesUTF8(data)+1);var actualNumBytes=stringToUTF8Array(data,buf,0,buf.length);FS.write(stream,buf,0,actualNumBytes,0,opts.canOwn)}else if(opts.encoding==="binary"){FS.write(stream,data,0,data.length,0,opts.canOwn)}FS.close(stream)}),cwd:(function(){return FS.currentPath}),chdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}var err=FS.nodePermissions(lookup.node,"x");if(err){throw new FS.ErrnoError(err)}FS.currentPath=lookup.path}),createDefaultDirectories:(function(){FS.mkdir("/tmp");FS.mkdir("/home");FS.mkdir("/home/web_user")}),createDefaultDevices:(function(){FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:(function(){return 0}),write:(function(stream,buffer,offset,length,pos){return length})});FS.mkdev("/dev/null",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev("/dev/tty",FS.makedev(5,0));FS.mkdev("/dev/tty1",FS.makedev(6,0));var random_device;if(typeof crypto!=="undefined"){var randomBuffer=new Uint8Array(1);random_device=(function(){crypto.getRandomValues(randomBuffer);return randomBuffer[0]})}else if(ENVIRONMENT_IS_NODE){random_device=(function(){return require("crypto").randomBytes(1)[0]})}else{random_device=(function(){return Math.random()*256|0})}FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")}),createSpecialDirectories:(function(){FS.mkdir("/proc");FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd");FS.mount({mount:(function(){var node=FS.createNode("/proc/self","fd",16384|511,73);node.node_ops={lookup:(function(parent,name){var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:(function(){return stream.path})}};ret.parent=ret;return ret})};return node})},{},"/proc/self/fd")}),createStandardStreams:(function(){if(Module["stdin"]){FS.createDevice("/dev","stdin",Module["stdin"])}else{FS.symlink("/dev/tty","/dev/stdin")}if(Module["stdout"]){FS.createDevice("/dev","stdout",null,Module["stdout"])}else{FS.symlink("/dev/tty","/dev/stdout")}if(Module["stderr"]){FS.createDevice("/dev","stderr",null,Module["stderr"])}else{FS.symlink("/dev/tty1","/dev/stderr")}var stdin=FS.open("/dev/stdin","r");assert(stdin.fd===0,"invalid handle for stdin ("+stdin.fd+")");var stdout=FS.open("/dev/stdout","w");assert(stdout.fd===1,"invalid handle for stdout ("+stdout.fd+")");var stderr=FS.open("/dev/stderr","w");assert(stderr.fd===2,"invalid handle for stderr ("+stderr.fd+")")}),ensureErrnoError:(function(){if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=(function(errno){this.errno=errno;for(var key in ERRNO_CODES){if(ERRNO_CODES[key]===errno){this.code=key;break}}});this.setErrno(errno);this.message=ERRNO_MESSAGES[errno];if(this.stack)this.stack=demangleAll(this.stack)};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[ERRNO_CODES.ENOENT].forEach((function(code){FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack="<generic error, no stack>"}))}),staticInit:(function(){FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices();FS.createSpecialDirectories();FS.filesystems={"MEMFS":MEMFS,"IDBFS":IDBFS,"NODEFS":NODEFS,"WORKERFS":WORKERFS}}),init:(function(input,output,error){assert(!FS.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");FS.init.initialized=true;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()}),quit:(function(){FS.init.initialized=false;var fflush=Module["_fflush"];if(fflush)fflush(0);for(var i=0;i<FS.streams.length;i++){var stream=FS.streams[i];if(!stream){continue}FS.close(stream)}}),getMode:(function(canRead,canWrite){var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode}),joinPath:(function(parts,forceRelative){var path=PATH.join.apply(null,parts);if(forceRelative&&path[0]=="/")path=path.substr(1);return path}),absolutePath:(function(relative,base){return PATH.resolve(base,relative)}),standardizePath:(function(path){return PATH.normalize(path)}),findObject:(function(path,dontResolveLastLink){var ret=FS.analyzePath(path,dontResolveLastLink);if(ret.exists){return ret.object}else{___setErrNo(ret.error);return null}}),analyzePath:(function(path,dontResolveLastLink){try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path==="/"}catch(e){ret.error=e.errno}return ret}),createFolder:(function(parent,name,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.mkdir(path,mode)}),createPath:(function(parent,path,canRead,canWrite){parent=typeof parent==="string"?parent:FS.getPath(parent);var parts=path.split("/").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){}parent=current}return current}),createFile:(function(parent,name,properties,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.create(path,mode)}),createDataFile:(function(parent,name,data,canRead,canWrite,canOwn){var path=name?PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name):parent;var mode=FS.getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data==="string"){var arr=new Array(data.length);for(var i=0,len=data.length;i<len;++i)arr[i]=data.charCodeAt(i);data=arr}FS.chmod(node,mode|146);var stream=FS.open(node,"w");FS.write(stream,data,0,data.length,0,canOwn);FS.close(stream);FS.chmod(node,mode)}return node}),createDevice:(function(parent,name,input,output){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(!!input,!!output);if(!FS.createDevice.major)FS.createDevice.major=64;var dev=FS.makedev(FS.createDevice.major++,0);FS.registerDevice(dev,{open:(function(stream){stream.seekable=false}),close:(function(stream){if(output&&output.buffer&&output.buffer.length){output(10)}}),read:(function(stream,buffer,offset,length,pos){var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=input()}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){for(var i=0;i<length;i++){try{output(buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})});return FS.mkdev(path,mode,dev)}),createLink:(function(parent,name,target,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);return FS.symlink(target,path)}),forceLoadFile:(function(obj){if(obj.isDevice||obj.isFolder||obj.link||obj.contents)return true;var success=true;if(typeof XMLHttpRequest!=="undefined"){throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")}else if(Module["read"]){try{obj.contents=intArrayFromString(Module["read"](obj.url),true);obj.usedBytes=obj.contents.length}catch(e){success=false}}else{throw new Error("Cannot load without read() or XMLHttpRequest.")}if(!success)___setErrNo(ERRNO_CODES.EIO);return success}),createLazyFile:(function(parent,name,url,canRead,canWrite){function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_get(idx){if(idx>this.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}});var lazyArray=this;lazyArray.setDataGetter((function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]}));if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;console.log("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._length})},chunkSize:{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize})}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:(function(){return this.contents.length})}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach((function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return fn.apply(null,arguments)}}));stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);assert(size>=0);if(contents.slice){for(var i=0;i<size;i++){buffer[offset+i]=contents[position+i]}}else{for(var i=0;i<size;i++){buffer[offset+i]=contents.get(position+i)}}return size};node.stream_ops=stream_ops;return node}),createPreloadedFile:(function(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish){Browser.init();var fullname=name?PATH.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency("cp "+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}var handled=false;Module["preloadPlugins"].forEach((function(plugin){if(handled)return;if(plugin["canHandle"](fullname)){plugin["handle"](byteArray,fullname,finish,(function(){if(onerror)onerror();removeRunDependency(dep)}));handled=true}}));if(!handled)finish(byteArray)}addRunDependency(dep);if(typeof url=="string"){Browser.asyncLoad(url,(function(byteArray){processData(byteArray)}),onerror)}else{processData(url)}}),indexedDB:(function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}),DB_NAME:(function(){return"EM_FS_"+window.location.pathname}),DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=function openRequest_onupgradeneeded(){console.log("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=function putRequest_onsuccess(){ok++;if(ok+fail==total)finish()};putRequest.onerror=function putRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror}),loadFilesFromDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var getRequest=files.get(path);getRequest.onsuccess=function getRequest_onsuccess(){if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=function getRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror})};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:(function(dirfd,path){if(path[0]!=="/"){var dir;if(dirfd===-100){dir=FS.cwd()}else{var dirstream=FS.getStream(dirfd);if(!dirstream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);dir=dirstream.path}path=PATH.join2(dir,path)}return path}),doStat:(function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-ERRNO_CODES.ENOTDIR}throw e}HEAP32[buf>>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;HEAP32[buf+36>>2]=stat.size;HEAP32[buf+40>>2]=4096;HEAP32[buf+44>>2]=stat.blocks;HEAP32[buf+48>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+52>>2]=0;HEAP32[buf+56>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ino;return 0}),doMsync:(function(addr,stream,len,flags){var buffer=new Uint8Array(HEAPU8.subarray(addr,addr+len));FS.msync(stream,buffer,0,len,flags)}),doMkdir:(function(path,mode){path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0}),doMknod:(function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-ERRNO_CODES.EINVAL}FS.mknod(path,mode,dev);return 0}),doReadlink:(function(path,buf,bufsize){if(bufsize<=0)return-ERRNO_CODES.EINVAL;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len}),doAccess:(function(path,amode){if(amode&~7){return-ERRNO_CODES.EINVAL}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-ERRNO_CODES.EACCES}return 0}),doDup:(function(path,flags,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.open(path,flags,0,suggestFD,suggestFD).fd}),doReadv:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr<len)break}return ret}),doWritev:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret}),varargs:0,get:(function(varargs){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret}),getStr:(function(){var ret=Pointer_stringify(SYSCALLS.get());return ret}),getStreamFromFD:(function(){var stream=FS.getStream(SYSCALLS.get());if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return stream}),getSocketFromFD:(function(){var socket=SOCKFS.getSocket(SYSCALLS.get());if(!socket)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return socket}),getSocketAddress:(function(allowNull){var addrp=SYSCALLS.get(),addrlen=SYSCALLS.get();if(allowNull&&addrp===0)return null;var info=__read_sockaddr(addrp,addrlen);if(info.errno)throw new FS.ErrnoError(info.errno);info.addr=DNS.lookup_addr(info.addr)||info.addr;return info}),get64:(function(){var low=SYSCALLS.get(),high=SYSCALLS.get();if(low>=0)assert(high===0);else assert(high===-1);return low}),getZero:(function(){assert(SYSCALLS.get()===0)})};function ___syscall64(which,varargs){SYSCALLS.varargs=varargs;try{return PROCINFO.ppid}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_i64Subtract"]=_i64Subtract;function _sysconf(name){switch(name){case 30:return PAGE_SIZE;case 85:return totalMemory/PAGE_SIZE;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:{if(typeof navigator==="object")return navigator["hardwareConcurrency"]||1;return 1}}___setErrNo(ERRNO_CODES.EINVAL);return-1}function ___syscall20(which,varargs){SYSCALLS.varargs=varargs;try{return PROCINFO.pid}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function _pthread_mutex_destroy(){}Module["_memset"]=_memset;function ___syscall75(which,varargs){SYSCALLS.varargs=varargs;try{return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_pthread_mutex_lock"]=_pthread_mutex_lock;function _atexit(func,arg){__ATEXIT__.unshift({func:func,arg:arg})}function _abort(){Module["abort"]()}function ___syscall195(which,varargs){SYSCALLS.varargs=varargs;try{var path=SYSCALLS.getStr(),buf=SYSCALLS.get();return SYSCALLS.doStat(FS.stat,path,buf)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall194(which,varargs){SYSCALLS.varargs=varargs;try{var fd=SYSCALLS.get(),zero=SYSCALLS.getZero(),length=SYSCALLS.get64();FS.ftruncate(fd,length);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall197(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),buf=SYSCALLS.get();return SYSCALLS.doStat(FS.stat,stream.path,buf)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall202(which,varargs){SYSCALLS.varargs=varargs;try{return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall199(){return ___syscall202.apply(null,arguments)}Module["_i64Add"]=_i64Add;var cttz_i8=allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",ALLOC_STATIC);Module["_llvm_cttz_i32"]=_llvm_cttz_i32;Module["___udivmoddi4"]=___udivmoddi4;Module["___divdi3"]=___divdi3;function _pthread_mutex_init(){}function ___lock(){}function ___unlock(){}function ___assert_fail(condition,filename,line,func){ABORT=true;throw"Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"]+" at "+stackTrace()}function _clock(){if(_clock.start===undefined)_clock.start=Date.now();return(Date.now()-_clock.start)*(1e6/1e3)|0}function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;Module["_memmove"]=_memmove;function ___syscall91(which,varargs){SYSCALLS.varargs=varargs;try{var addr=SYSCALLS.get(),len=SYSCALLS.get();var info=SYSCALLS.mappings[addr];if(!info)return 0;if(len===info.len){var stream=FS.getStream(info.fd);SYSCALLS.doMsync(addr,stream,len,info.flags);FS.munmap(stream);SYSCALLS.mappings[addr]=null;if(info.allocated){_free(info.malloc)}}return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_llvm_bswap_i32"]=_llvm_bswap_i32;function ___syscall6(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD();FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall54(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),op=SYSCALLS.get();switch(op){case 21505:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21506:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21519:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;var argp=SYSCALLS.get();HEAP32[argp>>2]=0;return 0};case 21520:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return-ERRNO_CODES.EINVAL};case 21531:{var argp=SYSCALLS.get();return FS.ioctl(stream,op,argp)};default:abort("bad ioctl syscall "+op)}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}var ___tm_current=STATICTOP;STATICTOP+=48;var ___tm_timezone=allocate(intArrayFromString("GMT"),"i8",ALLOC_STATIC);var _tzname=STATICTOP;STATICTOP+=16;var _daylight=STATICTOP;STATICTOP+=16;var _timezone=STATICTOP;STATICTOP+=16;function _tzset(){if(_tzset.called)return;_tzset.called=true;HEAP32[_timezone>>2]=-(new Date).getTimezoneOffset()*60;var winter=new Date(2e3,0,1);var summer=new Date(2e3,6,1);HEAP32[_daylight>>2]=Number(winter.getTimezoneOffset()!=summer.getTimezoneOffset());function extractZone(date){var match=date.toTimeString().match(/\(([A-Za-z ]+)\)$/);return match?match[1]:"GMT"}var winterName=extractZone(winter);var summerName=extractZone(summer);var winterNamePtr=allocate(intArrayFromString(winterName),"i8",ALLOC_NORMAL);var summerNamePtr=allocate(intArrayFromString(summerName),"i8",ALLOC_NORMAL);if(summer.getTimezoneOffset()<winter.getTimezoneOffset()){HEAP32[_tzname>>2]=winterNamePtr;HEAP32[_tzname+4>>2]=summerNamePtr}else{HEAP32[_tzname>>2]=summerNamePtr;HEAP32[_tzname+4>>2]=winterNamePtr}}function _localtime_r(time,tmPtr){_tzset();var date=new Date(HEAP32[time>>2]*1e3);HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getDay();var start=new Date(date.getFullYear(),0,1);var yday=(date.getTime()-start.getTime())/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);var summerOffset=(new Date(2e3,6,1)).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dst=date.getTimezoneOffset()==Math.min(winterOffset,summerOffset)|0;HEAP32[tmPtr+32>>2]=dst;var zonePtr=HEAP32[_tzname+(dst?Runtime.QUANTUM_SIZE:0)>>2];HEAP32[tmPtr+40>>2]=zonePtr;return tmPtr}function _localtime(time){return _localtime_r(time,___tm_current)}function ___syscall77(which,varargs){SYSCALLS.varargs=varargs;try{var who=SYSCALLS.get(),usage=SYSCALLS.get();_memset(usage,0,136);HEAP32[usage>>2]=1;HEAP32[usage+4>>2]=2;HEAP32[usage+8>>2]=3;HEAP32[usage+12>>2]=4;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_bitshift64Ashr"]=_bitshift64Ashr;Module["_bitshift64Lshr"]=_bitshift64Lshr;function ___syscall33(which,varargs){SYSCALLS.varargs=varargs;try{var path=SYSCALLS.getStr(),amode=SYSCALLS.get();return SYSCALLS.doAccess(path,amode)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function _pthread_cleanup_push(routine,arg){__ATEXIT__.push((function(){Runtime.dynCall("vi",routine,[arg])}));_pthread_cleanup_push.level=__ATEXIT__.length}var _environ=STATICTOP;STATICTOP+=16;function ___buildEnvironment(env){var MAX_ENV_VALUES=64;var TOTAL_ENV_SIZE=1024;var poolPtr;var envPtr;if(!___buildEnvironment.called){___buildEnvironment.called=true;ENV["USER"]=ENV["LOGNAME"]="web_user";ENV["PATH"]="/";ENV["PWD"]="/";ENV["HOME"]="/home/web_user";ENV["LANG"]="C";ENV["_"]=Module["thisProgram"];poolPtr=allocate(TOTAL_ENV_SIZE,"i8",ALLOC_STATIC);envPtr=allocate(MAX_ENV_VALUES*4,"i8*",ALLOC_STATIC);HEAP32[envPtr>>2]=poolPtr;HEAP32[_environ>>2]=envPtr}else{envPtr=HEAP32[_environ>>2];poolPtr=HEAP32[envPtr>>2]}var strings=[];var totalSize=0;for(var key in env){if(typeof env[key]==="string"){var line=key+"="+env[key];strings.push(line);totalSize+=line.length}}if(totalSize>TOTAL_ENV_SIZE){throw new Error("Environment size exceeded TOTAL_ENV_SIZE!")}var ptrSize=4;for(var i=0;i<strings.length;i++){var line=strings[i];writeAsciiToMemory(line,poolPtr);HEAP32[envPtr+i*ptrSize>>2]=poolPtr;poolPtr+=line.length+1}HEAP32[envPtr+strings.length*ptrSize>>2]=0}var ENV={};function _getenv(name){if(name===0)return 0;name=Pointer_stringify(name);if(!ENV.hasOwnProperty(name))return 0;if(_getenv.ret)_free(_getenv.ret);_getenv.ret=allocate(intArrayFromString(ENV[name]),"i8",ALLOC_NORMAL);return _getenv.ret}function _gettimeofday(ptr){var now=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return 0}Module["_pthread_mutex_unlock"]=_pthread_mutex_unlock;function ___syscall3(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),buf=SYSCALLS.get(),count=SYSCALLS.get();return FS.read(stream,HEAP8,buf,count)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall5(which,varargs){SYSCALLS.varargs=varargs;try{var pathname=SYSCALLS.getStr(),flags=SYSCALLS.get(),mode=SYSCALLS.get();var stream=FS.open(pathname,flags,mode);return stream.fd}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function _llvm_stackrestore(p){var self=_llvm_stacksave;var ret=self.LLVM_SAVEDSTACKS[p];self.LLVM_SAVEDSTACKS.splice(p,1);Runtime.stackRestore(ret)}Module["___udivdi3"]=___udivdi3;Module["___muldsi3"]=___muldsi3;Module["___muldi3"]=___muldi3;Module["_sbrk"]=_sbrk;Module["_bitshift64Shl"]=_bitshift64Shl;function _llvm_stacksave(){var self=_llvm_stacksave;if(!self.LLVM_SAVEDSTACKS){self.LLVM_SAVEDSTACKS=[]}self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());return self.LLVM_SAVEDSTACKS.length-1}function _pthread_cleanup_pop(){assert(_pthread_cleanup_push.level==__ATEXIT__.length,"cannot pop if something else added meanwhile!");__ATEXIT__.pop();_pthread_cleanup_push.level=__ATEXIT__.length}Module["___uremdi3"]=___uremdi3;function ___syscall340(which,varargs){SYSCALLS.varargs=varargs;try{var pid=SYSCALLS.get(),resource=SYSCALLS.get(),new_limit=SYSCALLS.get(),old_limit=SYSCALLS.get();if(old_limit){HEAP32[old_limit>>2]=-1;HEAP32[old_limit+4>>2]=-1;HEAP32[old_limit+8>>2]=-1;HEAP32[old_limit+12>>2]=-1}return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall4(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),buf=SYSCALLS.get(),count=SYSCALLS.get();return FS.write(stream,HEAP8,buf,count)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall192(which,varargs){SYSCALLS.varargs=varargs;try{var addr=SYSCALLS.get(),len=SYSCALLS.get(),prot=SYSCALLS.get(),flags=SYSCALLS.get(),fd=SYSCALLS.get(),off=SYSCALLS.get();off<<=12;var ptr;var allocated=false;if(fd===-1){ptr=_malloc(len);if(!ptr)return-ERRNO_CODES.ENOMEM;_memset(ptr,0,len);allocated=true}else{var info=FS.getStream(fd);if(!info)return-ERRNO_CODES.EBADF;var res=FS.mmap(info,HEAPU8,addr,len,off,prot,flags);ptr=res.ptr;allocated=res.allocated}SYSCALLS.mappings[ptr]={malloc:ptr,len:len,allocated:allocated,fd:fd,flags:flags};return ptr}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall201(){return ___syscall202.apply(null,arguments)}function __isLeapYear(year){return year%4===0&&(year%100!==0||year%400===0)}function __arraySum(array,index){var sum=0;for(var i=0;i<=index;sum+=array[i++]);return sum}var __MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];var __MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];function __addDays(date,days){var newDate=new Date(date.getTime());while(days>0){var leap=__isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11){newDate.setMonth(currentMonth+1)}else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate}function _strftime(s,maxsize,format,tm){var tm_zone=HEAP32[tm+40>>2];var date={tm_sec:HEAP32[tm>>2],tm_min:HEAP32[tm+4>>2],tm_hour:HEAP32[tm+8>>2],tm_mday:HEAP32[tm+12>>2],tm_mon:HEAP32[tm+16>>2],tm_year:HEAP32[tm+20>>2],tm_wday:HEAP32[tm+24>>2],tm_yday:HEAP32[tm+28>>2],tm_isdst:HEAP32[tm+32>>2],tm_gmtoff:HEAP32[tm+36>>2],tm_zone:tm_zone?Pointer_stringify(tm_zone):""};var pattern=Pointer_stringify(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S"};for(var rule in EXPANSION_RULES_1){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule])}var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function leadingSomething(value,digits,character){var str=typeof value==="number"?value.toString():value||"";while(str.length<digits){str=character[0]+str}return str}function leadingNulls(value,digits){return leadingSomething(value,digits,"0")}function compareByDay(date1,date2){function sgn(value){return value<0?-1:value>0?1:0}var compare;if((compare=sgn(date1.getFullYear()-date2.getFullYear()))===0){if((compare=sgn(date1.getMonth()-date2.getMonth()))===0){compare=sgn(date1.getDate()-date2.getDate())}}return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear,thisDate)<=0){return thisDate.getFullYear()+1}else{return thisDate.getFullYear()}}else{return thisDate.getFullYear()-1}}var EXPANSION_RULES_2={"%a":(function(date){return WEEKDAYS[date.tm_wday].substring(0,3)}),"%A":(function(date){return WEEKDAYS[date.tm_wday]}),"%b":(function(date){return MONTHS[date.tm_mon].substring(0,3)}),"%B":(function(date){return MONTHS[date.tm_mon]}),"%C":(function(date){var year=date.tm_year+1900;return leadingNulls(year/100|0,2)}),"%d":(function(date){return leadingNulls(date.tm_mday,2)}),"%e":(function(date){return leadingSomething(date.tm_mday,2," ")}),"%g":(function(date){return getWeekBasedYear(date).toString().substring(2)}),"%G":(function(date){return getWeekBasedYear(date)}),"%H":(function(date){return leadingNulls(date.tm_hour,2)}),"%I":(function(date){var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)}),"%j":(function(date){return leadingNulls(date.tm_mday+__arraySum(__isLeapYear(date.tm_year+1900)?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,date.tm_mon-1),3)}),"%m":(function(date){return leadingNulls(date.tm_mon+1,2)}),"%M":(function(date){return leadingNulls(date.tm_min,2)}),"%n":(function(){return"\n"}),"%p":(function(date){if(date.tm_hour>=0&&date.tm_hour<12){return"AM"}else{return"PM"}}),"%S":(function(date){return leadingNulls(date.tm_sec,2)}),"%t":(function(){return"\t"}),"%u":(function(date){var day=new Date(date.tm_year+1900,date.tm_mon+1,date.tm_mday,0,0,0,0);return day.getDay()||7}),"%U":(function(date){var janFirst=new Date(date.tm_year+1900,0,1);var firstSunday=janFirst.getDay()===0?janFirst:__addDays(janFirst,7-janFirst.getDay());var endDate=new Date(date.tm_year+1900,date.tm_mon,date.tm_mday);if(compareByDay(firstSunday,endDate)<0){var februaryFirstUntilEndMonth=__arraySum(__isLeapYear(endDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,endDate.getMonth()-1)-31;var firstSundayUntilEndJanuary=31-firstSunday.getDate();var days=firstSundayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();return leadingNulls(Math.ceil(days/7),2)}return compareByDay(firstSunday,janFirst)===0?"01":"00"}),"%V":(function(date){var janFourthThisYear=new Date(date.tm_year+1900,0,4);var janFourthNextYear=new Date(date.tm_year+1901,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);var endDate=__addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);if(compareByDay(endDate,firstWeekStartThisYear)<0){return"53"}if(compareByDay(firstWeekStartNextYear,endDate)<=0){return"01"}var daysDifference;if(firstWeekStartThisYear.getFullYear()<date.tm_year+1900){daysDifference=date.tm_yday+32-firstWeekStartThisYear.getDate()}else{daysDifference=date.tm_yday+1-firstWeekStartThisYear.getDate()}return leadingNulls(Math.ceil(daysDifference/7),2)}),"%w":(function(date){var day=new Date(date.tm_year+1900,date.tm_mon+1,date.tm_mday,0,0,0,0);return day.getDay()}),"%W":(function(date){var janFirst=new Date(date.tm_year,0,1);var firstMonday=janFirst.getDay()===1?janFirst:__addDays(janFirst,janFirst.getDay()===0?1:7-janFirst.getDay()+1);var endDate=new Date(date.tm_year+1900,date.tm_mon,date.tm_mday);if(compareByDay(firstMonday,endDate)<0){var februaryFirstUntilEndMonth=__arraySum(__isLeapYear(endDate.getFullYear())?__MONTH_DAYS_LEAP:__MONTH_DAYS_REGULAR,endDate.getMonth()-1)-31;var firstMondayUntilEndJanuary=31-firstMonday.getDate();var days=firstMondayUntilEndJanuary+februaryFirstUntilEndMonth+endDate.getDate();return leadingNulls(Math.ceil(days/7),2)}return compareByDay(firstMonday,janFirst)===0?"01":"00"}),"%y":(function(date){return(date.tm_year+1900).toString().substring(2)}),"%Y":(function(date){return date.tm_year+1900}),"%z":(function(date){var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)}),"%Z":(function(date){return date.tm_zone}),"%%":(function(){return"%"})};for(var rule in EXPANSION_RULES_2){if(pattern.indexOf(rule)>=0){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date))}}var bytes=intArrayFromString(pattern,false);if(bytes.length>maxsize){return 0}writeArrayToMemory(bytes,s);return bytes.length-1}function ___syscall191(which,varargs){SYSCALLS.varargs=varargs;try{var resource=SYSCALLS.get(),rlim=SYSCALLS.get();HEAP32[rlim>>2]=-1;HEAP32[rlim+4>>2]=-1;HEAP32[rlim+8>>2]=-1;HEAP32[rlim+12>>2]=-1;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function _time(ptr){var ret=Date.now()/1e3|0;if(ptr){HEAP32[ptr>>2]=ret}return ret}function ___syscall142(which,varargs){SYSCALLS.varargs=varargs;try{var nfds=SYSCALLS.get(),readfds=SYSCALLS.get(),writefds=SYSCALLS.get(),exceptfds=SYSCALLS.get(),timeout=SYSCALLS.get();assert(nfds<=64,"nfds must be less than or equal to 64");assert(!exceptfds,"exceptfds not supported");var total=0;var srcReadLow=readfds?HEAP32[readfds>>2]:0,srcReadHigh=readfds?HEAP32[readfds+4>>2]:0;var srcWriteLow=writefds?HEAP32[writefds>>2]:0,srcWriteHigh=writefds?HEAP32[writefds+4>>2]:0;var srcExceptLow=exceptfds?HEAP32[exceptfds>>2]:0,srcExceptHigh=exceptfds?HEAP32[exceptfds+4>>2]:0;var dstReadLow=0,dstReadHigh=0;var dstWriteLow=0,dstWriteHigh=0;var dstExceptLow=0,dstExceptHigh=0;var allLow=(readfds?HEAP32[readfds>>2]:0)|(writefds?HEAP32[writefds>>2]:0)|(exceptfds?HEAP32[exceptfds>>2]:0);var allHigh=(readfds?HEAP32[readfds+4>>2]:0)|(writefds?HEAP32[writefds+4>>2]:0)|(exceptfds?HEAP32[exceptfds+4>>2]:0);function check(fd,low,high,val){return fd<32?low&val:high&val}for(var fd=0;fd<nfds;fd++){var mask=1<<fd%32;if(!check(fd,allLow,allHigh,mask)){continue}var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);var flags=SYSCALLS.DEFAULT_POLLMASK;if(stream.stream_ops.poll){flags=stream.stream_ops.poll(stream)}if(flags&1&&check(fd,srcReadLow,srcReadHigh,mask)){fd<32?dstReadLow=dstReadLow|mask:dstReadHigh=dstReadHigh|mask;total++}if(flags&4&&check(fd,srcWriteLow,srcWriteHigh,mask)){fd<32?dstWriteLow=dstWriteLow|mask:dstWriteHigh=dstWriteHigh|mask;total++}if(flags&2&&check(fd,srcExceptLow,srcExceptHigh,mask)){fd<32?dstExceptLow=dstExceptLow|mask:dstExceptHigh=dstExceptHigh|mask;total++}}if(readfds){HEAP32[readfds>>2]=dstReadLow;HEAP32[readfds+4>>2]=dstReadHigh}if(writefds){HEAP32[writefds>>2]=dstWriteLow;HEAP32[writefds+4>>2]=dstWriteHigh}if(exceptfds){HEAP32[exceptfds>>2]=dstExceptLow;HEAP32[exceptfds+4>>2]=dstExceptHigh}return total}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["_pthread_self"]=_pthread_self;function ___syscall140(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),offset_high=SYSCALLS.get(),offset_low=SYSCALLS.get(),result=SYSCALLS.get(),whence=SYSCALLS.get();var offset=offset_low;assert(offset_high===0);FS.llseek(stream,offset,whence);HEAP32[result>>2]=stream.position;if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall146(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();return SYSCALLS.doWritev(stream,iov,iovcnt)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["___remdi3"]=___remdi3;function ___syscall221(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),cmd=SYSCALLS.get();switch(cmd){case 0:{var arg=SYSCALLS.get();if(arg<0){return-ERRNO_CODES.EINVAL}var newStream;newStream=FS.open(stream.path,stream.flags,0,arg);return newStream.fd};case 1:case 2:return 0;case 3:return stream.flags;case 4:{var arg=SYSCALLS.get();stream.flags|=arg;return 0};case 12:case 12:{var arg=SYSCALLS.get();var offset=0;HEAP16[arg+offset>>1]=2;return 0};case 13:case 14:case 13:case 14:return 0;case 16:case 8:return-ERRNO_CODES.EINVAL;case 9:___setErrNo(ERRNO_CODES.EINVAL);return-1;default:{return-ERRNO_CODES.EINVAL}}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall145(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();return SYSCALLS.doReadv(stream,iov,iovcnt)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}FS.staticInit();__ATINIT__.unshift((function(){if(!Module["noFSInit"]&&!FS.init.initialized)FS.init()}));__ATMAIN__.push((function(){FS.ignorePermissions=false}));__ATEXIT__.push((function(){FS.quit()}));Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;__ATINIT__.unshift((function(){TTY.init()}));__ATEXIT__.push((function(){TTY.shutdown()}));if(ENVIRONMENT_IS_NODE){var fs=require("fs");var NODEJS_PATH=require("path");NODEFS.staticInit()}___buildEnvironment(ENV);DYNAMICTOP_PTR=allocate(1,"i32",ALLOC_STATIC);STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=Runtime.alignMemory(STACK_MAX);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;staticSealed=true;assert(DYNAMIC_BASE<TOTAL_MEMORY,"TOTAL_MEMORY not big enough for stack");function nullFunc_iiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vi(x){Module["printErr"]("Invalid function pointer called with signature 'vi'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vii(x){Module["printErr"]("Invalid function pointer called with signature 'vii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_ii(x){Module["printErr"]("Invalid function pointer called with signature 'ii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viii(x){Module["printErr"]("Invalid function pointer called with signature 'viii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_v(x){Module["printErr"]("Invalid function pointer called with signature 'v'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iii(x){Module["printErr"]("Invalid function pointer called with signature 'iii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function invoke_iiii(index,a1,a2,a3){try{return Module["dynCall_iiii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){try{Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vi(index,a1){try{Module["dynCall_vi"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vii(index,a1,a2){try{Module["dynCall_vii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_ii(index,a1){try{return Module["dynCall_ii"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viii(index,a1,a2,a3){try{Module["dynCall_viii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_v(index){try{Module["dynCall_v"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){try{return Module["dynCall_iiiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){try{Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iii(index,a1,a2){try{return Module["dynCall_iii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiii(index,a1,a2,a3,a4){try{Module["dynCall_viiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}Module.asmGlobalArg={"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity};Module.asmLibraryArg={"abort":abort,"assert":assert,"enlargeMemory":enlargeMemory,"getTotalMemory":getTotalMemory,"abortOnCannotGrowMemory":abortOnCannotGrowMemory,"abortStackOverflow":abortStackOverflow,"nullFunc_iiii":nullFunc_iiii,"nullFunc_viiiii":nullFunc_viiiii,"nullFunc_vi":nullFunc_vi,"nullFunc_vii":nullFunc_vii,"nullFunc_ii":nullFunc_ii,"nullFunc_viii":nullFunc_viii,"nullFunc_v":nullFunc_v,"nullFunc_iiiii":nullFunc_iiiii,"nullFunc_viiiiii":nullFunc_viiiiii,"nullFunc_iii":nullFunc_iii,"nullFunc_viiii":nullFunc_viiii,"invoke_iiii":invoke_iiii,"invoke_viiiii":invoke_viiiii,"invoke_vi":invoke_vi,"invoke_vii":invoke_vii,"invoke_ii":invoke_ii,"invoke_viii":invoke_viii,"invoke_v":invoke_v,"invoke_iiiii":invoke_iiiii,"invoke_viiiiii":invoke_viiiiii,"invoke_iii":invoke_iii,"invoke_viiii":invoke_viiii,"_pthread_cleanup_pop":_pthread_cleanup_pop,"___syscall221":___syscall221,"_pthread_mutex_init":_pthread_mutex_init,"___syscall64":___syscall64,"_abort":_abort,"___syscall202":___syscall202,"_pthread_cleanup_push":_pthread_cleanup_push,"___syscall20":___syscall20,"_llvm_stackrestore":_llvm_stackrestore,"___assert_fail":___assert_fail,"___buildEnvironment":___buildEnvironment,"__addDays":__addDays,"_localtime_r":_localtime_r,"_tzset":_tzset,"___setErrNo":___setErrNo,"___syscall192":___syscall192,"___syscall191":___syscall191,"___syscall197":___syscall197,"___syscall195":___syscall195,"___syscall194":___syscall194,"___syscall199":___syscall199,"_sysconf":_sysconf,"_strftime":_strftime,"_clock":_clock,"__arraySum":__arraySum,"_emscripten_memcpy_big":_emscripten_memcpy_big,"___syscall91":___syscall91,"___syscall75":___syscall75,"_pthread_mutex_destroy":_pthread_mutex_destroy,"_llvm_stacksave":_llvm_stacksave,"___syscall77":___syscall77,"_getenv":_getenv,"___syscall33":___syscall33,"___syscall54":___syscall54,"___unlock":___unlock,"__isLeapYear":__isLeapYear,"___syscall3":___syscall3,"___syscall340":___syscall340,"___lock":___lock,"___syscall6":___syscall6,"___syscall5":___syscall5,"___syscall4":___syscall4,"_time":_time,"_gettimeofday":_gettimeofday,"___syscall201":___syscall201,"_atexit":_atexit,"___syscall140":___syscall140,"_localtime":_localtime,"___syscall142":___syscall142,"___syscall145":___syscall145,"___syscall146":___syscall146,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"DYNAMICTOP_PTR":DYNAMICTOP_PTR,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"cttz_i8":cttz_i8};// EMSCRIPTEN_START_ASM
-var asm=(function(global,env,buffer) {
-"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.DYNAMICTOP_PTR|0;var l=env.tempDoublePtr|0;var m=env.ABORT|0;var n=env.cttz_i8|0;var o=0;var p=0;var q=0;var r=0;var s=global.NaN,t=global.Infinity;var u=0,v=0,w=0,x=0,y=0.0,z=0,A=0,B=0,C=0.0;var D=0;var E=global.Math.floor;var F=global.Math.abs;var G=global.Math.sqrt;var H=global.Math.pow;var I=global.Math.cos;var J=global.Math.sin;var K=global.Math.tan;var L=global.Math.acos;var M=global.Math.asin;var N=global.Math.atan;var O=global.Math.atan2;var P=global.Math.exp;var Q=global.Math.log;var R=global.Math.ceil;var S=global.Math.imul;var T=global.Math.min;var U=global.Math.max;var V=global.Math.clz32;var W=env.abort;var X=env.assert;var Y=env.enlargeMemory;var Z=env.getTotalMemory;var _=env.abortOnCannotGrowMemory;var $=env.abortStackOverflow;var aa=env.nullFunc_iiii;var ba=env.nullFunc_viiiii;var ca=env.nullFunc_vi;var da=env.nullFunc_vii;var ea=env.nullFunc_ii;var fa=env.nullFunc_viii;var ga=env.nullFunc_v;var ha=env.nullFunc_iiiii;var ia=env.nullFunc_viiiiii;var ja=env.nullFunc_iii;var ka=env.nullFunc_viiii;var la=env.invoke_iiii;var ma=env.invoke_viiiii;var na=env.invoke_vi;var oa=env.invoke_vii;var pa=env.invoke_ii;var qa=env.invoke_viii;var ra=env.invoke_v;var sa=env.invoke_iiiii;var ta=env.invoke_viiiiii;var ua=env.invoke_iii;var va=env.invoke_viiii;var wa=env._pthread_cleanup_pop;var xa=env.___syscall221;var ya=env._pthread_mutex_init;var za=env.___syscall64;var Aa=env._abort;var Ba=env.___syscall202;var Ca=env._pthread_cleanup_push;var Da=env.___syscall20;var Ea=env._llvm_stackrestore;var Fa=env.___assert_fail;var Ga=env.___buildEnvironment;var Ha=env.__addDays;var Ia=env._localtime_r;var Ja=env._tzset;var Ka=env.___setErrNo;var La=env.___syscall192;var Ma=env.___syscall191;var Na=env.___syscall197;var Oa=env.___syscall195;var Pa=env.___syscall194;var Qa=env.___syscall199;var Ra=env._sysconf;var Sa=env._strftime;var Ta=env._clock;var Ua=env.__arraySum;var Va=env._emscripten_memcpy_big;var Wa=env.___syscall91;var Xa=env.___syscall75;var Ya=env._pthread_mutex_destroy;var Za=env._llvm_stacksave;var _a=env.___syscall77;var $a=env._getenv;var ab=env.___syscall33;var bb=env.___syscall54;var cb=env.___unlock;var db=env.__isLeapYear;var eb=env.___syscall3;var fb=env.___syscall340;var gb=env.___lock;var hb=env.___syscall6;var ib=env.___syscall5;var jb=env.___syscall4;var kb=env._time;var lb=env._gettimeofday;var mb=env.___syscall201;var nb=env._atexit;var ob=env.___syscall140;var pb=env._localtime;var qb=env.___syscall142;var rb=env.___syscall145;var sb=env.___syscall146;var tb=0.0;
-// EMSCRIPTEN_START_FUNCS
-function Fb(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))$(a|0);return b|0}function Gb(){return i|0}function Hb(a){a=a|0;i=a}function Ib(a,b){a=a|0;b=b|0;i=a;j=b}function Jb(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Kb(a){a=a|0;D=a}function Lb(){return D|0}function Mb(a){a=a|0;var b=0;b=Ub(32,19158,38)|0;oc(a,b);return b|0}function Nb(a){a=a|0;var b=0;b=Ub(32,19158,55)|0;qc(a,b);return b|0}function Ob(a){a=a|0;var b=0;b=Ub(32,19158,71)|0;mc(a,b);return b|0}function Pb(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ub(e,19158,85)|0;Yw(f+8|0,c|0,d|0)|0;d=Iv(b)|0;b=f+4|0;a[b>>0]=d;a[b+1>>0]=d>>8;a[b+2>>0]=d>>16;a[b+3>>0]=d>>24;d=Iv(e)|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;return f|0}function Qb(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;if((iu(e,g)|0)!=1){h=0;i=f;return h|0}e=g;c[e>>2]=a;c[e+4>>2]=b;c[g+8>>2]=d;d=Ub(24,19158,115)|0;c[d>>2]=c[g>>2];c[d+4>>2]=c[g+4>>2];c[d+8>>2]=c[g+8>>2];c[d+12>>2]=c[g+12>>2];c[d+16>>2]=c[g+16>>2];c[d+20>>2]=c[g+20>>2];h=d;i=f;return h|0}function Rb(a){a=a|0;var b=0;b=a;D=c[b+4>>2]|0;return c[b>>2]|0}function Sb(a){a=a|0;return c[a+8>>2]|0}function Tb(a){a=a|0;return a+12|0}function Ub(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+64|0;if((i|0)>=(j|0))$(64);f=e+24|0;g=e+8|0;h=e;k=e+56|0;l=e+52|0;m=e+48|0;n=e+44|0;o=e+40|0;p=e+36|0;q=e+32|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;if((c[k>>2]|0)>>>0>41943040){c[o>>2]=74;if((c[182]|0)==-1)c[182]=$b(1,0,19165,19185,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[182]|0))_b();o=c[m>>2]|0;c[h>>2]=c[l>>2];c[h+4>>2]=o;cc(1,61746,h);_b()}c[n>>2]=Vb(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;if(c[n>>2]|0){i=e;return c[n>>2]|0}c[p>>2]=81;if((c[183]|0)==-1)c[183]=$b(1,21128,19165,19185,c[p>>2]|0)|0;if((ac()|0)<=0){if(c[183]|0){p=Nu(c[(xu()|0)>>2]|0)|0;c[g>>2]=19201;c[g+4>>2]=19165;c[g+8>>2]=81;c[g+12>>2]=p;hc(1,21128,20679,g)}}else bc(-1,0);c[q>>2]=82;if((c[184]|0)==-1)c[184]=$b(1,0,19165,19185,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[184]|0))_b();c[f>>2]=19165;c[f+4>>2]=82;cc(1,61746,f);_b();return 0}function Vb(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e;c[g>>2]=a;c[e+8>>2]=b;c[e+4>>2]=d;c[h>>2]=Kw(c[g>>2]|0)|0;if(!(c[h>>2]|0)){c[f>>2]=0;k=c[f>>2]|0;i=e;return k|0}else{Sw(c[h>>2]|0,0,c[g>>2]|0)|0;c[f>>2]=c[h>>2];k=c[f>>2]|0;i=e;return k|0}return 0}function Wb(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(c[g>>2]|0){Lw(c[g>>2]|0);i=e;return}c[l>>2]=311;if((c[185]|0)==-1)c[185]=$b(1,0,19165,19208,c[l>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[185]|0))_b();l=c[k>>2]|0;c[f>>2]=c[h>>2];c[f+4>>2]=l;cc(1,61746,f);_b()}function Xb(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f;h=f+44|0;k=f+40|0;l=f+36|0;m=f+32|0;n=f+16|0;o=f+8|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[n>>2]=e;c[m>>2]=Tu(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,n)|0;if((c[m>>2]|0)>>>0<(c[k>>2]|0)>>>0){i=f;return c[m>>2]|0}c[o>>2]=506;if((c[186]|0)==-1)c[186]=$b(1,0,19165,19222,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[186]|0))_b();c[g>>2]=19165;c[g+4>>2]=506;cc(1,61746,g);_b();return 0}function Yb(){c[17680]=c[3977];return}function Zb(){return}function _b(){Aa()}function $b(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+32|0;k=g+28|0;l=g+24|0;m=g+20|0;n=g+16|0;o=g+12|0;p=g+8|0;q=g+4|0;r=g;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;if(!(c[l>>2]|0))c[l>>2]=c[17681];if((c[17682]|0)>=0&0==(c[17683]|0)){c[h>>2]=(c[k>>2]|0)<=(c[17682]|0)&1;s=c[h>>2]|0;i=g;return s|0}c[r>>2]=(c[17682]|0)>=0&1;c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[17684]|0))break;c[p>>2]=(c[17685]|0)+((c[q>>2]|0)*112|0);if(!(c[r>>2]|0?!(c[(c[p>>2]|0)+108>>2]|0):0))t=9;if((((((t|0)==9?(t=0,(c[o>>2]|0)>=(c[(c[p>>2]|0)+96>>2]|0)):0)?(c[o>>2]|0)<=(c[(c[p>>2]|0)+100>>2]|0):0)?0==(Gw(c[p>>2]|0,c[l>>2]|0,0,0,0)|0):0)?0==(Gw((c[p>>2]|0)+32|0,c[m>>2]|0,0,0,0)|0):0)?0==(Gw((c[p>>2]|0)+64|0,c[n>>2]|0,0,0,0)|0):0){t=14;break}c[q>>2]=(c[q>>2]|0)+1}if((t|0)==14){c[h>>2]=(c[k>>2]|0)<=(c[(c[p>>2]|0)+104>>2]|0)&1;s=c[h>>2]|0;i=g;return s|0}p=c[k>>2]|0;if((c[17682]|0)>=0){c[h>>2]=(p|0)<=(c[17682]|0)&1;s=c[h>>2]|0;i=g;return s|0}else{c[h>>2]=(p|0)<=4&1;s=c[h>>2]|0;i=g;return s|0}return 0}function ac(){return c[17690]|0}function bc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d;f=d+20|0;g=d+16|0;h=d+12|0;k=d+8|0;c[f>>2]=a;c[g>>2]=b;if(c[f>>2]|0){c[17690]=(c[17690]|0)+(c[f>>2]|0);i=d;return}c[h>>2]=0==(c[17690]|0)&1;c[17690]=0;if((c[g>>2]|0)==0|(c[h>>2]|0)!=0){i=d;return}c[k>>2]=906;if((c[188]|0)==-1)c[188]=$b(1,0,19238,19416,c[k>>2]|0)|0;if((ac()|0)>0){bc(-1,0);i=d;return}if(!(c[188]|0)){i=d;return}c[e>>2]=19238;c[e+4>>2]=906;cc(1,61746,e);i=d;return}function cc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;dc(c[f>>2]|0,c[17686]|0,c[g>>2]|0,h);i=e;return}function dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;g=i;i=i+240|0;if((i|0)>=(j|0))$(240);h=g+40|0;k=g+32|0;l=g+24|0;m=g+108|0;n=g+104|0;o=g+100|0;p=g+96|0;q=g+176|0;r=g+112|0;s=g+92|0;t=g+88|0;u=g+72|0;v=g+68|0;w=g+64|0;x=g+16|0;y=g+56|0;z=g+8|0;A=g+48|0;B=g;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[u>>2]=c[c[p>>2]>>2];c[t>>2]=(Tu(0,0,c[o>>2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0)<<31>>31|0,b|0,C|0)|0;c[u>>2]=v;break}else{v=Uw(1e6,0,b|0,C|0)|0;C=y+4|0;b=c[C>>2]|0;u=Uw(b|0,((b|0)<0)<<31>>31|0,v|0,D|0)|0;c[C>>2]=u;c[y>>2]=(c[y>>2]|0)+-1;break}}while(0);c[s>>2]=pb(y|0)|0;if(!(c[s>>2]|0))tv(q,19267)|0;else{Sa(r|0,64,19283,c[s>>2]|0)|0;c[k>>2]=c[y+4>>2];Su(q,64,r,k)|0}Tu(l,c[t>>2]|0,c[o>>2]|0,c[p>>2]|0)|0;p=70688;if(0!=(c[m>>2]&64|0)&(0!=(c[p>>2]|0)?1:0!=(c[p+4>>2]|0))?0==(Hv(l,71806,256)|0):0){c[17687]=(c[17687]|0)+1;c[h>>2]=c[17672];c[h+4>>2]=c[17673];p=zd(h)|0;h=z;c[h>>2]=p;c[h+4>>2]=D;h=z;z=c[h+4>>2]|0;if(z>>>0>10|(z|0)==10&(c[h>>2]|0)>>>0>250327040|(c[17687]|0)>>>0>1e3)ec(q);c[A>>2]=1;E=c[w>>2]|0;Ea(E|0);i=g;return}ec(q);Nv(71806,l,256)|0;c[17687]=0;c[17688]=c[m>>2];h=xd()|0;z=B;c[z>>2]=h;c[z+4>>2]=D;c[17672]=c[B>>2];c[17673]=c[B+4>>2];Nv(72062,c[n>>2]|0,32)|0;fc(c[m>>2]|0,c[n>>2]|0,q,l);c[A>>2]=0;E=c[w>>2]|0;Ea(E|0);i=g;return}function ec(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+640|0;if((i|0)>=(j|0))$(640);e=d+32|0;f=d+16|0;g=d+52|0;h=d+56|0;k=d+48|0;l=d+44|0;m=d+40|0;n=d+8|0;o=d;c[g>>2]=b;b=70688;if((0==(c[b>>2]|0)?0==(c[b+4>>2]|0):0)|0==(c[17687]|0)){i=d;return}c[k>>2]=0;c[l>>2]=_u(71806,0,256)|0;if(c[l>>2]|0){if((c[l>>2]|0)!=71806)c[l>>2]=(c[l>>2]|0)+-1}else c[l>>2]=72061;if((a[c[l>>2]>>0]|0)==10){c[k>>2]=1;a[c[l>>2]>>0]=0};c[e>>2]=c[17672];c[e+4>>2]=c[17673];b=zd(e)|0;p=n;c[p>>2]=b;c[p+4>>2]=D;c[e>>2]=c[n>>2];c[e+4>>2]=c[n+4>>2];c[m>>2]=qd(e,1)|0;e=c[17687]|0;n=c[m>>2]|0;c[f>>2]=256;c[f+4>>2]=71806;c[f+8>>2]=e;c[f+12>>2]=n;Su(h,576,19367,f)|0;if((c[k>>2]|0)==1)a[c[l>>2]>>0]=10;fc(c[17688]|0,72062,c[g>>2]|0,h);h=xd()|0;g=o;c[g>>2]=h;c[g+4>>2]=D;c[17672]=c[o>>2];c[17673]=c[o+4>>2];c[17687]=0;i=d;return}function fc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+8|0;h=f;k=f+40|0;l=f+36|0;m=f+32|0;n=f+28|0;o=f+24|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;if(0!=(c[17680]|0)&0==(c[17689]|0)){e=c[17680]|0;if((c[k>>2]|0)==4){c[h>>2]=c[n>>2];Fv(e,19304,h)|0}else{h=c[m>>2]|0;d=c[l>>2]|0;b=gc(c[k>>2]|0)|0;a=c[n>>2]|0;c[g>>2]=h;c[g+4>>2]=d;c[g+8>>2]=b;c[g+12>>2]=a;Fv(e,19309,g)|0}Rv(c[17680]|0)|0}c[o>>2]=c[17689];while(1){if(!(c[o>>2]|0))break;vb[c[(c[o>>2]|0)+4>>2]&15](c[(c[o>>2]|0)+8>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0);c[o>>2]=c[c[o>>2]>>2]}i=f;return}function gc(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;do if((c[e>>2]&1|0)<=0){if((c[e>>2]&2|0)>0){c[d>>2]=19327;break}if((c[e>>2]&4|0)>0){c[d>>2]=19335;break}if((c[e>>2]&8|0)>0){c[d>>2]=19343;break}if((c[e>>2]&16|0)>0){c[d>>2]=19348;break}if(!(c[e>>2]&-65)){c[d>>2]=19354;break}else{c[d>>2]=19359;break}}else c[d>>2]=19321;while(0);i=b;return c[d>>2]|0}function hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;f=i;i=i+176|0;if((i|0)>=(j|0))$(176);g=f;h=f+32|0;k=f+28|0;l=f+24|0;m=f+8|0;n=f+40|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;if(!(c[k>>2]|0))c[k>>2]=c[17681];c[m>>2]=e;e=c[k>>2]|0;k=_v()|0;c[g>>2]=e;c[g+4>>2]=k;Xb(n,128,19255,g)|0;dc(c[h>>2]|0,n,c[l>>2]|0,m);i=f;return}function ic(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;g=i;i=i+64|0;if((i|0)>=(j|0))$(64);h=g+8|0;k=g;l=g+56|0;m=g+52|0;n=g+48|0;o=g+44|0;p=g+40|0;q=g+36|0;r=g+32|0;s=g+28|0;t=g+24|0;u=g+20|0;v=g+16|0;c[m>>2]=a;c[n>>2]=b;c[o>>2]=d;c[p>>2]=e;c[q>>2]=f;f=c[n>>2]|0;c[s>>2]=Za()|0;e=f;d=i;i=i+((1*e|0)+15&-16)|0;if((i|0)>=(j|0))$((1*e|0)+15&-16|0);if(1!=(jc(r,c[o>>2]|0,c[p>>2]|0)|0)){c[l>>2]=-1;c[t>>2]=1;w=c[s>>2]|0;Ea(w|0);x=c[l>>2]|0;i=g;return x|0}if(oe(c[r>>2]|0,d,c[n>>2]|0,c[m>>2]|0,c[n>>2]|0)|0){c[u>>2]=136;if((c[189]|0)==-1)c[189]=$b(1,0,19432,19451,c[u>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[189]|0))_b();c[k>>2]=19432;c[k+4>>2]=136;cc(1,61746,k);_b()}je(c[r>>2]|0);if(1!=(kc(r,c[o>>2]|0,c[p>>2]|0)|0)){c[l>>2]=-1;c[t>>2]=1;w=c[s>>2]|0;Ea(w|0);x=c[l>>2]|0;i=g;return x|0}if(!(oe(c[r>>2]|0,c[q>>2]|0,c[n>>2]|0,d,c[n>>2]|0)|0)){je(c[r>>2]|0);Sw(d|0,0,f|0)|0;c[l>>2]=c[n>>2];c[t>>2]=1;w=c[s>>2]|0;Ea(w|0);x=c[l>>2]|0;i=g;return x|0}c[v>>2]=140;if((c[190]|0)==-1)c[190]=$b(1,0,19432,19451,c[v>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[190]|0))_b();c[h>>2]=19432;c[h+4>>2]=140;cc(1,61746,h);_b();return 0}function jc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+64|0;if((i|0)>=(j|0))$(64);f=e+16|0;g=e+8|0;h=e;k=e+48|0;l=e+44|0;m=e+40|0;n=e+36|0;o=e+32|0;p=e+28|0;q=e+24|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;if(ie(c[k>>2]|0,9,2,0)|0){c[o>>2]=68;if((c[194]|0)==-1)c[194]=$b(1,0,19432,19504,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[194]|0))_b();c[h>>2]=19432;c[h+4>>2]=68;cc(1,61746,h);_b()}c[n>>2]=ke(c[c[k>>2]>>2]|0,c[l>>2]|0,32)|0;if(0!=(c[n>>2]|0)?((c[n>>2]&255)<<24>>24|0)!=43:0){c[p>>2]=72;if((c[195]|0)==-1)c[195]=$b(1,0,19432,19504,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[195]|0))_b();c[g>>2]=19432;c[g+4>>2]=72;cc(1,61746,g);_b()}c[n>>2]=ne(c[c[k>>2]>>2]|0,c[m>>2]|0,16)|0;if(!(c[n>>2]|0)){i=e;return 1}if(((c[n>>2]&255)<<24>>24|0)==43){i=e;return 1}c[q>>2]=76;if((c[196]|0)==-1)c[196]=$b(1,0,19432,19504,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[196]|0))_b();c[f>>2]=19432;c[f+4>>2]=76;cc(1,61746,f);_b();return 0}function kc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+64|0;if((i|0)>=(j|0))$(64);f=e+16|0;g=e+8|0;h=e;k=e+48|0;l=e+44|0;m=e+40|0;n=e+36|0;o=e+32|0;p=e+28|0;q=e+24|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;if(ie(c[k>>2]|0,10,2,0)|0){c[o>>2]=98;if((c[191]|0)==-1)c[191]=$b(1,0,19432,19483,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[191]|0))_b();c[h>>2]=19432;c[h+4>>2]=98;cc(1,61746,h);_b()}c[n>>2]=ke(c[c[k>>2]>>2]|0,(c[l>>2]|0)+32|0,32)|0;if(0!=(c[n>>2]|0)?((c[n>>2]&255)<<24>>24|0)!=43:0){c[p>>2]=102;if((c[192]|0)==-1)c[192]=$b(1,0,19432,19483,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[192]|0))_b();c[g>>2]=19432;c[g+4>>2]=102;cc(1,61746,g);_b()}c[n>>2]=ne(c[c[k>>2]>>2]|0,(c[m>>2]|0)+16|0,16)|0;if(!(c[n>>2]|0)){i=e;return 1}if(((c[n>>2]&255)<<24>>24|0)==43){i=e;return 1}c[q>>2]=106;if((c[193]|0)==-1)c[193]=$b(1,0,19432,19483,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[193]|0))_b();c[f>>2]=19432;c[f+4>>2]=106;cc(1,61746,f);_b();return 0}function lc(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;g=i;i=i+64|0;if((i|0)>=(j|0))$(64);h=g+8|0;k=g;l=g+56|0;m=g+52|0;n=g+48|0;o=g+44|0;p=g+40|0;q=g+36|0;r=g+32|0;s=g+28|0;t=g+24|0;u=g+20|0;v=g+16|0;c[m>>2]=a;c[n>>2]=b;c[o>>2]=d;c[p>>2]=e;c[q>>2]=f;f=c[n>>2]|0;c[s>>2]=Za()|0;e=f;d=i;i=i+((1*e|0)+15&-16)|0;if((i|0)>=(j|0))$((1*e|0)+15&-16|0);if(1!=(kc(r,c[o>>2]|0,c[p>>2]|0)|0)){c[l>>2]=-1;c[t>>2]=1;w=c[s>>2]|0;Ea(w|0);x=c[l>>2]|0;i=g;return x|0}if(pe(c[r>>2]|0,d,c[n>>2]|0,c[m>>2]|0,c[n>>2]|0)|0){c[u>>2]=172;if((c[197]|0)==-1)c[197]=$b(1,0,19432,19521,c[u>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[197]|0))_b();c[k>>2]=19432;c[k+4>>2]=172;cc(1,61746,k);_b()}je(c[r>>2]|0);if(1!=(jc(r,c[o>>2]|0,c[p>>2]|0)|0)){c[l>>2]=-1;c[t>>2]=1;w=c[s>>2]|0;Ea(w|0);x=c[l>>2]|0;i=g;return x|0}if(!(pe(c[r>>2]|0,c[q>>2]|0,c[n>>2]|0,d,c[n>>2]|0)|0)){je(c[r>>2]|0);Sw(d|0,0,f|0)|0;c[l>>2]=c[n>>2];c[t>>2]=1;w=c[s>>2]|0;Ea(w|0);x=c[l>>2]|0;i=g;return x|0}c[v>>2]=176;if((c[198]|0)==-1)c[198]=$b(1,0,19432,19521,c[v>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[198]|0))_b();c[h>>2]=19432;c[h+4>>2]=176;cc(1,61746,h);_b();return 0}function mc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d+16|0;f=d+8|0;g=d;h=d+52|0;k=d+48|0;l=d+44|0;m=d+40|0;n=d+36|0;o=d+32|0;p=d+28|0;q=d+24|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=nc(c[h>>2]|0)|0;if(!(c[l>>2]|0)){c[o>>2]=231;if((c[199]|0)==-1)c[199]=$b(1,0,19553,19566,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[199]|0))_b();c[g>>2]=19553;c[g+4>>2]=231;cc(1,61746,g);_b()}if(_d(m,c[l>>2]|0,0)|0){c[p>>2]=232;if((c[200]|0)==-1)c[200]=$b(1,0,19553,19566,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[200]|0))_b();c[f>>2]=19553;c[f+4>>2]=232;cc(1,61746,f);_b()}Kd(c[l>>2]|0);c[n>>2]=$d(19601,c[m>>2]|0,0)|0;if(c[n>>2]|0){Oc(c[k>>2]|0,32,c[n>>2]|0);Qd(c[n>>2]|0);Fe(c[m>>2]|0);i=d;return}c[q>>2]=235;if((c[201]|0)==-1)c[201]=$b(1,0,19553,19566,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[201]|0))_b();c[e>>2]=19553;c[e+4>>2]=235;cc(1,61746,e);_b()}function nc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+64|0;if((i|0)>=(j|0))$(64);d=b+24|0;e=b+8|0;f=b;g=b+48|0;h=b+44|0;k=b+40|0;l=b+36|0;m=b+32|0;c[g>>2]=a;a=c[g>>2]|0;c[f>>2]=32;c[f+4>>2]=a;c[k>>2]=Jd(h,0,19609,f)|0;if(!(c[k>>2]|0)){i=b;return c[h>>2]|0}c[l>>2]=136;if((c[202]|0)==-1)c[202]=$b(1,21128,19553,19651,c[l>>2]|0)|0;if((ac()|0)<=0){if(c[202]|0){l=Cd(c[k>>2]|0)|0;c[e>>2]=19676;c[e+4>>2]=19553;c[e+8>>2]=136;c[e+12>>2]=l;hc(1,21128,20679,e)}}else bc(-1,0);c[m>>2]=137;if((c[203]|0)==-1)c[203]=$b(1,0,19553,19651,c[m>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[203]|0))_b();c[d>>2]=19553;c[d+4>>2]=137;cc(1,61746,d);_b();return 0}function oc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d+16|0;f=d+8|0;g=d;h=d+52|0;k=d+48|0;l=d+44|0;m=d+40|0;n=d+36|0;o=d+32|0;p=d+28|0;q=d+24|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=pc(c[h>>2]|0)|0;if(!(c[l>>2]|0)){c[o>>2]=257;if((c[204]|0)==-1)c[204]=$b(1,0,19553,19692,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[204]|0))_b();c[g>>2]=19553;c[g+4>>2]=257;cc(1,61746,g);_b()}if(_d(m,c[l>>2]|0,0)|0){c[p>>2]=258;if((c[205]|0)==-1)c[205]=$b(1,0,19553,19692,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[205]|0))_b();c[f>>2]=19553;c[f+4>>2]=258;cc(1,61746,f);_b()}Kd(c[l>>2]|0);c[n>>2]=$d(19601,c[m>>2]|0,0)|0;if(c[n>>2]|0){Oc(c[k>>2]|0,32,c[n>>2]|0);Qd(c[n>>2]|0);Fe(c[m>>2]|0);i=d;return}c[q>>2]=261;if((c[206]|0)==-1)c[206]=$b(1,0,19553,19692,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[206]|0))_b();c[e>>2]=19553;c[e+4>>2]=261;cc(1,61746,e);_b()}function pc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+64|0;if((i|0)>=(j|0))$(64);d=b+24|0;e=b+8|0;f=b;g=b+48|0;h=b+44|0;k=b+40|0;l=b+36|0;m=b+32|0;c[g>>2]=a;a=c[g>>2]|0;c[f>>2]=32;c[f+4>>2]=a;c[k>>2]=Jd(h,0,19727,f)|0;if(!(c[k>>2]|0)){i=b;return c[h>>2]|0}c[l>>2]=169;if((c[207]|0)==-1)c[207]=$b(1,21128,19553,19782,c[l>>2]|0)|0;if((ac()|0)<=0){if(c[207]|0){l=Cd(c[k>>2]|0)|0;c[e>>2]=19676;c[e+4>>2]=19553;c[e+8>>2]=169;c[e+12>>2]=l;hc(1,21128,20679,e)}}else bc(-1,0);c[m>>2]=170;if((c[208]|0)==-1)c[208]=$b(1,0,19553,19782,c[m>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[208]|0))_b();c[d>>2]=19553;c[d+4>>2]=170;cc(1,61746,d);_b();return 0}function qc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d+16|0;f=d+8|0;g=d;h=d+52|0;k=d+48|0;l=d+44|0;m=d+40|0;n=d+36|0;o=d+32|0;p=d+28|0;q=d+24|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=rc(c[h>>2]|0)|0;if(!(c[l>>2]|0)){c[o>>2]=283;if((c[209]|0)==-1)c[209]=$b(1,0,19553,19807,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[209]|0))_b();c[g>>2]=19553;c[g+4>>2]=283;cc(1,61746,g);_b()}if(_d(m,c[l>>2]|0,0)|0){c[p>>2]=284;if((c[210]|0)==-1)c[210]=$b(1,0,19553,19807,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[210]|0))_b();c[f>>2]=19553;c[f+4>>2]=284;cc(1,61746,f);_b()}Kd(c[l>>2]|0);c[n>>2]=$d(19601,c[m>>2]|0,0)|0;if(c[n>>2]|0){Oc(c[k>>2]|0,32,c[n>>2]|0);Qd(c[n>>2]|0);Fe(c[m>>2]|0);i=d;return}c[q>>2]=287;if((c[211]|0)==-1)c[211]=$b(1,0,19553,19807,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[211]|0))_b();c[e>>2]=19553;c[e+4>>2]=287;cc(1,61746,e);_b()}function rc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+64|0;if((i|0)>=(j|0))$(64);d=b+24|0;e=b+8|0;f=b;g=b+48|0;h=b+44|0;k=b+40|0;l=b+36|0;m=b+32|0;c[g>>2]=a;a=c[g>>2]|0;c[f>>2]=32;c[f+4>>2]=a;c[k>>2]=Jd(h,0,19609,f)|0;if(!(c[k>>2]|0)){i=b;return c[h>>2]|0}c[l>>2]=202;if((c[212]|0)==-1)c[212]=$b(1,21128,19553,19842,c[l>>2]|0)|0;if((ac()|0)<=0){if(c[212]|0){l=Cd(c[k>>2]|0)|0;c[e>>2]=19676;c[e+4>>2]=19553;c[e+8>>2]=202;c[e+12>>2]=l;hc(1,21128,20679,e)}}else bc(-1,0);c[m>>2]=203;if((c[213]|0)==-1)c[213]=$b(1,0,19553,19842,c[m>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[213]|0))_b();c[d>>2]=19553;c[d+4>>2]=203;cc(1,61746,d);_b();return 0}function sc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a=i;i=i+96|0;if((i|0)>=(j|0))$(96);b=a+40|0;d=a+24|0;e=a+8|0;f=a+88|0;g=a+84|0;h=a+80|0;k=a+76|0;l=a+72|0;m=a+68|0;n=a+64|0;o=a+60|0;p=a+56|0;q=Jd(k,0,19867,a)|0;c[m>>2]=q;if(q){c[n>>2]=505;if((c[214]|0)==-1)c[214]=$b(1,21128,19553,19922,c[n>>2]|0)|0;if((ac()|0)<=0){if(c[214]|0){n=Cd(c[m>>2]|0)|0;c[e>>2]=19676;c[e+4>>2]=19553;c[e+8>>2]=505;c[e+12>>2]=n;hc(1,21128,20679,e)}}else bc(-1,0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}e=te(h,c[k>>2]|0)|0;c[m>>2]=e;if(e){c[o>>2]=510;if((c[215]|0)==-1)c[215]=$b(1,21128,19553,19922,c[o>>2]|0)|0;if((ac()|0)<=0){if(c[215]|0){o=Cd(c[m>>2]|0)|0;c[d>>2]=19953;c[d+4>>2]=19553;c[d+8>>2]=510;c[d+12>>2]=o;hc(1,21128,20679,d)}}else bc(-1,0);Kd(c[k>>2]|0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}Kd(c[k>>2]|0);k=tc(l,c[h>>2]|0,37977,35618)|0;c[m>>2]=k;if(!k){Kd(c[h>>2]|0);c[g>>2]=Ub(32,19553,530)|0;Oc(c[g>>2]|0,32,c[l>>2]|0);Qd(c[l>>2]|0);c[f>>2]=c[g>>2];r=c[f>>2]|0;i=a;return r|0}c[p>>2]=525;if((c[216]|0)==-1)c[216]=$b(1,21128,19553,19922,c[p>>2]|0)|0;if((ac()|0)<=0){if(c[216]|0){p=Cd(c[m>>2]|0)|0;c[b>>2]=19968;c[b+4>>2]=19553;c[b+8>>2]=525;c[b+12>>2]=p;hc(1,21128,20679,b)}}else bc(-1,0);Kd(c[h>>2]|0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}function tc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m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i=g;return t|0}else if((v|0)==18){Kd(u);c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}return 0}function uc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a=i;i=i+96|0;if((i|0)>=(j|0))$(96);b=a+40|0;d=a+24|0;e=a+8|0;f=a+88|0;g=a+84|0;h=a+80|0;k=a+76|0;l=a+72|0;m=a+68|0;n=a+64|0;o=a+60|0;p=a+56|0;q=Jd(k,0,19982,a)|0;c[m>>2]=q;if(q){c[n>>2]=555;if((c[217]|0)==-1)c[217]=$b(1,21128,19553,20020,c[n>>2]|0)|0;if((ac()|0)<=0){if(c[217]|0){n=Cd(c[m>>2]|0)|0;c[e>>2]=19676;c[e+4>>2]=19553;c[e+8>>2]=555;c[e+12>>2]=n;hc(1,21128,20679,e)}}else bc(-1,0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}e=te(h,c[k>>2]|0)|0;c[m>>2]=e;if(e){c[o>>2]=560;if((c[218]|0)==-1)c[218]=$b(1,21128,19553,20020,c[o>>2]|0)|0;if((ac()|0)<=0){if(c[218]|0){o=Cd(c[m>>2]|0)|0;c[d>>2]=19953;c[d+4>>2]=19553;c[d+8>>2]=560;c[d+12>>2]=o;hc(1,21128,20679,d)}}else bc(-1,0);Kd(c[k>>2]|0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}Kd(c[k>>2]|0);k=tc(l,c[h>>2]|0,37977,35618)|0;c[m>>2]=k;if(!k){Kd(c[h>>2]|0);c[g>>2]=Ub(32,19553,580)|0;Oc(c[g>>2]|0,32,c[l>>2]|0);Qd(c[l>>2]|0);c[f>>2]=c[g>>2];r=c[f>>2]|0;i=a;return r|0}c[p>>2]=575;if((c[219]|0)==-1)c[219]=$b(1,21128,19553,20020,c[p>>2]|0)|0;if((ac()|0)<=0){if(c[219]|0){p=Cd(c[m>>2]|0)|0;c[b>>2]=19968;c[b+4>>2]=19553;c[b+8>>2]=575;c[b+12>>2]=p;hc(1,21128,20679,b)}}else bc(-1,0);Kd(c[h>>2]|0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}function vc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a=i;i=i+96|0;if((i|0)>=(j|0))$(96);b=a+40|0;d=a+24|0;e=a+8|0;f=a+88|0;g=a+84|0;h=a+80|0;k=a+76|0;l=a+72|0;m=a+68|0;n=a+64|0;o=a+60|0;p=a+56|0;q=Jd(k,0,20051,a)|0;c[m>>2]=q;if(q){c[n>>2]=604;if((c[220]|0)==-1)c[220]=$b(1,21128,19553,20095,c[n>>2]|0)|0;if((ac()|0)<=0){if(c[220]|0){n=Cd(c[m>>2]|0)|0;c[e>>2]=19676;c[e+4>>2]=19553;c[e+8>>2]=604;c[e+12>>2]=n;hc(1,21128,20679,e)}}else bc(-1,0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}e=te(h,c[k>>2]|0)|0;c[m>>2]=e;if(e){c[o>>2]=609;if((c[221]|0)==-1)c[221]=$b(1,21128,19553,20095,c[o>>2]|0)|0;if((ac()|0)<=0){if(c[221]|0){o=Cd(c[m>>2]|0)|0;c[d>>2]=19953;c[d+4>>2]=19553;c[d+8>>2]=609;c[d+12>>2]=o;hc(1,21128,20679,d)}}else bc(-1,0);Kd(c[k>>2]|0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}Kd(c[k>>2]|0);k=tc(l,c[h>>2]|0,37977,35618)|0;c[m>>2]=k;if(!k){Kd(c[h>>2]|0);c[g>>2]=Ub(32,19553,629)|0;Oc(c[g>>2]|0,32,c[l>>2]|0);Qd(c[l>>2]|0);c[f>>2]=c[g>>2];r=c[f>>2]|0;i=a;return r|0}c[p>>2]=624;if((c[222]|0)==-1)c[222]=$b(1,21128,19553,20095,c[p>>2]|0)|0;if((ac()|0)<=0){if(c[222]|0){p=Cd(c[m>>2]|0)|0;c[b>>2]=19968;c[b+4>>2]=19553;c[b+8>>2]=624;c[b+12>>2]=p;hc(1,21128,20679,b)}}else bc(-1,0);Kd(c[h>>2]|0);c[f>>2]=0;r=c[f>>2]|0;i=a;return r|0}function wc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=i;i=i+80|0;if((i|0)>=(j|0))$(80);f=e+16|0;g=e;h=e+68|0;k=e+64|0;l=e+60|0;m=e+56|0;n=e+52|0;o=e+48|0;p=e+44|0;q=e+40|0;r=e+32|0;s=e+28|0;t=e+24|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=pc(c[k>>2]|0)|0;c[p>>2]=xc(c[l>>2]|0)|0;l=qe(o,c[p>>2]|0,c[n>>2]|0)|0;c[q>>2]=l;if(l){c[s>>2]=807;if((c[223]|0)==-1)c[223]=$b(2,21128,19553,20126,c[s>>2]|0)|0;if((ac()|0)<=0){if(c[223]|0){s=Cd(c[q>>2]|0)|0;c[g>>2]=19553;c[g+4>>2]=807;c[g+8>>2]=s;hc(2,21128,20151,g)}}else bc(-1,0);Kd(c[p>>2]|0);Kd(c[n>>2]|0);c[h>>2]=-1;u=c[h>>2]|0;i=e;return u|0}Kd(c[n>>2]|0);Kd(c[p>>2]|0);p=tc(r,c[o>>2]|0,37839,47174)|0;c[q>>2]=p;if(!p){Kd(c[o>>2]|0);Oc(c[m>>2]|0,32,c[r>>2]|0);Oc((c[m>>2]|0)+32|0,32,c[r+4>>2]|0);Qd(c[r>>2]|0);Qd(c[r+4>>2]|0);c[h>>2]=1;u=c[h>>2]|0;i=e;return u|0}c[t>>2]=819;if((c[224]|0)==-1)c[224]=$b(1,0,19553,20126,c[t>>2]|0)|0;if((ac()|0)<=0){if(c[224]|0){c[f>>2]=19553;c[f+4>>2]=819;cc(1,61746,f)}}else bc(-1,0);Kd(c[o>>2]|0);c[h>>2]=-1;u=c[h>>2]|0;i=e;return u|0}function xc(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;b=i;i=i+128|0;if((i|0)>=(j|0))$(128);e=b+16|0;f=b;g=b+116|0;h=b+112|0;k=b+48|0;l=b+40|0;m=b+36|0;n=b+32|0;c[h>>2]=a;a=c[h>>2]|0;o=c[h>>2]|0;Bc(a,Mv(d[o>>0]|d[o+1>>0]<<8|d[o+2>>0]<<16|d[o+3>>0]<<24)|0,k);c[f>>2]=37919;c[f+4>>2]=64;c[f+8>>2]=k;k=Jd(l,0,20186,f)|0;c[m>>2]=k;if(!k){c[g>>2]=c[l>>2];p=c[g>>2]|0;i=b;return p|0}c[n>>2]=698;if((c[225]|0)==-1)c[225]=$b(1,21128,19553,20230,c[n>>2]|0)|0;if((ac()|0)<=0){if(c[225]|0){n=Cd(c[m>>2]|0)|0;c[e>>2]=19676;c[e+4>>2]=19553;c[e+8>>2]=698;c[e+12>>2]=n;hc(1,21128,20679,e)}}else bc(-1,0);c[g>>2]=0;p=c[g>>2]|0;i=b;return p|0}function yc(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;g=i;i=i+96|0;if((i|0)>=(j|0))$(96);h=g+40|0;k=g+32|0;l=g+16|0;m=g;n=g+92|0;o=g+88|0;p=g+84|0;q=g+80|0;r=g+76|0;s=g+72|0;t=g+68|0;u=g+64|0;v=g+60|0;w=g+56|0;x=g+52|0;c[o>>2]=a;c[p>>2]=b;c[q>>2]=e;c[r>>2]=f;f=c[o>>2]|0;o=(c[p>>2]|0)+4|0;if((f|0)!=(Mv(d[o>>0]|d[o+1>>0]<<8|d[o+2>>0]<<16|d[o+3>>0]<<24)|0)){c[n>>2]=-1;y=c[n>>2]|0;i=g;return y|0}o=c[q>>2]|0;f=(c[q>>2]|0)+32|0;c[m>>2]=32;c[m+4>>2]=o;c[m+8>>2]=32;c[m+12>>2]=f;f=Jd(t,0,20289,m)|0;c[v>>2]=f;if(f){c[w>>2]=918;if((c[226]|0)==-1)c[226]=$b(1,21128,19553,20318,c[w>>2]|0)|0;if((ac()|0)<=0){if(c[226]|0){w=Cd(c[v>>2]|0)|0;c[l>>2]=19676;c[l+4>>2]=19553;c[l+8>>2]=918;c[l+12>>2]=w;hc(1,21128,20679,l)}}else bc(-1,0);c[n>>2]=-1;y=c[n>>2]|0;i=g;return y|0}c[s>>2]=xc(c[p>>2]|0)|0;p=c[r>>2]|0;c[k>>2]=32;c[k+4>>2]=p;p=Jd(u,0,20345,k)|0;c[v>>2]=p;if(p){Kd(c[s>>2]|0);Kd(c[t>>2]|0);c[n>>2]=-1;y=c[n>>2]|0;i=g;return y|0}c[v>>2]=re(c[t>>2]|0,c[s>>2]|0,c[u>>2]|0)|0;Kd(c[u>>2]|0);Kd(c[s>>2]|0);Kd(c[t>>2]|0);if(!(c[v>>2]|0)){c[n>>2]=1;y=c[n>>2]|0;i=g;return y|0}c[x>>2]=938;if((c[227]|0)==-1)c[227]=$b(8,21128,19553,20318,c[x>>2]|0)|0;if((ac()|0)<=0){if(c[227]|0){x=Cd(c[v>>2]|0)|0;c[h>>2]=19553;c[h+4>>2]=938;c[h+8>>2]=x;hc(8,21128,20397,h)}}else bc(-1,0);c[n>>2]=-1;y=c[n>>2]|0;i=g;return y|0}function zc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;e=i;i=i+144|0;if((i|0)>=(j|0))$(144);f=e+40|0;g=e+32|0;h=e+16|0;k=e+8|0;l=e;m=e+104|0;n=e+100|0;o=e+96|0;p=e+92|0;q=e+88|0;r=e+84|0;s=e+80|0;t=e+76|0;u=e+72|0;v=e+68|0;w=e+112|0;x=e+64|0;y=e+60|0;z=e+56|0;A=e+52|0;B=e+48|0;c[n>>2]=a;c[o>>2]=b;c[p>>2]=d;d=c[o>>2]|0;c[l>>2]=32;c[l+4>>2]=d;if(Jd(u,0,20250,l)|0){c[m>>2]=-1;C=c[m>>2]|0;i=e;return C|0}if(_d(t,c[u>>2]|0,0)|0){c[y>>2]=972;if((c[228]|0)==-1)c[228]=$b(1,0,19553,20447,c[y>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[228]|0))_b();c[k>>2]=19553;c[k+4>>2]=972;cc(1,61746,k);_b()}Kd(c[u>>2]|0);c[r>>2]=ae(47215,c[t>>2]|0,0)|0;Qc(s,c[n>>2]|0,32);c[q>>2]=Yd(0)|0;ce(c[q>>2]|0,c[s>>2]|0,c[r>>2]|0,c[t>>2]|0);Zd(c[r>>2]|0);Qd(c[s>>2]|0);c[v>>2]=Pd(256)|0;if(be(c[v>>2]|0,0,c[q>>2]|0,c[t>>2]|0)|0){c[z>>2]=989;if((c[229]|0)==-1)c[229]=$b(1,21128,19553,20447,c[z>>2]|0)|0;if((ac()|0)<=0){if(c[229]|0){z=Cd(0)|0;c[h>>2]=20470;c[h+4>>2]=19553;c[h+8>>2]=989;c[h+12>>2]=z;hc(1,21128,20679,h)}}else bc(-1,0);Zd(c[q>>2]|0);Fe(c[t>>2]|0);c[m>>2]=-1;C=c[m>>2]|0;i=e;return C|0}Zd(c[q>>2]|0);Fe(c[t>>2]|0);c[x>>2]=32;if(he(c[v>>2]|0,2)|0){c[A>>2]=998;if((c[230]|0)==-1)c[230]=$b(1,0,19553,20447,c[A>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[230]|0))_b();c[g>>2]=19553;c[g+4>>2]=998;cc(1,61746,g);_b()}if(!(Td(1,w,c[x>>2]|0,x,c[v>>2]|0)|0)){Bc(w,c[x>>2]|0,c[p>>2]|0);Qd(c[v>>2]|0);c[m>>2]=1;C=c[m>>2]|0;i=e;return C|0}c[B>>2]=1005;if((c[231]|0)==-1)c[231]=$b(1,0,19553,20447,c[B>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[231]|0))_b();c[f>>2]=19553;c[f+4>>2]=1005;cc(1,61746,f);_b();return 0}function Ac(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;e=i;i=i+144|0;if((i|0)>=(j|0))$(144);f=e+40|0;g=e+32|0;h=e+16|0;k=e+8|0;l=e;m=e+104|0;n=e+100|0;o=e+96|0;p=e+92|0;q=e+88|0;r=e+84|0;s=e+80|0;t=e+76|0;u=e+72|0;v=e+68|0;w=e+112|0;x=e+64|0;y=e+60|0;z=e+56|0;A=e+52|0;B=e+48|0;c[n>>2]=a;c[o>>2]=b;c[p>>2]=d;d=c[o>>2]|0;c[l>>2]=32;c[l+4>>2]=d;if(Jd(u,0,20250,l)|0){c[m>>2]=-1;C=c[m>>2]|0;i=e;return C|0}if(_d(t,c[u>>2]|0,0)|0){c[y>>2]=1403;if((c[232]|0)==-1)c[232]=$b(1,0,19553,20488,c[y>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[232]|0))_b();c[k>>2]=19553;c[k+4>>2]=1403;cc(1,61746,k);_b()}Kd(c[u>>2]|0);c[r>>2]=ae(47215,c[t>>2]|0,0)|0;Qc(s,c[n>>2]|0,32);c[q>>2]=Yd(0)|0;ce(c[q>>2]|0,c[s>>2]|0,c[r>>2]|0,c[t>>2]|0);Zd(c[r>>2]|0);Qd(c[s>>2]|0);c[v>>2]=Pd(256)|0;if(be(c[v>>2]|0,0,c[q>>2]|0,c[t>>2]|0)|0){c[z>>2]=1420;if((c[233]|0)==-1)c[233]=$b(1,21128,19553,20488,c[z>>2]|0)|0;if((ac()|0)<=0){if(c[233]|0){z=Cd(0)|0;c[h>>2]=20470;c[h+4>>2]=19553;c[h+8>>2]=1420;c[h+12>>2]=z;hc(1,21128,20679,h)}}else bc(-1,0);Zd(c[q>>2]|0);Fe(c[t>>2]|0);c[m>>2]=-1;C=c[m>>2]|0;i=e;return C|0}Zd(c[q>>2]|0);Fe(c[t>>2]|0);c[x>>2]=32;if(he(c[v>>2]|0,2)|0){c[A>>2]=1429;if((c[234]|0)==-1)c[234]=$b(1,0,19553,20488,c[A>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[234]|0))_b();c[g>>2]=19553;c[g+4>>2]=1429;cc(1,61746,g);_b()}if(!(Td(1,w,c[x>>2]|0,x,c[v>>2]|0)|0)){Bc(w,c[x>>2]|0,c[p>>2]|0);Qd(c[v>>2]|0);c[m>>2]=1;C=c[m>>2]|0;i=e;return C|0}c[B>>2]=1436;if((c[235]|0)==-1)c[235]=$b(1,0,19553,20488,c[B>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[235]|0))_b();c[f>>2]=19553;c[f+4>>2]=1436;cc(1,61746,f);_b();return 0}function Bc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;ze(10,c[h>>2]|0,c[f>>2]|0,c[g>>2]|0);i=e;return}function Cc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=15;while(1){if((c[g>>2]|0)<0)break;b=Sc(c[e>>2]|0,-1)|0;c[(c[f>>2]|0)+(c[g>>2]<<2)>>2]=b;c[g>>2]=(c[g>>2]|0)+-1}i=d;return}function Dc(){var a=0,b=0,d=0,e=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+12|0;e=a+8|0;c[d>>2]=Ub(4,20513,425)|0;if(!(ue(c[d>>2]|0,10,0)|0)){i=a;return c[d>>2]|0}c[e>>2]=429;if((c[236]|0)==-1)c[236]=$b(1,0,20513,20527,c[e>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[236]|0))_b();c[b>>2]=20513;c[b+4>>2]=429;cc(1,61746,b);_b();return 0}function Ec(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;xe(c[c[f>>2]>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function Fc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;c[g>>2]=b;c[h>>2]=d;c[k>>2]=ye(c[c[g>>2]>>2]|0,0)|0;if(c[k>>2]|0){if(!(c[h>>2]|0)){m=c[g>>2]|0;Gc(m);i=e;return}d=c[h>>2]|0;h=c[k>>2]|0;k=d+64|0;do{a[d>>0]=a[h>>0]|0;d=d+1|0;h=h+1|0}while((d|0)<(k|0));m=c[g>>2]|0;Gc(m);i=e;return}c[l>>2]=462;if((c[237]|0)==-1)c[237]=$b(1,0,20513,20560,c[l>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[237]|0))_b();c[f>>2]=20513;c[f+4>>2]=462;cc(1,61746,f);_b()}function Gc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;ve(c[c[d>>2]>>2]|0);Wb(c[d>>2]|0,20513,480);i=b;return}function Hc(b,d,e,f,g,h,k,l,m){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0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[z>>2]|0);c[A>>2]=Jc(c[z>>2]|0,m,c[F>>2]|0,M,c[N>>2]|0)|0;if(!(c[A>>2]|0)){W=27;break}if(c[E>>2]|0)Yw(c[p>>2]|0,c[A>>2]|0,c[E>>2]|0)|0;c[p>>2]=(c[p>>2]|0)+(c[E>>2]|0);c[B>>2]=(c[B>>2]|0)+1}if((W|0)==27){c[K>>2]=4;break}if((c[D>>2]|0)>>>0>0){if((c[C>>2]|0)>>>0>0){if(c[E>>2]|0)Yw(M|0,(c[p>>2]|0)+(0-(c[E>>2]|0))|0,c[E>>2]|0)|0;c[B>>2]=(c[B>>2]|0)+1}Sw(M+(c[E>>2]|0)+(c[I>>2]|0)|0,c[B>>2]&255|0,1)|0;we(c[z>>2]|0);L=c[z>>2]|0;s=c[F>>2]|0;if((c[C>>2]|0)>>>0>0)c[A>>2]=Jc(L,m,s,M,c[N>>2]|0)|0;else c[A>>2]=Jc(L,m,s,M+(c[E>>2]|0)|0,(c[N>>2]|0)-(c[E>>2]|0)|0)|0;if(!(c[A>>2]|0)){c[K>>2]=4;break}if(c[D>>2]|0)Yw(c[p>>2]|0,c[A>>2]|0,c[D>>2]|0)|0}c[H>>2]=1;c[K>>2]=22}while(0);Ea(c[O>>2]|0);switch(c[K>>2]|0){case 4:{W=45;break a;break}case 22:{break a;break}default:{}}U=c[G>>2]|0;Ea(U|0);V=c[o>>2]|0;i=n;return V|0}while(0);if((W|0)==45)c[H>>2]=-1;ve(c[y>>2]|0);ve(c[z>>2]|0);c[o>>2]=c[H>>2];c[K>>2]=1;U=c[G>>2]|0;Ea(U|0);V=c[o>>2]|0;i=n;return V|0}function Ic(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;h=i;i=i+32|0;if((i|0)>=(j|0))$(32);k=h+28|0;l=h+24|0;m=h+20|0;n=h+16|0;o=h+12|0;p=h+8|0;q=h+4|0;r=h;c[l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>>2]=d;c[s>>2]=e;c[t>>2]=f;c[u>>2]=g;c[v>>2]=h;c[x>>2]=de(c[q>>2]|0)|0;c[z>>2]=0;while(1){h=((((c[x>>2]|0)-1|0)>>>0)/8|0)+1|0;c[A>>2]=Za()|0;g=h;f=i;i=i+((1*g|0)+15&-16)|0;if((i|0)>=(j|0))$((1*g|0)+15&-16|0);g=c[r>>2]|0;e=c[s>>2]|0;d=c[t>>2]|0;b=c[u>>2]|0;a=c[v>>2]|0;F=hv(c[v>>2]|0)|0;c[o>>2]=a;c[o+4>>2]=F;c[o+8>>2]=z;c[o+12>>2]=4;c[o+16>>2]=0;c[o+20>>2]=0;c[w>>2]=Mc(f,h,g,e,d,b,o)|0;if(1!=(c[w>>2]|0)){G=3;break}c[w>>2]=Sd(c[p>>2]|0,5,f,h,y)|0;if(c[w>>2]|0){G=11;break}fe(c[c[p>>2]>>2]|0,c[x>>2]|0);if(ee(c[c[p>>2]>>2]|0,c[x>>2]|0)|0){G=19;break}c[z>>2]=(c[z>>2]|0)+1;if(0>(Rd(c[c[p>>2]>>2]|0,c[q>>2]|0)|0))c[E>>2]=3;else{Qd(c[c[p>>2]>>2]|0);c[E>>2]=0}Ea(c[A>>2]|0);if((c[E>>2]|0)>>>0>=1){G=30;break}}if((G|0)==3){c[B>>2]=155;if((c[238]|0)==-1)c[238]=$b(1,0,20594,20607,c[B>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[238]|0))_b();c[n>>2]=20594;c[n+4>>2]=155;cc(1,61746,n);_b()}else if((G|0)==11){c[C>>2]=162;if((c[239]|0)==-1)c[239]=$b(1,0,20594,20607,c[C>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[239]|0))_b();c[m>>2]=20594;c[m+4>>2]=162;cc(1,61746,m);_b()}else if((G|0)==19){c[D>>2]=165;if((c[240]|0)==-1)c[240]=$b(1,0,20594,20607,c[D>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[240]|0))_b();c[l>>2]=20594;c[l+4>>2]=165;cc(1,61746,l);_b()}else if((G|0)==30){i=k;return}}function Oc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;i=i+80|0;if((i|0)>=(j|0))$(80);f=e+24|0;g=e+8|0;h=e;k=e+68|0;l=e+64|0;m=e+60|0;n=e+56|0;o=e+52|0;p=e+48|0;q=e+44|0;r=e+40|0;s=e+36|0;t=e+32|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;if(he(c[m>>2]|0,2)|0){c[q>>2]=ge(c[m>>2]|0,p)|0;if(c[q>>2]|0){c[n>>2]=(((c[p>>2]|0)+7|0)>>>0)/8|0;if((c[n>>2]|0)>>>0>(c[l>>2]|0)>>>0)c[n>>2]=c[l>>2];if(c[n>>2]|0)Yw(c[k>>2]|0,c[q>>2]|0,c[n>>2]|0)|0;if((c[n>>2]|0)>>>0>=(c[l>>2]|0)>>>0){i=e;return}Sw((c[k>>2]|0)+(c[n>>2]|0)|0,0,(c[l>>2]|0)-(c[n>>2]|0)|0)|0;i=e;return}c[r>>2]=89;if((c[241]|0)==-1)c[241]=$b(1,0,20633,20646,c[r>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[241]|0))_b();c[h>>2]=20633;c[h+4>>2]=89;cc(1,61746,h);_b()}else{c[n>>2]=c[l>>2];h=Td(5,c[k>>2]|0,c[n>>2]|0,n,c[m>>2]|0)|0;c[o>>2]=h;if(!h){Pc(c[k>>2]|0,c[n>>2]|0,c[l>>2]|0);i=e;return}c[s>>2]=110;if((c[242]|0)==-1)c[242]=$b(1,21128,20633,20646,c[s>>2]|0)|0;if((ac()|0)<=0){if(c[242]|0){s=Cd(c[o>>2]|0)|0;c[g>>2]=20716;c[g+4>>2]=20633;c[g+8>>2]=110;c[g+12>>2]=s;hc(1,21128,20679,g)}}else bc(-1,0);c[t>>2]=111;if((c[243]|0)==-1)c[243]=$b(1,0,20633,20646,c[t>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[243]|0))_b();c[f>>2]=20633;c[f+4>>2]=111;cc(1,61746,f);_b()}}function Pc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];if((c[g>>2]|0)>>>0>=(c[h>>2]|0)>>>0){i=e;return}Zw((c[k>>2]|0)+((c[h>>2]|0)-(c[g>>2]|0))|0,c[f>>2]|0,c[g>>2]|0)|0;Sw(c[f>>2]|0,0,(c[h>>2]|0)-(c[g>>2]|0)|0)|0;i=e;return}function Qc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+16|0;g=e;h=e+44|0;k=e+40|0;l=e+36|0;m=e+32|0;n=e+28|0;o=e+24|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;d=Sd(c[h>>2]|0,5,c[k>>2]|0,c[l>>2]|0,l)|0;c[m>>2]=d;if(!d){i=e;return}c[n>>2]=140;if((c[244]|0)==-1)c[244]=$b(1,21128,20633,20731,c[n>>2]|0)|0;if((ac()|0)<=0){if(c[244]|0){n=Cd(c[m>>2]|0)|0;c[g>>2]=20763;c[g+4>>2]=20633;c[g+8>>2]=140;c[g+12>>2]=n;hc(1,21128,20679,g)}}else bc(-1,0);c[o>>2]=141;if((c[245]|0)==-1)c[245]=$b(1,0,20633,20731,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[245]|0))_b();c[f>>2]=20633;c[f+4>>2]=141;cc(1,61746,f);_b()}function Rc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;a=i;i=i+80|0;if((i|0)>=(j|0))$(80);b=a+56|0;d=a+48|0;e=a+40|0;f=a+32|0;g=a+24|0;h=a+16|0;k=a+8|0;l=a;m=a+64|0;n=a+60|0;if(Gd(20777)|0){c[h>>2]=0;o=Hd(37,h)|0;c[m>>2]=o;if(o|0){o=c[3977]|0;h=Cd(c[m>>2]|0)|0;c[g>>2]=20930;c[g+4>>2]=h;Fv(o,20891,g)|0}c[f>>2]=0;g=Hd(44,f)|0;c[m>>2]=g;if(!g){c[d>>2]=0;Hd(38,d)|0;c[b>>2]=0;Hd(48,b)|0;p=kb(0)|0;q=Sc(2,-1)|0;r=p^q;Tc(r);i=a;return}g=c[3977]|0;f=Cd(c[m>>2]|0)|0;c[e>>2]=20945;c[e+4>>2]=f;Fv(g,20891,e)|0;c[d>>2]=0;Hd(38,d)|0;c[b>>2]=0;Hd(48,b)|0;p=kb(0)|0;q=Sc(2,-1)|0;r=p^q;Tc(r);i=a;return}a=c[3977]|0;c[l>>2]=20777;Fv(a,20783,l)|0;c[n>>2]=286;if((c[246]|0)==-1)c[246]=$b(1,0,20849,20865,c[n>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[246]|0))_b();c[k>>2]=20849;c[k+4>>2]=286;cc(1,61746,k);_b()}function Sc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d+16|0;f=d+8|0;g=d;h=d+48|0;k=d+44|0;l=d+40|0;m=d+36|0;n=d+32|0;o=d+28|0;p=d+24|0;c[k>>2]=a;c[l>>2]=b;if((c[l>>2]|0)>>>0<=0){c[o>>2]=157;if((c[247]|0)==-1)c[247]=$b(1,0,20849,20965,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[247]|0))_b();c[g>>2]=20849;c[g+4>>2]=157;cc(1,61746,g);_b()}switch(c[k>>2]|0){case 1:{k=c[17691]|0;c[17691]=k+1;if(!((k>>>0)%256|0)){c[f>>2]=0;Hd(48,f)|0}c[n>>2]=-1-(4294967295%((c[l>>2]|0)>>>0)|0);do De(m,4,1);while((c[m>>2]|0)>>>0>=(c[n>>2]|0)>>>0);c[h>>2]=((c[m>>2]|0)>>>0)%((c[l>>2]|0)>>>0)|0;q=c[h>>2]|0;i=d;return q|0}case 2:{c[n>>2]=-1-(4294967295%((c[l>>2]|0)>>>0)|0);do Ee(m,4);while((c[m>>2]|0)>>>0>=(c[n>>2]|0)>>>0);c[h>>2]=((c[m>>2]|0)>>>0)%((c[l>>2]|0)>>>0)|0;q=c[h>>2]|0;i=d;return q|0}case 0:{r=+((c[l>>2]|0)>>>0);c[m>>2]=~~(r*+Uc())>>>0;if((c[m>>2]|0)>>>0>=(c[l>>2]|0)>>>0)c[m>>2]=(c[l>>2]|0)-1;c[h>>2]=c[m>>2];q=c[h>>2]|0;i=d;return q|0}default:{c[p>>2]=189;if((c[248]|0)==-1)c[248]=$b(1,0,20849,20965,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[248]|0))_b();c[e>>2]=20849;c[e+4>>2]=189;cc(1,61746,e);_b()}}return 0}function Tc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;xw(c[d>>2]|0);i=b;return}function Uc(){return +(+(zw()|0)/2147483647.0)}function Vc(){Ge(0,0);return}function Wc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+16|0;g=e+8|0;h=e;k=e+36|0;l=e+32|0;m=e+28|0;n=e+24|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;switch(c[k>>2]|0){case 1:{k=c[17692]|0;c[17692]=k+1;if(!((k>>>0)%256|0)){c[h>>2]=0;Hd(48,h)|0}De(c[l>>2]|0,c[m>>2]|0,1);i=e;return}case 2:{Ee(c[l>>2]|0,c[m>>2]|0);i=e;return}case 0:{h=c[17692]|0;c[17692]=h+1;if(!((h>>>0)%256|0)){c[g>>2]=0;Hd(48,g)|0}De(c[l>>2]|0,c[m>>2]|0,0);i=e;return}default:{c[n>>2]=135;if((c[249]|0)==-1)c[249]=$b(1,0,20849,20990,c[n>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[249]|0))_b();c[f>>2]=20849;c[f+4>>2]=135;cc(1,61746,f);_b()}}}function Xc(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;b=i;i=i+48|0;if((i|0)>=(j|0))$(48);d=b+16|0;e=b+8|0;f=b;g=b+44|0;h=b+40|0;k=b+36|0;l=b+32|0;m=b+28|0;n=b+24|0;c[g>>2]=a;c[f>>2]=c[g>>2];if(Jd(l,0,21017,f)|0){c[m>>2]=155;if((c[250]|0)==-1)c[250]=$b(1,0,21041,21054,c[m>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[250]|0))_b();c[e>>2]=21041;c[e+4>>2]=155;cc(1,61746,e);_b()}if(!(te(k,c[l>>2]|0)|0)){Kd(c[l>>2]|0);c[h>>2]=Ub(4,21041,164)|0;c[c[h>>2]>>2]=c[k>>2];i=b;return c[h>>2]|0}c[n>>2]=158;if((c[251]|0)==-1)c[251]=$b(1,0,21041,21054,c[n>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[251]|0))_b();c[d>>2]=21041;c[d+4>>2]=158;cc(1,61746,d);_b();return 0}function Yc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Kd(c[c[d>>2]>>2]|0);Wb(c[d>>2]|0,21041,179);i=b;return}function Zc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d;f=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;l=d+8|0;c[f>>2]=a;c[g>>2]=b;c[h>>2]=Ld(c[c[f>>2]>>2]|0,0,0,0)|0;c[k>>2]=Ub(c[h>>2]|0,21041,202)|0;b=(c[h>>2]|0)-1|0;if((b|0)==(Ld(c[c[f>>2]>>2]|0,0,c[k>>2]|0,c[h>>2]|0)|0)){c[c[g>>2]>>2]=c[k>>2];i=d;return c[h>>2]|0}c[l>>2]=207;if((c[252]|0)==-1)c[252]=$b(1,0,21041,21091,c[l>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[252]|0))_b();c[e>>2]=21041;c[e+4>>2]=207;cc(1,61746,e);_b();return 0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+8|0;f=d;g=d+32|0;h=d+28|0;k=d+24|0;l=d+20|0;m=d+16|0;n=d+12|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=Ub(4,21041,226)|0;if(Id(c[l>>2]|0,c[h>>2]|0,c[k>>2]|0,0)|0){c[m>>2]=234;if((c[253]|0)==-1)c[253]=$b(2,21128,21041,21133,c[m>>2]|0)|0;if((ac()|0)<=0){if(c[253]|0)hc(2,21128,21170,f)}else bc(-1,0);Wb(c[l>>2]|0,21041,235);c[g>>2]=0;o=c[g>>2]|0;i=d;return o|0}if(!(se(c[c[l>>2]>>2]|0)|0)){c[g>>2]=c[l>>2];o=c[g>>2]|0;i=d;return o|0}c[n>>2]=241;if((c[254]|0)==-1)c[254]=$b(2,21128,21041,21133,c[n>>2]|0)|0;if((ac()|0)<=0){if(c[254]|0)hc(2,21128,21170,e)}else bc(-1,0);Yc(c[l>>2]|0);c[g>>2]=0;o=c[g>>2]|0;i=d;return o|0}function $c(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;b=i;i=i+64|0;if((i|0)>=(j|0))$(64);d=b+8|0;e=b;f=b+48|0;g=b+44|0;h=b+40|0;k=b+32|0;l=b+24|0;m=b+20|0;n=b+16|0;c[g>>2]=a;c[l>>2]=ad(k,c[c[g>>2]>>2]|0,37989,39361)|0;if(c[l>>2]|0)c[l>>2]=ad(k,c[c[g>>2]>>2]|0,37977,39361)|0;if(c[l>>2]|0)c[l>>2]=ad(k,c[c[g>>2]>>2]|0,40959,39361)|0;if(!(c[l>>2]|0)){g=c[k+4>>2]|0;c[d>>2]=c[k>>2];c[d+4>>2]=g;c[l>>2]=Jd(m,0,21293,d)|0;Qd(c[k>>2]|0);Qd(c[k+4>>2]|0);c[h>>2]=Ub(4,21041,280)|0;c[c[h>>2]>>2]=c[m>>2];c[f>>2]=c[h>>2];o=c[f>>2]|0;i=b;return o|0}c[n>>2]=270;if((c[255]|0)==-1)c[255]=$b(2,0,21041,21204,c[n>>2]|0)|0;if((ac()|0)<=0){if(c[255]|0){c[e>>2]=21041;c[e+4>>2]=270;cc(66,21245,e)}}else bc(-1,0);c[f>>2]=0;o=c[f>>2]|0;i=b;return o|0}function ad(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+36|0;k=g+32|0;l=g+28|0;m=g+24|0;n=g+20|0;o=g+16|0;p=g+12|0;q=g+8|0;r=g+4|0;s=g;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;f=Md(c[l>>2]|0,c[m>>2]|0,0)|0;c[o>>2]=f;if(!f){c[h>>2]=1;t=c[h>>2]|0;i=g;return t|0}c[p>>2]=Nd(c[o>>2]|0)|0;Kd(c[o>>2]|0);c[o>>2]=c[p>>2];if(!(c[o>>2]|0)){c[h>>2]=2;t=c[h>>2]|0;i=g;return t|0}c[s>>2]=0;c[q>>2]=c[n>>2];while(1){u=c[o>>2]|0;if(!(a[c[q>>2]>>0]|0)){v=18;break}n=Md(u,c[q>>2]|0,1)|0;c[p>>2]=n;if(!n){v=8;break}n=Od(c[p>>2]|0,1,5)|0;c[(c[k>>2]|0)+(c[s>>2]<<2)>>2]=n;Kd(c[p>>2]|0);if(!(c[(c[k>>2]|0)+(c[s>>2]<<2)>>2]|0)){v=13;break}c[q>>2]=(c[q>>2]|0)+1;c[s>>2]=(c[s>>2]|0)+1}if((v|0)==8){c[r>>2]=0;while(1){if((c[r>>2]|0)>>>0>=(c[s>>2]|0)>>>0)break;Ie(c[(c[k>>2]|0)+(c[r>>2]<<2)>>2]|0);c[(c[k>>2]|0)+(c[r>>2]<<2)>>2]=0;c[r>>2]=(c[r>>2]|0)+1}Kd(c[o>>2]|0);c[h>>2]=3;t=c[h>>2]|0;i=g;return t|0}else if((v|0)==13){c[r>>2]=0;while(1){if((c[r>>2]|0)>>>0>=(c[s>>2]|0)>>>0)break;Ie(c[(c[k>>2]|0)+(c[r>>2]<<2)>>2]|0);c[(c[k>>2]|0)+(c[r>>2]<<2)>>2]=0;c[r>>2]=(c[r>>2]|0)+1}Kd(c[o>>2]|0);c[h>>2]=4;t=c[h>>2]|0;i=g;return t|0}else if((v|0)==18){Kd(u);c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}return 0}function bd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Kd(c[c[d>>2]>>2]|0);Wb(c[d>>2]|0,21041,295);i=b;return}function cd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d;f=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;l=d+8|0;c[f>>2]=a;c[g>>2]=b;c[h>>2]=Ld(c[c[f>>2]>>2]|0,3,0,0)|0;c[k>>2]=Ub(c[h>>2]|0,21041,318)|0;b=(c[h>>2]|0)-1|0;if((b|0)==(Ld(c[c[f>>2]>>2]|0,3,c[k>>2]|0,c[h>>2]|0)|0)){c[c[g>>2]>>2]=c[k>>2];i=d;return c[h>>2]|0}c[l>>2]=323;if((c[256]|0)==-1)c[256]=$b(1,0,21041,21323,c[l>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[256]|0))_b();c[e>>2]=21041;c[e+4>>2]=323;cc(1,61746,e);_b();return 0}function dd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+8|0;f=d;g=d+44|0;h=d+40|0;k=d+36|0;l=d+32|0;m=d+28|0;n=d+24|0;o=d+20|0;p=d+16|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=Ub(4,21041,367)|0;if(Id(c[l>>2]|0,c[h>>2]|0,c[k>>2]|0,0)|0){c[o>>2]=374;if((c[257]|0)==-1)c[257]=$b(2,0,21041,21359,c[o>>2]|0)|0;if((ac()|0)<=0){if(c[257]|0){c[f>>2]=21041;c[f+4>>2]=374;cc(66,21245,f)}}else bc(-1,0);Wb(c[l>>2]|0,21041,375);c[g>>2]=0;q=c[g>>2]|0;i=d;return q|0}c[n>>2]=ad(m,c[c[l>>2]>>2]|0,37989,39375)|0;if(c[n>>2]|0)c[n>>2]=ad(m,c[c[l>>2]>>2]|0,40959,39375)|0;if(!(c[n>>2]|0)){Qd(c[m>>2]|0);c[g>>2]=c[l>>2];q=c[g>>2]|0;i=d;return q|0}c[p>>2]=385;if((c[258]|0)==-1)c[258]=$b(1,0,21041,21359,c[p>>2]|0)|0;if((ac()|0)<=0){if(c[258]|0){c[e>>2]=21041;c[e+4>>2]=385;cc(1,61746,e)}}else bc(-1,0);Kd(c[c[l>>2]>>2]|0);Wb(c[l>>2]|0,21041,387);c[g>>2]=0;q=c[g>>2]|0;i=d;return q|0}function ed(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d;f=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;l=d+8|0;c[f>>2]=a;c[g>>2]=b;c[h>>2]=Ld(c[c[f>>2]>>2]|0,3,0,0)|0;c[k>>2]=Ub(c[h>>2]|0,21041,958)|0;b=(c[h>>2]|0)-1|0;if((b|0)==(Ld(c[c[f>>2]>>2]|0,3,c[k>>2]|0,c[h>>2]|0)|0)){c[c[g>>2]>>2]=c[k>>2];i=d;return c[h>>2]|0}c[l>>2]=963;if((c[259]|0)==-1)c[259]=$b(1,0,21041,21395,c[l>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[259]|0))_b();c[e>>2]=21041;c[e+4>>2]=963;cc(1,61746,e);_b();return 0}function fd(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;g=i;i=i+80|0;if((i|0)>=(j|0))$(80);h=g+8|0;k=g;l=g+76|0;m=g+72|0;n=g+68|0;o=g+64|0;p=g+60|0;q=g+56|0;r=g+52|0;s=g+48|0;t=g+40|0;u=g+32|0;v=g+28|0;w=g+24|0;x=g+20|0;y=g+16|0;c[m>>2]=a;c[n>>2]=b;c[o>>2]=d;c[p>>2]=e;c[q>>2]=f;if(!((c[p>>2]|0)!=0&(c[q>>2]|0)!=0)){c[x>>2]=738;if((c[260]|0)==-1)c[260]=$b(1,0,21041,21430,c[x>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[260]|0))_b();c[k>>2]=21041;c[k+4>>2]=738;cc(1,61746,k);_b()}c[w>>2]=ad(t,c[c[o>>2]>>2]|0,37989,39361)|0;if(c[w>>2]|0)c[w>>2]=ad(t,c[c[o>>2]>>2]|0,40959,39361)|0;if(!(c[w>>2]|0)){c[s>>2]=gd(c[o>>2]|0,c[m>>2]|0)|0;do if(c[s>>2]|0){c[r>>2]=hd(c[o>>2]|0,c[n>>2]|0)|0;if(!(c[r>>2]|0)){Qd(c[s>>2]|0);break}c[u>>2]=Pd(0)|0;Vd(c[u>>2]|0,c[c[r>>2]>>2]|0,c[t+4>>2]|0,c[t>>2]|0);c[v>>2]=Pd(0)|0;Ud(c[v>>2]|0,c[s>>2]|0,c[u>>2]|0,c[t>>2]|0);Qd(c[s>>2]|0);Qd(c[t>>2]|0);Qd(c[t+4>>2]|0);Qd(c[u>>2]|0);id(c[r>>2]|0);m=jd(c[v>>2]|0,c[p>>2]|0)|0;c[c[q>>2]>>2]=m;Qd(c[v>>2]|0);c[l>>2]=1;z=c[l>>2]|0;i=g;return z|0}while(0);Qd(c[t>>2]|0);Qd(c[t+4>>2]|0);c[c[p>>2]>>2]=0;c[c[q>>2]>>2]=0;c[l>>2]=0;z=c[l>>2]|0;i=g;return z|0}c[y>>2]=744;if((c[261]|0)==-1)c[261]=$b(1,0,21041,21430,c[y>>2]|0)|0;if((ac()|0)<=0){if(c[261]|0){c[h>>2]=21041;c[h+4>>2]=744;cc(1,61746,h)}}else bc(-1,0);c[c[p>>2]>>2]=0;c[c[q>>2]>>2]=0;c[l>>2]=0;z=c[l>>2]|0;i=g;return z|0}function gd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d+8|0;f=d;g=d+52|0;h=d+48|0;k=d+44|0;l=d+40|0;m=d+36|0;n=d+32|0;o=d+28|0;p=d+24|0;q=d+20|0;r=d+16|0;c[h>>2]=a;c[k>>2]=b;if(ad(m,c[c[h>>2]>>2]|0,40959,39375)|0){c[q>>2]=689;if((c[266]|0)==-1)c[266]=$b(1,0,21041,21548,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[266]|0))_b();c[f>>2]=21041;c[f+4>>2]=689;cc(1,61746,f);_b()}if(!(he(c[m>>2]|0,2)|0)){c[o>>2]=cd(c[h>>2]|0,n)|0;Nc(l,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0,c[k>>2]|0,64,21569);Wb(c[n>>2]|0,21041,704);c[p>>2]=kd(c[l>>2]|0,c[m>>2]|0)|0;Qd(c[m>>2]|0);m=c[l>>2]|0;if(c[p>>2]|0){c[g>>2]=m;s=c[g>>2]|0;i=d;return s|0}else{Qd(m);c[g>>2]=0;s=c[g>>2]|0;i=d;return s|0}}c[r>>2]=691;if((c[267]|0)==-1)c[267]=$b(1,0,21041,21548,c[r>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[267]|0))_b();c[e>>2]=21041;c[e+4>>2]=691;cc(1,61746,e);_b();return 0}function hd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d+16|0;f=d+8|0;g=d;h=d+52|0;k=d+48|0;l=d+44|0;m=d+40|0;n=d+36|0;o=d+32|0;p=d+28|0;q=d+24|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=21480;c[m>>2]=Ub(4,21041,434)|0;if(!(c[m>>2]|0)){c[o>>2]=435;if((c[263]|0)==-1)c[263]=$b(1,0,21041,21511,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[263]|0))_b();c[g>>2]=21041;c[g+4>>2]=435;cc(1,61746,g);_b()}if(ad(n,c[c[h>>2]>>2]|0,40959,39375)|0){c[p>>2]=438;if((c[264]|0)==-1)c[264]=$b(1,0,21041,21511,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[264]|0))_b();c[f>>2]=21041;c[f+4>>2]=438;cc(1,61746,f);_b()}if(!(he(c[n>>2]|0,2)|0)){f=c[m>>2]|0;p=c[n>>2]|0;h=c[l>>2]|0;g=hv(c[l>>2]|0)|0;Nc(f,p,h,g,c[k>>2]|0,32,21535);if(kd(c[c[m>>2]>>2]|0,c[n>>2]|0)|0){r=c[n>>2]|0;Qd(r);s=c[m>>2]|0;i=d;return s|0}Wb(c[m>>2]|0,21041,448);c[m>>2]=0;r=c[n>>2]|0;Qd(r);s=c[m>>2]|0;i=d;return s|0}c[q>>2]=440;if((c[265]|0)==-1)c[265]=$b(1,0,21041,21511,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[265]|0))_b();c[e>>2]=21041;c[e+4>>2]=440;cc(1,61746,e);_b();return 0}function id(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Qd(c[c[d>>2]>>2]|0);Wb(c[d>>2]|0,21041,631);i=b;return}function jd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d;f=d+28|0;g=d+24|0;h=d+20|0;k=d+16|0;l=d+8|0;c[f>>2]=a;c[g>>2]=b;Td(5,0,0,h,c[f>>2]|0)|0;c[k>>2]=Ub(c[h>>2]|0,21041,655)|0;if(!(Td(5,c[k>>2]|0,c[h>>2]|0,d+12|0,c[f>>2]|0)|0)){c[c[g>>2]>>2]=c[k>>2];i=d;return c[h>>2]|0}c[l>>2]=661;if((c[262]|0)==-1)c[262]=$b(1,0,21041,21454,c[l>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[262]|0))_b();c[e>>2]=21041;c[e+4>>2]=661;cc(1,61746,e);_b();return 0}function kd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=Pd(0)|0;c[h>>2]=Wd(c[g>>2]|0,c[e>>2]|0,c[f>>2]|0)|0;Qd(c[g>>2]|0);i=d;return c[h>>2]|0}function ld(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+8|0;e=b;f=b+24|0;g=b+20|0;h=b+16|0;c[f>>2]=a;c[g>>2]=0;c[e>>2]=c[f>>2];if(!(Jd(g,0,21584,e)|0)){i=b;return c[g>>2]|0}c[h>>2]=806;if((c[268]|0)==-1)c[268]=$b(1,0,21041,21614,c[h>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[268]|0))_b();c[d>>2]=21041;c[d+4>>2]=806;cc(1,61746,d);_b();return 0}function md(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Kd(c[c[d>>2]>>2]|0);Wb(c[d>>2]|0,21041,936);i=b;return}function nd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+8|0;f=d;g=d+44|0;h=d+40|0;k=d+36|0;l=d+32|0;m=d+28|0;n=d+24|0;o=d+20|0;p=d+16|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=Ub(4,21041,985)|0;if(Id(c[l>>2]|0,c[h>>2]|0,c[k>>2]|0,0)|0){c[o>>2]=992;if((c[269]|0)==-1)c[269]=$b(2,0,21041,21626,c[o>>2]|0)|0;if((ac()|0)<=0){if(c[269]|0){c[f>>2]=21041;c[f+4>>2]=992;cc(66,21245,f)}}else bc(-1,0);Wb(c[l>>2]|0,21041,993);c[g>>2]=0;q=c[g>>2]|0;i=d;return q|0}c[m>>2]=ad(n,c[c[l>>2]>>2]|0,37839,39373)|0;if(c[m>>2]|0)c[m>>2]=ad(n,c[c[l>>2]>>2]|0,40959,39373)|0;if(!(c[m>>2]|0)){Qd(c[n>>2]|0);c[g>>2]=c[l>>2];q=c[g>>2]|0;i=d;return q|0}c[p>>2]=1003;if((c[270]|0)==-1)c[270]=$b(2,0,21041,21626,c[p>>2]|0)|0;if((ac()|0)<=0){if(c[270]|0){c[e>>2]=21041;c[e+4>>2]=1003;cc(66,21245,e)}}else bc(-1,0);Kd(c[c[l>>2]>>2]|0);Wb(c[l>>2]|0,21041,1005);c[g>>2]=0;q=c[g>>2]|0;i=d;return q|0}function od(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;e=i;i=i+112|0;if((i|0)>=(j|0))$(112);f=e+40|0;g=e+32|0;h=e+24|0;k=e+16|0;l=e+8|0;m=e;n=e+108|0;o=e+104|0;p=e+100|0;q=e+96|0;r=e+92|0;s=e+88|0;t=e+84|0;u=e+80|0;v=e+76|0;w=e+72|0;x=e+68|0;y=e+64|0;z=e+60|0;A=e+56|0;B=e+52|0;C=e+48|0;c[o>>2]=a;c[p>>2]=b;c[q>>2]=d;c[w>>2]=ad(s,c[c[q>>2]>>2]|0,37989,39375)|0;if(c[w>>2]|0)c[w>>2]=ad(s,c[c[q>>2]>>2]|0,40959,39375)|0;if(c[w>>2]|0){c[y>>2]=1066;if((c[271]|0)==-1)c[271]=$b(2,0,21041,21661,c[y>>2]|0)|0;if((ac()|0)<=0){if(c[271]|0){c[m>>2]=21041;c[m+4>>2]=1066;cc(66,21245,m)}}else bc(-1,0);c[n>>2]=0;D=c[n>>2]|0;i=e;return D|0}c[w>>2]=ad(t,c[c[o>>2]>>2]|0,37839,39373)|0;if(c[w>>2]|0)c[w>>2]=ad(t,c[c[o>>2]>>2]|0,40959,39373)|0;if(c[w>>2]|0){Qd(c[s>>2]|0);c[z>>2]=1075;if((c[272]|0)==-1)c[272]=$b(2,0,21041,21661,c[z>>2]|0)|0;if((ac()|0)<=0){if(c[272]|0){c[l>>2]=21041;c[l+4>>2]=1075;cc(66,21245,l)}}else bc(-1,0);c[n>>2]=0;D=c[n>>2]|0;i=e;return D|0}c[r>>2]=hd(c[q>>2]|0,c[p>>2]|0)|0;if(!(c[r>>2]|0)){c[A>>2]=1086;if((c[273]|0)==-1)c[273]=$b(2,0,21041,21661,c[A>>2]|0)|0;if((ac()|0)<=0){if(c[273]|0){c[k>>2]=21041;c[k+4>>2]=1086;cc(66,21245,k)}}else bc(-1,0);Qd(c[s>>2]|0);Qd(c[t>>2]|0);c[n>>2]=0;D=c[n>>2]|0;i=e;return D|0}c[u>>2]=Pd(0)|0;if(1!=(Xd(c[u>>2]|0,c[c[r>>2]>>2]|0,c[s>>2]|0)|0)){c[B>>2]=1100;if((c[274]|0)==-1)c[274]=$b(2,0,21041,21661,c[B>>2]|0)|0;if((ac()|0)<=0){if(c[274]|0){c[h>>2]=21041;c[h+4>>2]=1100;cc(66,21245,h)}}else bc(-1,0);Qd(c[u>>2]|0);id(c[r>>2]|0);Qd(c[s>>2]|0);Qd(c[t>>2]|0);c[n>>2]=0;D=c[n>>2]|0;i=e;return D|0}c[v>>2]=Pd(0)|0;Ud(c[v>>2]|0,c[t>>2]|0,c[u>>2]|0,c[s>>2]|0);Qd(c[s>>2]|0);Qd(c[u>>2]|0);Qd(c[t>>2]|0);id(c[r>>2]|0);c[x>>2]=Ub(4,21041,1115)|0;r=c[x>>2]|0;c[g>>2]=c[v>>2];if(!(Jd(r,0,21687,g)|0)){Qd(c[v>>2]|0);c[n>>2]=c[x>>2];D=c[n>>2]|0;i=e;return D|0}c[C>>2]=1120;if((c[275]|0)==-1)c[275]=$b(1,0,21041,21661,c[C>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[275]|0))_b();c[f>>2]=21041;c[f+4>>2]=1120;cc(1,61746,f);_b();return 0}function pd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=i;i=i+64|0;if((i|0)>=(j|0))$(64);f=e+8|0;g=e;h=e+52|0;k=e+48|0;l=e+44|0;m=e+40|0;n=e+36|0;o=e+32|0;p=e+28|0;q=e+24|0;r=e+20|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[o>>2]=gd(c[m>>2]|0,c[k>>2]|0)|0;if(!(c[o>>2]|0)){c[q>>2]=1146;if((c[276]|0)==-1)c[276]=$b(2,0,21041,21710,c[q>>2]|0)|0;if((ac()|0)<=0){if(c[276]|0){c[g>>2]=21041;c[g+4>>2]=1146;cc(66,21245,g)}}else bc(-1,0);c[h>>2]=0;s=c[h>>2]|0;i=e;return s|0}c[n>>2]=ld(c[o>>2]|0)|0;Qd(c[o>>2]|0);c[p>>2]=re(c[c[l>>2]>>2]|0,c[n>>2]|0,c[c[m>>2]>>2]|0)|0;Kd(c[n>>2]|0);if(!(c[p>>2]|0)){c[h>>2]=1;s=c[h>>2]|0;i=e;return s|0}c[r>>2]=1169;if((c[277]|0)==-1)c[277]=$b(2,21128,21041,21710,c[r>>2]|0)|0;if((ac()|0)<=0){if(c[277]|0){r=Cd(c[p>>2]|0)|0;c[f>>2]=21041;c[f+4>>2]=1168;c[f+8>>2]=r;hc(2,21128,21735,f)}}else bc(-1,0);c[h>>2]=-1;s=c[h>>2]|0;i=e;return s|0}function qd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+16|0;f=d+40|0;g=d+36|0;h=d+32|0;k=d+8|0;l=d;c[g>>2]=b;c[h>>2]=21823;b=a;m=c[b+4>>2]|0;n=k;c[n>>2]=c[b>>2];c[n+4>>2]=m;m=wd()|0;n=l;c[n>>2]=m;c[n+4>>2]=D;n=l;l=a;if((c[n>>2]|0)==(c[l>>2]|0)?(c[n+4>>2]|0)==(c[l+4>>2]|0):0){c[f>>2]=21801;o=c[f>>2]|0;i=d;return o|0}l=a;if(0==(c[l>>2]|0)?0==(c[l+4>>2]|0):0){c[f>>2]=21827;o=c[f>>2]|0;i=d;return o|0}l=k;a=c[l+4>>2]|0;if(!(!(1==(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]=D;a=k;if(1==(c[a>>2]|0)?0==(c[a+4>>2]|0):0){c[h>>2]=21814;break}else{c[h>>2]=21818;break}}while(0);g=k;k=c[g+4>>2]|0;p=c[h>>2]|0;h=e;c[h>>2]=c[g>>2];c[h+4>>2]=k;c[e+8>>2]=p;Xb(72095,128,21793,e)|0;c[f>>2]=72095;o=c[f>>2]|0;i=d;return o|0}function rd(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;h=i;i=i+96|0;if((i|0)>=(j|0))$(96);k=h+24|0;l=h+16|0;m=h+8|0;n=h;o=h+84|0;p=h+80|0;q=h+76|0;r=h+72|0;s=h+68|0;t=h+64|0;u=h+60|0;v=h+56|0;w=h+52|0;x=h+48|0;y=h+44|0;z=h+40|0;A=h+36|0;B=h+32|0;c[p>>2]=b;c[q>>2]=e;c[r>>2]=f;c[s>>2]=g;c[x>>2]=c[p>>2];if((c[s>>2]|0)>>>0<((((c[q>>2]<<3)+4|0)>>>0)/5|0)>>>0){c[y>>2]=883;if((c[278]|0)==-1)c[278]=$b(1,0,21783,21832,c[y>>2]|0)|0;if((ac()|0)<=0){if(c[278]|0){c[n>>2]=21783;c[n+4>>2]=883;cc(1,61746,n)}}else bc(-1,0);c[o>>2]=0;C=c[o>>2]|0;i=h;return C|0}c[w>>2]=0;c[t>>2]=0;c[u>>2]=0;c[v>>2]=0;while(1){if(!((c[u>>2]|0)>>>0<(c[q>>2]|0)>>>0?1:(c[w>>2]|0)>>>0>0)){D=32;break}if((c[w>>2]|0)>>>0<5?(c[u>>2]|0)>>>0<(c[q>>2]|0)>>>0:0){n=c[v>>2]<<8;y=c[u>>2]|0;c[u>>2]=y+1;c[v>>2]=n|(d[(c[x>>2]|0)+y>>0]|0);c[w>>2]=(c[w>>2]|0)+8}if((c[w>>2]|0)>>>0<5){c[v>>2]=c[v>>2]<<5-(c[w>>2]|0);if((c[w>>2]|0)!=((c[q>>2]<<3>>>0)%5|0|0)){D=15;break}c[w>>2]=5}if((c[t>>2]|0)>>>0>=(c[s>>2]|0)>>>0){D=24;break}y=a[(c[281]|0)+((c[v>>2]|0)>>>((c[w>>2]|0)-5|0)&31)>>0]|0;n=c[t>>2]|0;c[t>>2]=n+1;a[(c[r>>2]|0)+n>>0]=y;c[w>>2]=(c[w>>2]|0)-5}if((D|0)==15){c[z>>2]=900;if((c[279]|0)==-1)c[279]=$b(1,0,21783,21832,c[z>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[279]|0))_b();c[m>>2]=21783;c[m+4>>2]=900;cc(1,61746,m);_b()}else if((D|0)==24){c[A>>2]=905;if((c[280]|0)==-1)c[280]=$b(1,0,21783,21832,c[A>>2]|0)|0;if((ac()|0)<=0){if(c[280]|0){c[l>>2]=21783;c[l+4>>2]=905;cc(1,61746,l)}}else bc(-1,0);c[o>>2]=0;C=c[o>>2]|0;i=h;return C|0}else if((D|0)==32){if(!(c[w>>2]|0)){if((c[t>>2]|0)>>>0<(c[s>>2]|0)>>>0)a[(c[r>>2]|0)+(c[t>>2]|0)>>0]=0;c[o>>2]=(c[r>>2]|0)+(c[t>>2]|0);C=c[o>>2]|0;i=h;return C|0}c[B>>2]=911;if((c[282]|0)==-1)c[282]=$b(1,0,21783,21832,c[B>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[282]|0))_b();c[k>>2]=21783;c[k+4>>2]=911;cc(1,61746,k);_b()}return 0}function sd(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;c[g>>2]=b;c[h>>2]=d;c[l>>2]=c[h>>2]<<3;if((((c[l>>2]|0)>>>0)%5|0)>>>0>0)c[l>>2]=(c[l>>2]|0)+(5-(((c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)!=(c[m>>2]|0)){c[k>>2]=-1;y=c[k>>2]|0;i=g;return y|0}if(-1==(c[t>>2]|0)){c[k>>2]=-1;y=c[k>>2]|0;i=g;return y|0}while(1){z=c[p>>2]|0;if((c[q>>2]|0)>>>0<=0){A=25;break}if(!z){A=14;break}m=(c[p>>2]|0)+-1|0;c[p>>2]=m;u=ud(a[(c[l>>2]|0)+m>>0]|0)|0;c[t>>2]=u;c[r>>2]=u<<c[s>>2]|c[r>>2];if(-1==(c[t>>2]|0)){A=22;break}c[s>>2]=(c[s>>2]|0)+5;if((c[s>>2]|0)>>>0<8)continue;u=c[r>>2]&255;m=(c[q>>2]|0)+-1|0;c[q>>2]=m;a[(c[v>>2]|0)+m>>0]=u;c[r>>2]=(c[r>>2]|0)>>>8;c[s>>2]=(c[s>>2]|0)-8}if((A|0)==14){c[x>>2]=1003;if((c[283]|0)==-1)c[283]=$b(1,0,21783,21895,c[x>>2]|0)|0;if((ac()|0)<=0){if(c[283]|0){c[h>>2]=21783;c[h+4>>2]=1003;cc(1,61746,h)}}else bc(-1,0);c[k>>2]=-1;y=c[k>>2]|0;i=g;return y|0}else if((A|0)==22){c[k>>2]=-1;y=c[k>>2]|0;i=g;return y|0}else if((A|0)==25)if(0!=(z|0)|0!=(c[s>>2]|0)){c[k>>2]=-1;y=c[k>>2]|0;i=g;return y|0}else{c[k>>2]=1;y=c[k>>2]|0;i=g;return y|0}return 0}function ud(b){b=b|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+4|0;g=e+8|0;h=e;a[g>>0]=b;switch(d[g>>0]|0|0){case 111:case 79:{a[g>>0]=48;break}case 76:case 108:case 73:case 105:{a[g>>0]=49;break}case 85:case 117:{a[g>>0]=86;break}default:{}}if((d[g>>0]|0|0)>=48?(d[g>>0]|0|0)<=57:0){c[f>>2]=(d[g>>0]|0)-48;k=c[f>>2]|0;i=e;return k|0}if((d[g>>0]|0|0)>=97?(d[g>>0]|0|0)<=122:0)a[g>>0]=gv(d[g>>0]|0)|0;c[h>>2]=0;if((d[g>>0]|0|0)>=65?(d[g>>0]|0|0)<=90:0){if(73<(d[g>>0]|0|0))c[h>>2]=(c[h>>2]|0)+1;if(76<(d[g>>0]|0|0))c[h>>2]=(c[h>>2]|0)+1;if(79<(d[g>>0]|0|0))c[h>>2]=(c[h>>2]|0)+1;if(85<(d[g>>0]|0|0))c[h>>2]=(c[h>>2]|0)+1;c[f>>2]=(d[g>>0]|0)-65+10-(c[h>>2]|0);k=c[f>>2]|0;i=e;return k|0}c[f>>2]=-1;k=c[f>>2]|0;i=e;return k|0}function vd(){var a=0;a=70696;D=c[a+4>>2]|0;return c[a>>2]|0}function wd(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;c[b>>2]=c[16];c[b+4>>2]=c[17];d=b;D=c[d+4>>2]|0;i=a;return c[d>>2]|0}function xd(){var a=0,b=0,d=0,e=0,f=0,g=0;a=i;i=i+32|0;if((i|0)>=(j|0))$(32);b=a+8|0;d=a;e=a+16|0;lb(e|0,0)|0;f=c[e>>2]|0;g=ex(f|0,((f|0)<0)<<31>>31|0,1e3,0)|0;f=ex(g|0,D|0,1e3,0)|0;g=c[e+4>>2]|0;e=Uw(f|0,D|0,g|0,((g|0)<0)<<31>>31|0)|0;g=70696;f=Uw(e|0,D|0,c[g>>2]|0,c[g+4>>2]|0)|0;g=d;c[g>>2]=f;c[g+4>>2]=D;c[b>>2]=c[d>>2];c[b+4>>2]=c[d+4>>2];d=b;D=c[d+4>>2]|0;i=a;return c[d>>2]|0}function yd(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;c[b>>2]=c[17676];c[b+4>>2]=c[17677];d=b;D=c[d+4>>2]|0;i=a;return c[d>>2]|0}function zd(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+24|0;e=b+16|0;f=b+8|0;g=b;h=xd()|0;k=g;c[k>>2]=h;c[k+4>>2]=D;c[e>>2]=c[g>>2];c[e+4>>2]=c[g+4>>2];g=a;k=c[g+4>>2]|0;h=e;l=c[h+4>>2]|0;if(k>>>0>l>>>0|((k|0)==(l|0)?(c[g>>2]|0)>>>0>(c[h>>2]|0)>>>0:0)){h=yd()|0;g=d;c[g>>2]=h;c[g+4>>2]=D;m=d;n=m;o=c[n>>2]|0;p=m+4|0;q=p;r=c[q>>2]|0;D=r;i=b;return o|0}else{g=e;e=a;a=Rw(c[g>>2]|0,c[g+4>>2]|0,c[e>>2]|0,c[e+4>>2]|0)|0;e=f;c[e>>2]=a;c[e+4>>2]=D;c[d>>2]=c[f>>2];c[d+4>>2]=c[f+4>>2];m=d;n=m;o=c[n>>2]|0;p=m+4|0;q=p;r=c[q>>2]|0;D=r;i=b;return o|0}return 0}function Ad(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;f=e;c[f>>2]=a;c[f+4>>2]=b;b=Iv(c[e>>2]|0)|0;f=Uw(0,b|0,Iv(c[e+4>>2]|0)|0,0)|0;i=d;return f|0}function Bd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;f=e;c[f>>2]=a;c[f+4>>2]=b;b=Mv(c[e>>2]|0)|0;f=Uw(0,b|0,Mv(c[e+4>>2]|0)|0,0)|0;i=d;return f|0}function Cd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Dd(c[d>>2]|0)|0;i=b;return a|0}function Dd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Bt(c[d>>2]|0)|0;i=b;return a|0}function Ed(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function Fd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Ed(1,c[d>>2]|0)|0;i=b;return a|0}function Gd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=gf(c[d>>2]|0)|0;i=b;return a|0}function Hd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d;c[e>>2]=a;c[g>>2]=b;c[f>>2]=Fd(kf(c[e>>2]|0,g)|0)|0;i=d;return c[f>>2]|0}function Id(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;e=Fd(Sf(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0)|0)|0;i=f;return e|0}function Jd(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[m>>2]=e;c[l>>2]=dg(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,m)|0;m=Fd(c[l>>2]|0)|0;i=f;return m|0}function Kd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Rf(c[d>>2]|0);i=b;return}function Ld(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;e=fg(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0)|0;i=f;return e|0}function Md(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Tf(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function Nd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=bg(c[d>>2]|0)|0;i=b;return a|0}function Od(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=$f(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function Pd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Rp(c[d>>2]|0)|0;i=b;return a|0}function Qd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Tp(c[d>>2]|0);i=b;return}function Rd(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=wo(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function Sd(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;f=Fd(Zo(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0)|0)|0;i=g;return f|0}function Td(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;f=Fd(bp(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0)|0)|0;i=g;return f|0}function Ud(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;Ro(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}function Vd(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;So(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}function Wd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Fo(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function Xd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Lo(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function Yd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=xn(c[d>>2]|0)|0;i=b;return a|0}function Zd(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;zn(c[d>>2]|0);i=b;return}function _d(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Fd(Wh(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0)|0;i=e;return d|0}function $d(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Jn(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function ae(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Kn(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function be(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;e=c[g>>2]|0;g=c[h>>2]|0;h=c[k>>2]|0;k=tn(e,g,h,rh(c[l>>2]|0,1)|0)|0;i=f;return k|0}function ce(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;e=c[g>>2]|0;g=c[h>>2]|0;h=c[k>>2]|0;$n(e,g,h,rh(c[l>>2]|0,1)|0);i=f;return}function de(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=lo(c[d>>2]|0)|0;i=b;return a|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=mo(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;po(c[e>>2]|0,c[f>>2]|0);i=d;return}function ge(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=Gp(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function he(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=Vp(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function ie(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;m=f;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;e=(ef()|0)!=0;d=c[h>>2]|0;if(e){c[g>>2]=Fd(wh(d,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0)|0)|0;n=c[g>>2]|0;i=f;return n|0}else{c[d>>2]=0;c[g>>2]=Fd(176)|0;n=c[g>>2]|0;i=f;return n|0}return 0}function je(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Bh(c[d>>2]|0);i=b;return}function ke(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(ef()|0){c[f>>2]=le(Jh(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0)|0;l=c[f>>2]|0;i=e;return l|0}else{c[f>>2]=Fd(176)|0;l=c[f>>2]|0;i=e;return l|0}return 0}function le(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=me(32,c[d>>2]|0)|0;i=b;return a|0}function me(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=Ed(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(ef()|0){c[f>>2]=le(Lh(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0)|0;l=c[f>>2]|0;i=e;return l|0}else{c[f>>2]=Fd(176)|0;l=c[f>>2]|0;i=e;return l|0}return 0}function oe(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+20|0;k=g+16|0;l=g+12|0;m=g+8|0;n=g+4|0;o=g;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;if(ef()|0){c[h>>2]=Fd(Ch(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0)|0;p=c[h>>2]|0;i=g;return p|0}if(c[l>>2]|0)Sw(c[l>>2]|0,66,c[m>>2]|0)|0;c[h>>2]=Fd(176)|0;p=c[h>>2]|0;i=g;return p|0}function pe(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+20|0;k=g+16|0;l=g+12|0;m=g+8|0;n=g+4|0;o=g;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;if(ef()|0){c[h>>2]=Fd(Gh(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0)|0;p=c[h>>2]|0;i=g;return p|0}else{c[h>>2]=Fd(176)|0;p=c[h>>2]|0;i=g;return p|0}return 0}function qe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;d=(ef()|0)!=0;b=c[g>>2]|0;if(d){c[f>>2]=Fd(Wj(b,c[h>>2]|0,c[k>>2]|0)|0)|0;l=c[f>>2]|0;i=e;return l|0}else{c[b>>2]=0;c[f>>2]=Fd(176)|0;l=c[f>>2]|0;i=e;return l|0}return 0}function re(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(ef()|0){c[f>>2]=Fd(Xj(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0)|0;l=c[f>>2]|0;i=e;return l|0}else{c[f>>2]=Fd(176)|0;l=c[f>>2]|0;i=e;return l|0}return 0}function se(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;if(ef()|0){c[d>>2]=Fd(Yj(c[e>>2]|0)|0)|0;f=c[d>>2]|0;i=b;return f|0}else{c[d>>2]=Fd(176)|0;f=c[d>>2]|0;i=b;return f|0}return 0}function te(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;b=(ef()|0)!=0;a=c[f>>2]|0;if(b){c[e>>2]=Fd(Zj(a,c[g>>2]|0)|0)|0;h=c[e>>2]|0;i=d;return h|0}else{c[a>>2]=0;c[e>>2]=Fd(176)|0;h=c[e>>2]|0;i=d;return h|0}return 0}function ue(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;d=(ef()|0)!=0;b=c[g>>2]|0;if(d){c[f>>2]=Fd(Si(b,c[h>>2]|0,c[k>>2]|0)|0)|0;l=c[f>>2]|0;i=e;return l|0}else{c[b>>2]=0;c[f>>2]=Fd(176)|0;l=c[f>>2]|0;i=e;return l|0}return 0}function ve(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;_i(c[d>>2]|0);i=b;return}function we(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Zi(c[d>>2]|0);i=b;return}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(!(ef()|0)){i=e;return}$i(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function ye(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=lj(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function ze(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(ef()|0))dh(21925,1175,21938,0,21958);hj(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}function Ae(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;if(ef()|0){c[d>>2]=nj(c[e>>2]|0)|0;f=c[d>>2]|0;i=b;return f|0}else{dh(21925,1198,21990,0,22007);c[d>>2]=0;f=c[d>>2]|0;i=b;return f|0}return 0}function Be(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=oj(c[d>>2]|0)|0;i=b;return a|0}function Ce(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(ef()|0){c[f>>2]=Fd(fj(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0)|0;l=c[f>>2]|0;i=e;return l|0}else{c[f>>2]=Fd(176)|0;l=c[f>>2]|0;i=e;return l|0}return 0}function De(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(!(ef()|0)){dh(21925,1287,22037,1,21958);Yg()}jn(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function Ee(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(ef()|0)){dh(21925,1340,22052,1,21958);Yg()}nn(c[e>>2]|0,c[f>>2]|0);i=d;return}function Fe(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;sh(c[d>>2]|0);i=b;return}function Ge(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;Gf(c[e>>2]|0,c[f>>2]|0);i=d;return}function He(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;Ke(c[e>>2]|0,c[f>>2]|0);i=d;return}function Ie(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;vf(c[d>>2]|0);i=b;return}function Je(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;if(c[17693]|0){c[d>>2]=yb[c[17693]&15](c[e>>2]|0)|0;f=c[d>>2]|0;i=b;return f|0}else{c[d>>2]=c[e>>2];f=c[d>>2]|0;i=b;return f|0}return 0}function Ke(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;c[17694]=c[f>>2];c[17695]=c[e>>2];i=d;return}function Le(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0))c[f>>2]=Bt(c[e>>2]|0)|0;if(c[17695]|0?(Wg()|0)==0:0)zb[c[17695]&7](c[17694]|0,c[e>>2]|0,c[f>>2]|0);dh(22070,86,22077,1,c[f>>2]|0);Me(22095);Me(c[f>>2]|0);Me(22526);Tg();Aa()}function Me(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;c[d>>2]=a;a=c[d>>2]|0;c[b>>2]=ew(2,a,hv(c[d>>2]|0)|0)|0;i=b;return}function Ne(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;c[17698]=c[d>>2];i=b;return}function Oe(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return (c[17698]|0)>=(c[d>>2]|0)|0}function Pe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e;g=e+12|0;h=e+8|0;k=e+4|0;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(c[17696]|0)Eb[c[17696]&1](c[17697]|0,c[g>>2]|0,c[h>>2]|0,c[k>>2]|0);else{switch(c[g>>2]|0){case 30:case 20:case 10:case 0:break;case 40:{Yv(22110,c[3977]|0)|0;break}case 50:{Yv(22118,c[3977]|0)|0;break}case 100:{Yv(22132,c[3977]|0)|0;break}default:{d=c[3977]|0;c[f>>2]=c[g>>2];Fv(d,22138,f)|0}}Uu(c[3977]|0,c[h>>2]|0,c[k>>2]|0)|0}if((c[g>>2]|0)==40|(c[g>>2]|0)==50){dh(22070,140,22163,1,22174);Tg();Aa()}else{i=e;return}}function Qe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;Pe(c[f>>2]|0,c[g>>2]|0,h);i=e;return}function Re(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e;g=e+20|0;h=e+16|0;k=e+12|0;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;d=c[h>>2]|0;h=c[k>>2]|0;c[f>>2]=c[g>>2];c[f+4>>2]=d;c[f+8>>2]=h;Qe(50,22204,f);Aa()}function Se(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;h=f+28|0;k=f+24|0;l=f+20|0;m=f+16|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;e=c[k>>2]|0;k=c[l>>2]|0;l=c[m>>2]|0;c[g>>2]=c[h>>2];c[g+4>>2]=e;c[g+8>>2]=k;c[g+12>>2]=l;Qe(50,22234,g);Aa()}function Te(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;c[e>>2]=a;c[f>>2]=b;Pe(10,c[e>>2]|0,f);i=d;return}function Ue(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e;c[e+20>>2]=a;c[f>>2]=b;c[g>>2]=d;Pe(10,c[f>>2]|0,g);i=e;return 0}function Ve(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;c[e>>2]=a;c[f>>2]=b;Pe(30,c[e>>2]|0,f);i=d;return}function We(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;c[e>>2]=a;c[f>>2]=b;Pe(40,c[e>>2]|0,f);Aa()}function Xe(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;c[e>>2]=a;c[f>>2]=b;Pe(50,c[e>>2]|0,f);Aa()}function Ye(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;c[e>>2]=a;c[f>>2]=b;Pe(100,c[e>>2]|0,f);i=d;return}function Ze(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;c[e>>2]=a;if(!(c[e>>2]|0)){i=d;return}c[f>>2]=b;Pe(0,c[e>>2]|0,f);i=d;return}function _e(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;$e(c[f>>2]|0,22268,c[g>>2]|0,c[h>>2]|0);i=e;return}function $e(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;h=i;i=i+96|0;if((i|0)>=(j|0))$(96);k=h+56|0;l=h+40|0;m=h+32|0;n=h+24|0;o=h+16|0;p=h+8|0;q=h;r=h+84|0;s=h+80|0;t=h+76|0;u=h+72|0;v=h+68|0;w=h+64|0;x=h+60|0;c[r>>2]=b;c[s>>2]=e;c[t>>2]=f;c[u>>2]=g;c[v>>2]=0;c[w>>2]=0;if((c[r>>2]|0?a[c[r>>2]>>0]|0:0)?(c[v>>2]=1,g=c[s>>2]|0,c[q>>2]=c[r>>2],c[q+4>>2]=g,Ye(22270,q),(c[u>>2]|0?(a[(c[s>>2]|0)+1>>0]|0)==91:0)&(c[t>>2]|0)!=0):0){Ze(22526,p);c[s>>2]=22268;c[o>>2]=hv(c[r>>2]|0)|0;c[o+4>>2]=72319;Ye(22276,o)}a:do if(c[u>>2]|0){c[x>>2]=c[t>>2];while(1){o=c[u>>2]|0;c[u>>2]=o+-1;if(!o)break a;c[n>>2]=d[c[x>>2]>>0];Ze(22282,n);if(c[v>>2]|0?(o=(c[w>>2]|0)+1|0,c[w>>2]=o,(o|0)==32&(c[u>>2]|0)!=0):0){c[w>>2]=0;Ze(22287,m);o=hv(c[r>>2]|0)|0;p=hv(c[s>>2]|0)|0;c[l>>2]=o;c[l+4>>2]=72319;c[l+8>>2]=p;c[l+12>>2]=72319;Ye(22291,l)}c[x>>2]=(c[x>>2]|0)+1}}while(0);if(!(c[r>>2]|0)){i=h;return}Ze(22526,k);i=h;return}function af(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d;f=d+28|0;g=d+24|0;h=d+20|0;k=d+16|0;l=d+12|0;m=d+8|0;n=d+4|0;o=d+32|0;c[f>>2]=a;c[g>>2]=b;if(!(c[g>>2]|0)){$e(c[f>>2]|0?c[f>>2]|0:22268,22299,0,0);i=d;return}if(c[g>>2]|0?c[(c[g>>2]|0)+12>>2]&4|0:0){c[n>>2]=Gp(c[g>>2]|0,m)|0;c[e>>2]=c[m>>2];Su(o,30,22307,e)|0;$e(c[f>>2]|0?c[f>>2]|0:22268,o,c[n>>2]|0,(((c[m>>2]|0)+7|0)>>>0)/8|0);i=d;return}c[h>>2]=Vo(c[g>>2]|0,0,k,l)|0;if(!(c[h>>2]|0)){$e(c[f>>2]|0?c[f>>2]|0:22268,22317,0,0);i=d;return}g=c[f>>2]|0;f=c[l>>2]|0?22332:22334;if(c[k>>2]|0)$e(g,f,c[h>>2]|0,c[k>>2]|0);else $e(g,f,72319,1);vf(c[h>>2]|0);i=d;return}function bf(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+28|0;g=e+24|0;h=e+20|0;k=e+16|0;l=e+12|0;m=e+32|0;n=e;o=e+8|0;c[f>>2]=b;c[g>>2]=(((c[f>>2]|0)!=0^1)&1)+(c[f>>2]|0)+63&-64;f=c[g>>2]|0;c[h>>2]=Za()|0;g=f;b=i;i=i+((1*g|0)+15&-16)|0;if((i|0)>=(j|0))$((1*g|0)+15&-16|0);c[k>>2]=b;c[l>>2]=f;a[m>>0]=0;f=n;c[f>>2]=d[m>>0];c[f+4>>2]=0;while(1){if(!(c[k>>2]&7|0?(c[l>>2]|0)!=0:0))break;a[c[k>>2]>>0]=a[m>>0]|0;c[k>>2]=(c[k>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+-1}if((c[l>>2]|0)>>>0>=8){f=n;b=ex(c[f>>2]|0,c[f+4>>2]|0,16843009,16843009)|0;f=n;c[f>>2]=b;c[f+4>>2]=D;do{c[o>>2]=c[k>>2];f=n;b=c[f+4>>2]|0;g=c[o>>2]|0;c[g>>2]=c[f>>2];c[g+4>>2]=b;c[l>>2]=(c[l>>2]|0)-8;c[k>>2]=(c[k>>2]|0)+8}while((c[l>>2]|0)>>>0>=8)}while(1){if(!(c[l>>2]|0))break;a[c[k>>2]>>0]=a[m>>0]|0;c[k>>2]=(c[k>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+-1}Ea(c[h>>2]|0);i=e;return}function cf(){return}function df(){Ft(33);Le(Ct(c[(xu()|0)>>2]|0)|0,22336)}function ef(){if(!(c[17699]|0))ff();return fh()|0}function ff(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;c[b>>2]=0;if(c[17699]|0){i=a;return}c[17699]=1;Xm(0);Vg(c[17700]|0);rg();c[b>>2]=Nh()|0;if((((((c[b>>2]|0)==0?(c[b>>2]=vj()|0,(c[b>>2]|0)==0):0)?(c[b>>2]=_j()|0,(c[b>>2]|0)==0):0)?(c[b>>2]=wj()|0,(c[b>>2]|0)==0):0)?(c[b>>2]=Gg()|0,(c[b>>2]|0)==0):0)?(c[b>>2]=tp()|0,(c[b>>2]|0)==0):0){i=a;return}Re(22351,123,22360)}function gf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+36|0;f=d+32|0;g=d+28|0;h=d+24|0;k=d+20|0;l=d+16|0;m=d+12|0;n=d+8|0;o=d+4|0;p=d;c[f>>2]=b;c[g>>2]=22372;if((c[f>>2]|0?(a[c[f>>2]>>0]|0)==1:0)?(a[(c[f>>2]|0)+1>>0]|0)==1:0){c[e>>2]=Xp()|0;q=c[e>>2]|0;i=d;return q|0}ff();b=c[g>>2]|0;if(!(c[f>>2]|0)){c[e>>2]=b;q=c[e>>2]|0;i=d;return q|0}c[p>>2]=hf(b,h,k,l)|0;if(!(c[p>>2]|0)){c[e>>2]=0;q=c[e>>2]|0;i=d;return q|0}if(!(hf(c[f>>2]|0,m,n,o)|0)){c[e>>2]=0;q=c[e>>2]|0;i=d;return q|0}do if((c[h>>2]|0)<=(c[m>>2]|0)){if((c[h>>2]|0)==(c[m>>2]|0)?(c[k>>2]|0)>(c[n>>2]|0):0)break;if(((c[h>>2]|0)==(c[m>>2]|0)?(c[k>>2]|0)==(c[n>>2]|0):0)?(c[l>>2]|0)>(c[o>>2]|0):0)break;if(((c[h>>2]|0)==(c[m>>2]|0)?(c[k>>2]|0)==(c[n>>2]|0):0)?(c[l>>2]|0)==(c[o>>2]|0):0)break;c[e>>2]=0;q=c[e>>2]|0;i=d;return q|0}while(0);c[e>>2]=c[g>>2];q=c[e>>2]|0;i=d;return q|0}function hf(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[k>>2]=jf(c[k>>2]|0,c[l>>2]|0)|0;if(c[k>>2]|0?(a[c[k>>2]>>0]|0)==46:0){c[k>>2]=(c[k>>2]|0)+1;c[k>>2]=jf(c[k>>2]|0,c[m>>2]|0)|0;if(c[k>>2]|0?(a[c[k>>2]>>0]|0)==46:0){c[k>>2]=(c[k>>2]|0)+1;c[k>>2]=jf(c[k>>2]|0,c[n>>2]|0)|0;if(c[k>>2]|0){c[h>>2]=c[k>>2];o=c[h>>2]|0;i=g;return o|0}else{c[h>>2]=0;o=c[h>>2]|0;i=g;return o|0}}c[h>>2]=0;o=c[h>>2]|0;i=g;return o|0}c[h>>2]=0;o=c[h>>2]|0;i=g;return o|0}function jf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=b;c[h>>2]=d;c[k>>2]=0;if((a[c[g>>2]>>0]|0)==48?Cw(a[(c[g>>2]|0)+1>>0]|0)|0:0){c[f>>2]=0;l=c[f>>2]|0;i=e;return l|0}while(1){d=(Cw(a[c[g>>2]>>0]|0)|0)!=0;m=c[k>>2]|0;if(!d)break;c[k>>2]=m*10;c[k>>2]=(c[k>>2]|0)+((a[c[g>>2]>>0]|0)-48);c[g>>2]=(c[g>>2]|0)+1}c[c[h>>2]>>2]=m;c[f>>2]=(c[k>>2]|0)<0?0:c[g>>2]|0;l=c[f>>2]|0;i=e;return l|0}function kf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;d=i;i=i+176|0;if((i|0)>=(j|0))$(176);e=d+168|0;f=d+164|0;g=d+160|0;h=d+156|0;k=d+152|0;l=d+148|0;m=d+144|0;n=d+140|0;o=d+136|0;p=d+132|0;q=d+128|0;r=d+124|0;s=d+120|0;t=d+116|0;u=d+112|0;v=d+108|0;w=d+104|0;x=d+100|0;y=d+96|0;z=d+92|0;A=d+88|0;B=d+84|0;C=d+80|0;D=d+76|0;E=d+72|0;F=d+68|0;G=d+64|0;H=d+60|0;I=d+56|0;J=d+52|0;K=d+48|0;L=d+44|0;M=d+40|0;N=d+36|0;O=d+32|0;P=d+28|0;Q=d+24|0;R=d+20|0;S=d+16|0;T=d+12|0;U=d+8|0;V=d+4|0;W=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=0;do switch(c[e>>2]|0){case 31:{tg();X=c[g>>2]|0;i=d;return X|0}case 44:{Xm(0);bn();X=c[g>>2]|0;i=d;return X|0}case 51:{if(!(en()|0)){X=c[g>>2]|0;i=d;return X|0}c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}case 13:{$m();X=c[g>>2]|0;i=d;return X|0}case 14:{Ug();X=c[g>>2]|0;i=d;return X|0}case 30:{ff();Cg(0);X=c[g>>2]|0;i=d;return X|0}case 37:{ff();c[17701]=1;X=c[g>>2]|0;i=d;return X|0}case 24:{ff();b=c[f>>2]|0;a=(c[b>>2]|0)+(4-1)&~(4-1);Y=c[a>>2]|0;c[b>>2]=a+4;c[h>>2]=Y;Cg(c[h>>2]|0);if(!((Bg()|0)&4)){X=c[g>>2]|0;i=d;return X|0}c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}case 25:{ff();Tg();X=c[g>>2]|0;i=d;return X|0}case 27:{Xm(0);zg(Bg()|0|1);X=c[g>>2]|0;i=d;return X|0}case 28:{Xm(0);zg(Bg()|0|2);X=c[g>>2]|0;i=d;return X|0}case 29:{Xm(0);zg((Bg()|0)&-3);X=c[g>>2]|0;i=d;return X|0}case 22:{ff();an();X=c[g>>2]|0;i=d;return X|0}case 45:{Xm(0);Y=c[f>>2]|0;a=(c[Y>>2]|0)+(4-1)&~(4-1);b=c[a>>2]|0;c[Y>>2]=a+4;c[k>>2]=b;kn(c[k>>2]|0);X=c[g>>2]|0;i=d;return X|0}case 46:{Xm(0);if(!(ef()|0)){X=c[g>>2]|0;i=d;return X|0}ln();X=c[g>>2]|0;i=d;return X|0}case 19:{Xm(0);b=c[f>>2]|0;a=(c[b>>2]|0)+(4-1)&~(4-1);Y=c[a>>2]|0;c[b>>2]=a+4;c[l>>2]=Y;Ne(c[l>>2]|0);X=c[g>>2]|0;i=d;return X|0}case 20:{Y=c[f>>2]|0;a=(c[Y>>2]|0)+(4-1)&~(4-1);b=c[a>>2]|0;c[Y>>2]=a+4;c[m>>2]=b;c[17702]=c[17702]|c[m>>2];X=c[g>>2]|0;i=d;return X|0}case 21:{b=c[f>>2]|0;a=(c[b>>2]|0)+(4-1)&~(4-1);Y=c[a>>2]|0;c[b>>2]=a+4;c[n>>2]=Y;c[17702]=c[17702]&~c[n>>2];X=c[g>>2]|0;i=d;return X|0}case 36:{ff();X=c[g>>2]|0;i=d;return X|0}case 40:{if(!(c[17699]|0)){X=c[g>>2]|0;i=d;return X|0}c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}case 39:{if(!(c[17703]|0)){X=c[g>>2]|0;i=d;return X|0}c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}case 38:{if(c[17703]|0){X=c[g>>2]|0;i=d;return X|0}ff();Ym(0);c[17703]=1;ef()|0;X=c[g>>2]|0;i=d;return X|0}case 47:{Xm(0);ff();X=c[g>>2]|0;i=d;return X|0}case 48:{Xm(0);Ym(1);if(!(ef()|0)){X=c[g>>2]|0;i=d;return X|0}mn();X=c[g>>2]|0;i=d;return X|0}case 52:{c[g>>2]=lf(60)|0;X=c[g>>2]|0;i=d;return X|0}case 49:{Xm(0);Y=c[f>>2]|0;a=(c[Y>>2]|0)+(4-1)&~(4-1);b=c[a>>2]|0;c[Y>>2]=a+4;c[o>>2]=b;cn(c[o>>2]|0);X=c[g>>2]|0;i=d;return X|0}case 50:{Xm(0);Ym(1);b=c[f>>2]|0;a=(c[b>>2]|0)+(4-1)&~(4-1);Y=c[a>>2]|0;c[b>>2]=a+4;c[p>>2]=Y;dn(((c[p>>2]|0)!=0^1^1)&1)|0;X=c[g>>2]|0;i=d;return X|0}case 70:{Zm();X=c[g>>2]|0;i=d;return X|0}case 53:{Y=c[f>>2]|0;a=(c[Y>>2]|0)+(4-1)&~(4-1);b=c[a>>2]|0;c[Y>>2]=a+4;c[r>>2]=b;c[q>>2]=c[r>>2];Xm(0);mf(c[q>>2]|0?28:27,c[q>>2]|0);X=c[g>>2]|0;i=d;return X|0}case 54:{Xm(0);if(!(oh()|0)){X=c[g>>2]|0;i=d;return X|0}c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}case 55:{if(!(Wg()|0)){X=c[g>>2]|0;i=d;return X|0}if((eh()|0)!=0|(c[17701]|0)!=0){X=c[g>>2]|0;i=d;return X|0}c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}case 56:{Xm(0);if(!(c[17699]|0)){c[17700]=1;X=c[g>>2]|0;i=d;return X|0}if(ph()|0)gh(1)|0;if(!(fh()|0)){X=c[g>>2]|0;i=d;return X|0}c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}case 57:{ff();c[g>>2]=gh(1)|0;X=c[g>>2]|0;i=d;return X|0}case 58:{b=c[f>>2]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c[L>>2]=b;c[K>>2]=c[L>>2];b=c[f>>2]|0;a=(c[b>>2]|0)+(4-1)&~(4-1);Y=c[a>>2]|0;c[b>>2]=a+4;c[N>>2]=Y;c[M>>2]=c[N>>2];if(ef()|0){c[g>>2]=qn(c[I>>2]|0,c[K>>2]|0,c[M>>2]|0)|0;X=c[g>>2]|0;i=d;return X|0}else{c[g>>2]=176;X=c[g>>2]|0;i=d;return X|0}break}case 60:{Y=c[f>>2]|0;a=(c[Y>>2]|0)+(4-1)&~(4-1);b=c[a>>2]|0;c[Y>>2]=a+4;c[P>>2]=b;c[O>>2]=c[P>>2];rn(c[O>>2]|0);X=c[g>>2]|0;i=d;return X|0}case 61:{b=c[f>>2]|0;a=(c[b>>2]|0)+(4-1)&~(4-1);Y=c[a>>2]|0;c[b>>2]=a+4;c[Q>>2]=Y;c[g>>2]=nf(c[Q>>2]|0)|0;X=c[g>>2]|0;i=d;return X|0}case 63:{Y=c[f>>2]|0;a=(c[Y>>2]|0)+(4-1)&~(4-1);b=c[a>>2]|0;c[Y>>2]=a+4;c[S>>2]=b;c[R>>2]=c[S>>2];c[g>>2]=og(c[R>>2]|0)|0;X=c[g>>2]|0;i=d;return X|0}case 64:{if(c[17699]|0){c[g>>2]=1;X=c[g>>2]|0;i=d;return X|0}else{Xm(0);bh();X=c[g>>2]|0;i=d;return X|0}break}case 65:{b=c[f>>2]|0;a=(c[b>>2]|0)+(4-1)&~(4-1);Y=c[a>>2]|0;c[b>>2]=a+4;c[U>>2]=Y;c[T>>2]=c[U>>2];if((c[T>>2]|0)<=0){X=c[g>>2]|0;i=d;return X|0}Xm(c[T>>2]|0);X=c[g>>2]|0;i=d;return X|0}case 66:{Y=c[f>>2]|0;a=(c[Y>>2]|0)+(4-1)&~(4-1);b=c[a>>2]|0;c[Y>>2]=a+4;c[W>>2]=b;c[V>>2]=c[W>>2];if(!(c[V>>2]|0)){X=c[g>>2]|0;i=d;return X|0}b=_m(((c[17699]|0)!=0^1)&1)|0;c[c[V>>2]>>2]=b;X=c[g>>2]|0;i=d;return X|0}case 67:{Xm(0);zg(Bg()|0|8);X=c[g>>2]|0;i=d;return X|0}case 68:{Xm(0);zg(Bg()|0|16);X=c[g>>2]|0;i=d;return X|0}case 72:case 71:{c[g>>2]=69;X=c[g>>2]|0;i=d;return X|0}case 62:case 23:{X=c[g>>2]|0;i=d;return X|0}default:{Xm(0);c[g>>2]=61;X=c[g>>2]|0;i=d;return X|0}}while(0);return 0}function lf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=of(1,c[d>>2]|0)|0;i=b;return a|0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;d=i;i=i+128|0;if((i|0)>=(j|0))$(128);e=d+88|0;f=d+80|0;g=d+72|0;h=d+64|0;k=d+48|0;l=d+24|0;m=d+16|0;n=d+8|0;o=d;p=d+116|0;q=d+112|0;r=d+108|0;s=d+104|0;t=d+100|0;u=d+96|0;c[p>>2]=a;c[q>>2]=b;b=c[p>>2]|0;a=c[q>>2]|0;c[o>>2]=22372;ub[b&63](a,22386,o)|0;o=c[p>>2]|0;a=c[q>>2]|0;c[n>>2]=22412;ub[o&63](a,22399,n)|0;n=c[p>>2]|0;a=c[q>>2]|0;c[m>>2]=22437;ub[n&63](a,22424,m)|0;m=c[p>>2]|0;a=c[q>>2]|0;c[l>>2]=22458;ub[m&63](a,22445,l)|0;ub[c[p>>2]&63](c[q>>2]|0,22472,d+32|0)|0;ub[c[p>>2]&63](c[q>>2]|0,22488,d+40|0)|0;l=c[p>>2]|0;a=c[q>>2]|0;c[k>>2]=sp()|0;ub[l&63](a,22500,k)|0;c[r>>2]=pg()|0;ub[c[p>>2]&63](c[q>>2]|0,22513,d+56|0)|0;c[t>>2]=0;while(1){k=qg(c[t>>2]|0,s)|0;c[u>>2]=k;if(!k)break;if(c[r>>2]&c[s>>2]|0){k=c[p>>2]|0;a=c[q>>2]|0;c[h>>2]=c[u>>2];ub[k&63](a,22522,h)|0}c[t>>2]=(c[t>>2]|0)+1}ub[c[p>>2]&63](c[q>>2]|0,22526,g)|0;g=c[p>>2]|0;h=c[q>>2]|0;s=(Wg()|0)!=0;r=(ah()|0)!=0;c[f>>2]=s?121:110;c[f+4>>2]=r?121:110;ub[g&63](h,22528,f)|0;c[t>>2]=_m(0)|0;switch(c[t>>2]|0){case 1:{c[u>>2]=22546;v=c[p>>2]|0;w=c[q>>2]|0;x=c[u>>2]|0;y=c[t>>2]|0;c[e>>2]=x;z=e+4|0;c[z>>2]=y;ub[v&63](w,22580,e)|0;i=d;return}case 2:{c[u>>2]=22555;v=c[p>>2]|0;w=c[q>>2]|0;x=c[u>>2]|0;y=c[t>>2]|0;c[e>>2]=x;z=e+4|0;c[z>>2]=y;ub[v&63](w,22580,e)|0;i=d;return}case 3:{c[u>>2]=22560;v=c[p>>2]|0;w=c[q>>2]|0;x=c[u>>2]|0;y=c[t>>2]|0;c[e>>2]=x;z=e+4|0;c[z>>2]=y;ub[v&63](w,22580,e)|0;i=d;return}default:Re(22351,321,22567)}}function nf(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=0;switch(c[d>>2]|0){case 30111:{c[e>>2]=Gt(1136)|0;break}case 30112:{c[e>>2]=Ht(1136)|0;break}case 30113:{c[e>>2]=It(1136)|0;break}case 30114:{c[e>>2]=Jt(1136)|0;break}default:c[e>>2]=61}i=b;return c[e>>2]|0}function of(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function pf(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=0;qf(c[d>>2]|0,0,e)|0;i=b;return c[e>>2]|0}function qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=0;do if(c[g>>2]&1|0?!(rf()|0):0)if(c[17705]|0){c[l>>2]=yb[c[17705]&15](c[f>>2]|0)|0;break}else{c[l>>2]=vg(c[f>>2]|0)|0;break}else m=6;while(0);do if((m|0)==6)if(c[17704]|0){c[l>>2]=yb[c[17704]&15](c[f>>2]|0)|0;break}else{c[l>>2]=ug(c[f>>2]|0)|0;break}while(0);if(c[l>>2]|0){c[c[h>>2]>>2]=c[l>>2];n=c[k>>2]|0;i=e;return n|0}if(!(c[(xu()|0)>>2]|0))Ft(12);c[k>>2]=Ct(c[(xu()|0)>>2]|0)|0;n=c[k>>2]|0;i=e;return n|0}function rf(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;do if(c[17701]|0)if(ah()|0){c[17701]=0;c[b>>2]=0;break}else{c[b>>2]=c[17701];break}else c[b>>2]=0;while(0);i=a;return c[b>>2]|0}function sf(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=0;qf(c[d>>2]|0,1,e)|0;i=b;return c[e>>2]|0}function tf(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;do if(!(rf()|0))if(c[17706]|0){c[d>>2]=yb[c[17706]&15](c[e>>2]|0)|0;break}else{c[d>>2]=Sg(c[e>>2]|0)|0;break}else c[d>>2]=0;while(0);i=b;return c[d>>2]|0}function uf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;b=c[g>>2]|0;if(!(c[f>>2]|0)){c[e>>2]=pf(b)|0;k=c[e>>2]|0;i=d;return k|0}if(!b){vf(c[f>>2]|0);c[e>>2]=0;k=c[e>>2]|0;i=d;return k|0}if(c[17707]|0)c[h>>2]=Db[c[17707]&7](c[f>>2]|0,c[g>>2]|0)|0;else c[h>>2]=wg(c[f>>2]|0,c[g>>2]|0)|0;if((c[h>>2]|0)==0?(c[(xu()|0)>>2]|0)==0:0)Ft(12);c[e>>2]=c[h>>2];k=c[e>>2]|0;i=d;return k|0}function vf(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}c[e>>2]=c[(xu()|0)>>2];if(c[17708]|0)wb[c[17708]&15](c[d>>2]|0);else yg(c[d>>2]|0);if(!(c[e>>2]|0)){i=b;return}Ft(c[e>>2]|0);i=b;return}function wf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=S(c[f>>2]|0,c[g>>2]|0)|0;if(c[g>>2]|0?(((c[h>>2]|0)>>>0)/((c[g>>2]|0)>>>0)|0|0)!=(c[f>>2]|0):0){Ft(12);c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}c[k>>2]=pf(c[h>>2]|0)|0;if(c[k>>2]|0)Sw(c[k>>2]|0,0,c[h>>2]|0)|0;c[e>>2]=c[k>>2];l=c[e>>2]|0;i=d;return l|0}function xf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=S(c[f>>2]|0,c[g>>2]|0)|0;if(c[g>>2]|0?(((c[h>>2]|0)>>>0)/((c[g>>2]|0)>>>0)|0|0)!=(c[f>>2]|0):0){Ft(12);c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}c[k>>2]=sf(c[h>>2]|0)|0;if(c[k>>2]|0)Sw(c[k>>2]|0,0,c[h>>2]|0)|0;c[e>>2]=c[k>>2];l=c[e>>2]|0;i=d;return l|0}function yf(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=0;c[f>>2]=0;c[f>>2]=hv(c[d>>2]|0)|0;a=(tf(c[d>>2]|0)|0)!=0;g=(c[f>>2]|0)+1|0;if(a)c[e>>2]=sf(g)|0;else c[e>>2]=pf(g)|0;if(!(c[e>>2]|0)){h=c[e>>2]|0;i=b;return h|0}tv(c[e>>2]|0,c[d>>2]|0)|0;h=c[e>>2]|0;i=b;return h|0}function zf(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;while(1){a=pf(c[d>>2]|0)|0;c[e>>2]=a;if(!((a|0)!=0^1)){f=6;break}a=(Wg()|0)==0;if(!(a&(c[17709]|0)!=0)){f=5;break}if(!(ub[c[17709]&63](c[17710]|0,c[d>>2]|0,0)|0)){f=5;break}}if((f|0)==5)Le(Ct(c[(xu()|0)>>2]|0)|0,0);else if((f|0)==6){i=b;return c[e>>2]|0}return 0}function Af(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;while(1){b=uf(c[e>>2]|0,c[f>>2]|0)|0;c[g>>2]=b;if(!((b|0)!=0^1)){h=6;break}b=(Wg()|0)==0;if(!(b&(c[17709]|0)!=0)){h=5;break}b=c[17709]|0;a=c[17710]|0;k=c[f>>2]|0;l=(tf(c[e>>2]|0)|0)!=0;if(!(ub[b&63](a,k,l?3:2)|0)){h=5;break}}if((h|0)==5)Le(Ct(c[(xu()|0)>>2]|0)|0,0);else if((h|0)==6){i=d;return c[g>>2]|0}return 0}function Bf(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;while(1){a=sf(c[d>>2]|0)|0;c[e>>2]=a;if(!((a|0)!=0^1)){f=6;break}a=(Wg()|0)==0;if(!(a&(c[17709]|0)!=0)){f=5;break}if(!(ub[c[17709]&63](c[17710]|0,c[d>>2]|0,1)|0)){f=5;break}}if((f|0)==5){d=Ct(c[(xu()|0)>>2]|0)|0;Le(d,Je(22597)|0)}else if((f|0)==6){i=b;return c[e>>2]|0}return 0}function Cf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=S(c[e>>2]|0,c[f>>2]|0)|0;if(c[f>>2]|0?(((c[g>>2]|0)>>>0)/((c[f>>2]|0)>>>0)|0|0)!=(c[e>>2]|0):0){Ft(12);Le(Ct(c[(xu()|0)>>2]|0)|0,0)}c[h>>2]=zf(c[g>>2]|0)|0;Sw(c[h>>2]|0,0,c[g>>2]|0)|0;i=d;return c[h>>2]|0}function Df(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=S(c[e>>2]|0,c[f>>2]|0)|0;if(c[f>>2]|0?(((c[g>>2]|0)>>>0)/((c[f>>2]|0)>>>0)|0|0)!=(c[e>>2]|0):0){Ft(12);Le(Ct(c[(xu()|0)>>2]|0)|0,0)}c[h>>2]=Bf(c[g>>2]|0)|0;Sw(c[h>>2]|0,0,c[g>>2]|0)|0;i=d;return c[h>>2]|0}function Ef(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[d>>2]=a;do{a=yf(c[d>>2]|0)|0;c[e>>2]=a;if(!((a|0)!=0^1)){h=8;break}c[f>>2]=hv(c[d>>2]|0)|0;c[g>>2]=((tf(c[d>>2]|0)|0)!=0^1^1)&1;a=(Wg()|0)==0;if(!(a&(c[17709]|0)!=0))break}while((ub[c[17709]&63](c[17710]|0,c[f>>2]|0,c[g>>2]|0)|0)!=0);if((h|0)==8){i=b;return c[e>>2]|0}e=Ct(c[(xu()|0)>>2]|0)|0;if(!(c[g>>2]|0)){k=0;Le(e,k)}k=Je(22597)|0;Le(e,k);return 0}function Ff(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;if(Wg()|0)c[d>>2]=0;else c[d>>2]=c[17702]&c[e>>2];i=b;return c[d>>2]|0}function Gf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;xj(c[e>>2]|0,c[f>>2]|0);Vm(c[e>>2]|0,c[f>>2]|0);i=d;return}function Hf(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g;k=g+32|0;l=g+28|0;m=g+24|0;n=g+20|0;o=g+16|0;p=g+12|0;q=g+8|0;r=g+4|0;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;if(!(c[l>>2]|0)){c[k>>2]=45;s=c[k>>2]|0;i=g;return s|0}c[c[l>>2]>>2]=0;if(!((((c[o>>2]|0)<0|(c[o>>2]|0)>1)^1)&(c[m>>2]|0)!=0)){c[k>>2]=45;s=c[k>>2]|0;i=g;return s|0}if((c[n>>2]|0)!=0|(c[o>>2]|0)!=0){if((c[n>>2]|0)==0&(c[o>>2]|0)!=0)c[n>>2]=hv(c[m>>2]|0)|0}else{c[n>>2]=If(c[m>>2]|0,0,0,q)|0;if(!(c[n>>2]|0)){c[k>>2]=c[q>>2];s=c[k>>2]|0;i=g;return s|0}}c[q>>2]=Jf(r,0,c[m>>2]|0,c[n>>2]|0,0,0,h)|0;if(c[q>>2]|0){c[k>>2]=c[q>>2];s=c[k>>2]|0;i=g;return s|0}c[c[l>>2]>>2]=c[r>>2];if(c[p>>2]|0)wb[c[p>>2]&15](c[m>>2]|0);c[k>>2]=0;s=c[k>>2]|0;i=g;return s|0}function If(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+44|0;k=g+40|0;l=g+36|0;m=g+32|0;n=g+28|0;o=g+24|0;p=g+20|0;q=g+16|0;r=g+4|0;s=g;c[k>>2]=a;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[p>>2]=0;c[q>>2]=0;c[r>>2]=0;c[s>>2]=0;if(!(c[m>>2]|0))c[m>>2]=g+12;if(!(c[n>>2]|0))c[n>>2]=g+8;c[c[n>>2]>>2]=0;c[c[m>>2]>>2]=0;if(!(c[k>>2]|0)){c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}if((d[c[k>>2]>>0]|0|0)!=40){c[c[n>>2]>>2]=204;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}c[o>>2]=c[k>>2];a:while(1){if(c[l>>2]|0?(c[r>>2]|0)>>>0>=(c[l>>2]|0)>>>0:0){u=12;break}k=d[c[o>>2]>>0]|0;do if(c[q>>2]|0)if((k|0)==58){if(c[l>>2]|0?((c[r>>2]|0)+(c[q>>2]|0)|0)>>>0>=(c[l>>2]|0)>>>0:0){u=17;break a}c[r>>2]=(c[r>>2]|0)+(c[q>>2]|0);c[o>>2]=(c[o>>2]|0)+(c[q>>2]|0);c[q>>2]=0;break}else{if((d[c[o>>2]>>0]|0|0)<48){u=22;break a}if((d[c[o>>2]>>0]|0|0)>57){u=22;break a}c[q>>2]=((c[q>>2]|0)*10|0)+((d[c[o>>2]>>0]|0)-48);break}else{if((k|0)==40){if(c[p>>2]|0){u=25;break a}c[s>>2]=(c[s>>2]|0)+1;break}if((d[c[o>>2]>>0]|0|0)==41){if(!(c[s>>2]|0)){u=29;break a}if(c[p>>2]|0){u=31;break a}f=(c[s>>2]|0)+-1|0;c[s>>2]=f;if(f|0)break;else{u=33;break a}}if((d[c[o>>2]>>0]|0|0)==91){if(c[p>>2]|0){u=36;break a}c[p>>2]=c[o>>2];break}if((d[c[o>>2]>>0]|0|0)==93){if(!(c[p>>2]|0)){u=40;break a}c[p>>2]=0;break}if((d[c[o>>2]>>0]|0|0)<48){u=47;break a}if((d[c[o>>2]>>0]|0|0)>57){u=47;break a}if((d[c[o>>2]>>0]|0|0)==48){u=45;break a}c[q>>2]=(d[c[o>>2]>>0]|0)-48}while(0);c[o>>2]=(c[o>>2]|0)+1;c[r>>2]=(c[r>>2]|0)+1}switch(u|0){case 12:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=202;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 17:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=202;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 22:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=201;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 25:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=209;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 29:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=203;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 31:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=209;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 33:{u=(c[r>>2]|0)+1|0;c[r>>2]=u;c[h>>2]=u;t=c[h>>2]|0;i=g;return t|0}case 36:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=208;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 40:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=209;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 45:{c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=207;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}case 47:{if((d[c[o>>2]>>0]|0|0)!=38?(d[c[o>>2]>>0]|0|0)!=92:0){c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=205;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}c[c[m>>2]>>2]=c[r>>2];c[c[n>>2]>>2]=210;c[h>>2]=0;t=c[h>>2]|0;i=g;return t|0}}return 0}function Jf(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;k=i;i=i+48|0;if((i|0)>=(j|0))$(48);l=k+40|0;m=k+36|0;n=k+32|0;o=k+28|0;p=k+24|0;q=k+20|0;r=k+16|0;s=k;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[s>>2]=h;c[r>>2]=Kf(c[l>>2]|0,c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|0);c[P>>2]=Lf(M,c[L>>2]|0)|0;if(c[P>>2]|0){$a=18;break}m=M+8|0;l=c[m>>2]|0;c[m>>2]=l+1;a[l>>0]=1;b[Q>>1]=c[L>>2];l=c[M+8>>2]|0;a[l>>0]=a[Q>>0]|0;a[l+1>>0]=a[Q+1>>0]|0;l=M+8|0;c[l>>2]=(c[l>>2]|0)+2;Yw(c[M+8>>2]|0,c[E>>2]|0,c[L>>2]|0)|0;l=M+8|0;c[l>>2]=(c[l>>2]|0)+(c[L>>2]|0);c[E>>2]=0;$a=20}}else $a=20;c:do if(($a|0)==20){$a=0;if(c[C>>2]|0){l=a[c[z>>2]>>0]|0;if(!(c[K>>2]|0)){if((l|0)==92){c[K>>2]=1;break}if((a[c[z>>2]>>0]|0)!=34)break;c[C>>2]=(c[C>>2]|0)+1;c[T>>2]=Lf(M,(c[z>>2]|0)-(c[C>>2]|0)|0)|0;if(c[T>>2]|0){$a=59;break b}m=M+8|0;k=c[m>>2]|0;c[m>>2]=k+1;a[k>>0]=1;c[R>>2]=c[M+8>>2];b[U>>1]=0;k=c[M+8>>2]|0;a[k>>0]=a[U>>0]|0;a[k+1>>0]=a[U+1>>0]|0;k=M+8|0;c[k>>2]=(c[k>>2]|0)+2;c[S>>2]=Mf(c[C>>2]|0,(c[z>>2]|0)-(c[C>>2]|0)|0,c[M+8>>2]|0)|0;k=M+8|0;c[k>>2]=(c[k>>2]|0)+(c[S>>2]|0);b[V>>1]=c[S>>2];k=c[R>>2]|0;a[k>>0]=a[V>>0]|0;a[k+1>>0]=a[V+1>>0]|0;c[R>>2]=(c[R>>2]|0)+2;c[C>>2]=0;break}switch(l|0){case 92:case 39:case 34:case 114:case 102:case 110:case 118:case 116:case 98:{c[K>>2]=0;break c;break}case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{if((c[A>>2]|0)>>>0<=2){$a=29;break b}if((a[(c[z>>2]|0)+1>>0]|0)<48){$a=29;break b}if((a[(c[z>>2]|0)+1>>0]|0)>55){$a=29;break b}if((a[(c[z>>2]|0)+2>>0]|0)<48){$a=29;break b}if((a[(c[z>>2]|0)+2>>0]|0)>55){$a=29;break b}c[z>>2]=(c[z>>2]|0)+2;c[A>>2]=(c[A>>2]|0)-2;c[K>>2]=0;break c;break}case 120:{if((c[A>>2]|0)>>>0<=2){$a=44;break b}if(!((a[(c[z>>2]|0)+1>>0]|0)>=48?(a[(c[z>>2]|0)+1>>0]|0)<=57:0))$a=34;do if(($a|0)==34){$a=0;if((a[(c[z>>2]|0)+1>>0]|0)>=65?(a[(c[z>>2]|0)+1>>0]|0)<=70:0)break;if((a[(c[z>>2]|0)+1>>0]|0)<97){$a=44;break b}if((a[(c[z>>2]|0)+1>>0]|0)>102){$a=44;break b}}while(0);if(!((a[(c[z>>2]|0)+2>>0]|0)>=48?(a[(c[z>>2]|0)+2>>0]|0)<=57:0))$a=40;do if(($a|0)==40){$a=0;if((a[(c[z>>2]|0)+2>>0]|0)>=65?(a[(c[z>>2]|0)+2>>0]|0)<=70:0)break;if((a[(c[z>>2]|0)+2>>0]|0)<97){$a=44;break b}if((a[(c[z>>2]|0)+2>>0]|0)>102){$a=44;break b}}while(0);c[z>>2]=(c[z>>2]|0)+2;c[A>>2]=(c[A>>2]|0)-2;c[K>>2]=0;break c;break}case 13:{if(c[A>>2]|0?(a[(c[z>>2]|0)+1>>0]|0)==10:0){c[z>>2]=(c[z>>2]|0)+1;c[A>>2]=(c[A>>2]|0)+-1}c[K>>2]=0;break c;break}case 10:{if(c[A>>2]|0?(a[(c[z>>2]|0)+1>>0]|0)==13:0){c[z>>2]=(c[z>>2]|0)+1;c[A>>2]=(c[A>>2]|0)+-1}c[K>>2]=0;break c;break}default:{$a=54;break b}}}if(c[F>>2]|0){if(Ru(a[c[z>>2]>>0]|0)|0){c[J>>2]=(c[J>>2]|0)+1;break}if((a[c[z>>2]>>0]|0)!=35)if(Nf(c[z>>2]|0)|0)break;else{$a=82;break b}if(c[J>>2]&1|0){$a=66;break b}c[L>>2]=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8>>2]|0,(c[z>>2]|0)+1|0,c[L>>2]|0)|0;m=M+8|0;c[m>>2]=(c[m>>2]|0)+(c[L>>2]|0);c[A>>2]=(c[A>>2]|0)-(c[L>>2]|0);c[z>>2]=(c[z>>2]|0)+(c[L>>2]|0);break}if((a[c[z>>2]>>0]|0)==34){c[B>>2]=0;c[C>>2]=c[z>>2];c[K>>2]=0;break}if((a[c[z>>2]>>0]|0)==35){c[B>>2]=0;c[F>>2]=c[z>>2];c[J>>2]=0;break}if((a[c[z>>2]>>0]|0)!=124){$a=101;break b}c[B>>2]=0;c[G>>2]=c[z>>2];break}m=a[c[z>>2]>>0]|0;if(!(c[I>>2]|0)){if((m|0)==40){if(c[H>>2]|0){$a=179;break b}c[Sa>>2]=Lf(M,0)|0;if(c[Sa>>2]|0){$a=181;break b}k=M+8|0;l=c[k>>2]|0;c[k>>2]=l+1;a[l>>0]=3;c[O>>2]=(c[O>>2]|0)+1;break}if((a[c[z>>2]>>0]|0)==41){if(c[H>>2]|0){$a=185;break b}c[Ta>>2]=Lf(M,0)|0;if(c[Ta>>2]|0){$a=187;break b}l=M+8|0;k=c[l>>2]|0;c[l>>2]=k+1;a[k>>0]=4;c[O>>2]=(c[O>>2]|0)+-1;break}k=c[z>>2]|0;if((a[c[z>>2]>>0]|0)==34){c[C>>2]=k;c[K>>2]=0;break}l=c[z>>2]|0;if((a[k>>0]|0)==35){c[F>>2]=l;c[J>>2]=0;break}k=c[z>>2]|0;if((a[l>>0]|0)==124){c[G>>2]=k;break}if((a[k>>0]|0)==91){ab=c[z>>2]|0;if(c[H>>2]|0){$a=197;break b}c[H>>2]=ab;break}if((a[c[z>>2]>>0]|0)==93){if(!(c[H>>2]|0)){$a=201;break b}c[H>>2]=0;break}do if((a[c[z>>2]>>0]|0)>=48){if((a[c[z>>2]>>0]|0)>57)break;bb=c[z>>2]|0;if((a[c[z>>2]>>0]|0)==48){$a=206;break b}c[B>>2]=bb;break c}while(0);k=(Vv(22633,a[c[z>>2]>>0]|0)|0)!=0;l=c[z>>2]|0;if(k){c[E>>2]=l;break}if(Nf(l)|0)break;cb=c[z>>2]|0;if((a[c[z>>2]>>0]|0)==123){$a=212;break b}if(Vv(22732,a[cb>>0]|0)|0){$a=214;break b}if(!(c[v>>2]|0)){$a=218;break b}if((a[c[z>>2]>>0]|0)!=37){$a=218;break b}c[I>>2]=c[z>>2];break}do if((m|0)!=109?(a[c[z>>2]>>0]|0)!=77:0){if((a[c[z>>2]>>0]|0)==115){if(c[w>>2]|0){l=c[N>>2]|0;c[N>>2]=l+1;c[oa>>2]=c[c[(c[w>>2]|0)+(l<<2)>>2]>>2]}else{l=c[x>>2]|0;k=(c[l>>2]|0)+(4-1)&~(4-1);h=c[k>>2]|0;c[l>>2]=k+4;c[qa>>2]=h;c[oa>>2]=c[qa>>2]}c[pa>>2]=hv(c[oa>>2]|0)|0;c[ra>>2]=Lf(M,c[pa>>2]|0)|0;if(c[ra>>2]|0){$a=135;break b}h=M+8|0;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=1;b[sa>>1]=c[pa>>2];k=c[M+8>>2]|0;a[k>>0]=a[sa>>0]|0;a[k+1>>0]=a[sa+1>>0]|0;k=M+8|0;c[k>>2]=(c[k>>2]|0)+2;Yw(c[M+8>>2]|0,c[oa>>2]|0,c[pa>>2]|0)|0;k=M+8|0;c[k>>2]=(c[k>>2]|0)+(c[pa>>2]|0);break}if((a[c[z>>2]>>0]|0)==98){if(c[w>>2]|0){k=c[N>>2]|0;c[N>>2]=k+1;c[ua>>2]=c[c[(c[w>>2]|0)+(k<<2)>>2]>>2]}else{k=c[x>>2]|0;h=(c[k>>2]|0)+(4-1)&~(4-1);l=c[h>>2]|0;c[k>>2]=h+4;c[va>>2]=l;c[ua>>2]=c[va>>2]}if(c[w>>2]|0){l=c[N>>2]|0;c[N>>2]=l+1;c[ta>>2]=c[c[(c[w>>2]|0)+(l<<2)>>2]>>2]}else{l=c[x>>2]|0;h=(c[l>>2]|0)+(4-1)&~(4-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2]|0)|0)){if(!(Vp(c[aa>>2]|0,1)|0))break;c[la>>2]=sf(1+(c[M+4>>2]|0)-1|0)|0;if(!(c[la>>2]|0)){$a=125;break b}c[ma>>2]=c[la>>2];Yw(c[ma>>2]|0,c[M>>2]|0,(c[M+8>>2]|0)-(c[M>>2]|0)|0)|0;c[M+8>>2]=(c[ma>>2]|0)+((c[M+8>>2]|0)-(c[M>>2]|0));vf(c[M>>2]|0);c[M>>2]=c[la>>2]}while(0);k=M+8|0;h=c[k>>2]|0;c[k>>2]=h+1;a[h>>0]=1;b[na>>1]=c[ba>>2];h=c[M+8>>2]|0;a[h>>0]=a[na>>0]|0;a[h+1>>0]=a[na+1>>0]|0;h=M+8|0;c[h>>2]=(c[h>>2]|0)+2;if(bp(c[ca>>2]|0,c[M+8>>2]|0,c[ba>>2]|0,ba,c[aa>>2]|0)|0){$a=128;break b}h=M+8|0;c[h>>2]=(c[h>>2]|0)+(c[ba>>2]|0)}while(0);c[I>>2]=0}while(0);c[z>>2]=(c[z>>2]|0)+1;c[A>>2]=(c[A>>2]|0)+-1}switch($a|0){case 18:{c[y>>2]=c[P>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 29:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=206;break a;break}case 44:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=206;break a;break}case 54:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=206;break a;break}case 59:{c[y>>2]=c[T>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 66:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=212;break a;break}case 68:{c[y>>2]=c[W>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 82:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=211;break a;break}case 91:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=202;break a;break}case 93:{c[y>>2]=c[Z>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 101:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=201;break a;break}case 111:{c[y>>2]=c[ga>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 115:{c[y>>2]=Ct(c[(xu()|0)>>2]|0)|0;break a;break}case 119:{Re(22704,1433,22711);break}case 121:{c[y>>2]=c[ka>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 125:{c[y>>2]=Ct(c[(xu()|0)>>2]|0)|0;break a;break}case 128:{Re(22704,1460,22711);break}case 135:{c[y>>2]=c[ra>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 145:{c[y>>2]=c[xa>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 150:{c[y>>2]=Ct(c[(xu()|0)>>2]|0)|0;break a;break}case 158:{c[y>>2]=c[Fa>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 165:{c[y>>2]=c[La>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 173:{c[y>>2]=c[Ra>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 175:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=201;break a;break}case 179:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=209;break a;break}case 181:{c[y>>2]=c[Sa>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 185:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=209;break a;break}case 187:{c[y>>2]=c[Ta>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a;break}case 197:{c[c[s>>2]>>2]=ab-(c[t>>2]|0);c[y>>2]=208;break a;break}case 201:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=209;break a;break}case 206:{c[c[s>>2]>>2]=bb-(c[t>>2]|0);c[y>>2]=207;break a;break}case 212:{c[c[s>>2]>>2]=cb-(c[t>>2]|0);c[y>>2]=210;break a;break}case 214:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=210;break a;break}case 218:{c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);c[y>>2]=205;break a;break}case 220:{c[Ua>>2]=Lf(M,0)|0;if(c[Ua>>2]|0){c[y>>2]=c[Ua>>2];c[c[s>>2]>>2]=(c[z>>2]|0)-(c[t>>2]|0);break a}h=M+8|0;k=c[h>>2]|0;c[h>>2]=k+1;a[k>>0]=0;if((c[O>>2]|0)==0|(c[y>>2]|0)!=0)break a;c[y>>2]=203;break a;break}}}else{c[y>>2]=Ct(c[(xu()|0)>>2]|0)|0;c[c[s>>2]>>2]=0}while(0);s=c[M>>2]|0;if(c[y>>2]|0){if(s|0){d:do if(tf(c[M>>2]|0)|0){c[Va>>2]=c[M>>2];c[Wa>>2]=1+(c[M+4>>2]|0)-1;a[Xa>>0]=0;O=Ya;c[O>>2]=d[Xa>>0];c[O+4>>2]=0;while(1){if(!(c[Va>>2]&7|0?(c[Wa>>2]|0)!=0:0))break;a[c[Va>>2]>>0]=a[Xa>>0]|0;c[Va>>2]=(c[Va>>2]|0)+1;c[Wa>>2]=(c[Wa>>2]|0)+-1}if((c[Wa>>2]|0)>>>0>=8){O=Ya;t=ex(c[O>>2]|0,c[O+4>>2]|0,16843009,16843009)|0;O=Ya;c[O>>2]=t;c[O+4>>2]=D;do{c[Za>>2]=c[Va>>2];O=Ya;t=c[O+4>>2]|0;z=c[Za>>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;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+24|0;k=g+20|0;l=g+16|0;m=g+12|0;n=g+8|0;o=g+4|0;p=g;c[h>>2]=b;c[k>>2]=e;c[l>>2]=f;c[m>>2]=0;c[n>>2]=c[h>>2];c[o>>2]=c[l>>2];c[p>>2]=c[k>>2];while(1){if(!(c[p>>2]|0))break;k=d[c[n>>2]>>0]|0;do if(!(c[m>>2]|0))if((k|0)==92){c[m>>2]=1;break}else{h=a[c[n>>2]>>0]|0;f=c[o>>2]|0;c[o>>2]=f+1;a[f>>0]=h;break}else{a:do switch(k|0){case 98:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=8;break}case 116:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=9;break}case 118:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=11;break}case 110:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=10;break}case 102:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=12;break}case 114:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=13;break}case 34:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=34;break}case 39:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=39;break}case 92:{h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=92;break}case 13:{if((c[p>>2]|0)>>>0>1?(d[(c[n>>2]|0)+1>>0]|0|0)==10:0){c[n>>2]=(c[n>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+-1}break}case 10:{if((c[p>>2]|0)>>>0>1?(d[(c[n>>2]|0)+1>>0]|0|0)==13:0){c[n>>2]=(c[n>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+-1}break}case 120:{if((c[p>>2]|0)>>>0>2){if(!((d[(c[n>>2]|0)+1>>0]|0|0)>=48?(d[(c[n>>2]|0)+1>>0]|0|0)<=57:0))q=23;do if((q|0)==23){q=0;if((d[(c[n>>2]|0)+1>>0]|0|0)>=65?(d[(c[n>>2]|0)+1>>0]|0|0)<=70:0)break;if((d[(c[n>>2]|0)+1>>0]|0|0)<97)break a;if((d[(c[n>>2]|0)+1>>0]|0|0)>102)break a}while(0);if(!((d[(c[n>>2]|0)+2>>0]|0|0)>=48?(d[(c[n>>2]|0)+2>>0]|0|0)<=57:0))q=29;do if((q|0)==29){q=0;if((d[(c[n>>2]|0)+2>>0]|0|0)>=65?(d[(c[n>>2]|0)+2>>0]|0|0)<=70:0)break;if((d[(c[n>>2]|0)+2>>0]|0|0)<97)break a;if((d[(c[n>>2]|0)+2>>0]|0|0)>102)break a}while(0);c[n>>2]=(c[n>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+-1;h=d[c[n>>2]>>0]|0;if((d[c[n>>2]>>0]|0|0)<=57)r=h-48|0;else{f=d[c[n>>2]>>0]|0;r=((h|0)<=70?f-65|0:f-97|0)+10|0}f=d[(c[n>>2]|0)+1>>0]|0;if((d[(c[n>>2]|0)+1>>0]|0|0)<=57)s=f-48|0;else{h=d[(c[n>>2]|0)+1>>0]|0;s=((f|0)<=70?h-65|0:h-97|0)+10|0}h=c[o>>2]|0;c[o>>2]=h+1;a[h>>0]=(r<<4)+s;c[n>>2]=(c[n>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+-1}break}default:if(((((((c[p>>2]|0)>>>0>2?(d[c[n>>2]>>0]|0|0)>=48:0)?(d[c[n>>2]>>0]|0|0)<=55:0)?(d[(c[n>>2]|0)+1>>0]|0|0)>=48:0)?(d[(c[n>>2]|0)+1>>0]|0|0)<=55:0)?(d[(c[n>>2]|0)+2>>0]|0|0)>=48:0)?(d[(c[n>>2]|0)+2>>0]|0|0)<=55:0){h=((d[c[n>>2]>>0]|0)-48<<6)+((d[(c[n>>2]|0)+1>>0]|0)-48<<3)+((d[(c[n>>2]|0)+2>>0]|0)-48)&255;f=c[o>>2]|0;c[o>>2]=f+1;a[f>>0]=h;c[n>>2]=(c[n>>2]|0)+2;c[p>>2]=(c[p>>2]|0)-2}}while(0);c[m>>2]=0}while(0);c[p>>2]=(c[p>>2]|0)+-1;c[n>>2]=(c[n>>2]|0)+1}i=g;return (c[o>>2]|0)-(c[l>>2]|0)|0}function Nf(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[f>>2]=b;switch(a[c[f>>2]>>0]|0){case 10:case 13:case 12:case 11:case 9:case 32:{c[e>>2]=1;break}default:c[e>>2]=0}i=d;return c[e>>2]|0}function Of(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;a=c[e>>2]|0;do if(!((c[e>>2]|0)>=48&(c[e>>2]|0)<=57)){f=c[e>>2]|0;if((a|0)>=65&(c[e>>2]|0)<=70){c[d>>2]=10+f-65;break}if((f|0)>=97&(c[e>>2]|0)<=102){c[d>>2]=10+(c[e>>2]|0)-97;break}else{c[d>>2]=0;break}}else c[d>>2]=a-48;while(0);i=b;return c[d>>2]|0}function Pf(b,f){b=b|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+20|0;k=g+16|0;l=g+12|0;m=g+8|0;n=g+24|0;o=g+4|0;p=g;c[k>>2]=b;c[l>>2]=f;c[p>>2]=0;c[c[l>>2]>>2]=0;a:do if(c[k>>2]|0){c[m>>2]=c[k>>2];while(1){f=d[c[m>>2]>>0]|0;c[o>>2]=f;if(!f)break a;c[m>>2]=(c[m>>2]|0)+1;if((c[o>>2]|0)==1){f=c[m>>2]|0;a[n>>0]=a[f>>0]|0;a[n+1>>0]=a[f+1>>0]|0;c[m>>2]=(c[m>>2]|0)+(2+(e[n>>1]|0));continue}if((c[o>>2]|0)!=3){if((c[o>>2]|0)!=4)continue;c[p>>2]=(c[p>>2]|0)+-1;if(c[p>>2]|0)continue;else break}if(!(c[p>>2]|0))c[c[l>>2]>>2]=(c[m>>2]|0)+-1-(c[k>>2]|0);c[p>>2]=(c[p>>2]|0)+1}c[h>>2]=(c[m>>2]|0)-(c[k>>2]|0);q=c[h>>2]|0;i=g;return q|0}while(0);c[h>>2]=0;q=c[h>>2]|0;i=g;return q|0}function Qf(a){a=a|0;var b=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b+8|0;f=b+4|0;g=b;c[f>>2]=a;do if(c[f>>2]|0){c[g>>2]=c[f>>2];if(!(d[c[g>>2]>>0]|0)){Rf(c[f>>2]|0);c[e>>2]=0;break}if((d[c[g>>2]>>0]|0|0)==3?(d[(c[g>>2]|0)+1>>0]|0|0)==4:0){Rf(c[f>>2]|0);c[e>>2]=0;break}c[e>>2]=c[f>>2]}else c[e>>2]=0;while(0);i=b;return c[e>>2]|0}function Rf(b){b=b|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+28|0;h=f+24|0;k=f+20|0;l=f+32|0;m=f+16|0;n=f+12|0;o=f+34|0;p=f;q=f+8|0;c[g>>2]=b;if(!(c[g>>2]|0)){i=f;return}a:do if(tf(c[g>>2]|0)|0){c[h>>2]=c[g>>2];while(1){b=d[c[h>>2]>>0]|0;c[k>>2]=b;if(!b)break;c[h>>2]=(c[h>>2]|0)+1;if((c[k>>2]|0)!=1)continue;b=c[h>>2]|0;a[l>>0]=a[b>>0]|0;a[l+1>>0]=a[b+1>>0]|0;c[h>>2]=(c[h>>2]|0)+2;c[h>>2]=(c[h>>2]|0)+(e[l>>1]|0)}c[m>>2]=c[g>>2];c[n>>2]=(c[h>>2]|0)-(c[g>>2]|0);a[o>>0]=0;b=p;c[b>>2]=d[o>>0];c[b+4>>2]=0;while(1){if(!(c[m>>2]&7|0?(c[n>>2]|0)!=0:0))break;a[c[m>>2]>>0]=a[o>>0]|0;c[m>>2]=(c[m>>2]|0)+1;c[n>>2]=(c[n>>2]|0)+-1}if((c[n>>2]|0)>>>0>=8){b=p;r=ex(c[b>>2]|0,c[b+4>>2]|0,16843009,16843009)|0;b=p;c[b>>2]=r;c[b+4>>2]=D;do{c[q>>2]=c[m>>2];b=p;r=c[b+4>>2]|0;s=c[q>>2]|0;c[s>>2]=c[b>>2];c[s+4>>2]=r;c[n>>2]=(c[n>>2]|0)-8;c[m>>2]=(c[m>>2]|0)+8}while((c[n>>2]|0)>>>0>=8)}while(1){if(!(c[n>>2]|0))break a;a[c[m>>2]>>0]=a[o>>0]|0;c[m>>2]=(c[m>>2]|0)+1;c[n>>2]=(c[n>>2]|0)+-1}}while(0);vf(c[g>>2]|0);i=f;return}function Sf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;e=Hf(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,0)|0;i=f;return e|0}function Tf(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;k=i;i=i+48|0;if((i|0)>=(j|0))$(48);l=k+32|0;m=k+28|0;n=k+24|0;o=k+20|0;p=k+16|0;q=k+36|0;r=k+12|0;s=k+8|0;t=k+4|0;u=k;c[m>>2]=f;c[n>>2]=g;c[o>>2]=h;if(!(c[m>>2]|0)){c[l>>2]=0;v=c[l>>2]|0;i=k;return v|0}if(!(c[o>>2]|0))c[o>>2]=hv(c[n>>2]|0)|0;c[p>>2]=c[m>>2];while(1){if(!(d[c[p>>2]>>0]|0)){w=29;break}if((d[c[p>>2]>>0]|0|0)==3?(d[(c[p>>2]|0)+1>>0]|0|0)==1:0){c[r>>2]=c[p>>2];c[p>>2]=(c[p>>2]|0)+2;m=c[p>>2]|0;a[q>>0]=a[m>>0]|0;a[q+1>>0]=a[m+1>>0]|0;c[p>>2]=(c[p>>2]|0)+2;if((e[q>>1]|0|0)==(c[o>>2]|0)?(Jv(c[p>>2]|0,c[n>>2]|0,c[o>>2]|0)|0)==0:0)break;c[p>>2]=(c[p>>2]|0)+(e[q>>1]|0);continue}if((d[c[p>>2]>>0]|0|0)==1){m=(c[p>>2]|0)+1|0;c[p>>2]=m;a[q>>0]=a[m>>0]|0;a[q+1>>0]=a[m+1>>0]|0;c[p>>2]=(c[p>>2]|0)+2;c[p>>2]=(c[p>>2]|0)+(e[q>>1]|0);continue}else{c[p>>2]=(c[p>>2]|0)+1;continue}}if((w|0)==29){c[l>>2]=0;v=c[l>>2]|0;i=k;return v|0}c[u>>2]=1;c[p>>2]=(c[p>>2]|0)+(e[q>>1]|0);a:while(1){x=c[p>>2]|0;if(!(c[u>>2]|0))break;do if((d[x>>0]|0|0)!=1){if((d[c[p>>2]>>0]|0|0)==3){c[u>>2]=(c[u>>2]|0)+1;break}if((d[c[p>>2]>>0]|0|0)!=4)if(!(d[c[p>>2]>>0]|0)){w=20;break a}else break;else{c[u>>2]=(c[u>>2]|0)+-1;break}}else{o=(c[p>>2]|0)+1|0;c[p>>2]=o;a[q>>0]=a[o>>0]|0;a[q+1>>0]=a[o+1>>0]|0;c[p>>2]=(c[p>>2]|0)+(2+(e[q>>1]|0));c[p>>2]=(c[p>>2]|0)+-1}while(0);c[p>>2]=(c[p>>2]|0)+1}if((w|0)==20)Re(22704,481,22735);b[q>>1]=x-(c[r>>2]|0);c[s>>2]=pf(1+(e[q>>1]|0)|0)|0;if(c[s>>2]|0){c[t>>2]=c[s>>2];Yw(c[t>>2]|0,c[r>>2]|0,e[q>>1]|0|0)|0;c[t>>2]=(c[t>>2]|0)+(e[q>>1]|0);q=c[t>>2]|0;c[t>>2]=q+1;a[q>>0]=0;c[l>>2]=Qf(c[s>>2]|0)|0;v=c[l>>2]|0;i=k;return v|0}else{c[l>>2]=0;v=c[l>>2]|0;i=k;return v|0}return 0}function Uf(b){b=b|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+20|0;h=f+16|0;k=f+12|0;l=f+24|0;m=f+8|0;n=f+4|0;o=f;c[h>>2]=b;c[n>>2]=0;c[o>>2]=0;if(!(c[h>>2]|0)){c[g>>2]=0;p=c[g>>2]|0;i=f;return p|0}c[k>>2]=c[h>>2];while(1){h=d[c[k>>2]>>0]|0;c[m>>2]=h;if(!h)break;c[k>>2]=(c[k>>2]|0)+1;if((c[m>>2]|0)==1){h=c[k>>2]|0;a[l>>0]=a[h>>0]|0;a[l+1>>0]=a[h+1>>0]|0;c[k>>2]=(c[k>>2]|0)+(2+(e[l>>1]|0));if((c[o>>2]|0)!=1)continue;c[n>>2]=(c[n>>2]|0)+1;continue}if((c[m>>2]|0)!=3){if((c[m>>2]|0)!=4)continue;c[o>>2]=(c[o>>2]|0)+-1;continue}if((c[o>>2]|0)==1)c[n>>2]=(c[n>>2]|0)+1;c[o>>2]=(c[o>>2]|0)+1}c[g>>2]=c[n>>2];p=c[g>>2]|0;i=f;return p|0}function Vf(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+28|0;l=h+24|0;m=h+20|0;n=h+16|0;o=h+32|0;p=h+12|0;q=h+8|0;r=h+4|0;s=h;c[l>>2]=f;c[m>>2]=g;c[r>>2]=0;if(c[l>>2]|0?(d[c[l>>2]>>0]|0|0)==3:0){c[n>>2]=c[l>>2];while(1){l=(c[m>>2]|0)>0;c[n>>2]=(c[n>>2]|0)+1;t=(d[c[n>>2]>>0]|0|0)==1;if(!l)break;if(t){l=(c[n>>2]|0)+1|0;c[n>>2]=l;a[o>>0]=a[l>>0]|0;a[o+1>>0]=a[l+1>>0]|0;c[n>>2]=(c[n>>2]|0)+(2+(e[o>>1]|0));c[n>>2]=(c[n>>2]|0)+-1;if(c[r>>2]|0)continue;c[m>>2]=(c[m>>2]|0)+-1;continue}if((d[c[n>>2]>>0]|0|0)==3){c[r>>2]=(c[r>>2]|0)+1;continue}if((d[c[n>>2]>>0]|0|0)!=4)if(!(d[c[n>>2]>>0]|0)){u=15;break}else continue;c[r>>2]=(c[r>>2]|0)+-1;if(c[r>>2]|0)continue;c[m>>2]=(c[m>>2]|0)+-1}if((u|0)==15){c[k>>2]=0;v=c[k>>2]|0;i=h;return v|0}do if(t){m=(c[n>>2]|0)+1|0;a[o>>0]=a[m>>0]|0;a[o+1>>0]=a[m+1>>0]|0;c[p>>2]=pf(5+(e[o>>1]|0)+1|0)|0;if(c[p>>2]|0){c[q>>2]=c[p>>2];m=c[q>>2]|0;c[q>>2]=m+1;a[m>>0]=3;Yw(c[q>>2]|0,c[n>>2]|0,3+(e[o>>1]|0)|0)|0;c[q>>2]=(c[q>>2]|0)+(3+(e[o>>1]|0));m=c[q>>2]|0;c[q>>2]=m+1;a[m>>0]=4;a[c[q>>2]>>0]=0;break}c[k>>2]=0;v=c[k>>2]|0;i=h;return v|0}else{if((d[c[n>>2]>>0]|0|0)!=3){c[p>>2]=0;break}c[s>>2]=c[n>>2];c[r>>2]=1;a:do{c[n>>2]=(c[n>>2]|0)+1;do if((d[c[n>>2]>>0]|0|0)!=1){if((d[c[n>>2]>>0]|0|0)==3){c[r>>2]=(c[r>>2]|0)+1;break}if((d[c[n>>2]>>0]|0|0)!=4)if(!(d[c[n>>2]>>0]|0)){u=29;break a}else break;else{c[r>>2]=(c[r>>2]|0)+-1;break}}else{m=(c[n>>2]|0)+1|0;c[n>>2]=m;a[o>>0]=a[m>>0]|0;a[o+1>>0]=a[m+1>>0]|0;c[n>>2]=(c[n>>2]|0)+(2+(e[o>>1]|0));c[n>>2]=(c[n>>2]|0)+-1}while(0)}while((c[r>>2]|0)!=0);if((u|0)==29)Re(22704,673,22757);b[o>>1]=(c[n>>2]|0)+1-(c[s>>2]|0);c[p>>2]=pf(1+(e[o>>1]|0)|0)|0;if(c[p>>2]|0){c[q>>2]=c[p>>2];Yw(c[q>>2]|0,c[s>>2]|0,e[o>>1]|0|0)|0;c[q>>2]=(c[q>>2]|0)+(e[o>>1]|0);m=c[q>>2]|0;c[q>>2]=m+1;a[m>>0]=0;break}c[k>>2]=0;v=c[k>>2]|0;i=h;return v|0}while(0);c[k>>2]=Qf(c[p>>2]|0)|0;v=c[k>>2]|0;i=h;return v|0}c[k>>2]=0;v=c[k>>2]|0;i=h;return v|0}function Wf(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Vf(c[d>>2]|0,0)|0;i=b;return a|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Yf(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function Yf(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+32|0;if((i|0)>=(j|0))$(32);k=h+20|0;l=h+16|0;m=h+12|0;n=h+8|0;o=h+4|0;p=h+24|0;q=h;c[l>>2]=b;c[m>>2]=f;c[n>>2]=g;c[q>>2]=0;c[c[n>>2]>>2]=0;if(!(c[l>>2]|0)){c[k>>2]=0;r=c[k>>2]|0;i=h;return r|0}c[o>>2]=c[l>>2];if((d[c[o>>2]>>0]|0|0)!=3){if(c[m>>2]|0){c[k>>2]=0;r=c[k>>2]|0;i=h;return r|0}}else c[o>>2]=(c[o>>2]|0)+1;a:while(1){s=(d[c[o>>2]>>0]|0|0)==1;if((c[m>>2]|0)<=0)break;do if(s){l=(c[o>>2]|0)+1|0;c[o>>2]=l;a[p>>0]=a[l>>0]|0;a[p+1>>0]=a[l+1>>0]|0;c[o>>2]=(c[o>>2]|0)+(2+(e[p>>1]|0));c[o>>2]=(c[o>>2]|0)+-1;if(!(c[q>>2]|0))c[m>>2]=(c[m>>2]|0)+-1}else{if((d[c[o>>2]>>0]|0|0)==3){c[q>>2]=(c[q>>2]|0)+1;break}if((d[c[o>>2]>>0]|0|0)!=4)if(!(d[c[o>>2]>>0]|0)){t=17;break a}else break;c[q>>2]=(c[q>>2]|0)+-1;if(!(c[q>>2]|0))c[m>>2]=(c[m>>2]|0)+-1}while(0);c[o>>2]=(c[o>>2]|0)+1}if((t|0)==17){c[k>>2]=0;r=c[k>>2]|0;i=h;return r|0}if(s){s=(c[o>>2]|0)+1|0;c[o>>2]=s;a[p>>0]=a[s>>0]|0;a[p+1>>0]=a[s+1>>0]|0;c[c[n>>2]>>2]=e[p>>1];c[k>>2]=(c[o>>2]|0)+2;r=c[k>>2]|0;i=h;return r|0}else{c[k>>2]=0;r=c[k>>2]|0;i=h;return r|0}return 0}function Zf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+24|0;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;m=e+4|0;n=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[c[k>>2]>>2]=0;c[l>>2]=Yf(c[g>>2]|0,c[h>>2]|0,m)|0;if(!((c[l>>2]|0)!=0&(c[m>>2]|0)!=0)){c[f>>2]=0;o=c[f>>2]|0;i=e;return o|0}c[n>>2]=pf(c[m>>2]|0)|0;if(c[n>>2]|0){Yw(c[n>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;c[c[k>>2]>>2]=c[m>>2];c[f>>2]=c[n>>2];o=c[f>>2]|0;i=e;return o|0}else{c[f>>2]=0;o=c[f>>2]|0;i=e;return o|0}return 0}function _f(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;c[g>>2]=b;c[h>>2]=d;c[k>>2]=Yf(c[g>>2]|0,c[h>>2]|0,l)|0;if(!((c[k>>2]|0)==0|(c[l>>2]|0)>>>0<1)?((c[l>>2]|0)+1|0)>>>0>=1:0){c[m>>2]=pf((c[l>>2]|0)+1|0)|0;if(c[m>>2]|0){Yw(c[m>>2]|0,c[k>>2]|0,c[l>>2]|0)|0;a[(c[m>>2]|0)+(c[l>>2]|0)>>0]=0;c[f>>2]=c[m>>2];n=c[f>>2]|0;i=e;return n|0}else{c[f>>2]=0;n=c[f>>2]|0;i=e;return n|0}}c[f>>2]=0;n=c[f>>2]|0;i=e;return n|0}function $f(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+28|0;g=e+24|0;h=e+20|0;k=e+16|0;l=e+12|0;m=e+8|0;n=e+4|0;o=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;do if((c[k>>2]|0)==8){c[n>>2]=Zf(c[g>>2]|0,c[h>>2]|0,l)|0;if(!(c[n>>2]|0)){c[f>>2]=0;p=c[f>>2]|0;i=e;return p|0}if(tf(c[g>>2]|0)|0)q=Sp(0)|0;else q=Rp(0)|0;c[m>>2]=q;if(c[m>>2]|0){Ep(c[m>>2]|0,c[n>>2]|0,c[l>>2]<<3)|0;break}else{vf(c[n>>2]|0);break}}else{if(!(c[k>>2]|0))c[k>>2]=1;c[o>>2]=Yf(c[g>>2]|0,c[h>>2]|0,l)|0;if(!(c[o>>2]|0)){c[f>>2]=0;p=c[f>>2]|0;i=e;return p|0}if(Zo(m,c[k>>2]|0,c[o>>2]|0,c[l>>2]|0,0)|0){c[f>>2]=0;p=c[f>>2]|0;i=e;return p|0}}while(0);c[f>>2]=c[m>>2];p=c[f>>2]|0;i=e;return p|0}function ag(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+28|0;k=g+24|0;l=g+20|0;m=g+16|0;n=g+32|0;o=g+12|0;p=g+8|0;q=g+4|0;r=g;c[k>>2]=f;c[q>>2]=0;c[r>>2]=1;if(c[k>>2]|0?(d[c[k>>2]>>0]|0|0)==3:0){c[l>>2]=c[k>>2];while(1){k=(c[r>>2]|0)>0;c[l>>2]=(c[l>>2]|0)+1;s=c[l>>2]|0;if(!k)break;if((d[s>>0]|0|0)==1){k=(c[l>>2]|0)+1|0;c[l>>2]=k;a[n>>0]=a[k>>0]|0;a[n+1>>0]=a[k+1>>0]|0;c[l>>2]=(c[l>>2]|0)+(2+(e[n>>1]|0));c[l>>2]=(c[l>>2]|0)+-1;if(c[q>>2]|0)continue;c[r>>2]=(c[r>>2]|0)+-1;continue}if((d[c[l>>2]>>0]|0|0)==3){c[q>>2]=(c[q>>2]|0)+1;continue}if((d[c[l>>2]>>0]|0|0)!=4)if(!(d[c[l>>2]>>0]|0)){t=15;break}else continue;c[q>>2]=(c[q>>2]|0)+-1;if(c[q>>2]|0)continue;c[r>>2]=(c[r>>2]|0)+-1}if((t|0)==15){c[h>>2]=0;u=c[h>>2]|0;i=g;return u|0}c[m>>2]=s;c[q>>2]=0;a:do{do if((d[c[l>>2]>>0]|0|0)!=1){if((d[c[l>>2]>>0]|0|0)==3){c[q>>2]=(c[q>>2]|0)+1;break}if((d[c[l>>2]>>0]|0|0)!=4)if(!(d[c[l>>2]>>0]|0)){t=24;break a}else break;else{c[q>>2]=(c[q>>2]|0)+-1;break}}else{s=(c[l>>2]|0)+1|0;c[l>>2]=s;a[n>>0]=a[s>>0]|0;a[n+1>>0]=a[s+1>>0]|0;c[l>>2]=(c[l>>2]|0)+(2+(e[n>>1]|0));c[l>>2]=(c[l>>2]|0)+-1}while(0);c[l>>2]=(c[l>>2]|0)+1}while((c[q>>2]|0)!=0);if((t|0)==24){c[h>>2]=0;u=c[h>>2]|0;i=g;return u|0}b[n>>1]=(c[l>>2]|0)-(c[m>>2]|0);c[o>>2]=pf(1+(e[n>>1]|0)+2|0)|0;if(c[o>>2]|0){c[p>>2]=c[o>>2];l=c[p>>2]|0;c[p>>2]=l+1;a[l>>0]=3;Yw(c[p>>2]|0,c[m>>2]|0,e[n>>1]|0|0)|0;c[p>>2]=(c[p>>2]|0)+(e[n>>1]|0);n=c[p>>2]|0;c[p>>2]=n+1;a[n>>0]=4;n=c[p>>2]|0;c[p>>2]=n+1;a[n>>0]=0;c[h>>2]=Qf(c[o>>2]|0)|0;u=c[h>>2]|0;i=g;return u|0}else{c[h>>2]=0;u=c[h>>2]|0;i=g;return u|0}}c[h>>2]=0;u=c[h>>2]|0;i=g;return u|0}function bg(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=ag(c[d>>2]|0)|0;c[f>>2]=Wf(c[e>>2]|0)|0;Rf(c[e>>2]|0);i=b;return c[f>>2]|0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[m>>2]=e;e=c[g>>2]|0;g=c[h>>2]|0;h=c[k>>2]|0;c[l>>2]=Kf(e,g,h,hv(c[k>>2]|0)|0,1,0,m)|0;i=f;return c[l>>2]|0}function dg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;e=c[g>>2]|0;g=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+48>>0]|0)>>>1&1|0){g=c[f>>2]|0;h=g+48|0;k=h+8|0;l=c[k>>2]|0;i=e;return l|0}b=(c[f>>2]|0)+48|0;a[b>>0]=a[b>>0]&-3|2;if(!(c[(c[f>>2]|0)+48+8>>2]|0)){b=vp(0)|0;c[(c[f>>2]|0)+48+8>>2]=b}b=c[(c[f>>2]|0)+48+8>>2]|0;m=Wp(2)|0;un(b,m,c[f>>2]|0);g=c[f>>2]|0;h=g+48|0;k=h+8|0;l=c[k>>2]|0;i=e;return l|0}function _n(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;Kp(c[c[e>>2]>>2]|0,c[c[f>>2]>>2]|0)|0;Kp(c[(c[e>>2]|0)+4>>2]|0,c[(c[f>>2]|0)+4>>2]|0)|0;Kp(c[(c[e>>2]|0)+8>>2]|0,c[(c[f>>2]|0)+8>>2]|0)|0;i=d;return}function $n(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;f=i;i=i+176|0;if((i|0)>=(j|0))$(176);g=f+168|0;h=f+164|0;k=f+160|0;l=f+156|0;m=f+152|0;n=f+148|0;o=f+144|0;p=f+140|0;q=f+136|0;r=f+132|0;s=f+128|0;t=f+124|0;u=f+112|0;v=f+100|0;w=f+88|0;x=f+84|0;y=f+80|0;z=f+68|0;A=f+64|0;B=f+60|0;C=f+48|0;D=f+36|0;E=f+32|0;F=f+28|0;G=f+24|0;H=f+20|0;I=f+16|0;J=f+12|0;K=f+8|0;L=f+4|0;M=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if((c[c[l>>2]>>2]|0)==2){c[x>>2]=lo(c[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q>>2]|0)break;c[s>>2]=1;break}else{rp(g,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;c[p>>2]=c[n>>2];while(1){if((c[p>>2]|0)<=0)break;if(c[(c[k>>2]|0)+((c[p>>2]|0)-1<<2)>>2]|0)break;c[p>>2]=(c[p>>2]|0)+-1}if(!(c[q>>2]|0))break;c[s>>2]=1;break}}else{c[t>>2]=0;while(1){if((c[t>>2]|0)>=(c[n>>2]|0))break;c[(c[k>>2]|0)+(c[t>>2]<<2)>>2]=c[(c[l>>2]|0)+(c[t>>2]<<2)>>2];c[t>>2]=(c[t>>2]|0)+1}c[p>>2]=c[n>>2];c[s>>2]=c[q>>2]}while(0);c[(c[f>>2]|0)+4>>2]=c[p>>2];c[(c[f>>2]|0)+8>>2]=c[s>>2];i=e;return}function go(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+36|0;g=e+32|0;h=e+28|0;k=e+24|0;l=e+20|0;m=e+16|0;n=e+12|0;o=e+8|0;p=e+4|0;q=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[m>>2]=c[(c[g>>2]|0)+4>>2];c[o>>2]=c[(c[g>>2]|0)+8>>2];c[p>>2]=0;c[n>>2]=(c[m>>2]|0)+1;if((c[c[f>>2]>>2]|0)<(c[n>>2]|0))Ap(c[f>>2]|0,c[n>>2]|0);c[l>>2]=c[(c[g>>2]|0)+16>>2];c[k>>2]=c[(c[f>>2]|0)+16>>2];do if(c[m>>2]|0){if(c[o>>2]|0){c[q>>2]=Go(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[h>>2]|0)|0;c[(c[k>>2]|0)+(c[m>>2]<<2)>>2]=c[q>>2];c[n>>2]=(c[m>>2]|0)+(c[q>>2]|0);break}if((c[m>>2]|0)==1?(c[c[l>>2]>>2]|0)>>>0<(c[h>>2]|0)>>>0:0){c[c[k>>2]>>2]=(c[h>>2]|0)-(c[c[l>>2]>>2]|0);c[n>>2]=1;c[p>>2]=1;break}Io(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[h>>2]|0)|0;c[n>>2]=(c[m>>2]|0)-((c[(c[k>>2]|0)+((c[m>>2]|0)-1<<2)>>2]|0)==0&1)}else{c[c[k>>2]>>2]=c[h>>2];c[n>>2]=c[h>>2]|0?1:0;c[p>>2]=1}while(0);c[(c[f>>2]|0)+4>>2]=c[n>>2];c[(c[f>>2]|0)+8>>2]=c[p>>2];i=e;return}function ho(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=Ip(c[h>>2]|0)|0;c[(c[k>>2]|0)+8>>2]=((c[(c[k>>2]|0)+8>>2]|0)!=0^1)&1;fo(c[f>>2]|0,c[g>>2]|0,c[k>>2]|0);Dp(c[k>>2]|0);i=e;return}function io(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;fo(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0);Mo(c[g>>2]|0,c[g>>2]|0,c[l>>2]|0);i=f;return}function jo(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;ho(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0);Mo(c[g>>2]|0,c[g>>2]|0,c[l>>2]|0);i=f;return}function ko(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(c[d>>2]|0?c[(c[d>>2]|0)+12>>2]&4|0:0){i=b;return}while(1){if(!(c[(c[d>>2]|0)+4>>2]|0)){e=6;break}if(!((c[(c[(c[d>>2]|0)+16>>2]|0)+((c[(c[d>>2]|0)+4>>2]|0)-1<<2)>>2]|0)!=0^1)){e=6;break}a=(c[d>>2]|0)+4|0;c[a>>2]=(c[a>>2]|0)+-1}if((e|0)==6){i=b;return}}function lo(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=b+20|0;f=b+16|0;g=b+12|0;h=b+8|0;k=b+4|0;l=b;c[f>>2]=a;if(c[f>>2]|0?c[(c[f>>2]|0)+12>>2]&4|0:0){c[e>>2]=c[(c[f>>2]|0)+8>>2];m=c[e>>2]|0;i=b;return m|0}ko(c[f>>2]|0);if(c[(c[f>>2]|0)+4>>2]|0){c[h>>2]=c[(c[(c[f>>2]|0)+16>>2]|0)+((c[(c[f>>2]|0)+4>>2]|0)-1<<2)>>2];if(c[h>>2]|0){c[k>>2]=c[h>>2];h=c[k>>2]|0;c[l>>2]=(c[k>>2]|0)>>>0<65536?(h>>>0<256?0:8):h>>>0<16777216?16:24;c[g>>2]=32-((d[45848+((c[k>>2]|0)>>>(c[l>>2]|0))>>0]|0)+(c[l>>2]|0))}else c[g>>2]=32;c[g>>2]=32-(c[g>>2]|0)+((c[(c[f>>2]|0)+4>>2]|0)-1<<5)}else c[g>>2]=0;c[e>>2]=c[g>>2];m=c[e>>2]|0;i=b;return m|0}function mo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=((c[g>>2]|0)>>>0)/32|0;c[k>>2]=((c[g>>2]|0)>>>0)%32|0;if((c[h>>2]|0)>>>0>=(c[(c[f>>2]|0)+4>>2]|0)>>>0){c[e>>2]=0;m=c[e>>2]|0;i=d;return m|0}else{c[l>>2]=c[(c[(c[f>>2]|0)+16>>2]|0)+(c[h>>2]<<2)>>2];c[e>>2]=c[l>>2]&1<<c[k>>2]|0?1:0;m=c[e>>2]|0;i=d;return m|0}return 0}function no(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[e>>2]=a;c[f>>2]=b;if(c[e>>2]|0?c[(c[e>>2]|0)+12>>2]&16|0:0){Cp();i=d;return}c[h>>2]=((c[f>>2]|0)>>>0)/32|0;c[k>>2]=((c[f>>2]|0)>>>0)%32|0;if((c[h>>2]|0)>>>0>=(c[(c[e>>2]|0)+4>>2]|0)>>>0){c[g>>2]=c[(c[e>>2]|0)+4>>2];while(1){if((c[g>>2]|0)>>>0>=(c[c[e>>2]>>2]|0)>>>0)break;c[(c[(c[e>>2]|0)+16>>2]|0)+(c[g>>2]<<2)>>2]=0;c[g>>2]=(c[g>>2]|0)+1}Ap(c[e>>2]|0,(c[h>>2]|0)+1|0);c[(c[e>>2]|0)+4>>2]=(c[h>>2]|0)+1}g=(c[(c[e>>2]|0)+16>>2]|0)+(c[h>>2]<<2)|0;c[g>>2]=c[g>>2]|1<<c[k>>2];i=d;return}function oo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[e>>2]=a;c[f>>2]=b;if(c[e>>2]|0?c[(c[e>>2]|0)+12>>2]&16|0:0){Cp();i=d;return}c[h>>2]=((c[f>>2]|0)>>>0)/32|0;c[k>>2]=((c[f>>2]|0)>>>0)%32|0;if((c[h>>2]|0)>>>0>=(c[(c[e>>2]|0)+4>>2]|0)>>>0){c[g>>2]=c[(c[e>>2]|0)+4>>2];while(1){if((c[g>>2]|0)>>>0>=(c[c[e>>2]>>2]|0)>>>0)break;c[(c[(c[e>>2]|0)+16>>2]|0)+(c[g>>2]<<2)>>2]=0;c[g>>2]=(c[g>>2]|0)+1}Ap(c[e>>2]|0,(c[h>>2]|0)+1|0);c[(c[e>>2]|0)+4>>2]=(c[h>>2]|0)+1}g=(c[(c[e>>2]|0)+16>>2]|0)+(c[h>>2]<<2)|0;c[g>>2]=c[g>>2]|1<<c[k>>2];c[k>>2]=(c[k>>2]|0)+1;while(1){if((c[k>>2]|0)>>>0>=32)break;g=(c[(c[e>>2]|0)+16>>2]|0)+(c[h>>2]<<2)|0;c[g>>2]=c[g>>2]&~(1<<c[k>>2]);c[k>>2]=(c[k>>2]|0)+1}c[(c[e>>2]|0)+4>>2]=(c[h>>2]|0)+1;i=d;return}function po(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;if(c[e>>2]|0?c[(c[e>>2]|0)+12>>2]&16|0:0){Cp();i=d;return}c[g>>2]=((c[f>>2]|0)>>>0)/32|0;c[h>>2]=((c[f>>2]|0)>>>0)%32|0;if((c[g>>2]|0)>>>0>=(c[(c[e>>2]|0)+4>>2]|0)>>>0){i=d;return}while(1){if((c[h>>2]|0)>>>0>=32)break;f=(c[(c[e>>2]|0)+16>>2]|0)+(c[g>>2]<<2)|0;c[f>>2]=c[f>>2]&~(1<<c[h>>2]);c[h>>2]=(c[h>>2]|0)+1}c[(c[e>>2]|0)+4>>2]=(c[g>>2]|0)+1;i=d;return}function qo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;if(c[e>>2]|0?c[(c[e>>2]|0)+12>>2]&16|0:0){Cp();i=d;return}c[g>>2]=((c[f>>2]|0)>>>0)/32|0;c[h>>2]=((c[f>>2]|0)>>>0)%32|0;if((c[g>>2]|0)>>>0>=(c[(c[e>>2]|0)+4>>2]|0)>>>0){i=d;return}f=(c[(c[e>>2]|0)+16>>2]|0)+(c[g>>2]<<2)|0;c[f>>2]=c[f>>2]&~(1<<c[h>>2]);i=d;return}function ro(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=c[(c[e>>2]|0)+16>>2];c[h>>2]=c[(c[e>>2]|0)+4>>2];if(c[e>>2]|0?c[(c[e>>2]|0)+12>>2]&16|0:0){Cp();i=d;return}if((c[f>>2]|0)>>>0>=(c[h>>2]|0)>>>0){c[(c[e>>2]|0)+4>>2]=0;i=d;return}c[k>>2]=0;while(1){l=c[k>>2]|0;if((c[k>>2]|0)>>>0>=((c[h>>2]|0)-(c[f>>2]|0)|0)>>>0)break;c[(c[g>>2]|0)+(c[k>>2]<<2)>>2]=c[(c[g>>2]|0)+(l+(c[f>>2]|0)<<2)>>2];c[k>>2]=(c[k>>2]|0)+1}c[(c[g>>2]|0)+(l<<2)>>2]=0;l=(c[e>>2]|0)+4|0;c[l>>2]=(c[l>>2]|0)-(c[f>>2]|0);i=d;return}function so(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+24|0;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;m=e+4|0;n=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[m>>2]=((c[h>>2]|0)>>>0)/32|0;c[n>>2]=((c[h>>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l>>2]|0)+1}}if(d)Ap(c[f>>2]|0,c[k>>2]|0);c[(c[f>>2]|0)+4>>2]=c[k>>2];c[l>>2]=0;while(1){p=c[l>>2]|0;if((c[l>>2]|0)>>>0>=(c[(c[g>>2]|0)+4>>2]|0)>>>0)break;c[(c[(c[f>>2]|0)+16>>2]|0)+(c[l>>2]<<2)>>2]=c[(c[(c[g>>2]|0)+16>>2]|0)+(p<<2)>>2];c[l>>2]=(c[l>>2]|0)+1}c[(c[f>>2]|0)+4>>2]=p;if((c[m>>2]|0)>>>0>=(c[(c[f>>2]|0)+4>>2]|0)>>>0){c[(c[f>>2]|0)+4>>2]=0;i=e;return}if(c[m>>2]|0){c[l>>2]=0;while(1){q=c[l>>2]|0;if((c[l>>2]|0)>>>0>=((c[(c[f>>2]|0)+4>>2]|0)-(c[m>>2]|0)|0)>>>0)break;c[(c[(c[f>>2]|0)+16>>2]|0)+(c[l>>2]<<2)>>2]=c[(c[(c[f>>2]|0)+16>>2]|0)+(q+(c[m>>2]|0)<<2)>>2];c[l>>2]=(c[l>>2]|0)+1}c[(c[(c[f>>2]|0)+16>>2]|0)+(q<<2)>>2]=0;d=(c[f>>2]|0)+4|0;c[d>>2]=(c[d>>2]|0)-(c[m>>2]|0)}if(c[n>>2]|0?(c[(c[f>>2]|0)+4>>2]|0)!=0:0)qp(c[(c[f>>2]|0)+16>>2]|0,c[(c[f>>2]|0)+16>>2]|0,c[(c[f>>2]|0)+4>>2]|0,c[n>>2]|0)|0}while(0);while(1){if((c[(c[f>>2]|0)+4>>2]|0)<=0){r=40;break}if(c[(c[(c[f>>2]|0)+16>>2]|0)+((c[(c[f>>2]|0)+4>>2]|0)-1<<2)>>2]|0){r=40;break}n=(c[f>>2]|0)+4|0;c[n>>2]=(c[n>>2]|0)+-1}if((r|0)==40){i=e;return}}function to(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=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>>>0)Ap(c[f>>2]|0,(c[m>>2]|0)+(c[k>>2]|0)+1|0);c[o>>2]=c[(c[f>>2]|0)+16>>2];c[p>>2]=c[(c[g>>2]|0)+16>>2];c[q>>2]=0;while(1){if((c[q>>2]|0)>>>0>=(c[m>>2]|0)>>>0)break;c[(c[o>>2]|0)+(c[q>>2]<<2)>>2]=c[(c[p>>2]|0)+(c[q>>2]<<2)>>2];c[q>>2]=(c[q>>2]|0)+1}c[(c[f>>2]|0)+4>>2]=c[m>>2];c[(c[f>>2]|0)+12>>2]=c[(c[g>>2]|0)+12>>2];c[(c[f>>2]|0)+8>>2]=c[n>>2]}if((c[k>>2]|0)==0|(c[l>>2]|0)!=0){if(c[h>>2]|0){to(c[f>>2]|0,(c[k>>2]|0)+1|0);so(c[f>>2]|0,c[f>>2]|0,32-(c[l>>2]|0)|0)}}else to(c[f>>2]|0,c[k>>2]|0);while(1){if((c[(c[f>>2]|0)+4>>2]|0)<=0){r=19;break}if(c[(c[(c[f>>2]|0)+16>>2]|0)+((c[(c[f>>2]|0)+4>>2]|0)-1<<2)>>2]|0){r=19;break}k=(c[f>>2]|0)+4|0;c[k>>2]=(c[k>>2]|0)+-1}if((r|0)==19){i=e;return}}function vo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=c[g>>2];ko(c[f>>2]|0);do if(c[(c[f>>2]|0)+4>>2]|0){if(c[(c[f>>2]|0)+8>>2]|0){c[e>>2]=-1;break}if((c[(c[f>>2]|0)+4>>2]|0)!=1){c[e>>2]=1;break}if((c[c[(c[f>>2]|0)+16>>2]>>2]|0)>>>0>(c[h>>2]|0)>>>0){c[e>>2]=1;break}if((c[c[(c[f>>2]|0)+16>>2]>>2]|0)>>>0<(c[h>>2]|0)>>>0){c[e>>2]=-1;break}else{c[e>>2]=0;break}}else c[e>>2]=0-((c[h>>2]|0)!=0&1);while(0);i=d;return c[e>>2]|0}function wo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[f>>2]=a;c[g>>2]=b;if(!(c[f>>2]|0?(c[(c[f>>2]|0)+12>>2]&4|0)!=0:0))m=3;do if((m|0)==3){if(c[g>>2]|0?c[(c[g>>2]|0)+12>>2]&4|0:0)break;ko(c[f>>2]|0);ko(c[g>>2]|0);c[h>>2]=c[(c[f>>2]|0)+4>>2];c[k>>2]=c[(c[g>>2]|0)+4>>2];if((c[(c[f>>2]|0)+8>>2]|0)==0?c[(c[g>>2]|0)+8>>2]|0:0){c[e>>2]=1;n=c[e>>2]|0;i=d;return n|0}if(c[(c[f>>2]|0)+8>>2]|0?(c[(c[g>>2]|0)+8>>2]|0)==0:0){c[e>>2]=-1;n=c[e>>2]|0;i=d;return n|0}if(((c[h>>2]|0)!=(c[k>>2]|0)?(c[(c[f>>2]|0)+8>>2]|0)==0:0)?(c[(c[g>>2]|0)+8>>2]|0)==0:0){c[e>>2]=(c[h>>2]|0)-(c[k>>2]|0);n=c[e>>2]|0;i=d;return n|0}if(((c[h>>2]|0)!=(c[k>>2]|0)?c[(c[f>>2]|0)+8>>2]|0:0)?c[(c[g>>2]|0)+8>>2]|0:0){c[e>>2]=(c[k>>2]|0)+(c[h>>2]|0);n=c[e>>2]|0;i=d;return n|0}if(!(c[h>>2]|0)){c[e>>2]=0;n=c[e>>2]|0;i=d;return n|0}b=Ko(c[(c[f>>2]|0)+16>>2]|0,c[(c[g>>2]|0)+16>>2]|0,c[h>>2]|0)|0;c[l>>2]=b;if(!b){c[e>>2]=0;n=c[e>>2]|0;i=d;return n|0}if((((c[l>>2]|0)<0?1:0)|0)==((c[(c[f>>2]|0)+8>>2]|0?1:0)|0)){c[e>>2]=1;n=c[e>>2]|0;i=d;return n|0}else{c[e>>2]=-1;n=c[e>>2]|0;i=d;return n|0}}while(0);do if(c[f>>2]|0?c[(c[f>>2]|0)+12>>2]&4|0:0){if(c[g>>2]|0?c[(c[g>>2]|0)+12>>2]&4|0:0)break;c[e>>2]=-1;n=c[e>>2]|0;i=d;return n|0}while(0);if(c[f>>2]|0){if(c[g>>2]|0?(c[(c[f>>2]|0)+12>>2]&4|0)==0:0)m=13}else if(c[g>>2]|0)m=13;if((m|0)==13?c[(c[g>>2]|0)+12>>2]&4|0:0){c[e>>2]=1;n=c[e>>2]|0;i=d;return n|0}if((c[(c[f>>2]|0)+8>>2]|0)==0?(c[(c[g>>2]|0)+8>>2]|0)==0:0){c[e>>2]=0;n=c[e>>2]|0;i=d;return n|0}if((c[(c[f>>2]|0)+8>>2]|0)<(c[(c[g>>2]|0)+8>>2]|0)){c[e>>2]=-1;n=c[e>>2]|0;i=d;return n|0}if((c[(c[f>>2]|0)+8>>2]|0)>(c[(c[g>>2]|0)+8>>2]|0)){c[e>>2]=1;n=c[e>>2]|0;i=d;return n|0}else{c[e>>2]=Jv(c[(c[f>>2]|0)+16>>2]|0,c[(c[g>>2]|0)+16>>2]|0,((c[(c[f>>2]|0)+8>>2]|0)+7|0)/8|0)|0;n=c[e>>2]|0;i=d;return n|0}return 0}function xo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[(c[h>>2]|0)+8>>2];c[l>>2]=0;if((c[f>>2]|0)==(c[h>>2]|0)){c[l>>2]=Ip(c[h>>2]|0)|0;c[h>>2]=c[l>>2]}yo(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);if((c[k>>2]|0?1:0)^(c[(c[g>>2]|0)+8>>2]|0?1:0)|0?c[(c[f>>2]|0)+4>>2]|0:0)fo(c[f>>2]|0,c[f>>2]|0,c[h>>2]|0);if(!(c[l>>2]|0)){i=e;return}Dp(c[l>>2]|0);i=e;return}function yo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;zo(0,c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function zo(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0;g=i;i=i+160|0;if((i|0)>=(j|0))$(160);h=g+144|0;k=g+140|0;l=g+136|0;m=g+132|0;n=g+128|0;o=g+124|0;p=g+120|0;q=g+116|0;r=g+112|0;s=g+108|0;t=g+104|0;u=g+100|0;v=g+96|0;w=g+92|0;x=g+88|0;y=g+84|0;z=g+64|0;A=g+44|0;B=g+40|0;C=g+36|0;D=g+32|0;E=g+28|0;F=g+24|0;G=g+20|0;H=g+16|0;I=g+12|0;J=g+8|0;K=g+4|0;L=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[r>>2]=c[(c[l>>2]|0)+4>>2];c[s>>2]=c[(c[m>>2]|0)+4>>2];c[v>>2]=c[(c[l>>2]|0)+8>>2];c[w>>2]=c[(c[l>>2]|0)+8>>2]^c[(c[m>>2]|0)+8>>2];c[B>>2]=0;c[u>>2]=(c[r>>2]|0)+1;Ap(c[k>>2]|0,c[u>>2]|0);c[t>>2]=(c[u>>2]|0)-(c[s>>2]|0);if((c[t>>2]|0)<=0){a:do if((c[l>>2]|0)!=(c[k>>2]|0)){c[(c[k>>2]|0)+4>>2]=c[(c[l>>2]|0)+4>>2];c[(c[k>>2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0)>=(j|0))$(48);f=e+32|0;g=e+28|0;h=e+24|0;k=e+20|0;l=e+16|0;m=e+12|0;n=e+8|0;o=e+4|0;p=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[(c[g>>2]|0)+4>>2];c[m>>2]=((c[h>>2]|0)>>>0)/32|0;c[l>>2]=(c[k>>2]|0)-(c[m>>2]|0);d=c[f>>2]|0;if((c[m>>2]|0)>=(c[k>>2]|0)){c[d+4>>2]=0;i=e;return}if((c[d>>2]|0)<(c[l>>2]|0))Ap(c[f>>2]|0,c[l>>2]|0);c[n>>2]=c[(c[f>>2]|0)+16>>2];c[o>>2]=c[(c[g>>2]|0)+16>>2];c[h>>2]=((c[h>>2]|0)>>>0)%32|0;a:do if(c[h>>2]|0){qp(c[n>>2]|0,(c[o>>2]|0)+(c[m>>2]<<2)|0,c[l>>2]|0,c[h>>2]|0)|0;c[l>>2]=(c[l>>2]|0)-(((c[(c[n>>2]|0)+((c[l>>2]|0)-1<<2)>>2]|0)!=0^1)&1)}else{c[p>>2]=0;while(1){if((c[p>>2]|0)>=(c[l>>2]|0))break a;c[(c[n>>2]|0)+(c[p>>2]<<2)>>2]=c[(c[o>>2]|0)+(c[m>>2]<<2)+(c[p>>2]<<2)>>2];c[p>>2]=(c[p>>2]|0)+1}}while(0);c[(c[f>>2]|0)+4>>2]=c[l>>2];i=e;return}function Eo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=((fp(c[(c[e>>2]|0)+16>>2]|0,c[(c[e>>2]|0)+4>>2]|0,c[f>>2]|0)|0)!=0^1)&1;i=d;return b|0}function Fo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;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;p=c[g>>2]|0;i=f;return p|0}function Ho(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+20|0;k=g+16|0;l=g+12|0;m=g+8|0;n=g+4|0;o=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=0;if(c[n>>2]|0)c[o>>2]=ep(c[h>>2]|0,c[k>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;if(!((c[l>>2]|0)-(c[n>>2]|0)|0)){p=c[o>>2]|0;i=g;return p|0}c[o>>2]=Go((c[h>>2]|0)+(c[n>>2]<<2)|0,(c[k>>2]|0)+(c[n>>2]<<2)|0,(c[l>>2]|0)-(c[n>>2]|0)|0,c[o>>2]|0)|0;p=c[o>>2]|0;i=g;return p|0}function Io(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+24|0;h=f+20|0;k=f+16|0;l=f+12|0;m=f+8|0;n=f+4|0;o=f;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;e=c[k>>2]|0;c[k>>2]=e+4;c[n>>2]=c[e>>2];c[m>>2]=(c[n>>2]|0)-(c[m>>2]|0);e=c[m>>2]|0;d=c[h>>2]|0;c[h>>2]=d+4;c[d>>2]=e;a:do if((c[m>>2]|0)>>>0>(c[n>>2]|0)>>>0){while(1){e=(c[l>>2]|0)+-1|0;c[l>>2]=e;if(!e)break;e=c[k>>2]|0;c[k>>2]=e+4;c[n>>2]=c[e>>2];e=(c[n>>2]|0)-1|0;d=c[h>>2]|0;c[h>>2]=d+4;c[d>>2]=e;if(c[n>>2]|0)break a}c[g>>2]=1;p=c[g>>2]|0;i=f;return p|0}while(0);b:do if((c[h>>2]|0)!=(c[k>>2]|0)){c[o>>2]=0;while(1){if((c[o>>2]|0)>=((c[l>>2]|0)-1|0))break b;c[(c[h>>2]|0)+(c[o>>2]<<2)>>2]=c[(c[k>>2]|0)+(c[o>>2]<<2)>>2];c[o>>2]=(c[o>>2]|0)+1}}while(0);c[g>>2]=0;p=c[g>>2]|0;i=f;return p|0}function Jo(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+20|0;k=g+16|0;l=g+12|0;m=g+8|0;n=g+4|0;o=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=0;if(c[n>>2]|0)c[o>>2]=rp(c[h>>2]|0,c[k>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;if(!((c[l>>2]|0)-(c[n>>2]|0)|0)){p=c[o>>2]|0;i=g;return p|0}c[o>>2]=Io((c[h>>2]|0)+(c[n>>2]<<2)|0,(c[k>>2]|0)+(c[n>>2]<<2)|0,(c[l>>2]|0)-(c[n>>2]|0)|0,c[o>>2]|0)|0;p=c[o>>2]|0;i=g;return p|0}function Ko(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+24|0;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;m=e+4|0;n=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=(c[k>>2]|0)-1;while(1){if((c[l>>2]|0)<0){o=5;break}c[m>>2]=c[(c[g>>2]|0)+(c[l>>2]<<2)>>2];c[n>>2]=c[(c[h>>2]|0)+(c[l>>2]<<2)>>2];if((c[m>>2]|0)!=(c[n>>2]|0)){o=6;break}c[l>>2]=(c[l>>2]|0)+-1}if((o|0)==5){c[f>>2]=0;p=c[f>>2]|0;i=e;return p|0}else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[h>>2]|0)D=(c[(c[h>>2]|0)+12>>2]&1|0)!=0;else D=0;c[t>>2]=D&1;c[n>>2]=c[(c[h>>2]|0)+16>>2];c[l>>2]=c[(c[g>>2]|0)+4>>2];c[s>>2]=c[(c[g>>2]|0)+8>>2];if(c[g>>2]|0)E=(c[(c[g>>2]|0)+12>>2]&1|0)!=0;else E=0;c[u>>2]=E&1;c[o>>2]=c[(c[g>>2]|0)+16>>2]}else{c[k>>2]=c[(c[g>>2]|0)+4>>2];c[r>>2]=c[(c[g>>2]|0)+8>>2];if(c[g>>2]|0)F=(c[(c[g>>2]|0)+12>>2]&1|0)!=0;else F=0;c[t>>2]=F&1;c[n>>2]=c[(c[g>>2]|0)+16>>2];c[l>>2]=c[(c[h>>2]|0)+4>>2];c[s>>2]=c[(c[h>>2]|0)+8>>2];if(c[h>>2]|0)G=(c[(c[h>>2]|0)+12>>2]&1|0)!=0;else G=0;c[u>>2]=G&1;c[o>>2]=c[(c[h>>2]|0)+16>>2]}c[v>>2]=c[r>>2]^c[s>>2];c[p>>2]=c[(c[f>>2]|0)+16>>2];c[m>>2]=(c[k>>2]|0)+(c[l>>2]|0);if(c[f>>2]|0?c[(c[f>>2]|0)+12>>2]&1|0:0)H=19;else H=14;do if((H|0)==14){if(!(c[g>>2]|0?(c[(c[g>>2]|0)+12>>2]&1|0)!=0:0)){if(!(c[h>>2]|0)){H=19;break}if(!(c[(c[h>>2]|0)+12>>2]&1)){H=19;break}}c[p>>2]=wp(c[m>>2]|0,1)|0;c[w>>2]=2}while(0);a:do if((H|0)==19){h=(c[p>>2]|0)==(c[n>>2]|0);if((c[c[f>>2]>>2]|0)<(c[m>>2]|0)){if(!h?(c[p>>2]|0)!=(c[o>>2]|0):0){Ap(c[f>>2]|0,c[m>>2]|0);c[p>>2]=c[(c[f>>2]|0)+16>>2];break}if(c[f>>2]|0)I=(c[(c[f>>2]|0)+12>>2]&1|0)!=0;else I=0;c[p>>2]=wp(c[m>>2]|0,I&1)|0;c[w>>2]=1;break}if(!h){if((c[p>>2]|0)!=(c[o>>2]|0))break;c[y>>2]=c[l>>2];h=wp(c[l>>2]|0,c[u>>2]|0)|0;c[x>>2]=h;c[o>>2]=h;c[A>>2]=0;while(1){if((c[A>>2]|0)>=(c[l>>2]|0))break a;c[(c[o>>2]|0)+(c[A>>2]<<2)>>2]=c[(c[p>>2]|0)+(c[A>>2]<<2)>>2];c[A>>2]=(c[A>>2]|0)+1}}c[y>>2]=c[k>>2];h=wp(c[k>>2]|0,c[t>>2]|0)|0;c[x>>2]=h;c[n>>2]=h;if((c[p>>2]|0)==(c[o>>2]|0))c[o>>2]=c[n>>2];c[z>>2]=0;while(1){if((c[z>>2]|0)>=(c[k>>2]|0))break a;c[(c[n>>2]|0)+(c[z>>2]<<2)>>2]=c[(c[p>>2]|0)+(c[z>>2]<<2)>>2];c[z>>2]=(c[z>>2]|0)+1}}while(0);if(c[l>>2]|0){c[q>>2]=op(c[p>>2]|0,c[n>>2]|0,c[k>>2]|0,c[o>>2]|0,c[l>>2]|0)|0;c[m>>2]=(c[m>>2]|0)-(c[q>>2]|0?0:1)}else c[m>>2]=0;if(c[w>>2]|0){if((c[w>>2]|0)==2){c[B>>2]=wp(c[m>>2]|0,0)|0;c[C>>2]=0;while(1){if((c[C>>2]|0)>=(c[m>>2]|0))break;c[(c[B>>2]|0)+(c[C>>2]<<2)>>2]=c[(c[p>>2]|0)+(c[C>>2]<<2)>>2];c[C>>2]=(c[C>>2]|0)+1}yp(c[p>>2]|0,0);c[p>>2]=c[B>>2]}zp(c[f>>2]|0,c[p>>2]|0,c[m>>2]|0)}c[(c[f>>2]|0)+4>>2]=c[m>>2];c[(c[f>>2]|0)+8>>2]=c[v>>2];if(!(c[x>>2]|0)){i=e;return}yp(c[x>>2]|0,c[y>>2]|0);i=e;return}function Ro(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;Qo(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0);yo(c[g>>2]|0,c[g>>2]|0,c[l>>2]|0);i=f;return}function So(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0;g=i;i=i+512|0;if((i|0)>=(j|0))$(512);h=g+504|0;k=g+500|0;l=g+496|0;m=g+492|0;n=g+488|0;o=g+484|0;p=g+480|0;q=g+476|0;r=g+472|0;s=g+468|0;t=g+464|0;u=g+460|0;v=g+456|0;w=g+452|0;x=g+448|0;y=g+444|0;z=g+440|0;A=g+436|0;B=g+432|0;C=g+428|0;D=g+424|0;E=g+420|0;F=g+416|0;G=g+412|0;H=g+408|0;I=g+404|0;J=g+400|0;K=g+396|0;L=g+392|0;M=g+328|0;N=g+264|0;O=g+260|0;P=g+256|0;Q=g+252|0;R=g+248|0;S=g+244|0;T=g+240|0;U=g+236|0;V=g+232|0;W=g+228|0;X=g+224|0;Y=g+220|0;Z=g+216|0;_=g+212|0;aa=g+208|0;ba=g+204|0;ca=g+200|0;da=g+196|0;ea=g+192|0;fa=g+164|0;ga=g+160|0;ha=g+156|0;ia=g+152|0;ja=g+148|0;ka=g+144|0;la=g+140|0;ma=g+136|0;na=g+132|0;oa=g+128|0;pa=g+124|0;qa=g+120|0;ra=g+116|0;sa=g+112|0;ta=g+108|0;ua=g+104|0;va=g+100|0;wa=g+80|0;xa=g+60|0;ya=g+56|0;za=g+52|0;Aa=g+48|0;Ba=g+44|0;Ca=g+24|0;Da=g+4|0;Ea=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[E>>2]=0;c[F>>2]=0;c[G>>2]=0;c[H>>2]=0;c[I>>2]=0;c[J>>2]=0;c[K>>2]=0;c[L>>2]=0;c[r>>2]=c[(c[l>>2]|0)+4>>2];c[s>>2]=c[(c[m>>2]|0)+4>>2];c[B>>2]=c[s>>2]<<1;c[v>>2]=c[(c[m>>2]|0)+8>>2];do if((c[r>>2]<<5|0)<=512){if((c[r>>2]<<5|0)>256){c[O>>2]=4;break}if((c[r>>2]<<5|0)>128){c[O>>2]=3;break}if((c[r>>2]<<5|0)>64){c[O>>2]=2;break}else{c[O>>2]=1;break}}else c[O>>2]=5;while(0);if(c[l>>2]|0)Fa=(c[(c[l>>2]|0)+12>>2]&1|0)!=0;else Fa=0;c[y>>2]=Fa&1;if(c[m>>2]|0)Ga=(c[(c[m>>2]|0)+12>>2]&1|0)!=0;else Ga=0;c[z>>2]=Ga&1;if(c[k>>2]|0)Ha=(c[(c[k>>2]|0)+12>>2]&1|0)!=0;else Ha=0;c[A>>2]=Ha&1;c[n>>2]=c[(c[h>>2]|0)+16>>2];c[o>>2]=c[(c[l>>2]|0)+16>>2];if(!(c[s>>2]|0))df();do if(c[r>>2]|0){c[I>>2]=c[z>>2]|0?c[s>>2]|0:0;l=wp(c[s>>2]|0,c[z>>2]|0)|0;c[E>>2]=l;c[p>>2]=l;c[S>>2]=c[(c[(c[m>>2]|0)+16>>2]|0)+((c[s>>2]|0)-1<<2)>>2];l=c[S>>2]|0;c[T>>2]=(c[S>>2]|0)>>>0<65536?(l>>>0<256?0:8):l>>>0<16777216?16:24;c[C>>2]=32-((d[45848+((c[S>>2]|0)>>>(c[T>>2]|0))>>0]|0)+(c[T>>2]|0));a:do if(c[C>>2]|0)ip(c[p>>2]|0,c[(c[m>>2]|0)+16>>2]|0,c[s>>2]|0,c[C>>2]|0)|0;else{c[U>>2]=0;while(1){if((c[U>>2]|0)>=(c[s>>2]|0))break a;c[(c[p>>2]|0)+(c[U>>2]<<2)>>2]=c[(c[(c[m>>2]|0)+16>>2]|0)+(c[U>>2]<<2)>>2];c[U>>2]=(c[U>>2]|0)+1}}while(0);c[t>>2]=c[(c[k>>2]|0)+4>>2];c[w>>2]=c[(c[k>>2]|0)+8>>2];b:do if((c[t>>2]|0)>(c[s>>2]|0)){c[J>>2]=c[A>>2]|0?(c[t>>2]|0)+1|0:0;l=wp((c[t>>2]|0)+1|0,c[A>>2]|0)|0;c[F>>2]=l;c[q>>2]=l;c[V>>2]=0;while(1){if((c[V>>2]|0)>=(c[t>>2]|0))break;c[(c[q>>2]|0)+(c[V>>2]<<2)>>2]=c[(c[(c[k>>2]|0)+16>>2]|0)+(c[V>>2]<<2)>>2];c[V>>2]=(c[V>>2]|0)+1}gp((c[q>>2]|0)+(c[s>>2]<<2)|0,0,c[q>>2]|0,c[t>>2]|0,c[p>>2]|0,c[s>>2]|0)|0;c[t>>2]=c[s>>2];while(1){if((c[t>>2]|0)<=0)break b;if(c[(c[q>>2]|0)+((c[t>>2]|0)-1<<2)>>2]|0)break b;c[t>>2]=(c[t>>2]|0)+-1}}else c[q>>2]=c[(c[k>>2]|0)+16>>2];while(0);if(!(c[t>>2]|0)){c[(c[h>>2]|0)+4>>2]=0;c[(c[h>>2]|0)+8>>2]=0;break}c:do if((c[n>>2]|0)==(c[q>>2]|0)){if(c[F>>2]|0)Se(46104,46115,515,46125);c[J>>2]=c[A>>2]|0?c[t>>2]|0:0;l=wp(c[t>>2]|0,c[A>>2]|0)|0;c[F>>2]=l;c[q>>2]=l;c[W>>2]=0;while(1){if((c[W>>2]|0)>=(c[t>>2]|0))break c;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0;else Ka=0;yp(c[M+(c[Y>>2]<<2)>>2]|0,Ka);c[Y>>2]=(c[Y>>2]|0)+1}yp(c[P>>2]|0,c[y>>2]|0?c[R>>2]|0:0);g:do if((c[D>>2]|0)!=0&(c[u>>2]|0)!=0){if(c[C>>2]|0)qp(c[p>>2]|0,c[p>>2]|0,c[s>>2]|0,c[C>>2]|0)|0;Jo(c[n>>2]|0,c[p>>2]|0,c[s>>2]|0,c[n>>2]|0,c[u>>2]|0)|0;c[u>>2]=c[s>>2];c[x>>2]=c[v>>2];while(1){if((c[u>>2]|0)<=0)break g;if(c[(c[n>>2]|0)+((c[u>>2]|0)-1<<2)>>2]|0)break g;c[u>>2]=(c[u>>2]|0)+-1}}while(0);if((c[(c[h>>2]|0)+16>>2]|0)==(c[n>>2]|0)){c[(c[h>>2]|0)+4>>2]=c[u>>2];c[(c[h>>2]|0)+8>>2]=c[x>>2];break}else Se(46140,46115,786,46125)}else{if((c[s>>2]|0)==1)La=(c[c[(c[m>>2]|0)+16>>2]>>2]|0)==1;else La=0;c[(c[h>>2]|0)+4>>2]=La?0:1;if(c[(c[h>>2]|0)+4>>2]|0){if((c[c[h>>2]>>2]|0)<1)Ap(c[h>>2]|0,1);c[n>>2]=c[(c[h>>2]|0)+16>>2];c[c[n>>2]>>2]=1}c[(c[h>>2]|0)+8>>2]=0}while(0);if(c[E>>2]|0)yp(c[E>>2]|0,c[I>>2]|0);if(c[F>>2]|0)yp(c[F>>2]|0,c[J>>2]|0);if(c[G>>2]|0)yp(c[G>>2]|0,c[K>>2]|0);if(!(c[H>>2]|0)){i=g;return}yp(c[H>>2]|0,c[L>>2]|0);i=g;return}function To(a,b,d,e,f,g,h,k,l){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;m=i;i=i+48|0;if((i|0)>=(j|0))$(48);n=m+32|0;o=m+28|0;p=m+24|0;q=m+20|0;r=m+16|0;s=m+12|0;t=m+8|0;u=m+4|0;v=m;c[n>>2]=a;c[o>>2]=b;c[p>>2]=d;c[q>>2]=e;c[r>>2]=f;c[s>>2]=g;c[t>>2]=h;c[u>>2]=k;c[v>>2]=l;l=c[n>>2]|0;k=c[p>>2]|0;p=c[q>>2]|0;h=c[r>>2]|0;r=c[s>>2]|0;if((c[s>>2]|0)<16)op(l,k,p,h,r)|0;else np(l,k,p,h,r,c[v>>2]|0);if(((c[q>>2]|0)+(c[s>>2]|0)|0)>(c[u>>2]|0)){gp((c[n>>2]|0)+(c[u>>2]<<2)|0,0,c[n>>2]|0,(c[q>>2]|0)+(c[s>>2]|0)|0,c[t>>2]|0,c[u>>2]|0)|0;c[c[o>>2]>>2]=c[u>>2];i=m;return}else{c[c[o>>2]>>2]=(c[q>>2]|0)+(c[s>>2]|0);i=m;return}}function Uo(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;b=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=b+32|0;f=b+28|0;g=b+24|0;h=b+20|0;k=b+16|0;l=b+12|0;m=b+8|0;n=b+4|0;o=b;c[e>>2]=a;c[g>>2]=0;c[f>>2]=0;while(1){if((c[f>>2]|0)>>>0>=(c[(c[e>>2]|0)+4>>2]|0)>>>0){p=6;break}if(c[(c[(c[e>>2]|0)+16>>2]|0)+(c[f>>2]<<2)>>2]|0)break;c[g>>2]=(c[g>>2]|0)+32;c[f>>2]=(c[f>>2]|0)+1}if((p|0)==6){q=c[g>>2]|0;i=b;return q|0}c[k>>2]=c[(c[(c[e>>2]|0)+16>>2]|0)+(c[f>>2]<<2)>>2];c[l>>2]=c[k>>2];c[n>>2]=c[l>>2]&0-(c[l>>2]|0);l=c[n>>2]|0;c[o>>2]=(c[n>>2]|0)>>>0<65536?(l>>>0<256?0:8):l>>>0<16777216?16:24;c[m>>2]=32-((d[45848+((c[n>>2]|0)>>>(c[o>>2]|0))>>0]|0)+(c[o>>2]|0));c[h>>2]=31-(c[m>>2]|0);c[g>>2]=(c[g>>2]|0)+(c[h>>2]|0);q=c[g>>2]|0;i=b;return q|0}function Vo(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;e=Wo(c[g>>2]|0,c[h>>2]|0,0,c[k>>2]|0,c[l>>2]|0,0)|0;i=f;return e|0}function Wo(b,e,f,g,h,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;l=i;i=i+64|0;if((i|0)>=(j|0))$(64);m=l+60|0;n=l+56|0;o=l+52|0;p=l+48|0;q=l+44|0;r=l+40|0;s=l+36|0;t=l+32|0;u=l+28|0;v=l+24|0;w=l+20|0;x=l+16|0;y=l+12|0;z=l+8|0;A=l+4|0;B=l;c[n>>2]=b;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[r>>2]=h;c[s>>2]=k;if(c[r>>2]|0)c[c[r>>2]>>2]=c[(c[n>>2]|0)+8>>2];c[c[q>>2]>>2]=c[(c[n>>2]|0)+4>>2]<<2;if(c[c[q>>2]>>2]|0)C=c[c[q>>2]>>2]|0;else C=1;c[A>>2]=C;if((c[A>>2]|0)>>>0<(c[o>>2]|0)>>>0)c[A>>2]=c[o>>2];C=c[A>>2]|0;A=c[p>>2]|0;if((c[p>>2]|0)<0)c[B>>2]=C+(0-A);else c[B>>2]=C+A;do if(c[s>>2]|0)D=13;else{if(c[n>>2]|0?c[(c[n>>2]|0)+12>>2]&1|0:0){D=13;break}E=pf(c[B>>2]|0)|0}while(0);if((D|0)==13)E=sf(c[B>>2]|0)|0;c[v>>2]=E;if(!(c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else c[s>>2]=c[o>>2];if((c[m>>2]|0)==1){c[u>>2]=c[q>>2];x=(((c[s>>2]|0)+4-1|0)>>>0)/4|0;if(c[t>>2]|0)y=xp(x)|0;else y=vp(x)|0;c[r>>2]=y;if(c[s>>2]|0?(Yo(c[r>>2]|0,c[u>>2]|0,c[s>>2]|0,0),c[(c[r>>2]|0)+8>>2]=(((d[c[u>>2]>>0]|0)&128|0)!=0^1^1)&1,c[(c[r>>2]|0)+8>>2]|0):0){_o(c[r>>2]|0);eo(c[r>>2]|0,c[r>>2]|0,1);c[(c[r>>2]|0)+8>>2]=1}u=c[r>>2]|0;if(c[l>>2]|0){ko(u);c[c[l>>2]>>2]=c[r>>2]}else Dp(u);if(c[p>>2]|0)c[c[p>>2]>>2]=c[s>>2];c[k>>2]=0;z=c[k>>2]|0;i=h;return z|0}if((c[m>>2]|0)==5){u=(((c[s>>2]|0)+4-1|0)>>>0)/4|0;if(c[t>>2]|0)A=xp(u)|0;else A=vp(u)|0;c[r>>2]=A;if(c[s>>2]|0)Yo(c[r>>2]|0,c[q>>2]|0,c[s>>2]|0,0);A=c[r>>2]|0;if(c[l>>2]|0){ko(A);c[c[l>>2]>>2]=c[r>>2]}else Dp(A);if(c[p>>2]|0)c[c[p>>2]>>2]=c[s>>2];c[k>>2]=0;z=c[k>>2]|0;i=h;return z|0}if((c[m>>2]|0)==2){c[r>>2]=$o(c[q>>2]|0,s,c[t>>2]|0)|0;if(c[p>>2]|0)c[c[p>>2]>>2]=c[s>>2];A=c[r>>2]|0;if(!((c[l>>2]|0)!=0&(c[r>>2]|0)!=0)){if(A|0){Dp(c[r>>2]|0);c[r>>2]=0}}else{ko(A);c[c[l>>2]>>2]=c[r>>2]}c[k>>2]=c[r>>2]|0?0:65;z=c[k>>2]|0;i=h;return z|0}if((c[m>>2]|0)!=3){if((c[m>>2]|0)!=4){c[k>>2]=45;z=c[k>>2]|0;i=h;return z|0}if(c[o>>2]|0){c[k>>2]=45;z=c[k>>2]|0;i=h;return z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>2]=(((c[s>>2]|0)+4-1|0)>>>0)/4|0;if((c[c[g>>2]>>2]|0)>>>0<(c[t>>2]|0)>>>0)Ap(c[g>>2]|0,c[t>>2]|0);c[m>>2]=4-(((c[s>>2]|0)>>>0)%4|0);c[m>>2]=(c[m>>2]|0)%4|0;s=c[t>>2]|0;c[(c[g>>2]|0)+4>>2]=s;c[n>>2]=s;c[(c[g>>2]|0)+8>>2]=c[k>>2];a:while(1){if((c[n>>2]|0)<=0){v=37;break}c[u>>2]=0;while(1){if((c[m>>2]|0)>=4)break;if(c[l>>2]|0){c[p>>2]=48;c[l>>2]=0}else{k=c[h>>2]|0;c[h>>2]=k+1;c[p>>2]=a[k>>0]}if(!(c[p>>2]|0)){v=18;break a}k=c[h>>2]|0;c[h>>2]=k+1;c[q>>2]=a[k>>0];if(!(c[q>>2]|0)){v=20;break a}k=c[p>>2]|0;do if((c[p>>2]|0)>=48&(c[p>>2]|0)<=57)c[o>>2]=k-48;else{s=c[p>>2]|0;if((k|0)>=97&(c[p>>2]|0)<=102){c[o>>2]=s-97+10;break}if(!((s|0)>=65&(c[p>>2]|0)<=70)){v=27;break a}c[o>>2]=(c[p>>2]|0)-65+10}while(0);c[o>>2]=c[o>>2]<<4;k=c[q>>2]|0;do if((c[q>>2]|0)>=48&(c[q>>2]|0)<=57)c[o>>2]=c[o>>2]|k-48;else{s=c[q>>2]|0;if((k|0)>=97&(c[q>>2]|0)<=102){c[o>>2]=c[o>>2]|s-97+10;break}if(!((s|0)>=65&(c[q>>2]|0)<=70)){v=34;break a}c[o>>2]=c[o>>2]|(c[q>>2]|0)-65+10}while(0);c[u>>2]=c[u>>2]<<8;c[u>>2]=c[u>>2]|c[o>>2];c[m>>2]=(c[m>>2]|0)+1}c[m>>2]=0;c[(c[(c[g>>2]|0)+16>>2]|0)+((c[n>>2]|0)-1<<2)>>2]=c[u>>2];c[n>>2]=(c[n>>2]|0)+-1}if((v|0)==18){Bp(c[g>>2]|0);c[f>>2]=1;w=c[f>>2]|0;i=e;return w|0}else if((v|0)==20){Bp(c[g>>2]|0);c[f>>2]=1;w=c[f>>2]|0;i=e;return w|0}else if((v|0)==27){Bp(c[g>>2]|0);c[f>>2]=1;w=c[f>>2]|0;i=e;return w|0}else if((v|0)==34){Bp(c[g>>2]|0);c[f>>2]=1;w=c[f>>2]|0;i=e;return w|0}else if((v|0)==37){c[f>>2]=0;w=c[f>>2]|0;i=e;return w|0}return 0}function bp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;k=i;i=i+128|0;if((i|0)>=(j|0))$(128);l=k+112|0;m=k+108|0;n=k+104|0;o=k+100|0;p=k+96|0;q=k+92|0;r=k+88|0;s=k+84|0;t=k+76|0;u=k+72|0;v=k+68|0;w=k+64|0;x=k+60|0;y=k+56|0;z=k+52|0;A=k+48|0;B=k+44|0;C=k+40|0;D=k+36|0;E=k+32|0;F=k+28|0;G=k+24|0;H=k+20|0;I=k+16|0;J=k+12|0;K=k+8|0;L=k+4|0;M=k;c[m>>2]=b;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;c[r>>2]=lo(c[q>>2]|0)|0;if(!(c[p>>2]|0))c[p>>2]=k+80;if(c[(c[q>>2]|0)+8>>2]|0?vo(c[q>>2]|0,0)|0:0)c[t>>2]=1;else c[t>>2]=0;c[s>>2]=c[o>>2];c[c[p>>2]>>2]=0;if((c[m>>2]|0)==1){c[v>>2]=0;c[u>>2]=Vo(c[q>>2]|0,0,w,0)|0;if(!(c[u>>2]|0)){c[l>>2]=Et()|0;N=c[l>>2]|0;i=k;return N|0}if(c[t>>2]|0){cp(c[u>>2]|0,c[w>>2]|0);if(!((d[c[u>>2]>>0]|0)&128)){c[w>>2]=(c[w>>2]|0)+1;c[v>>2]=2}}else if(c[w>>2]|0?(d[c[u>>2]>>0]|0)&128|0:0){c[w>>2]=(c[w>>2]|0)+1;c[v>>2]=1}if(c[n>>2]|0?(c[w>>2]|0)>>>0>(c[s>>2]|0)>>>0:0){vf(c[u>>2]|0);c[l>>2]=66;N=c[l>>2]|0;i=k;return N|0}if(c[n>>2]|0){c[x>>2]=c[n>>2];if((c[v>>2]|0)!=1){if(c[v>>2]|0){o=c[x>>2]|0;c[x>>2]=o+1;a[o>>0]=-1}}else{o=c[x>>2]|0;c[x>>2]=o+1;a[o>>0]=0}Yw(c[x>>2]|0,c[u>>2]|0,(c[w>>2]|0)-(((c[v>>2]|0)!=0^1^1)&1)|0)|0}vf(c[u>>2]|0);c[c[p>>2]>>2]=c[w>>2];c[l>>2]=0;N=c[l>>2]|0;i=k;return N|0}if((c[m>>2]|0)==5){c[y>>2]=(((c[r>>2]|0)+7|0)>>>0)/8|0;if(c[n>>2]|0?(c[y>>2]|0)>>>0>(c[s>>2]|0)>>>0:0){c[l>>2]=66;N=c[l>>2]|0;i=k;return N|0}do if(c[n>>2]|0){c[z>>2]=Vo(c[q>>2]|0,0,y,0)|0;if(c[z>>2]|0){Yw(c[n>>2]|0,c[z>>2]|0,c[y>>2]|0)|0;vf(c[z>>2]|0);break}c[l>>2]=Et()|0;N=c[l>>2]|0;i=k;return N|0}while(0);c[c[p>>2]>>2]=c[y>>2];c[l>>2]=0;N=c[l>>2]|0;i=k;return N|0}if((c[m>>2]|0)==2){c[A>>2]=(((c[r>>2]|0)+7|0)>>>0)/8|0;if(c[t>>2]|0){c[l>>2]=45;N=c[l>>2]|0;i=k;return N|0}if(c[n>>2]|0?((c[A>>2]|0)+2|0)>>>0>(c[s>>2]|0)>>>0:0){c[l>>2]=66;N=c[l>>2]|0;i=k;return N|0}do if(c[n>>2]|0){c[C>>2]=c[n>>2];a[c[C>>2]>>0]=(c[r>>2]|0)>>>8;a[(c[C>>2]|0)+1>>0]=c[r>>2];c[B>>2]=Vo(c[q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>>2]=b;c[h>>2]=e;c[k>>2]=(c[h>>2]|0)-1;while(1){if((c[k>>2]|0)<0)break;if(!((a[(c[g>>2]|0)+(c[k>>2]|0)>>0]|0)!=0^1))break;c[k>>2]=(c[k>>2]|0)+-1}if((c[k>>2]|0)<0){i=f;return}h=d[(c[g>>2]|0)+(c[k>>2]|0)>>0]|0;do if(!(d[(c[g>>2]|0)+(c[k>>2]|0)>>0]&1|0)){e=d[(c[g>>2]|0)+(c[k>>2]|0)>>0]|0;if(h&2|0){a[(c[g>>2]|0)+(c[k>>2]|0)>>0]=(e^252|2)&254;break}b=d[(c[g>>2]|0)+(c[k>>2]|0)>>0]|0;if(e&4|0){a[(c[g>>2]|0)+(c[k>>2]|0)>>0]=(b^248|4)&252;break}e=d[(c[g>>2]|0)+(c[k>>2]|0)>>0]|0;if(b&8|0){a[(c[g>>2]|0)+(c[k>>2]|0)>>0]=(e^240|8)&248;break}b=d[(c[g>>2]|0)+(c[k>>2]|0)>>0]|0;if(e&16|0){a[(c[g>>2]|0)+(c[k>>2]|0)>>0]=(b^224|16)&240;break}e=d[(c[g>>2]|0)+(c[k>>2]|0)>>0]|0;if(b&32|0){a[(c[g>>2]|0)+(c[k>>2]|0)>>0]=(e^192|32)&224;break}b=(c[g>>2]|0)+(c[k>>2]|0)|0;if(e&64|0){a[(c[g>>2]|0)+(c[k>>2]|0)>>0]=(d[b>>0]^128|64)&192;break}else{a[b>>0]=-128;break}}else a[(c[g>>2]|0)+(c[k>>2]|0)>>0]=h^254|1;while(0);c[k>>2]=(c[k>>2]|0)+-1;while(1){if((c[k>>2]|0)<0)break;h=(c[g>>2]|0)+(c[k>>2]|0)|0;a[h>>0]=d[h>>0]^255;c[k>>2]=(c[k>>2]|0)+-1}i=f;return}function dp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+36|0;h=f+32|0;k=f+28|0;l=f+24|0;m=f+20|0;n=f+16|0;o=f+12|0;p=f+8|0;q=f+4|0;r=f;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;if((((c[h>>2]|0)!=0^1)&1|0)==(((c[k>>2]|0)!=0^1)&1|0)){c[g>>2]=45;s=c[g>>2]|0;i=f;return s|0}if(c[h>>2]|0)c[c[h>>2]>>2]=0;c[n>>2]=bp(5,0,0,o,c[l>>2]|0)|0;if(c[n>>2]|0){c[g>>2]=c[n>>2];s=c[g>>2]|0;i=f;return s|0}if((c[o>>2]|0)>>>0>(c[m>>2]|0)>>>0){c[g>>2]=67;s=c[g>>2]|0;i=f;return s|0}if((c[o>>2]|0)>>>0<(c[m>>2]|0)>>>0)t=(c[m>>2]|0)-(c[o>>2]|0)|0;else t=0;c[p>>2]=t;c[q>>2]=(c[o>>2]|0)+(c[p>>2]|0);if(!(c[k>>2]|0)){if(c[l>>2]|0?c[(c[l>>2]|0)+12>>2]&1|0:0)u=sf(c[q>>2]|0)|0;else u=pf(c[q>>2]|0)|0;c[r>>2]=u;if(!(c[r>>2]|0)){c[n>>2]=Et()|0;c[g>>2]=c[n>>2];s=c[g>>2]|0;i=f;return s|0}}else c[r>>2]=c[k>>2];if(c[p>>2]|0)Sw(c[r>>2]|0,0,c[p>>2]|0)|0;c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);c[n>>2]=bp(5,(c[r>>2]|0)+(c[p>>2]|0)|0,(c[o>>2]|0)-(c[p>>2]|0)|0,0,c[l>>2]|0)|0;if(c[n>>2]|0){vf(c[r>>2]|0);c[g>>2]=c[n>>2];s=c[g>>2]|0;i=f;return s|0}if(c[h>>2]|0)c[c[h>>2]>>2]=c[r>>2];c[g>>2]=0;s=c[g>>2]|0;i=f;return s|0}function ep(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+32|0;if((i|0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h+256|0;A=h+252|0;B=h+248|0;C=h+244|0;D=h+240|0;E=h+236|0;F=h+232|0;G=h+228|0;H=h+224|0;I=h+220|0;J=h+216|0;K=h+212|0;L=h+208|0;M=h+204|0;N=h+200|0;O=h+196|0;P=h+192|0;Q=h+188|0;R=h+184|0;T=h+180|0;U=h+176|0;V=h+172|0;W=h+168|0;X=h+164|0;Y=h+160|0;Z=h+156|0;_=h+152|0;aa=h+148|0;ba=h+144|0;ca=h+140|0;da=h+136|0;ea=h+132|0;fa=h+128|0;ga=h+124|0;ha=h+120|0;ia=h+116|0;ja=h+112|0;ka=h+108|0;la=h+104|0;ma=h+100|0;na=h+96|0;oa=h+92|0;pa=h+88|0;qa=h+84|0;ra=h+80|0;sa=h+76|0;ta=h+72|0;ua=h+68|0;va=h+64|0;wa=h+60|0;xa=h+56|0;ya=h+52|0;za=h+48|0;Aa=h+44|0;Ba=h+40|0;Ca=h+36|0;Da=h+32|0;Ea=h+28|0;Fa=h+24|0;Ga=h+20|0;Ha=h+16|0;Ia=h+12|0;Ja=h+8|0;Ka=h+4|0;La=h;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=0;switch(c[p>>2]|0){case 0:{df();break}case 1:{c[t>>2]=c[c[o>>2]>>2];c[s>>2]=c[(c[m>>2]|0)+((c[n>>2]|0)-1<<2)>>2];if((c[s>>2]|0)>>>0>=(c[t>>2]|0)>>>0){c[s>>2]=(c[s>>2]|0)-(c[t>>2]|0);c[q>>2]=1}c[k>>2]=(c[k>>2]|0)+(c[l>>2]<<2);c[r>>2]=(c[n>>2]|0)-2;while(1){if((c[r>>2]|0)<0)break;c[u>>2]=(c[t>>2]|0)>>>16;c[v>>2]=c[t>>2]&65535;c[y>>2]=((c[s>>2]|0)>>>0)%((c[u>>2]|0)>>>0)|0;c[w>>2]=((c[s>>2]|0)>>>0)/((c[u>>2]|0)>>>0)|0;c[A>>2]=S(c[w>>2]|0,c[v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o>>2]|0);c[q>>2]=c[(c[g>>2]|0)+(c[n>>2]<<2)>>2];c[p>>2]=(c[q>>2]|0)-(c[p>>2]|0);c[m>>2]=(c[m>>2]|0)+((c[p>>2]|0)>>>0>(c[q>>2]|0)>>>0?1:0);c[(c[g>>2]|0)+(c[n>>2]<<2)>>2]=c[p>>2];k=(c[n>>2]|0)+1|0;c[n>>2]=k}while((k|0)!=0);i=f;return c[m>>2]|0}function lp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+32|0;h=f+28|0;k=f+24|0;l=f+20|0;m=f+16|0;n=f+12|0;o=f+8|0;p=f+4|0;q=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;c[o>>2]=c[c[k>>2]>>2];if((c[o>>2]|0)>>>0<=1){a:do if((c[o>>2]|0)==1){c[p>>2]=0;while(1){if((c[p>>2]|0)>=(c[l>>2]|0))break a;c[(c[g>>2]|0)+(c[p>>2]<<2)>>2]=c[(c[h>>2]|0)+(c[p>>2]<<2)>>2];c[p>>2]=(c[p>>2]|0)+1}}else{c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[l>>2]|0))break a;c[(c[g>>2]|0)+(c[q>>2]<<2)>>2]=0;c[q>>2]=(c[q>>2]|0)+1}}while(0);c[n>>2]=0}else c[n>>2]=jp(c[g>>2]|0,c[h>>2]|0,c[l>>2]|0,c[o>>2]|0)|0;c[(c[g>>2]|0)+(c[l>>2]<<2)>>2]=c[n>>2];c[g>>2]=(c[g>>2]|0)+4;c[m>>2]=1;while(1){if((c[m>>2]|0)>=(c[l>>2]|0))break;c[o>>2]=c[(c[k>>2]|0)+(c[m>>2]<<2)>>2];if((c[o>>2]|0)>>>0<=1){c[n>>2]=0;if((c[o>>2]|0)==1)c[n>>2]=ep(c[g>>2]|0,c[g>>2]|0,c[h>>2]|0,c[l>>2]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c[t>>2]|0)>>>0<=1){a:do if((c[t>>2]|0)==1){c[u>>2]=0;while(1){if((c[u>>2]|0)>=(c[m>>2]|0))break a;c[(c[k>>2]|0)+(c[u>>2]<<2)>>2]=c[(c[l>>2]|0)+(c[u>>2]<<2)>>2];c[u>>2]=(c[u>>2]|0)+1}}else{c[v>>2]=0;while(1){if((c[v>>2]|0)>=(c[m>>2]|0))break a;c[(c[k>>2]|0)+(c[v>>2]<<2)>>2]=0;c[v>>2]=(c[v>>2]|0)+1}}while(0);c[q>>2]=0}else c[q>>2]=jp(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[t>>2]|0)|0;c[(c[k>>2]|0)+(c[m>>2]<<2)>>2]=c[q>>2];c[k>>2]=(c[k>>2]|0)+4;c[s>>2]=1;while(1){if((c[s>>2]|0)>=(c[o>>2]|0))break;c[t>>2]=c[(c[n>>2]|0)+(c[s>>2]<<2)>>2];if((c[t>>2]|0)>>>0<=1){c[q>>2]=0;if((c[t>>2]|0)==1)c[q>>2]=ep(c[k>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0)|0}else c[q>>2]=qt(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[t>>2]|0)|0;c[(c[k>>2]|0)+(c[m>>2]<<2)>>2]=c[q>>2];c[k>>2]=(c[k>>2]|0)+4;c[s>>2]=(c[s>>2]|0)+1}c[h>>2]=c[q>>2];w=c[h>>2]|0;i=g;return w|0}function pp(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;if(c[(c[d>>2]|0)+16>>2]|0)yp(c[(c[d>>2]|0)+16>>2]|0,c[(c[d>>2]|0)+20>>2]|0);if(c[(c[d>>2]|0)+4>>2]|0)yp(c[(c[d>>2]|0)+4>>2]|0,c[(c[d>>2]|0)+8>>2]|0);c[d>>2]=c[c[d>>2]>>2];while(1){if(!(c[d>>2]|0))break;c[e>>2]=c[c[d>>2]>>2];if(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0-(c[p>>2]|0)<<2);c[k>>2]=(c[k>>2]|0)+(0-(c[p>>2]|0)<<2);c[g>>2]=(c[g>>2]|0)+(0-(c[p>>2]|0)<<2);c[o>>2]=0;do{c[n>>2]=c[(c[k>>2]|0)+(c[p>>2]<<2)>>2];c[m>>2]=c[(c[h>>2]|0)+(c[p>>2]<<2)>>2];c[n>>2]=(c[n>>2]|0)+(c[o>>2]|0);c[o>>2]=(c[n>>2]|0)>>>0<(c[o>>2]|0)>>>0&1;c[n>>2]=(c[m>>2]|0)-(c[n>>2]|0);c[o>>2]=(c[o>>2]|0)+((c[n>>2]|0)>>>0>(c[m>>2]|0)>>>0&1);c[(c[g>>2]|0)+(c[p>>2]<<2)>>2]=c[n>>2];l=(c[p>>2]|0)+1|0;c[p>>2]=l}while((l|0)!=0);i=f;return c[o>>2]|0}function sp(){return 46198}function tp(){var a=0,b=0,d=0,e=0,f=0,g=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+8|0;e=a+4|0;c[d>>2]=0;a:while(1){if((c[d>>2]|0)>=6){f=12;break}switch(c[d>>2]|0){case 0:{c[e>>2]=0;break}case 1:{c[e>>2]=1;break}case 2:{c[e>>2]=2;break}case 3:{c[e>>2]=3;break}case 4:{c[e>>2]=4;break}case 5:{c[e>>2]=8;break}default:{f=10;break a}}g=up(c[e>>2]|0)|0;c[71004+(c[d>>2]<<2)>>2]=g;c[(c[71004+(c[d>>2]<<2)>>2]|0)+12>>2]=48;c[d>>2]=(c[d>>2]|0)+1}if((f|0)==10){c[b>>2]=c[d>>2];Xe(46342,b)}else if((f|0)==12){i=a;return 0}return 0}function up(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=vp(1)|0;c[c[(c[e>>2]|0)+16>>2]>>2]=c[d>>2];c[(c[e>>2]|0)+4>>2]=c[d>>2]|0?1:0;c[(c[e>>2]|0)+8>>2]=0;i=b;return c[e>>2]|0}function vp(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=zf(20)|0;if(c[d>>2]|0)f=wp(c[d>>2]|0,0)|0;else f=0;c[(c[e>>2]|0)+16>>2]=f;c[c[e>>2]>>2]=c[d>>2];c[(c[e>>2]|0)+4>>2]=0;c[(c[e>>2]|0)+8>>2]=0;c[(c[e>>2]|0)+12>>2]=0;i=b;return c[e>>2]|0}function wp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[h>>2]=(c[e>>2]|0?c[e>>2]|0:1)<<2;b=c[h>>2]|0;if(c[f>>2]|0)k=Bf(b)|0;else k=zf(b)|0;c[g>>2]=k;if(c[e>>2]|0){l=c[g>>2]|0;i=d;return l|0}c[c[g>>2]>>2]=0;l=c[g>>2]|0;i=d;return l|0}function xp(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=zf(20)|0;if(c[d>>2]|0)f=wp(c[d>>2]|0,1)|0;else f=0;c[(c[e>>2]|0)+16>>2]=f;c[c[e>>2]>>2]=c[d>>2];c[(c[e>>2]|0)+12>>2]=1;c[(c[e>>2]|0)+4>>2]=0;c[(c[e>>2]|0)+8>>2]=0;i=b;return c[e>>2]|0}function yp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+32|0;o=f;p=f+8|0;c[g>>2]=b;c[h>>2]=e;if(!(c[g>>2]|0)){i=f;return}c[k>>2]=c[h>>2]<<2;a:do if(c[k>>2]|0){c[l>>2]=c[g>>2];c[m>>2]=c[k>>2];a[n>>0]=0;h=o;c[h>>2]=d[n>>0];c[h+4>>2]=0;while(1){if(!(c[l>>2]&7|0?(c[m>>2]|0)!=0:0))break;a[c[l>>2]>>0]=a[n>>0]|0;c[l>>2]=(c[l>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+-1}if((c[m>>2]|0)>>>0>=8){h=o;e=ex(c[h>>2]|0,c[h+4>>2]|0,16843009,16843009)|0;h=o;c[h>>2]=e;c[h+4>>2]=D;do{c[p>>2]=c[l>>2];h=o;e=c[h+4>>2]|0;b=c[p>>2]|0;c[b>>2]=c[h>>2];c[b+4>>2]=e;c[m>>2]=(c[m>>2]|0)-8;c[l>>2]=(c[l>>2]|0)+8}while((c[m>>2]|0)>>>0>=8)}while(1){if(!(c[m>>2]|0))break a;a[c[l>>2]>>0]=a[n>>0]|0;c[l>>2]=(c[l>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+-1}}while(0);vf(c[g>>2]|0);i=f;return}function zp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;yp(c[(c[f>>2]|0)+16>>2]|0,c[c[f>>2]>>2]|0);c[(c[f>>2]|0)+16>>2]=c[g>>2];c[c[f>>2]>>2]=c[h>>2];i=e;return}function Ap(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;b=c[e>>2]|0;if((c[f>>2]|0)>>>0<=(c[c[e>>2]>>2]|0)>>>0){c[g>>2]=c[b+4>>2];while(1){if((c[g>>2]|0)>>>0>=(c[c[e>>2]>>2]|0)>>>0)break;c[(c[(c[e>>2]|0)+16>>2]|0)+(c[g>>2]<<2)>>2]=0;c[g>>2]=(c[g>>2]|0)+1}i=d;return}a=c[e>>2]|0;a:do if(!(c[b+16>>2]|0)){h=c[f>>2]|0;if(c[a+12>>2]&1|0){k=Df(h,4)|0;c[(c[e>>2]|0)+16>>2]=k;break}else{k=Cf(h,4)|0;c[(c[e>>2]|0)+16>>2]=k;break}}else{k=Af(c[a+16>>2]|0,c[f>>2]<<2)|0;c[(c[e>>2]|0)+16>>2]=k;c[g>>2]=c[c[e>>2]>>2];while(1){if((c[g>>2]|0)>>>0>=(c[f>>2]|0)>>>0)break a;c[(c[(c[e>>2]|0)+16>>2]|0)+(c[g>>2]<<2)>>2]=0;c[g>>2]=(c[g>>2]|0)+1}}while(0);c[c[e>>2]>>2]=c[f>>2];i=d;return}function Bp(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(c[d>>2]|0?c[(c[d>>2]|0)+12>>2]&16|0:0){Cp();i=b;return}c[(c[d>>2]|0)+4>>2]=0;c[(c[d>>2]|0)+12>>2]=0;i=b;return}function Cp(){var a=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);Te(46373,a);i=a;return}function Dp(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}if(c[(c[d>>2]|0)+12>>2]&32|0){i=b;return}a=c[(c[d>>2]|0)+16>>2]|0;if(c[(c[d>>2]|0)+12>>2]&4|0)vf(a);else yp(a,c[c[d>>2]>>2]|0);if(c[(c[d>>2]|0)+12>>2]&-3864|0)Xe(46417,b);vf(c[d>>2]|0);i=b;return}function Ep(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(!(c[g>>2]|0))c[g>>2]=vp(0)|0;if(c[g>>2]|0?c[(c[g>>2]|0)+12>>2]&16|0:0){Cp();c[f>>2]=c[g>>2];l=c[f>>2]|0;i=e;return l|0}d=c[(c[g>>2]|0)+16>>2]|0;if(c[(c[g>>2]|0)+12>>2]&4|0)vf(d);else yp(d,c[c[g>>2]>>2]|0);c[(c[g>>2]|0)+16>>2]=c[h>>2];c[c[g>>2]>>2]=0;c[(c[g>>2]|0)+4>>2]=0;c[(c[g>>2]|0)+8>>2]=c[k>>2];c[(c[g>>2]|0)+12>>2]=4|c[(c[g>>2]|0)+12>>2]&3840;if(tf(c[(c[g>>2]|0)+16>>2]|0)|0){k=(c[g>>2]|0)+12|0;c[k>>2]=c[k>>2]|1}c[f>>2]=c[g>>2];l=c[f>>2]|0;i=e;return l|0}function Fp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[m>>2]=(((c[k>>2]|0)+7|0)>>>0)/8|0;d=(tf(c[h>>2]|0)|0)!=0;b=c[m>>2]|0;if(d)n=sf(b)|0;else n=pf(b)|0;c[l>>2]=n;if(c[l>>2]|0){Yw(c[l>>2]|0,c[h>>2]|0,c[m>>2]|0)|0;c[f>>2]=Ep(c[g>>2]|0,c[l>>2]|0,c[k>>2]|0)|0;o=c[f>>2]|0;i=e;return o|0}else{c[f>>2]=0;o=c[f>>2]|0;i=e;return o|0}return 0}function Gp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;c[e>>2]=a;c[f>>2]=b;if(!(c[(c[e>>2]|0)+12>>2]&4))Xe(46449,d);if(c[f>>2]|0)c[c[f>>2]>>2]=c[(c[e>>2]|0)+8>>2];i=d;return c[(c[e>>2]|0)+16>>2]|0}function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vp(c[(c[d>>2]|0)+4>>2]|0)|0;c[f>>2]=m;c[(c[f>>2]|0)+4>>2]=c[(c[d>>2]|0)+4>>2];c[(c[f>>2]|0)+8>>2]=c[(c[d>>2]|0)+8>>2];c[(c[f>>2]|0)+12>>2]=c[(c[d>>2]|0)+12>>2];m=(c[f>>2]|0)+12|0;c[m>>2]=c[m>>2]&-49;c[e>>2]=0;while(1){if((c[e>>2]|0)>=(c[(c[f>>2]|0)+4>>2]|0))break;c[(c[(c[f>>2]|0)+16>>2]|0)+(c[e>>2]<<2)>>2]=c[(c[(c[d>>2]|0)+16>>2]|0)+(c[e>>2]<<2)>>2];c[e>>2]=(c[e>>2]|0)+1}l=c[f>>2]|0;i=b;return l|0}function Jp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=c[e>>2]|0;if((c[e>>2]|0)==(c[f>>2]|0)){if(b|0?c[(c[e>>2]|0)+12>>2]&16|0:0){Cp();i=d;return}}else Kp(b,c[f>>2]|0)|0;c[(c[e>>2]|0)+8>>2]=((c[(c[f>>2]|0)+8>>2]|0)!=0^1)&1;i=d;return}function Kp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+28|0;f=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;l=d+8|0;m=d+4|0;n=d;c[f>>2]=a;c[g>>2]=b;c[l>>2]=c[(c[g>>2]|0)+4>>2];c[m>>2]=c[(c[g>>2]|0)+8>>2];if(!(c[f>>2]|0))c[f>>2]=vp(c[(c[g>>2]|0)+4>>2]|0)|0;if(c[f>>2]|0?c[(c[f>>2]|0)+12>>2]&16|0:0){Cp();c[e>>2]=c[f>>2];o=c[e>>2]|0;i=d;return o|0}if((c[c[f>>2]>>2]|0)<(c[l>>2]|0))Ap(c[f>>2]|0,c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c[n>>2];c[n>>2]=c[m>>2]&(c[(c[f>>2]|0)+8>>2]^c[(c[g>>2]|0)+8>>2]);c[(c[f>>2]|0)+8>>2]=c[(c[f>>2]|0)+8>>2]^c[n>>2];i=e;return c[f>>2]|0}function Op(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;if(!(c[f>>2]|0))c[f>>2]=vp(1)|0;if(c[f>>2]|0?c[(c[f>>2]|0)+12>>2]&16|0:0){Cp();c[e>>2]=c[f>>2];h=c[e>>2]|0;i=d;return h|0}if((c[c[f>>2]>>2]|0)<1)Ap(c[f>>2]|0,1);c[c[(c[f>>2]|0)+16>>2]>>2]=c[g>>2];c[(c[f>>2]|0)+4>>2]=c[g>>2]|0?1:0;c[(c[f>>2]|0)+8>>2]=0;c[(c[f>>2]|0)+12>>2]=0;c[e>>2]=c[f>>2];h=c[e>>2]|0;i=d;return h|0}function Pp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+24|0;f=d+20|0;g=d;c[e>>2]=a;c[f>>2]=b;b=c[e>>2]|0;c[g>>2]=c[b>>2];c[g+4>>2]=c[b+4>>2];c[g+8>>2]=c[b+8>>2];c[g+12>>2]=c[b+12>>2];c[g+16>>2]=c[b+16>>2];b=c[e>>2]|0;e=c[f>>2]|0;c[b>>2]=c[e>>2];c[b+4>>2]=c[e+4>>2];c[b+8>>2]=c[e+8>>2];c[b+12>>2]=c[e+12>>2];c[b+16>>2]=c[e+16>>2];e=c[f>>2]|0;c[e>>2]=c[g>>2];c[e+4>>2]=c[g+4>>2];c[e+8>>2]=c[g+8>>2];c[e+12>>2]=c[g+12>>2];c[e+16>>2]=c[g+16>>2];i=d;return}function Qp(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,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((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=xp((((c[d>>2]|0)+32-1|0)>>>0)/32|0)|0;i=b;return a|0}function Tp(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Dp(c[d>>2]|0);i=b;return}function Up(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[l>>2]=(((c[g>>2]|0)+7|0)>>>0)/8|0;if(c[f>>2]|0?c[(c[f>>2]|0)+12>>2]&16|0:0){Cp();i=e;return}g=(c[f>>2]|0)!=0;if(!(c[h>>2]|0)){if(g?c[(c[f>>2]|0)+12>>2]&1|0:0)m=Bf(c[l>>2]|0)|0;else m=zf(c[l>>2]|0)|0;c[k>>2]=m;nn(c[k>>2]|0,c[l>>2]|0)}else{if(g?c[(c[f>>2]|0)+12>>2]&1|0:0)n=hn(c[l>>2]|0,c[h>>2]|0)|0;else n=fn(c[l>>2]|0,c[h>>2]|0)|0;c[k>>2]=n}Yo(c[f>>2]|0,c[k>>2]|0,c[l>>2]|0,0);vf(c[k>>2]|0);i=e;return}function Vp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;c[f>>2]=a;c[g>>2]=b;switch(c[g>>2]|0){case 1:{c[e>>2]=((c[(c[f>>2]|0)+12>>2]&1|0)!=0^1^1)&1;h=c[e>>2]|0;i=d;return h|0}case 2:{c[e>>2]=((c[(c[f>>2]|0)+12>>2]&4|0)!=0^1^1)&1;h=c[e>>2]|0;i=d;return h|0}case 4:{c[e>>2]=((c[(c[f>>2]|0)+12>>2]&16|0)!=0^1^1)&1;h=c[e>>2]|0;i=d;return h|0}case 8:{c[e>>2]=((c[(c[f>>2]|0)+12>>2]&32|0)!=0^1^1)&1;h=c[e>>2]|0;i=d;return h|0}case 2048:case 1024:case 512:case 256:{c[e>>2]=((c[(c[f>>2]|0)+12>>2]&c[g>>2]|0)!=0^1^1)&1;h=c[e>>2]|0;i=d;return h|0}default:Xe(46542,d)}return 0}function Wp(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;e=b+12|0;c[e>>2]=a;a=c[e>>2]|0;if((c[e>>2]|0)<0|(c[e>>2]|0)>>>0>6){c[d>>2]=a;Xe(46342,d)}if(c[71004+(a<<2)>>2]|0){i=b;return c[71004+(c[e>>2]<<2)>>2]|0}else Xe(46562,b+8|0);return 0}function Xp(){return 46593}function Yp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=i;i=i+96|0;if((i|0)>=(j|0))$(96);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+32|0;o=f+8|0;p=f+4|0;q=f;c[h>>2]=b;c[k>>2]=e;c[l>>2]=Kw(172)|0;if(!(c[l>>2]|0)){c[g>>2]=0;r=c[g>>2]|0;i=f;return r|0}c[c[l>>2]>>2]=1779033703;c[(c[l>>2]|0)+4>>2]=-1150833019;c[(c[l>>2]|0)+8>>2]=1013904242;c[(c[l>>2]|0)+12>>2]=-1521486534;c[(c[l>>2]|0)+16>>2]=1359893119;c[(c[l>>2]|0)+20>>2]=-1694144372;c[(c[l>>2]|0)+24>>2]=528734635;c[(c[l>>2]|0)+28>>2]=1541459225;c[(c[l>>2]|0)+32>>2]=0;c[(c[l>>2]|0)+36>>2]=0;e=(c[l>>2]|0)+40|0;a[e>>0]=a[e>>0]&-2;e=(c[l>>2]|0)+40|0;a[e>>0]=a[e>>0]&-3;a:do if(c[h>>2]|0){e=n;b=e+64|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(b|0));e=(c[l>>2]|0)+105|0;b=e+64|0;do{a[e>>0]=0;e=e+1|0}while((e|0)<(b|0));do if((c[k>>2]|0)>>>0<=64){Yw(n|0,c[h>>2]|0,c[k>>2]|0)|0;Yw((c[l>>2]|0)+105|0,c[h>>2]|0,c[k>>2]|0)|0}else{c[o>>2]=Yp(0,0)|0;if(c[o>>2]|0){Zp(c[o>>2]|0,c[h>>2]|0,c[k>>2]|0);_p(c[o>>2]|0);e=n;s=(c[o>>2]|0)+41|0;b=e+32|0;do{a[e>>0]=a[s>>0]|0;e=e+1|0;s=s+1|0}while((e|0)<(b|0));e=(c[l>>2]|0)+105|0;s=(c[o>>2]|0)+41|0;b=e+32|0;do{a[e>>0]=a[s>>0]|0;e=e+1|0;s=s+1|0}while((e|0)<(b|0));$p(c[o>>2]|0);break}Lw(c[l>>2]|0);c[g>>2]=0;r=c[g>>2]|0;i=f;return r|0}while(0);c[m>>2]=0;while(1){if((c[m>>2]|0)>=64)break;e=n+(c[m>>2]|0)|0;a[e>>0]=(d[e>>0]|0)^54;e=(c[l>>2]|0)+105+(c[m>>2]|0)|0;a[e>>0]=(d[e>>0]|0)^92;c[m>>2]=(c[m>>2]|0)+1}e=(c[l>>2]|0)+40|0;a[e>>0]=a[e>>0]&-3|2;Zp(c[l>>2]|0,n,64);c[p>>2]=n;c[q>>2]=64;while(1){if(!(c[q>>2]|0))break a;a[c[p>>2]>>0]=0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}}while(0);c[g>>2]=c[l>>2];r=c[g>>2]|0;i=f;return r|0}function Zp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=c[h>>2];if((a[(c[g>>2]|0)+40>>0]<<7&255)<<24>>24>>7<<24>>24|0){i=f;return}if((c[(c[g>>2]|0)+36>>2]|0)==64){aq(c[g>>2]|0,(c[g>>2]|0)+41|0);c[(c[g>>2]|0)+36>>2]=0;h=(c[g>>2]|0)+32|0;c[h>>2]=(c[h>>2]|0)+1}if(!(c[l>>2]|0)){i=f;return}if(c[(c[g>>2]|0)+36>>2]|0){while(1){if(!(c[k>>2]|0))break;if((c[(c[g>>2]|0)+36>>2]|0)>=64)break;h=c[l>>2]|0;c[l>>2]=h+1;e=a[h>>0]|0;h=(c[g>>2]|0)+36|0;d=c[h>>2]|0;c[h>>2]=d+1;a[(c[g>>2]|0)+41+d>>0]=e;c[k>>2]=(c[k>>2]|0)+-1}Zp(c[g>>2]|0,0,0);if(!(c[k>>2]|0)){i=f;return}}while(1){if((c[k>>2]|0)>>>0<64)break;aq(c[g>>2]|0,c[l>>2]|0);c[(c[g>>2]|0)+36>>2]=0;e=(c[g>>2]|0)+32|0;c[e>>2]=(c[e>>2]|0)+1;c[k>>2]=(c[k>>2]|0)-64;c[l>>2]=(c[l>>2]|0)+64}while(1){if(!(c[k>>2]|0)){m=15;break}if((c[(c[g>>2]|0)+36>>2]|0)>=64){m=15;break}e=c[l>>2]|0;c[l>>2]=e+1;d=a[e>>0]|0;e=(c[g>>2]|0)+36|0;h=c[e>>2]|0;c[e>>2]=h+1;a[(c[g>>2]|0)+41+h>>0]=d;c[k>>2]=(c[k>>2]|0)+-1}if((m|0)==15){i=f;return}}function _p(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[e>>2]=b;if((a[(c[e>>2]|0)+40>>0]<<7&255)<<24>>24>>7<<24>>24|0){i=d;return}Zp(c[e>>2]|0,0,0);c[f>>2]=c[(c[e>>2]|0)+32>>2];c[h>>2]=c[f>>2]<<6;c[g>>2]=(c[f>>2]|0)>>>26;c[f>>2]=c[h>>2];b=(c[h>>2]|0)+(c[(c[e>>2]|0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]<<6&255)<<24>>24>>7<<24>>24|0){c[f>>2]=(c[e>>2]|0)+105;c[g>>2]=64;while(1){if(!(c[g>>2]|0))break a;a[c[f>>2]>>0]=0;c[f>>2]=(c[f>>2]|0)+1;c[g>>2]=(c[g>>2]|0)+-1}}while(0);Lw(c[e>>2]|0);i=d;return}function aq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;e=i;i=i+384|0;if((i|0)>=(j|0))$(384);f=e+376|0;g=e+372|0;h=e+368|0;k=e+364|0;l=e+360|0;m=e+356|0;n=e+352|0;o=e+348|0;p=e+344|0;q=e+340|0;r=e+336|0;s=e+332|0;t=e+328|0;u=e+264|0;v=e+8|0;w=e+4|0;x=e;c[f>>2]=b;c[g>>2]=d;c[h>>2]=c[g>>2];c[k>>2]=c[c[f>>2]>>2];c[l>>2]=c[(c[f>>2]|0)+4>>2];c[m>>2]=c[(c[f>>2]|0)+8>>2];c[n>>2]=c[(c[f>>2]|0)+12>>2];c[o>>2]=c[(c[f>>2]|0)+16>>2];c[p>>2]=c[(c[f>>2]|0)+20>>2];c[q>>2]=c[(c[f>>2]|0)+24>>2];c[r>>2]=c[(c[f>>2]|0)+28>>2];c[w>>2]=0;c[x>>2]=u;while(1){if((c[w>>2]|0)>=16)break;g=c[h>>2]|0;c[h>>2]=g+1;a[(c[x>>2]|0)+3>>0]=a[g>>0]|0;g=c[h>>2]|0;c[h>>2]=g+1;a[(c[x>>2]|0)+2>>0]=a[g>>0]|0;g=c[h>>2]|0;c[h>>2]=g+1;a[(c[x>>2]|0)+1>>0]=a[g>>0]|0;g=c[h>>2]|0;c[h>>2]=g+1;a[c[x>>2]>>0]=a[g>>0]|0;c[w>>2]=(c[w>>2]|0)+1;c[x>>2]=(c[x>>2]|0)+4}c[w>>2]=0;while(1){if((c[w>>2]|0)>=16)break;c[v+(c[w>>2]<<2)>>2]=c[u+(c[w>>2]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0)+(c[m>>2]|0);m=(c[f>>2]|0)+12|0;c[m>>2]=(c[m>>2]|0)+(c[n>>2]|0);n=(c[f>>2]|0)+16|0;c[n>>2]=(c[n>>2]|0)+(c[o>>2]|0);o=(c[f>>2]|0)+20|0;c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);p=(c[f>>2]|0)+24|0;c[p>>2]=(c[p>>2]|0)+(c[q>>2]|0);q=(c[f>>2]|0)+28|0;c[q>>2]=(c[q>>2]|0)+(c[r>>2]|0);i=e;return}function bq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;i=d;return (c[e>>2]|0)>>>(c[f>>2]|0)|c[e>>2]<<32-(c[f>>2]|0)|0}function cq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=b;c[h>>2]=d;_p(c[g>>2]|0);do if((a[(c[g>>2]|0)+40>>0]<<6&255)<<24>>24>>7<<24>>24|0){c[k>>2]=Yp(0,0)|0;if(c[k>>2]|0){Zp(c[k>>2]|0,(c[g>>2]|0)+105|0,64);Zp(c[k>>2]|0,(c[g>>2]|0)+41|0,32);_p(c[k>>2]|0);d=(c[g>>2]|0)+41|0;b=(c[k>>2]|0)+41|0;l=d+32|0;do{a[d>>0]=a[b>>0]|0;d=d+1|0;b=b+1|0}while((d|0)<(l|0));$p(c[k>>2]|0);break}Lw(c[g>>2]|0);c[f>>2]=0;m=c[f>>2]|0;i=e;return m|0}while(0);if(c[h>>2]|0)c[c[h>>2]>>2]=32;c[f>>2]=(c[g>>2]|0)+41;m=c[f>>2]|0;i=e;return m|0}function dq(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,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u>>2]=(c[u>>2]|0)+1}c[r>>2]=(c[r>>2]|0)+1}if((c[z>>2]|0)>>>0>0){bf((c[z>>2]|0)+16|0);cf()}c[l>>2]=0;B=c[l>>2]|0;i=k;return B|0}function eq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[o>>2]=c[k>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[h>>2]=3;if(!((c[o>>2]|c[p>>2]|c[q>>2])&3)){c[r>>2]=c[o>>2];c[s>>2]=c[p>>2];c[t>>2]=c[q>>2];while(1){if((c[n>>2]|0)>>>0<4)break;m=c[s>>2]|0;c[s>>2]=m+4;l=c[m>>2]|0;m=c[t>>2]|0;c[t>>2]=m+4;k=l^c[m>>2];m=c[r>>2]|0;c[r>>2]=m+4;c[m>>2]=k;c[n>>2]=(c[n>>2]|0)-4}c[o>>2]=c[r>>2];c[p>>2]=c[s>>2];c[q>>2]=c[t>>2]}while(1){if(!(c[n>>2]|0))break;t=c[p>>2]|0;c[p>>2]=t+1;s=d[t>>0]|0;t=c[q>>2]|0;c[q>>2]=t+1;r=(s^(d[t>>0]|0))&255;t=c[o>>2]|0;c[o>>2]=t+1;a[t>>0]=r;c[n>>2]=(c[n>>2]|0)+-1}i=h;return}function fq(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;k=i;i=i+80|0;if((i|0)>=(j|0))$(80);l=k+56|0;m=k+52|0;n=k+48|0;o=k+44|0;p=k+40|0;q=k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|0)>>>1&1|0)c[r>>2]=Jv(c[w>>2]|0,(c[m>>2]|0)+64|0,8)|0;else{c[r>>2]=0;c[s>>2]=0;while(1){if((c[s>>2]|0)>=8)break a;if((d[(c[w>>2]|0)+(c[s>>2]|0)>>0]|0|0)!=166)break;c[s>>2]=(c[s>>2]|0)+1}c[r>>2]=1}while(0);if((c[z>>2]|0)>>>0>0){bf((c[z>>2]|0)+16|0);cf()}c[l>>2]=c[r>>2]|0?10:0;B=c[l>>2]|0;i=k;return B|0}
-function fg(b,f,g,h){b=b|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;k=i;i=i+80|0;if((i|0)>=(j|0))$(80);l=k;m=k+48|0;n=k+44|0;o=k+40|0;p=k+36|0;q=k+32|0;r=k+28|0;s=k+24|0;t=k+52|0;u=k+56|0;v=k+20|0;w=k+16|0;x=k+12|0;y=k+8|0;z=k+4|0;c[n>>2]=b;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;c[v>>2]=0;c[x>>2]=0;c[r>>2]=c[n>>2]|0?c[n>>2]|0:22772;c[s>>2]=c[p>>2];a:while(1){if(!(d[c[r>>2]>>0]|0)){A=55;break}switch(d[c[r>>2]>>0]|0|0){case 3:{c[r>>2]=(c[r>>2]|0)+1;if((c[o>>2]|0)!=1){if(c[x>>2]|0)c[v>>2]=(c[v>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+(c[x>>2]|0)}c[v>>2]=(c[v>>2]|0)+1;if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=10;break a}b:do if((c[o>>2]|0)!=1){if(c[x>>2]|0){n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=10}c[w>>2]=0;while(1){if((c[w>>2]|0)>=(c[x>>2]|0))break b;n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=32;c[w>>2]=(c[w>>2]|0)+1}}while(0);n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=40}c[x>>2]=(c[x>>2]|0)+1;continue a;break}case 4:{c[r>>2]=(c[r>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+1;if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=21;break a}n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=41}c[x>>2]=(c[x>>2]|0)+-1;if((d[c[r>>2]>>0]|0|0)==3)continue a;if(!((c[o>>2]|0)!=1?(d[c[r>>2]>>0]|0|0)!=0:0))continue a;c[v>>2]=(c[v>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+(c[x>>2]|0);if(!(c[p>>2]|0))continue a;if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=27;break a}n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=10;c[w>>2]=0;while(1){if((c[w>>2]|0)>=(c[x>>2]|0))continue a;n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=32;c[w>>2]=(c[w>>2]|0)+1}break}case 1:{c[r>>2]=(c[r>>2]|0)+1;n=c[r>>2]|0;a[t>>0]=a[n>>0]|0;a[t+1>>0]=a[n+1>>0]|0;c[r>>2]=(c[r>>2]|0)+2;if((c[o>>2]|0)==3){n=gg(c[r>>2]|0,e[t>>1]|0)|0;c[y>>2]=n;switch(n|0){case 1:{c[z>>2]=hg(c[r>>2]|0,e[t>>1]|0,0)|0;break}case 2:{c[z>>2]=ig(c[r>>2]|0,e[t>>1]|0,0)|0;break}default:c[z>>2]=jg(c[r>>2]|0,e[t>>1]|0,0)|0}c[v>>2]=(c[v>>2]|0)+(c[z>>2]|0);if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=38;break a}switch(c[y>>2]|0){case 1:{hg(c[r>>2]|0,e[t>>1]|0,c[s>>2]|0)|0;break}case 2:{ig(c[r>>2]|0,e[t>>1]|0,c[s>>2]|0)|0;break}default:jg(c[r>>2]|0,e[t>>1]|0,c[s>>2]|0)|0}c[s>>2]=(c[s>>2]|0)+(c[z>>2]|0)}if((d[(c[r>>2]|0)+(e[t>>1]|0)>>0]|0|0)!=4?(c[v>>2]=(c[v>>2]|0)+1,c[p>>2]|0):0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=47;break a}n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=32}}else{c[l>>2]=e[t>>1];Dv(u,22775,l)|0;n=hv(u)|0;c[v>>2]=(c[v>>2]|0)+(n+(e[t>>1]|0));if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=51;break a}c[s>>2]=uv(c[s>>2]|0,u)|0;Yw(c[s>>2]|0,c[r>>2]|0,e[t>>1]|0|0)|0;c[s>>2]=(c[s>>2]|0)+(e[t>>1]|0)}}c[r>>2]=(c[r>>2]|0)+(e[t>>1]|0);continue a;break}default:{A=54;break a}}}if((A|0)==10){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==21){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==27){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==38){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==47){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==51){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==54)Re(22704,2008,22779);else if((A|0)==55){do if((c[o>>2]|0)!=1?(c[v>>2]=(c[v>>2]|0)+1,c[p>>2]|0):0){if((c[v>>2]|0)>>>0<(c[q>>2]|0)>>>0){A=c[s>>2]|0;c[s>>2]=A+1;a[A>>0]=10;break}c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}while(0);o=c[v>>2]|0;do if(c[p>>2]|0){if(o>>>0<(c[q>>2]|0)>>>0){A=c[s>>2]|0;c[s>>2]=A+1;a[A>>0]=0;break}c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else c[v>>2]=o+1;while(0);c[m>>2]=c[v>>2];B=c[m>>2]|0;i=k;return B|0}return 0}function gg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;m=f;c[h>>2]=b;c[k>>2]=e;c[m>>2]=1;if(!(c[k>>2]|0)){c[g>>2]=1;n=c[g>>2]|0;i=f;return n|0}if(d[c[h>>2]>>0]&128|0){c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}if(!(a[c[h>>2]>>0]|0)){c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}c[l>>2]=c[h>>2];while(1){if(!(c[k>>2]|0))break;if((d[c[l>>2]>>0]|0)>=32){if((d[c[l>>2]>>0]|0)>=127?(d[c[l>>2]>>0]|0)<=160:0)o=12}else o=12;if((o|0)==12?(o=0,(Vv(22802,d[c[l>>2]>>0]|0)|0)==0):0){o=13;break}do if(c[m>>2]|0){if((d[c[l>>2]>>0]|0)>=65?(d[c[l>>2]>>0]|0)<=90:0)break;if((d[c[l>>2]>>0]|0)>=97?(d[c[l>>2]>>0]|0)<=122:0)break;if((d[c[l>>2]>>0]|0)>=48?(d[c[l>>2]>>0]|0)<=57:0)break;if(!(Vv(22812,d[c[l>>2]>>0]|0)|0))c[m>>2]=0}while(0);c[l>>2]=(c[l>>2]|0)+1;c[k>>2]=(c[k>>2]|0)+-1}if((o|0)==13){c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}c[l>>2]=c[h>>2];do if(c[m>>2]|0){if((d[c[l>>2]>>0]|0)>=48?(d[c[l>>2]>>0]|0)<=57:0)break;c[g>>2]=2;n=c[g>>2]|0;i=f;return n|0}while(0);c[g>>2]=1;n=c[g>>2]|0;i=f;return n|0}function hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g;k=g+24|0;l=g+20|0;m=g+16|0;n=g+12|0;o=g+8|0;p=g+4|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;if(!(c[n>>2]|0)){c[p>>2]=2;while(1){if(!(c[m>>2]|0))break;a:do switch(d[c[l>>2]>>0]|0|0){case 92:case 39:case 34:case 13:case 12:case 10:case 11:case 9:case 8:{c[p>>2]=(c[p>>2]|0)+2;break}default:{do if((d[c[l>>2]>>0]|0|0)>=32){if((d[c[l>>2]>>0]|0|0)>=127?(d[c[l>>2]>>0]|0|0)<=160:0)break;c[p>>2]=(c[p>>2]|0)+1;break a}while(0);c[p>>2]=(c[p>>2]|0)+4}}while(0);c[m>>2]=(c[m>>2]|0)+-1;c[l>>2]=(c[l>>2]|0)+1}c[k>>2]=c[p>>2];q=c[k>>2]|0;i=g;return q|0}c[o>>2]=c[n>>2];p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=34;while(1){if(!(c[m>>2]|0))break;b:do switch(d[c[l>>2]>>0]|0|0){case 8:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=98;break}case 9:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=116;break}case 11:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=118;break}case 10:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=110;break}case 12:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=102;break}case 13:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=114;break}case 34:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=34;break}case 39:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=39;break}case 92:{p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;p=c[o>>2]|0;c[o>>2]=p+1;a[p>>0]=92;break}default:{do if((d[c[l>>2]>>0]|0|0)>=32){if((d[c[l>>2]>>0]|0|0)>=127?(d[c[l>>2]>>0]|0|0)<=160:0)break;p=a[c[l>>2]>>0]|0;f=c[o>>2]|0;c[o>>2]=f+1;a[f>>0]=p;break b}while(0);p=c[o>>2]|0;c[h>>2]=d[c[l>>2]>>0];Dv(p,22626,h)|0;c[o>>2]=(c[o>>2]|0)+4}}while(0);c[m>>2]=(c[m>>2]|0)+-1;c[l>>2]=(c[l>>2]|0)+1}l=c[o>>2]|0;c[o>>2]=l+1;a[l>>0]=34;c[k>>2]=(c[o>>2]|0)-(c[n>>2]|0);q=c[k>>2]|0;i=g;return q|0}function ig(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(!(c[h>>2]|0)){k=c[g>>2]|0;i=e;return k|0}Yw(c[h>>2]|0,c[f>>2]|0,c[g>>2]|0)|0;k=c[g>>2]|0;i=e;return k|0}function jg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g;k=g+16|0;l=g+12|0;m=g+8|0;n=g+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;if(!(c[m>>2]|0)){o=c[l>>2]|0;p=o<<1;q=p+2|0;i=g;return q|0}f=c[m>>2]|0;c[m>>2]=f+1;a[f>>0]=35;c[n>>2]=0;while(1){r=c[m>>2]|0;if((c[n>>2]|0)>>>0>=(c[l>>2]|0)>>>0)break;c[h>>2]=d[(c[k>>2]|0)+(c[n>>2]|0)>>0];Dv(r,22797,h)|0;c[n>>2]=(c[n>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+2}c[m>>2]=r+1;a[r>>0]=35;o=c[l>>2]|0;p=o<<1;q=p+2|0;i=g;return q|0}function kg(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;g=i;i=i+192|0;if((i|0)>=(j|0))$(192);h=g+164|0;k=g+160|0;l=g+156|0;m=g+152|0;n=g+148|0;o=g+144|0;p=g+140|0;q=g+136|0;r=g+56|0;s=g+168|0;t=g+48|0;u=g+44|0;v=g+40|0;w=g+36|0;x=g+32|0;y=g+28|0;z=g+24|0;A=g+20|0;B=g+16|0;C=g+12|0;D=g+8|0;E=g+4|0;F=g;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[v>>2]=43;c[w>>2]=0;f=s;e=f+20|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(e|0));c[p>>2]=c[m>>2];c[t>>2]=0;while(1){G=a[c[p>>2]>>0]|0;if(!(a[c[p>>2]>>0]|0?(c[t>>2]|0)>>>0<20:0)){H=18;break}if((((((G<<24>>24|0)!=38?(a[c[p>>2]>>0]|0)!=43:0)?(a[c[p>>2]>>0]|0)!=45:0)?(a[c[p>>2]>>0]|0)!=47:0)?(a[c[p>>2]>>0]|0)!=63:0)?(Nf(c[p>>2]|0)|0)==0:0){if((a[c[p>>2]>>0]|0)==39){c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=Vv(c[p>>2]|0,39)|0;if(!(c[q>>2]|0)){H=12;break}if((c[q>>2]|0)==(c[p>>2]|0)){H=12;break}c[p>>2]=c[q>>2]}f=c[n>>2]|0;e=(c[f>>2]|0)+(4-1)&~(4-1);d=c[e>>2]|0;c[f>>2]=e+4;c[x>>2]=d;c[r+(c[t>>2]<<2)>>2]=c[x>>2];if(!(c[r+(c[t>>2]<<2)>>2]|0)){H=15;break}c[t>>2]=(c[t>>2]|0)+1}c[p>>2]=(c[p>>2]|0)+1}if((H|0)==12){c[h>>2]=29;I=c[h>>2]|0;i=g;return I|0}else if((H|0)==15){c[h>>2]=128;I=c[h>>2]|0;i=g;return I|0}else if((H|0)==18){if(G<<24>>24){c[h>>2]=183;I=c[h>>2]|0;i=g;return I|0}G=c[n>>2]|0;n=(c[G>>2]|0)+(4-1)&~(4-1);x=c[n>>2]|0;c[G>>2]=n+4;c[y>>2]=x;if(c[y>>2]|0){c[h>>2]=45;I=c[h>>2]|0;i=g;return I|0}while(1){if(!(c[l>>2]|0)){H=33;break}if(!(a[c[l>>2]>>0]|0)){H=33;break}c[p>>2]=Vv(c[l>>2]|0,33)|0;if((c[p>>2]|0)==(c[l>>2]|0)){H=25;break}if(c[p>>2]|0)J=(c[p>>2]|0)-(c[l>>2]|0)|0;else J=0;c[z>>2]=J;c[u>>2]=Tf(c[k>>2]|0,c[l>>2]|0,c[z>>2]|0)|0;if(!(c[u>>2]|0)){H=29;break}c[k>>2]=c[u>>2];c[u>>2]=0;Rf(c[w>>2]|0);c[w>>2]=c[k>>2];if(c[z>>2]|0){c[l>>2]=(c[l>>2]|0)+((c[z>>2]|0)+1);continue}else{c[l>>2]=0;continue}}do if((H|0)==25)c[o>>2]=27;else if((H|0)==29)c[o>>2]=27;else if((H|0)==33){c[p>>2]=c[m>>2];c[t>>2]=0;a:while(1){if(!(a[c[p>>2]>>0]|0)){H=76;break}if((((a[c[p>>2]>>0]|0)!=38?(a[c[p>>2]>>0]|0)!=43:0)?(a[c[p>>2]>>0]|0)!=45:0)?(a[c[p>>2]>>0]|0)!=47:0){if((Nf(c[p>>2]|0)|0)==0?(a[c[p>>2]>>0]|0)!=63:0){if((a[c[p>>2]>>0]|0)==39){c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=Vv(c[p>>2]|0,39)|0;if(!(c[q>>2]|0)){H=45;break}if((c[q>>2]|0)==(c[p>>2]|0)){H=45;break}c[u>>2]=Tf(c[k>>2]|0,c[p>>2]|0,(c[q>>2]|0)-(c[p>>2]|0)|0)|0;c[p>>2]=c[q>>2]}else c[u>>2]=Tf(c[k>>2]|0,c[p>>2]|0,1)|0;do if(!(c[u>>2]|0)?(a[(c[p>>2]|0)+1>>0]|0)==63:0){l=c[r+(c[t>>2]<<2)>>2]|0;if((c[v>>2]|0)!=38){c[l>>2]=0;break}c[A>>2]=l;if(!(c[(c[A>>2]|0)+12>>2]|0)){c[c[A>>2]>>2]=0;c[(c[A>>2]|0)+4>>2]=0}c[(c[A>>2]|0)+8>>2]=0}else H=55;while(0);if((H|0)==55){H=0;if(!(c[u>>2]|0)){H=56;break}do if((c[v>>2]|0)!=38){if((c[v>>2]|0)==47){l=$f(c[u>>2]|0,1,8)|0;c[c[r+(c[t>>2]<<2)>>2]>>2]=l;break}l=c[u>>2]|0;if((c[v>>2]|0)==45){z=$f(l,1,1)|0;c[c[r+(c[t>>2]<<2)>>2]>>2]=z;break}else{z=$f(l,1,5)|0;c[c[r+(c[t>>2]<<2)>>2]>>2]=z;break}}else{c[B>>2]=c[r+(c[t>>2]<<2)>>2];z=c[u>>2]|0;if(!(c[(c[B>>2]|0)+12>>2]|0)){l=Zf(z,1,c[B>>2]|0)|0;c[(c[B>>2]|0)+12>>2]=l;if(!(c[(c[B>>2]|0)+12>>2]|0)){H=65;break a}c[(c[B>>2]|0)+8>>2]=c[c[B>>2]>>2];c[(c[B>>2]|0)+4>>2]=0;a[s+(c[t>>2]|0)>>0]=2;break}c[C>>2]=Xf(z,1,D)|0;if(!((c[C>>2]|0)!=0&(c[D>>2]|0)!=0)){H=60;break a}if(((c[(c[B>>2]|0)+4>>2]|0)+(c[D>>2]|0)|0)>>>0>(c[c[B>>2]>>2]|0)>>>0){H=62;break a}Yw((c[(c[B>>2]|0)+12>>2]|0)+(c[(c[B>>2]|0)+4>>2]|0)|0,c[C>>2]|0,c[D>>2]|0)|0;c[(c[B>>2]|0)+8>>2]=c[D>>2];a[s+(c[t>>2]|0)>>0]=1}while(0);Rf(c[u>>2]|0);c[u>>2]=0;if(!(c[c[r+(c[t>>2]<<2)>>2]>>2]|0)){H=73;break}}c[t>>2]=(c[t>>2]|0)+1}}else c[v>>2]=a[c[p>>2]>>0];c[p>>2]=(c[p>>2]|0)+1}if((H|0)==45){c[o>>2]=29;break}else if((H|0)==56){c[o>>2]=68;break}else if((H|0)==60){c[o>>2]=65;break}else if((H|0)==62){c[o>>2]=200;break}else if((H|0)==65){c[o>>2]=65;break}else if((H|0)==73){c[o>>2]=65;break}else if((H|0)==76){Rf(c[w>>2]|0);c[h>>2]=0;I=c[h>>2]|0;i=g;return I|0}}while(0);Rf(c[w>>2]|0);Rf(c[u>>2]|0);while(1){u=c[t>>2]|0;c[t>>2]=u+-1;if(!u)break;u=c[t>>2]|0;if(!(a[s+(c[t>>2]|0)>>0]|0)){Tp(c[c[r+(u<<2)>>2]>>2]|0);c[c[r+(c[t>>2]<<2)>>2]>>2]=0;continue}w=c[r+(c[t>>2]<<2)>>2]|0;if((((a[s+u>>0]|0)!=0^1)&1|0)==1){c[E>>2]=w;c[(c[E>>2]|0)+8>>2]=0;continue}else{c[F>>2]=w;vf(c[(c[F>>2]|0)+12>>2]|0);c[(c[F>>2]|0)+12>>2]=0;c[(c[F>>2]|0)+8>>2]=0;c[(c[F>>2]|0)+4>>2]=0;c[c[F>>2]>>2]=0;continue}}c[h>>2]=c[o>>2];I=c[h>>2]|0;i=g;return I|0}return 0}function lg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[m>>2]=e;c[l>>2]=kg(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,m)|0;m=mg(c[l>>2]|0)|0;i=f;return m|0}function mg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=ng(1,c[d>>2]|0)|0;i=b;return a|0}function ng(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function og(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[e>>2]=a;c[f>>2]=0;while(1){if((c[f>>2]|0)>>>0>=13){g=6;break}a=(Fu(c[1180+(c[f>>2]<<3)+4>>2]|0,c[e>>2]|0)|0)!=0;h=c[f>>2]|0;if(!a){g=4;break}c[f>>2]=h+1}if((g|0)==4){c[17711]=c[17711]|c[1180+(h<<3)>>2];c[d>>2]=0;k=c[d>>2]|0;i=b;return k|0}else if((g|0)==6){c[d>>2]=88;k=c[d>>2]|0;i=b;return k|0}return 0}function pg(){return c[17712]|0}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;if((c[f>>2]|0)<0|(c[f>>2]|0)>>>0>=13){c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}if(c[g>>2]|0)c[c[g>>2]>>2]=c[1180+(c[f>>2]<<3)>>2];c[e>>2]=c[1180+(c[f>>2]<<3)+4>>2];h=c[e>>2]|0;i=d;return h|0}function rg(){c[17712]=0;if(Wg()|0)return;sg();c[17712]=c[17712]&~c[17711];return}function sg(){var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;b=i;i=i+288|0;if((i|0)>=(j|0))$(288);d=b+20|0;e=b+16|0;f=b+24|0;g=b+12|0;h=b+8|0;k=b+4|0;l=b;c[d>>2]=22971;c[l>>2]=0;c[e>>2]=Pv(c[d>>2]|0,23624)|0;if(!(c[e>>2]|0)){i=b;return}while(1){if(!(Gv(f,256,c[e>>2]|0)|0))break;c[l>>2]=(c[l>>2]|0)+1;c[g>>2]=f;while(1){if(a[c[g>>2]>>0]&128|0)break;if(!(vv(a[c[g>>2]>>0]|0)|0))break;c[g>>2]=(c[g>>2]|0)+1}c[h>>2]=Vv(c[g>>2]|0,10)|0;if(c[h>>2]|0)a[c[h>>2]>>0]=0;d=c[g>>2]|0;if(a[c[g>>2]>>0]|0)m=(hv(c[g>>2]|0)|0)-1|0;else m=0;c[h>>2]=d+m;while(1){if((c[h>>2]|0)>>>0<=(c[g>>2]|0)>>>0)break;if((a[c[h>>2]>>0]&128|0)==0?vv(a[c[h>>2]>>0]|0)|0:0)a[c[h>>2]>>0]=0;c[h>>2]=(c[h>>2]|0)+-1}if(!(a[c[g>>2]>>0]|0))continue;if((a[c[g>>2]>>0]|0)==35)continue;c[k>>2]=0;while(1){if((c[k>>2]|0)>>>0>=13)break;d=(Fu(c[1180+(c[k>>2]<<3)+4>>2]|0,c[g>>2]|0)|0)!=0;n=c[k>>2]|0;if(!d){o=23;break}c[k>>2]=n+1}if((o|0)==23){o=0;c[17711]=c[17711]|c[1180+(n<<3)>>2]}}aw(c[e>>2]|0)|0;Qv(c[e>>2]|0)|0;i=b;return}function tg(){c[17713]=1;return}function ug(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=b;if(!(c[f>>2]|0)){Ft(22);c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}b=c[f>>2]|0;if(!(c[17713]|0)){c[e>>2]=Kw(b)|0;h=c[e>>2]|0;i=d;return h|0}k=Kw(b+0+5|0)|0;c[g>>2]=k;if(k|0){a[c[g>>2]>>0]=c[f>>2];a[(c[g>>2]|0)+1>>0]=(c[f>>2]|0)>>>8;a[(c[g>>2]|0)+2>>0]=(c[f>>2]|0)>>>16;a[(c[g>>2]|0)+3>>0]=85;a[(c[g>>2]|0)+(4+(c[f>>2]|0))>>0]=-86;c[e>>2]=(c[g>>2]|0)+4;h=c[e>>2]|0;i=d;return h|0}else{c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}return 0}function vg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=b;if(!(c[f>>2]|0)){Ft(22);c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}b=c[f>>2]|0;if(!(c[17713]|0)){c[e>>2]=Hg(b)|0;h=c[e>>2]|0;i=d;return h|0}k=Hg(b+0+5|0)|0;c[g>>2]=k;if(k|0){a[c[g>>2]>>0]=c[f>>2];a[(c[g>>2]|0)+1>>0]=(c[f>>2]|0)>>>8;a[(c[g>>2]|0)+2>>0]=(c[f>>2]|0)>>>16;a[(c[g>>2]|0)+3>>0]=-52;a[(c[g>>2]|0)+(4+(c[f>>2]|0))>>0]=-86;c[e>>2]=(c[g>>2]|0)+4;h=c[e>>2]|0;i=d;return h|0}else{c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}return 0}function wg(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;c[g>>2]=a;c[h>>2]=b;b=c[g>>2]|0;if(!(c[17713]|0)){a=(Sg(b)|0)!=0;n=c[g>>2]|0;o=c[h>>2]|0;if(a){c[f>>2]=Rg(n,o)|0;p=c[f>>2]|0;i=e;return p|0}else{c[f>>2]=Nw(n,o)|0;p=c[f>>2]|0;i=e;return p|0}}c[k>>2]=b;if(!(c[g>>2]|0)){c[f>>2]=ug(c[h>>2]|0)|0;p=c[f>>2]|0;i=e;return p|0}xg(c[k>>2]|0);c[m>>2]=d[(c[k>>2]|0)+-4>>0];c[m>>2]=c[m>>2]|(d[(c[k>>2]|0)+-3>>0]|0)<<8;c[m>>2]=c[m>>2]|(d[(c[k>>2]|0)+-2>>0]|0)<<16;if((c[m>>2]|0)>>>0>=(c[h>>2]|0)>>>0){c[f>>2]=c[g>>2];p=c[f>>2]|0;i=e;return p|0}b=c[h>>2]|0;if((d[(c[k>>2]|0)+-1>>0]|0|0)==204)c[l>>2]=vg(b)|0;else c[l>>2]=ug(b)|0;if(c[l>>2]|0){Yw(c[l>>2]|0,c[g>>2]|0,c[m>>2]|0)|0;Sw((c[l>>2]|0)+(c[m>>2]|0)|0,0,(c[h>>2]|0)-(c[m>>2]|0)|0)|0;yg(c[k>>2]|0);c[f>>2]=c[l>>2];p=c[f>>2]|0;i=e;return p|0}else{c[f>>2]=0;p=c[f>>2]|0;i=e;return p|0}return 0}function xg(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=b+8|0;f=b;g=b+24|0;h=b+20|0;k=b+16|0;c[g>>2]=a;if(!(c[17713]|0)){i=b;return}c[h>>2]=c[g>>2];if(!(c[h>>2]|0)){i=b;return}if((d[(c[h>>2]|0)+-1>>0]|0|0)!=85?(d[(c[h>>2]|0)+-1>>0]|0|0)!=204:0){g=d[(c[h>>2]|0)+-1>>0]|0;c[f>>2]=c[h>>2];c[f+4>>2]=g;We(22992,f)}c[k>>2]=d[(c[h>>2]|0)+-4>>0];c[k>>2]=c[k>>2]|(d[(c[h>>2]|0)+-3>>0]|0)<<8;c[k>>2]=c[k>>2]|(d[(c[h>>2]|0)+-2>>0]|0)<<16;if((d[(c[h>>2]|0)+(c[k>>2]|0)>>0]|0|0)!=170){k=d[(c[h>>2]|0)+-1>>0]|0;c[e>>2]=c[h>>2];c[e+4>>2]=k;We(23033,e)}else{i=b;return}}function yg(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];if(!(c[e>>2]|0)){i=b;return}if(c[17713]|0){xg(c[e>>2]|0);a=(Sg(c[d>>2]|0)|0)!=0;f=(c[e>>2]|0)+-4|0;if(a){Pg(f);i=b;return}else{Lw(f);i=b;return}}else{f=(Sg(c[d>>2]|0)|0)!=0;d=c[e>>2]|0;if(f){Pg(d);i=b;return}else{Lw(d);i=b;return}}}function zg(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;Ht(1284)|0;c[e>>2]=c[17714];c[17715]=c[d>>2]&1;c[17714]=c[d>>2]&2;c[17716]=c[d>>2]&8;c[17717]=c[d>>2]&16;if(!((((c[e>>2]|0)==0|(c[17714]|0)!=0)^1)&(c[17718]|0)!=0)){It(1284)|0;i=b;return}c[17718]=0;Ag();It(1284)|0;i=b;return}function Ag(){var a=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);if(c[17715]|0){i=a;return}Te(Je(23073)|0,a);i=a;return}function Bg(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;Ht(1284)|0;c[b>>2]=c[17715]|0?1:0;c[b>>2]=c[b>>2]|(c[17714]|0?2:0);c[b>>2]=c[b>>2]|(c[17719]|0?4:0);c[b>>2]=c[b>>2]|(c[17716]|0?8:0);c[b>>2]=c[b>>2]|(c[17717]|0?16:0);It(1284)|0;i=a;return c[b>>2]|0}function Cg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Ht(1284)|0;Dg(c[d>>2]|0);It(1284)|0;i=b;return}function Dg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+8|0;e=b;f=b+16|0;g=b+12|0;c[f>>2]=a;if(c[f>>2]|0){if((c[f>>2]|0)>>>0<16384)c[f>>2]=16384;if(c[17721]|0){Ve(23129,d);i=b;return}else{Eg(c[f>>2]|0);Fg(c[17722]|0,c[f>>2]|0);i=b;return}}c[17720]=1;c[g>>2]=kw()|0;f=c[g>>2]|0;if((f|0)==(nw()|0)){i=b;return}if(ow(c[g>>2]|0)|0)We(23106,e);g=kw()|0;if((g|0)!=(nw()|0))We(23106,e);if(ow(0)|0){i=b;return}else We(23106,e)}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;b=i;i=i+48|0;if((i|0)>=(j|0))$(48);d=b+16|0;e=b+8|0;f=b+32|0;g=b+28|0;h=b+24|0;k=b+20|0;c[f>>2]=a;c[17723]=c[f>>2];if(c[17720]|0)Xe(23237,b);c[h>>2]=Ra(30)|0;c[g>>2]=(c[h>>2]|0)!=-1&(c[h>>2]|0)>0?c[h>>2]|0:4096;c[17723]=(c[17723]|0)+(c[g>>2]|0)-1&~((c[g>>2]|0)-1);c[17722]=rw(0,c[17723]|0,3,34,-1,0)|0;if((c[17722]|0)==(-1|0)){g=c[17723]|0;h=Nu(c[(xu()|0)>>2]|0)|0;c[e>>2]=g;c[e+4>>2]=h;Te(23263,e)}else{c[17724]=1;c[17721]=1}if(c[17721]|0){l=c[17722]|0;c[k>>2]=l;m=c[17723]|0;n=c[k>>2]|0;c[n>>2]=m;o=c[k>>2]|0;p=o+4|0;c[p>>2]=0;i=b;return}c[17722]=Kw(c[17723]|0)|0;if(!(c[17722]|0)){c[d>>2]=c[17723];We(23311,d)}c[17721]=1;l=c[17722]|0;c[k>>2]=l;m=c[17723]|0;n=c[k>>2]|0;c[n>>2]=m;o=c[k>>2]|0;p=o+4|0;c[p>>2]=0;i=b;return}function Fg(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[d+8>>2]=a;c[d+4>>2]=b;if(c[17716]|0){i=d;return}Te(23175,d);i=d;return}function Gg(){return 0}function Hg(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;Ht(1284)|0;c[e>>2]=Ig(c[d>>2]|0)|0;It(1284)|0;i=b;return c[e>>2]|0}function Ig(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+8|0;e=b;f=b+20|0;g=b+16|0;h=b+12|0;c[g>>2]=a;if((c[17721]|0)==0?(Dg(32768),(c[17721]|0)==0):0){Te(Je(23351)|0,e);Ft(12);c[f>>2]=0;k=c[f>>2]|0;i=b;return k|0}if(c[17719]|0?Wg()|0:0){Te(Je(23412)|0,d);Ft(12);c[f>>2]=0;k=c[f>>2]|0;i=b;return k|0}if(!((c[17718]|0)==0|(c[17714]|0)!=0)){c[17718]=0;Ag()}c[g>>2]=((((c[g>>2]|0)+31|0)>>>0)/32|0)<<5;c[h>>2]=Jg(c[17722]|0,c[g>>2]|0)|0;if(c[h>>2]|0)Kg(c[g>>2]|0,0);c[f>>2]=c[h>>2]|0?(c[h>>2]|0)+8|0:0;k=c[f>>2]|0;i=b;return k|0}function Jg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=c[e>>2];while(1){if(!(Lg(c[g>>2]|0)|0))break;if((c[(c[g>>2]|0)+4>>2]&1|0)==0?(c[c[g>>2]>>2]|0)>>>0>=(c[f>>2]|0)>>>0:0){k=5;break}c[g>>2]=Ng(c[g>>2]|0)|0}if((k|0)==5?(k=(c[g>>2]|0)+4|0,c[k>>2]=c[k>>2]|1,((c[c[g>>2]>>2]|0)-(c[f>>2]|0)|0)>>>0>8):0){c[h>>2]=(c[g>>2]|0)+8+(c[f>>2]|0);c[c[h>>2]>>2]=(c[c[g>>2]>>2]|0)-(c[f>>2]|0)-8;c[(c[h>>2]|0)+4>>2]=0;c[c[g>>2]>>2]=c[f>>2];Mg(c[h>>2]|0)}if(Lg(c[g>>2]|0)|0){l=c[g>>2]|0;i=d;return l|0}Ft(12);c[g>>2]=0;l=c[g>>2]|0;i=d;return l|0}function Kg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(c[e>>2]|0){c[17725]=(c[17725]|0)+(c[e>>2]|0);c[17726]=(c[17726]|0)+1}if(!(c[f>>2]|0)){i=d;return}c[17725]=(c[17725]|0)-(c[f>>2]|0);c[17726]=(c[17726]|0)+-1;i=d;return}function Lg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=c[d>>2];c[f>>2]=c[17722];if((c[e>>2]|0)>>>0<(c[f>>2]|0)>>>0){g=0;h=g&1;i=b;return h|0}g=(c[e>>2]|0)>>>0<((c[f>>2]|0)+(c[17723]|0)|0)>>>0;h=g&1;i=b;return h|0}function Mg(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=Og(c[d>>2]|0)|0;c[f>>2]=Ng(c[d>>2]|0)|0;if(c[e>>2]|0?(c[(c[e>>2]|0)+4>>2]&1|0)==0:0){a=c[e>>2]|0;c[a>>2]=(c[a>>2]|0)+(8+(c[c[d>>2]>>2]|0));c[d>>2]=c[e>>2]}if(!(c[f>>2]|0)){i=b;return}if(c[(c[f>>2]|0)+4>>2]&1|0){i=b;return}e=c[d>>2]|0;c[e>>2]=(c[e>>2]|0)+(8+(c[c[f>>2]>>2]|0));i=b;return}function Ng(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=(c[d>>2]|0)+8+(c[c[d>>2]>>2]|0);if(Lg(c[e>>2]|0)|0){f=c[e>>2]|0;i=b;return f|0}c[e>>2]=0;f=c[e>>2]|0;i=b;return f|0}function Og(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;if((c[d>>2]|0)==(c[17722]|0)){c[e>>2]=0;g=c[e>>2]|0;i=b;return g|0}c[e>>2]=c[17722];while(1){c[f>>2]=Ng(c[e>>2]|0)|0;if((c[f>>2]|0)==(c[d>>2]|0))break;c[e>>2]=c[f>>2]}g=c[e>>2]|0;i=b;return g|0}function Pg(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Ht(1284)|0;Qg(c[d>>2]|0);It(1284)|0;i=b;return}function Qg(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0;e=i;i=i+96|0;if((i|0)>=(j|0))$(96);f=e+88|0;g=e+84|0;h=e+80|0;k=e+76|0;l=e+72|0;m=e+95|0;n=e+24|0;o=e+68|0;p=e+64|0;q=e+60|0;r=e+94|0;s=e+16|0;t=e+56|0;u=e+52|0;v=e+48|0;w=e+93|0;x=e+8|0;y=e+44|0;z=e+40|0;A=e+36|0;B=e+92|0;C=e;E=e+32|0;c[f>>2]=b;if(!(c[f>>2]|0)){i=e;return}c[g>>2]=(c[f>>2]|0)+-8;c[h>>2]=c[c[g>>2]>>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h>>2]=c[h>>2]&-2;Mg(c[g>>2]|0);i=e;return}function Rg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[e>>2]=a;c[f>>2]=b;Ht(1284)|0;c[g>>2]=(c[e>>2]|0)+(0-8);c[h>>2]=c[c[g>>2]>>2];if((c[f>>2]|0)>>>0<(c[h>>2]|0)>>>0){c[k>>2]=c[e>>2];It(1284)|0;l=c[k>>2]|0;i=d;return l|0}c[k>>2]=Ig(c[f>>2]|0)|0;if(!(c[k>>2]|0)){It(1284)|0;l=c[k>>2]|0;i=d;return l|0}Yw(c[k>>2]|0,c[e>>2]|0,c[h>>2]|0)|0;Sw((c[k>>2]|0)+(c[h>>2]|0)|0,0,(c[f>>2]|0)-(c[h>>2]|0)|0)|0;Qg(c[e>>2]|0);It(1284)|0;l=c[k>>2]|0;i=d;return l|0}function Sg(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(c[17721]|0)e=(Lg(c[d>>2]|0)|0)!=0;else e=0;i=b;return e&1|0}function Tg(){var b=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;b=i;i=i+96|0;if((i|0)>=(j|0))$(96);e=b+76|0;f=b+72|0;g=b+83|0;h=b+24|0;k=b+68|0;l=b+64|0;m=b+60|0;n=b+82|0;o=b+16|0;p=b+56|0;q=b+52|0;r=b+48|0;s=b+81|0;t=b+8|0;u=b+44|0;v=b+40|0;w=b+36|0;x=b+80|0;y=b;z=b+32|0;if(!(c[17721]|0)){i=b;return}c[e>>2]=c[17722];c[f>>2]=c[17723];a[g>>0]=-1;A=h;c[A>>2]=d[g>>0];c[A+4>>2]=0;while(1){if(!(c[e>>2]&7|0?(c[f>>2]|0)!=0:0))break;a[c[e>>2]>>0]=a[g>>0]|0;c[e>>2]=(c[e>>2]|0)+1;c[f>>2]=(c[f>>2]|0)+-1}if((c[f>>2]|0)>>>0>=8){A=h;B=ex(c[A>>2]|0,c[A+4>>2]|0,16843009,16843009)|0;A=h;c[A>>2]=B;c[A+4>>2]=D;do{c[k>>2]=c[e>>2];A=h;B=c[A+4>>2]|0;C=c[k>>2]|0;c[C>>2]=c[A>>2];c[C+4>>2]=B;c[f>>2]=(c[f>>2]|0)-8;c[e>>2]=(c[e>>2]|0)+8}while((c[f>>2]|0)>>>0>=8)}while(1){if(!(c[f>>2]|0))break;a[c[e>>2]>>0]=a[g>>0]|0;c[e>>2]=(c[e>>2]|0)+1;c[f>>2]=(c[f>>2]|0)+-1}c[l>>2]=c[17722];c[m>>2]=c[17723];a[n>>0]=-86;f=o;c[f>>2]=d[n>>0];c[f+4>>2]=0;while(1){if(!(c[l>>2]&7|0?(c[m>>2]|0)!=0:0))break;a[c[l>>2]>>0]=a[n>>0]|0;c[l>>2]=(c[l>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+-1}if((c[m>>2]|0)>>>0>=8){f=o;e=ex(c[f>>2]|0,c[f+4>>2]|0,16843009,16843009)|0;f=o;c[f>>2]=e;c[f+4>>2]=D;do{c[p>>2]=c[l>>2];f=o;e=c[f+4>>2]|0;g=c[p>>2]|0;c[g>>2]=c[f>>2];c[g+4>>2]=e;c[m>>2]=(c[m>>2]|0)-8;c[l>>2]=(c[l>>2]|0)+8}while((c[m>>2]|0)>>>0>=8)}while(1){if(!(c[m>>2]|0))break;a[c[l>>2]>>0]=a[n>>0]|0;c[l>>2]=(c[l>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+-1}c[q>>2]=c[17722];c[r>>2]=c[17723];a[s>>0]=85;m=t;c[m>>2]=d[s>>0];c[m+4>>2]=0;while(1){if(!(c[q>>2]&7|0?(c[r>>2]|0)!=0:0))break;a[c[q>>2]>>0]=a[s>>0]|0;c[q>>2]=(c[q>>2]|0)+1;c[r>>2]=(c[r>>2]|0)+-1}if((c[r>>2]|0)>>>0>=8){m=t;l=ex(c[m>>2]|0,c[m+4>>2]|0,16843009,16843009)|0;m=t;c[m>>2]=l;c[m+4>>2]=D;do{c[u>>2]=c[q>>2];m=t;l=c[m+4>>2]|0;n=c[u>>2]|0;c[n>>2]=c[m>>2];c[n+4>>2]=l;c[r>>2]=(c[r>>2]|0)-8;c[q>>2]=(c[q>>2]|0)+8}while((c[r>>2]|0)>>>0>=8)}while(1){if(!(c[r>>2]|0))break;a[c[q>>2]>>0]=a[s>>0]|0;c[q>>2]=(c[q>>2]|0)+1;c[r>>2]=(c[r>>2]|0)+-1}c[v>>2]=c[17722];c[w>>2]=c[17723];a[x>>0]=0;r=y;c[r>>2]=d[x>>0];c[r+4>>2]=0;while(1){if(!(c[v>>2]&7|0?(c[w>>2]|0)!=0:0))break;a[c[v>>2]>>0]=a[x>>0]|0;c[v>>2]=(c[v>>2]|0)+1;c[w>>2]=(c[w>>2]|0)+-1}if((c[w>>2]|0)>>>0>=8){r=y;q=ex(c[r>>2]|0,c[r+4>>2]|0,16843009,16843009)|0;r=y;c[r>>2]=q;c[r+4>>2]=D;do{c[z>>2]=c[v>>2];r=y;q=c[r+4>>2]|0;s=c[z>>2]|0;c[s>>2]=c[r>>2];c[s+4>>2]=q;c[w>>2]=(c[w>>2]|0)-8;c[v>>2]=(c[v>>2]|0)+8}while((c[w>>2]|0)>>>0>=8)}while(1){if(!(c[w>>2]|0))break;a[c[v>>2]>>0]=a[x>>0]|0;c[v>>2]=(c[v>>2]|0)+1;c[w>>2]=(c[w>>2]|0)+-1}if(c[17724]|0)uw(c[17722]|0,c[17723]|0)|0;c[17722]=0;c[17721]=0;c[17723]=0;c[17719]=0;i=b;return}function Ug(){var a=0,b=0,d=0,e=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;Ht(1284)|0;if(!(c[17721]|0)){It(1284)|0;i=a;return}d=c[17723]|0;e=c[17726]|0;c[b>>2]=c[17725];c[b+4>>2]=d;c[b+8>>2]=e;Te(23465,b);It(1284)|0;i=a;return}function Vg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;b=i;i=i+544|0;if((i|0)>=(j|0))$(544);d=b+8|0;e=b;f=b+28|0;g=b+24|0;h=b+20|0;k=b+16|0;l=b+288|0;m=b+12|0;n=b+32|0;c[f>>2]=a;if(c[17727]|0){if(Wg()|0){Xg(5);Yg()}if(c[17727]|0)Se(23506,23512,114,23519)}c[17727]=1;do if(c[f>>2]|0){if(c[17728]|0)Se(23546,23512,121,23519)}else{if(!($v(23569,0)|0)){if(!(c[17728]|0))break;Se(23546,23512,132,23519)}c[h>>2]=Pv(23594,23624)|0;if(!(c[h>>2]|0)){a=c[(xu()|0)>>2]|0;c[k>>2]=a;if((a|0)!=2&(c[k>>2]|0)!=13?($v(23626,0)|0)==0:0){a=Nu(c[k>>2]|0)|0;c[e>>2]=23594;c[e+4>>2]=a;Te(23640,e);Aa()}}else{if(Gv(l,256,c[h>>2]|0)|0?Aw(l)|0:0){Qv(c[h>>2]|0)|0;if(!(c[17728]|0))break;Se(23546,23512,151,23519)}Qv(c[h>>2]|0)|0}c[17728]=1}while(0);if(c[17728]|0){i=b;return}c[g>>2]=Gt(1328)|0;if(c[g>>2]|0){c[d>>2]=Bt(c[g>>2]|0)|0;Te(23684,d);Aa()}c[m>>2]=Pv(23569,23624)|0;if(c[m>>2]|0){if(Gv(n,256,c[m>>2]|0)|0?Aw(n)|0:0)c[17729]=1;Qv(c[m>>2]|0)|0}Xg(1);i=b;return}function Wg(){return ((c[17728]|0)!=0^1)&1|0}function Xg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b;e=b+20|0;f=b+16|0;g=b+12|0;c[e>>2]=a;c[f>>2]=0;Zg();c[g>>2]=c[17730];switch(c[17730]|0){case 0:{if((c[e>>2]|0)==1|(c[e>>2]|0)==4|(c[e>>2]|0)==5)c[f>>2]=1;break}case 1:{if((c[e>>2]|0)==2|(c[e>>2]|0)==4|(c[e>>2]|0)==5)c[f>>2]=1;break}case 2:{if((c[e>>2]|0)==3|(c[e>>2]|0)==4|(c[e>>2]|0)==5)c[f>>2]=1;break}case 3:{if((c[e>>2]|0)==6|(c[e>>2]|0)==2|(c[e>>2]|0)==4|(c[e>>2]|0)==5)c[f>>2]=1;break}case 4:{if((c[e>>2]|0)==6|(c[e>>2]|0)==4|(c[e>>2]|0)==5|(c[e>>2]|0)==2)c[f>>2]=1;break}case 5:{if((c[e>>2]|0)==6)c[f>>2]=1;break}default:{}}if(c[f>>2]|0)c[17730]=c[e>>2];_g();if(!(c[f>>2]|0?!(Oe(2)|0):0)){a=$g(c[g>>2]|0)|0;g=$g(c[e>>2]|0)|0;e=c[f>>2]|0?23739:23747;c[d>>2]=a;c[d+4>>2]=g;c[d+8>>2]=e;Te(23754,d)}if(c[f>>2]|0){i=b;return}else{Yg();i=b;return}}function Yg(){Rv(0)|0;Aa()}function Zg(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[d>>2]=Ht(1328)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;Te(23912,b);Aa()}else{i=a;return}}function _g(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[d>>2]=It(1328)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;Te(23857,b);Aa()}else{i=a;return}}function $g(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;switch(c[d>>2]|0){case 0:{c[e>>2]=23794;break}case 1:{c[e>>2]=23803;break}case 2:{c[e>>2]=23808;break}case 3:{c[e>>2]=23818;break}case 4:{c[e>>2]=23830;break}case 5:{c[e>>2]=23836;break}case 6:{c[e>>2]=23848;break}default:c[e>>2]=37975}i=b;return c[e>>2]|0}function ah(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;if(Wg()|0)c[b>>2]=c[17729];else c[b>>2]=0;i=a;return c[b>>2]|0}function bh(){c[17729]=1;return}function ch(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(!(Wg()|0))Se(23967,23512,295,23986);if(ah()|0){dh(23512,300,23986,0,c[d>>2]|0);i=b;return}Zg();if(c[17731]|0){_g();i=b;return}else{c[17731]=1;_g();i=b;return}}function dh(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g;k=g+40|0;l=g+36|0;m=g+32|0;n=g+28|0;o=g+24|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;if(!(Wg()|0)){i=g;return}Xg(c[n>>2]|0?5:4);f=c[k>>2]|0;k=c[l>>2]|0;l=c[m>>2]|0?24020:72319;e=c[m>>2]|0?c[m>>2]|0:72319;m=c[o>>2]|0?c[o>>2]|0:24032;c[h>>2]=c[n>>2]|0?24013:72319;c[h+4>>2]=f;c[h+8>>2]=k;c[h+12>>2]=l;c[h+16>>2]=e;c[h+20>>2]=m;Te(24057,h);i=g;return}function eh(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a+4|0;d=a;if(Wg()|0){Zg();c[d>>2]=c[17731];_g();c[b>>2]=c[d>>2]}else c[b>>2]=0;i=a;return c[b>>2]|0}function fh(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;if(!(Wg()|0)){c[b>>2]=1;d=c[b>>2]|0;i=a;return d|0}Zg();if((c[17730]|0)==1){_g();gh(0)|0;Zg()}c[b>>2]=(c[17730]|0)==3&1;_g();d=c[b>>2]|0;i=a;return d|0}function gh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=4;c[f>>2]=50;if(Wg()|0)Xg(2);if((((((hh(c[d>>2]|0)|0)==0?(ih(c[d>>2]|0)|0)==0:0)?(jh(c[d>>2]|0)|0)==0:0)?(kh()|0)==0:0)?(lh(c[d>>2]|0)|0)==0:0)?(mh()|0)==0:0){c[e>>2]=3;c[f>>2]=0}if(!(Wg()|0)){g=c[f>>2]|0;i=b;return g|0}Xg(c[e>>2]|0);g=c[f>>2]|0;i=b;return g|0}function hh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[d>>2]=a;c[g>>2]=0;c[e>>2]=0;while(1){if(!(c[1432+(c[e>>2]<<2)>>2]|0))break;c[f>>2]=Oh(c[1432+(c[e>>2]<<2)>>2]|0,c[d>>2]|0,1)|0;a=c[1432+(c[e>>2]<<2)>>2]|0;if(c[f>>2]|0)h=Bt(c[f>>2]|0)|0;else h=0;nh(38079,a,0,h);if(c[f>>2]|0)c[g>>2]=1;c[e>>2]=(c[e>>2]|0)+1}i=b;return c[g>>2]|0}function ih(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[d>>2]=a;c[g>>2]=0;c[e>>2]=0;while(1){if(!(c[1408+(c[e>>2]<<2)>>2]|0))break;c[f>>2]=sj(c[1408+(c[e>>2]<<2)>>2]|0,c[d>>2]|0,1)|0;a=c[1408+(c[e>>2]<<2)>>2]|0;if(c[f>>2]|0)h=Bt(c[f>>2]|0)|0;else h=0;nh(43214,a,0,h);if(c[f>>2]|0)c[g>>2]=1;c[e>>2]=(c[e>>2]|0)+1}i=b;return c[g>>2]|0}function jh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[d>>2]=a;c[g>>2]=0;c[e>>2]=0;while(1){if(!(c[1384+(c[e>>2]<<2)>>2]|0))break;c[f>>2]=Bi(c[1384+(c[e>>2]<<2)>>2]|0,c[d>>2]|0,1)|0;a=c[1384+(c[e>>2]<<2)>>2]|0;if(c[f>>2]|0)h=Bt(c[f>>2]|0)|0;else h=0;nh(36101,a,0,h);if(c[f>>2]|0)c[g>>2]=1;c[e>>2]=(c[e>>2]|0)+1}i=b;return c[g>>2]|0}function kh(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;c[b>>2]=on(1)|0;if(c[b>>2]|0)d=Bt(c[b>>2]|0)|0;else d=0;nh(52642,0,0,d);i=a;return ((c[b>>2]|0)!=0^1^1)&1|0}function lh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[d>>2]=a;c[g>>2]=0;c[e>>2]=0;while(1){if(!(c[1372+(c[e>>2]<<2)>>2]|0))break;c[f>>2]=$j(c[1372+(c[e>>2]<<2)>>2]|0,c[d>>2]|0,1)|0;a=c[1372+(c[e>>2]<<2)>>2]|0;if(c[f>>2]|0)h=Bt(c[f>>2]|0)|0;else h=0;nh(47251,a,0,h);if(c[f>>2]|0)c[g>>2]=1;c[e>>2]=(c[e>>2]|0)+1}i=b;return c[g>>2]|0}function mh(){return 0}function nh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f;h=f+44|0;k=f+40|0;l=f+36|0;m=f+32|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;if((c[m>>2]|0)==0?(Oe(2)|0)==0:0){i=f;return}e=(Fu(c[h>>2]|0,36101)|0)!=0;d=e?c[h>>2]|0:43214;e=(Fu(c[h>>2]|0,36101)|0)!=0^1;b=e?24105:72319;do if(Fu(c[h>>2]|0,38079)|0){if(!(Fu(c[h>>2]|0,43214)|0)){n=Pi(c[k>>2]|0)|0;break}if(!(Fu(c[h>>2]|0,36101)|0)){n=Pi(c[k>>2]|0)|0;break}if(Fu(c[h>>2]|0,47251)|0)n=72319;else n=Qj(c[k>>2]|0)|0}else n=th(c[k>>2]|0)|0;while(0);h=c[k>>2]|0;k=c[m>>2]|0?c[m>>2]|0:24111;m=c[l>>2]|0?24116:72319;e=c[l>>2]|0?c[l>>2]|0:72319;a=c[l>>2]|0?47239:72319;c[g>>2]=d;c[g+4>>2]=b;c[g+8>>2]=n;c[g+12>>2]=h;c[g+16>>2]=k;c[g+20>>2]=m;c[g+24>>2]=e;c[g+28>>2]=a;Te(24119,g);i=f;return}function oh(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;if(Wg()|0){Zg();c[b>>2]=(c[17730]|0)==3&1;_g()}else c[b>>2]=1;i=a;return c[b>>2]|0}function ph(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;if(Wg()|0){Zg();c[b>>2]=((c[17730]|0)==3?1:(c[17730]|0)==4)&1;_g();d=c[b>>2]|0;i=a;return d|0}else{c[b>>2]=1;d=c[b>>2]|0;i=a;return d|0}return 0}function qh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;h=f+20|0;k=f+16|0;l=f+12|0;m=f+8|0;n=f+4|0;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;if((c[k>>2]|0)!=1){c[g>>2]=c[k>>2];Xe(24163,g)}if((c[l>>2]|0)>>>0<8)c[l>>2]=8;c[n>>2]=wf(1,8+(c[l>>2]|0)|0)|0;if(c[n>>2]|0){l=c[n>>2]|0;a[l>>0]=a[24209]|0;a[l+1>>0]=a[24210]|0;a[l+2>>0]=a[24211]|0;a[(c[n>>2]|0)+3>>0]=c[k>>2];c[(c[n>>2]|0)+4>>2]=c[m>>2];c[h>>2]=c[n>>2];o=c[h>>2]|0;i=f;return o|0}else{c[h>>2]=0;o=c[h>>2]|0;i=f;return o|0}return 0}function rh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+8|0;g=e;h=e+24|0;k=e+20|0;c[h>>2]=b;c[k>>2]=d;if(!(c[h>>2]|0)){l=c[h>>2]|0;c[g>>2]=l;We(24213,g)}if(Jv(c[h>>2]|0,24209,3)|0){l=c[h>>2]|0;c[g>>2]=l;We(24213,g)}if((a[(c[h>>2]|0)+3>>0]|0)!=(c[k>>2]|0)){g=c[h>>2]|0;l=a[(c[h>>2]|0)+3>>0]|0;c[f>>2]=c[k>>2];c[f+4>>2]=g;c[f+8>>2]=l;We(24261,f)}else{i=e;return (c[h>>2]|0)+8|0}return 0}function sh(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d;g=d+12|0;c[g>>2]=b;if(!(c[g>>2]|0)){i=d;return}b=(Jv(c[g>>2]|0,24209,3)|0)!=0;h=c[g>>2]|0;if(b){c[f>>2]=h;We(24318,f)}f=c[g>>2]|0;if((a[h+3>>0]|0)!=1){c[e>>2]=a[f+3>>0];We(24360,e)}if(c[f+4>>2]|0)wb[c[(c[g>>2]|0)+4>>2]&15]((c[g>>2]|0)+8|0);vf(c[g>>2]|0);i=d;return}function th(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=uh(c[d>>2]|0)|0;if(!(c[e>>2]|0)){f=37975;i=b;return f|0}f=c[(c[e>>2]|0)+8>>2]|0;i=b;return f|0}function uh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;c[e>>2]=vh(c[e>>2]|0)|0;c[f>>2]=0;while(1){a=c[1452+(c[f>>2]<<2)>>2]|0;c[g>>2]=a;if(!a){h=6;break}if((c[e>>2]|0)==(c[c[g>>2]>>2]|0)){h=4;break}c[f>>2]=(c[f>>2]|0)+1}if((h|0)==4){c[d>>2]=c[g>>2];k=c[d>>2]|0;i=b;return k|0}else if((h|0)==6){c[d>>2]=0;k=c[d>>2]|0;i=b;return k|0}return 0}function vh(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return c[d>>2]|0}function wh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+20|0;h=f+16|0;k=f+12|0;l=f+8|0;m=f+4|0;n=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;c[n>>2]=0;if((c[k>>2]|0)>=65536)c[m>>2]=71;else c[m>>2]=xh(n,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0)|0;c[c[g>>2]>>2]=c[m>>2]|0?0:c[n>>2]|0;i=f;return c[m>>2]|0}function xh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+36|0;k=g+32|0;l=g+28|0;m=g+24|0;n=g+20|0;o=g+16|0;p=g+12|0;q=g+8|0;r=g+4|0;s=g;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;c[m>>2]=f;c[n>>2]=c[m>>2]&1;c[p>>2]=0;mn();c[o>>2]=uh(c[k>>2]|0)|0;do if(c[o>>2]|0)if(a[(c[o>>2]|0)+4>>0]&1|0){c[q>>2]=12;break}else{c[q>>2]=0;break}else c[q>>2]=12;while(0);do if(!(c[q>>2]|0)){if((c[m>>2]&-16|0)==0?(c[m>>2]&0|0)==0:0)break;c[q>>2]=12}while(0);a:do if(!(c[q>>2]|0)){f=c[l>>2]|0;b:do if((f|0)<6)switch(f|0){case 5:case 2:case 3:case 1:{break b;break}case 4:{if(c[(c[o>>2]|0)+44>>2]|0?c[(c[o>>2]|0)+48>>2]|0:0)break a;c[q>>2]=71;break a;break}case 0:{if((Wg()|0)==0?Ff(0)|0:0)break a;c[q>>2]=71;break a;break}default:{t=37;break b}}else{if((f|0)<9){switch(f|0){case 7:case 6:{break b;break}case 8:break;default:{t=37;break b}}if((c[(c[o>>2]|0)+20>>2]|0)!=16)c[q>>2]=71;if(c[(c[o>>2]|0)+36>>2]|0?c[(c[o>>2]|0)+40>>2]|0:0)break a;c[q>>2]=71;break a}if((f|0)<11){switch(f|0){case 9:{break b;break}case 10:break;default:{t=37;break b}}if((c[(c[o>>2]|0)+44>>2]|0?c[(c[o>>2]|0)+48>>2]|0:0)?c[(c[o>>2]|0)+60>>2]|0:0){if((c[c[o>>2]>>2]|0)==316)break a;c[q>>2]=71;break a}c[q>>2]=71;break a}if((f|0)>=65537)switch(f|0){case 65537:{break b;break}default:{t=37;break b}}switch(f|0){case 11:break;default:{t=37;break b}}if(c[(c[o>>2]|0)+36>>2]|0?c[(c[o>>2]|0)+40>>2]|0:0){if((c[(c[o>>2]|0)+20>>2]|0)==16)break a;c[q>>2]=71;break a}c[q>>2]=71;break a}while(0);if((t|0)==37){c[q>>2]=71;break}if(c[(c[o>>2]|0)+36>>2]|0?c[(c[o>>2]|0)+40>>2]|0:0)break;c[q>>2]=71}while(0);if(c[q>>2]|0){u=c[q>>2]|0;v=(u|0)!=0;w=c[p>>2]|0;x=v?0:w;y=c[h>>2]|0;c[y>>2]=x;z=c[q>>2]|0;A=yh(z)|0;i=g;return A|0}c[r>>2]=512+(c[(c[o>>2]|0)+28>>2]<<1)-16+15;t=c[r>>2]|0;if(c[n>>2]|0)c[p>>2]=xf(1,t)|0;else c[p>>2]=wf(1,t)|0;if(!(c[p>>2]|0)){c[q>>2]=Et()|0;u=c[q>>2]|0;v=(u|0)!=0;w=c[p>>2]|0;x=v?0:w;y=c[h>>2]|0;c[y>>2]=x;z=c[q>>2]|0;A=yh(z)|0;i=g;return A|0}c[s>>2]=0;if(c[p>>2]&15|0){c[s>>2]=16-(c[p>>2]&15);c[p>>2]=(c[p>>2]|0)+(c[s>>2]|0)}c[c[p>>2]>>2]=c[n>>2]|0?1183944770:604576100;c[(c[p>>2]|0)+4>>2]=(c[r>>2]|0)-(c[s>>2]|0);c[(c[p>>2]|0)+8>>2]=c[s>>2];c[(c[p>>2]|0)+12>>2]=c[o>>2];c[(c[p>>2]|0)+16>>2]=c[k>>2];c[(c[p>>2]|0)+48>>2]=c[l>>2];c[(c[p>>2]|0)+52>>2]=c[m>>2];switch(c[k>>2]|0){case 9:case 8:case 7:{c[(c[p>>2]|0)+20>>2]=1;c[(c[p>>2]|0)+20+4>>2]=2;c[(c[p>>2]|0)+20+8>>2]=1;c[(c[p>>2]|0)+20+12>>2]=3;c[(c[p>>2]|0)+20+16>>2]=4;c[(c[p>>2]|0)+20+20>>2]=5;c[(c[p>>2]|0)+20+24>>2]=2;break}case 303:case 10:{c[(c[p>>2]|0)+20+12>>2]=6;c[(c[p>>2]|0)+20+4>>2]=7;c[(c[p>>2]|0)+20+16>>2]=8;break}default:{}}if((c[l>>2]|0)!=11){u=c[q>>2]|0;v=(u|0)!=0;w=c[p>>2]|0;x=v?0:w;y=c[h>>2]|0;c[y>>2]=x;z=c[q>>2]|0;A=yh(z)|0;i=g;return A|0}a[(c[p>>2]|0)+128+352>>0]=16;u=c[q>>2]|0;v=(u|0)!=0;w=c[p>>2]|0;x=v?0:w;y=c[h>>2]|0;c[y>>2]=x;z=c[q>>2]|0;A=yh(z)|0;i=g;return A|0}function yh(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=zh(32,c[d>>2]|0)|0;i=b;return a|0}function zh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=Ah(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function Ah(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function Bh(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+24|0;g=e+20|0;h=e+16|0;k=e+12|0;l=e+28|0;m=e;n=e+8|0;c[f>>2]=b;if(!(c[f>>2]|0)){i=e;return}if((c[c[f>>2]>>2]|0)!=1183944770?(c[c[f>>2]>>2]|0)!=604576100:0)Le(63,24409);c[c[f>>2]>>2]=0;c[g>>2]=c[(c[f>>2]|0)+8>>2];c[h>>2]=c[f>>2];c[k>>2]=c[(c[f>>2]|0)+4>>2];a[l>>0]=0;b=m;c[b>>2]=d[l>>0];c[b+4>>2]=0;while(1){if(!(c[h>>2]&7|0?(c[k>>2]|0)!=0:0))break;a[c[h>>2]>>0]=a[l>>0]|0;c[h>>2]=(c[h>>2]|0)+1;c[k>>2]=(c[k>>2]|0)+-1}if((c[k>>2]|0)>>>0>=8){b=m;o=ex(c[b>>2]|0,c[b+4>>2]|0,16843009,16843009)|0;b=m;c[b>>2]=o;c[b+4>>2]=D;do{c[n>>2]=c[h>>2];b=m;o=c[b+4>>2]|0;p=c[n>>2]|0;c[p>>2]=c[b>>2];c[p+4>>2]=o;c[k>>2]=(c[k>>2]|0)-8;c[h>>2]=(c[h>>2]|0)+8}while((c[k>>2]|0)>>>0>=8)}while(1){if(!(c[k>>2]|0))break;a[c[h>>2]>>0]=a[l>>0]|0;c[h>>2]=(c[h>>2]|0)+1;c[k>>2]=(c[k>>2]|0)+-1}vf((c[f>>2]|0)+(0-(c[g>>2]|0))|0);i=e;return}function Ch(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+20|0;k=g+16|0;l=g+12|0;m=g+8|0;n=g+4|0;o=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;if(!(c[m>>2]|0)){c[m>>2]=c[k>>2];c[n>>2]=c[l>>2]}c[o>>2]=Dh(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;if(!((c[o>>2]|0)!=0&(c[k>>2]|0)!=0)){p=c[o>>2]|0;i=g;return p|0}Sw(c[k>>2]|0,66,c[l>>2]|0)|0;p=c[o>>2]|0;i=g;return p|0}function Dh(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g;k=g+24|0;l=g+20|0;m=g+16|0;n=g+12|0;o=g+8|0;p=g+4|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;f=c[(c[k>>2]|0)+48>>2]|0;a:do if((f|0)>=6){if((f|0)<9)switch(f|0){case 6:{c[p>>2]=yq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 7:{c[p>>2]=dq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 8:{c[p>>2]=oq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24504,h)}}if((f|0)<11)switch(f|0){case 9:{c[p>>2]=Bq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 10:{c[p>>2]=nr(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24504,h)}}if((f|0)<65537)switch(f|0){case 11:{c[p>>2]=er(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24504,h)}}else switch(f|0){case 65537:{c[p>>2]=71;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24504,h)}}}else switch(f|0){case 1:{c[p>>2]=Eh(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 3:{c[p>>2]=gq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 2:{c[p>>2]=qq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 5:{c[p>>2]=ir(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 4:{Eb[c[(c[(c[k>>2]|0)+12>>2]|0)+44>>2]&1]((c[k>>2]|0)+496|0,c[l>>2]|0,c[n>>2]|0,c[o>>2]|0);c[p>>2]=0;break a;break}case 0:{if((Wg()|0)==0?Ff(0)|0:0){if((c[n>>2]|0)!=(c[l>>2]|0))Zw(c[l>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;c[p>>2]=0;break a}dh(24458,875,24467,0,24482);c[p>>2]=71;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24504,h)}}while(0);i=g;return c[p>>2]|0}function Eh(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;f=Fh(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[(c[(c[h>>2]|0)+12>>2]|0)+36>>2]|0)|0;i=g;return f|0}function Fh(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+44|0;l=h+40|0;m=h+36|0;n=h+32|0;o=h+28|0;p=h+24|0;q=h+20|0;r=h+16|0;s=h+12|0;t=h+8|0;u=h+4|0;v=h;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[r>>2]=c[(c[(c[l>>2]|0)+12>>2]|0)+20>>2];if((c[n>>2]|0)>>>0<(c[p>>2]|0)>>>0){c[k>>2]=200;w=c[k>>2]|0;i=h;return w|0}if(((c[p>>2]|0)>>>0)%((c[r>>2]|0)>>>0)|0|0){c[k>>2]=139;w=c[k>>2]|0;i=h;return w|0}c[t>>2]=((c[p>>2]|0)>>>0)/((c[r>>2]|0)>>>0)|0;c[u>>2]=0;c[s>>2]=0;while(1){if((c[s>>2]|0)>>>0>=(c[t>>2]|0)>>>0)break;c[v>>2]=ub[c[q>>2]&63]((c[l>>2]|0)+496|0,c[m>>2]|0,c[o>>2]|0)|0;c[u>>2]=(c[v>>2]|0)>>>0>(c[u>>2]|0)>>>0?c[v>>2]|0:c[u>>2]|0;c[o>>2]=(c[o>>2]|0)+(c[r>>2]|0);c[m>>2]=(c[m>>2]|0)+(c[r>>2]|0);c[s>>2]=(c[s>>2]|0)+1}if((c[u>>2]|0)>>>0>0){bf((c[u>>2]|0)+16|0);cf()}c[k>>2]=0;w=c[k>>2]|0;i=h;return w|0}function Gh(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;if(!(c[m>>2]|0)){c[m>>2]=c[k>>2];c[n>>2]=c[l>>2]}f=Hh(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;i=g;return f|0}function Hh(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g;k=g+24|0;l=g+20|0;m=g+16|0;n=g+12|0;o=g+8|0;p=g+4|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;f=c[(c[k>>2]|0)+48>>2]|0;a:do if((f|0)>=6){if((f|0)<9)switch(f|0){case 6:{c[p>>2]=yq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 7:{c[p>>2]=fq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 8:{c[p>>2]=pq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24552,h)}}if((f|0)<11)switch(f|0){case 9:{c[p>>2]=Kq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 10:{c[p>>2]=qr(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24552,h)}}if((f|0)<65537)switch(f|0){case 11:{c[p>>2]=hr(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24552,h)}}else switch(f|0){case 65537:{c[p>>2]=71;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24552,h)}}}else switch(f|0){case 1:{c[p>>2]=Ih(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 3:{c[p>>2]=jq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 2:{c[p>>2]=tq(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 5:{c[p>>2]=ir(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;break a;break}case 4:{Eb[c[(c[(c[k>>2]|0)+12>>2]|0)+48>>2]&1]((c[k>>2]|0)+496|0,c[l>>2]|0,c[n>>2]|0,c[o>>2]|0);c[p>>2]=0;break a;break}case 0:{if((Wg()|0)==0?Ff(0)|0:0){if((c[n>>2]|0)!=(c[l>>2]|0))Zw(c[l>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;c[p>>2]=0;break a}dh(24458,992,24537,0,24482);c[p>>2]=71;break a;break}default:{q=c[k>>2]|0;r=q+48|0;s=c[r>>2]|0;c[h>>2]=s;We(24552,h)}}while(0);i=g;return c[p>>2]|0}function Ih(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;f=Fh(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[(c[(c[h>>2]|0)+12>>2]|0)+40>>2]|0)|0;i=g;return f|0}function Jh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Kh(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function Kh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=ub[c[(c[(c[g>>2]|0)+12>>2]|0)+32>>2]&63]((c[g>>2]|0)+496|0,c[h>>2]|0,c[k>>2]|0)|0;k=c[g>>2]|0;a:do if(!(c[l>>2]|0)){Yw(k+496+(c[(c[(c[g>>2]|0)+12>>2]|0)+28>>2]|0)|0,(c[g>>2]|0)+496|0,c[(c[(c[g>>2]|0)+12>>2]|0)+28>>2]|0)|0;h=(c[g>>2]|0)+56|0;a[h>>0]=a[h>>0]&-2|1;h=c[(c[g>>2]|0)+48>>2]|0;if((h|0)<10){switch(h|0){case 9:break;default:break a}Lq(c[g>>2]|0);break}if((h|0)<65537){switch(h|0){case 10:break;default:break a}rr(c[g>>2]|0);break}else{switch(h|0){case 65537:break;default:break a}wq(c[g>>2]|0)|0;break}}else{h=k+56|0;a[h>>0]=a[h>>0]&-2}while(0);i=f;return c[l>>2]|0}function Lh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=0;switch(c[(c[f>>2]|0)+48>>2]|0){case 8:{c[k>>2]=lq(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;break}case 9:{c[k>>2]=Cq(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;break}case 10:{c[k>>2]=mr(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;break}case 11:{c[k>>2]=ar(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;break}default:c[k>>2]=Mh(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0}i=e;return c[k>>2]|0}function Mh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;h=f+20|0;k=f+16|0;l=f+12|0;m=f+8|0;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;e=c[k>>2]|0;if(c[(c[(c[k>>2]|0)+12>>2]|0)+60>>2]|0){zb[c[(c[e+12>>2]|0)+60>>2]&7]((c[k>>2]|0)+496|0,c[l>>2]|0,c[m>>2]|0);c[h>>2]=0;n=c[h>>2]|0;i=f;return n|0}Sw(e+64|0,0,c[(c[(c[k>>2]|0)+12>>2]|0)+20>>2]|0)|0;if(c[l>>2]|0){if((c[m>>2]|0)!=(c[(c[(c[k>>2]|0)+12>>2]|0)+20>>2]|0)){e=c[(c[(c[k>>2]|0)+12>>2]|0)+20>>2]|0;c[g>>2]=c[m>>2];c[g+4>>2]=e;Te(24585,g);dh(24458,682,24628,0,24641)}if((c[m>>2]|0)>>>0>(c[(c[(c[k>>2]|0)+12>>2]|0)+20>>2]|0)>>>0)c[m>>2]=c[(c[(c[k>>2]|0)+12>>2]|0)+20>>2];Yw((c[k>>2]|0)+64|0,c[l>>2]|0,c[m>>2]|0)|0;m=(c[k>>2]|0)+56|0;a[m>>0]=a[m>>0]&-3|2}else{m=(c[k>>2]|0)+56|0;a[m>>0]=a[m>>0]&-3}c[(c[k>>2]|0)+112>>2]=0;c[h>>2]=0;n=c[h>>2]|0;i=f;return n|0}function Nh(){return 0}function Oh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;m=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=0;c[m>>2]=uh(c[g>>2]|0)|0;if((c[m>>2]|0?(a[(c[m>>2]|0)+4>>0]&1|0)==0:0)?c[(c[m>>2]|0)+52>>2]|0:0){c[l>>2]=ub[c[(c[m>>2]|0)+52>>2]&63](c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0;n=c[l>>2]|0;o=Ph(n)|0;i=f;return o|0}c[l>>2]=12;if(!(c[k>>2]|0)){n=c[l>>2]|0;o=Ph(n)|0;i=f;return o|0}h=c[k>>2]|0;k=c[g>>2]|0;if(c[m>>2]|0?!(a[(c[m>>2]|0)+4>>0]&1|0):0)p=38046;else p=c[m>>2]|0?38007:38026;Eb[h&1](38079,k,38068,p);n=c[l>>2]|0;o=Ph(n)|0;i=f;return o|0}function Ph(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Ah(1,c[d>>2]|0)|0;i=b;return a|0}function Qh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+24|0;k=g+20|0;l=g+16|0;m=g+12|0;n=g+8|0;o=g+4|0;p=g;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[p>>2]=0;if(!(c[l>>2]|0)){c[o>>2]=0;while(1){if(!(c[1476+((c[o>>2]|0)*48|0)>>2]|0))break;if((c[k>>2]|0)==(c[1476+((c[o>>2]|0)*48|0)+4>>2]|0)?(c[1476+((c[o>>2]|0)*48|0)+12>>2]|0)==0:0)break;c[o>>2]=(c[o>>2]|0)+1}if(!(c[1476+((c[o>>2]|0)*48|0)>>2]|0))c[o>>2]=-1}else c[o>>2]=Rh(c[l>>2]|0)|0;if((c[o>>2]|0)<0){c[h>>2]=188;q=c[h>>2]|0;i=g;return q|0}c[p>>2]=c[1476+((c[o>>2]|0)*48|0)>>2];if(Wg()|0?(a[1476+((c[o>>2]|0)*48|0)+8>>0]&1|0)==0:0){c[h>>2]=60;q=c[h>>2]|0;i=g;return q|0}if((c[1476+((c[o>>2]|0)*48|0)+12>>2]|0)>>>0>=3){c[h>>2]=59;q=c[h>>2]|0;i=g;return q|0}if(c[n>>2]|0)c[c[n>>2]>>2]=c[1476+((c[o>>2]|0)*48|0)+4>>2];if(c[m>>2]|0){c[c[m>>2]>>2]=c[1476+((c[o>>2]|0)*48|0)+12>>2];c[(c[m>>2]|0)+4>>2]=c[1476+((c[o>>2]|0)*48|0)+16>>2];if(!(c[(c[m>>2]|0)+8>>2]|0)){n=Sh(c[1476+((c[o>>2]|0)*48|0)+20>>2]|0)|0;c[(c[m>>2]|0)+8>>2]=n}if(!(c[(c[m>>2]|0)+12>>2]|0)){n=Sh(c[1476+((c[o>>2]|0)*48|0)+24>>2]|0)|0;c[(c[m>>2]|0)+12>>2]=n}if(!(c[(c[m>>2]|0)+16>>2]|0)){n=Sh(c[1476+((c[o>>2]|0)*48|0)+28>>2]|0)|0;c[(c[m>>2]|0)+16>>2]=n}if(!(c[(c[m>>2]|0)+32>>2]|0)){n=Sh(c[1476+((c[o>>2]|0)*48|0)+32>>2]|0)|0;c[(c[m>>2]|0)+32>>2]=n}if(!(c[(c[m>>2]|0)+36>>2]|0)){n=Sh(c[1476+((c[o>>2]|0)*48|0)+44>>2]|0)|0;c[(c[m>>2]|0)+36>>2]=n}if(!(c[(c[m>>2]|0)+20>>2]|0)){n=Sh(c[1476+((c[o>>2]|0)*48|0)+36>>2]|0)|0;c[(c[m>>2]|0)+20>>2]=n}if(!(c[(c[m>>2]|0)+20+4>>2]|0)){n=Sh(c[1476+((c[o>>2]|0)*48|0)+40>>2]|0)|0;c[(c[m>>2]|0)+20+4>>2]=n}if(!(c[(c[m>>2]|0)+20+8>>2]|0)){n=up(1)|0;c[(c[m>>2]|0)+20+8>>2]=n}if(!(c[(c[m>>2]|0)+40>>2]|0))c[(c[m>>2]|0)+40>>2]=c[p>>2]}c[h>>2]=0;q=c[h>>2]|0;i=g;return q|0}function Rh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;c[f>>2]=0;while(1){if(!(c[1476+((c[f>>2]|0)*48|0)>>2]|0))break;a=(Fu(c[e>>2]|0,c[1476+((c[f>>2]|0)*48|0)>>2]|0)|0)!=0;h=c[f>>2]|0;if(!a){k=4;break}c[f>>2]=h+1}if((k|0)==4){c[d>>2]=h;l=c[d>>2]|0;i=b;return l|0}a:do if(!(c[1476+((c[f>>2]|0)*48|0)>>2]|0)){c[g>>2]=0;while(1){if(!(c[2532+(c[g>>2]<<3)>>2]|0))break;if(!(Fu(c[e>>2]|0,c[2532+(c[g>>2]<<3)+4>>2]|0)|0))break;c[g>>2]=(c[g>>2]|0)+1}if(c[2532+(c[g>>2]<<3)>>2]|0){c[f>>2]=0;while(1){if(!(c[1476+((c[f>>2]|0)*48|0)>>2]|0))break a;h=(Fu(c[2532+(c[g>>2]<<3)>>2]|0,c[1476+((c[f>>2]|0)*48|0)>>2]|0)|0)!=0;m=c[f>>2]|0;if(!h)break;c[f>>2]=m+1}c[d>>2]=m;l=c[d>>2]|0;i=b;return l|0}}while(0);c[d>>2]=-1;l=c[d>>2]|0;i=b;return l|0}function Sh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;e=b+12|0;f=b+8|0;g=b+4|0;c[e>>2]=a;c[f>>2]=Zo(g,4,c[e>>2]|0,0,0)|0;if(c[f>>2]|0){c[d>>2]=Bt(c[f>>2]|0)|0;We(35925,d)}else{i=b;return c[g>>2]|0}return 0}function Th(a,b,d,e,f,g,h,k,l){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;m=i;i=i+64|0;if((i|0)>=(j|0))$(64);n=m+48|0;o=m+44|0;p=m+40|0;q=m+36|0;r=m+32|0;s=m+28|0;t=m+24|0;u=m+20|0;v=m+16|0;w=m+12|0;x=m+8|0;y=m+4|0;z=m;c[o>>2]=a;c[p>>2]=b;c[q>>2]=d;c[r>>2]=e;c[s>>2]=f;c[t>>2]=g;c[u>>2]=h;c[v>>2]=k;c[w>>2]=l;c[x>>2]=Rh(c[o>>2]|0)|0;if((c[x>>2]|0)<0){c[n>>2]=188;A=c[n>>2]|0;i=m;return A|0}do if(c[u>>2]|0){c[z>>2]=4;o=hv((c[1476+((c[x>>2]|0)*48|0)+36>>2]|0)+2|0)|0;c[z>>2]=(c[z>>2]|0)+o;o=hv((c[1476+((c[x>>2]|0)*48|0)+40>>2]|0)+2|0)|0;c[z>>2]=(c[z>>2]|0)+o;c[z>>2]=(c[z>>2]|0)+1;c[y>>2]=pf(c[z>>2]|0)|0;if(c[y>>2]|0){o=uv(c[y>>2]|0,35599)|0;l=uv(o,(c[1476+((c[x>>2]|0)*48|0)+36>>2]|0)+2|0)|0;tv(l,(c[1476+((c[x>>2]|0)*48|0)+40>>2]|0)+2|0)|0;Tp(c[c[u>>2]>>2]|0);l=Sh(c[y>>2]|0)|0;c[c[u>>2]>>2]=l;vf(c[y>>2]|0);break}c[n>>2]=Et()|0;A=c[n>>2]|0;i=m;return A|0}while(0);if(c[p>>2]|0)c[c[p>>2]>>2]=c[1476+((c[x>>2]|0)*48|0)+12>>2];if(c[q>>2]|0)c[c[q>>2]>>2]=c[1476+((c[x>>2]|0)*48|0)+16>>2];if(c[r>>2]|0){Tp(c[c[r>>2]>>2]|0);q=Sh(c[1476+((c[x>>2]|0)*48|0)+20>>2]|0)|0;c[c[r>>2]>>2]=q}if(c[s>>2]|0){Tp(c[c[s>>2]>>2]|0);q=Sh(c[1476+((c[x>>2]|0)*48|0)+24>>2]|0)|0;c[c[s>>2]>>2]=q}if(c[t>>2]|0){Tp(c[c[t>>2]>>2]|0);q=Sh(c[1476+((c[x>>2]|0)*48|0)+28>>2]|0)|0;c[c[t>>2]>>2]=q}if(c[v>>2]|0){Tp(c[c[v>>2]>>2]|0);q=Sh(c[1476+((c[x>>2]|0)*48|0)+32>>2]|0)|0;c[c[v>>2]>>2]=q}if(c[w>>2]|0){Tp(c[c[w>>2]>>2]|0);q=Sh(c[1476+((c[x>>2]|0)*48|0)+44>>2]|0)|0;c[c[w>>2]>>2]=q}c[n>>2]=0;A=c[n>>2]|0;i=m;return A|0}function Uh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;e=i;i=i+128|0;if((i|0)>=(j|0))$(128);f=e;g=e+112|0;h=e+108|0;k=e+104|0;l=e+100|0;m=e+96|0;n=e+92|0;o=e+48|0;p=e+44|0;q=e+40|0;r=e+36|0;s=e+32|0;t=e+28|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[n>>2]=0;c[p>>2]=0;c[q>>2]=0;d=o;b=d+44|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(b|0));if(c[l>>2]|0)c[c[l>>2]>>2]=0;if(!(c[h>>2]|0)){c[r>>2]=c[k>>2];if((c[r>>2]|0)>=0&(c[r>>2]|0)>>>0<22?(c[n>>2]=c[1476+((c[r>>2]|0)*48|0)>>2],c[l>>2]|0):0)c[c[l>>2]>>2]=c[1476+((c[r>>2]|0)*48|0)+4>>2];c[g>>2]=c[n>>2];u=c[g>>2]|0;i=e;return u|0}k=c[h>>2]|0;c[f>>2]=o+8;c[f+4>>2]=o+12;c[f+8>>2]=o+16;c[f+12>>2]=p;c[f+16>>2]=o+32;c[f+20>>2]=o+36;c[f+24>>2]=0;c[m>>2]=Vh(lg(k,0,35604,f)|0)|0;a:do if((c[m>>2]|0)==68){c[s>>2]=Tf(c[h>>2]|0,47217,5)|0;if(c[s>>2]|0?(c[t>>2]=_f(c[s>>2]|0,1)|0,Rf(c[s>>2]|0),c[t>>2]|0):0){c[r>>2]=Rh(c[t>>2]|0)|0;vf(c[t>>2]|0);if((c[r>>2]|0)>=0?(c[n>>2]=c[1476+((c[r>>2]|0)*48|0)>>2],c[l>>2]|0):0)c[c[l>>2]>>2]=c[1476+((c[r>>2]|0)*48|0)+4>>2];c[g>>2]=c[n>>2];u=c[g>>2]|0;i=e;return u|0}}else if(!(c[m>>2]|0)){if(c[p>>2]|0?(yn(o+20|0),zi(o+20|0,c[p>>2]|0)|0):0)break;c[r>>2]=0;while(1){if(!(c[1476+((c[r>>2]|0)*48|0)>>2]|0))break a;Dp(c[q>>2]|0);c[q>>2]=Sh(c[1476+((c[r>>2]|0)*48|0)+20>>2]|0)|0;if(((((((wo(c[q>>2]|0,c[o+8>>2]|0)|0)==0?(Dp(c[q>>2]|0),c[q>>2]=Sh(c[1476+((c[r>>2]|0)*48|0)+24>>2]|0)|0,(wo(c[q>>2]|0,c[o+12>>2]|0)|0)==0):0)?(Dp(c[q>>2]|0),c[q>>2]=Sh(c[1476+((c[r>>2]|0)*48|0)+28>>2]|0)|0,(wo(c[q>>2]|0,c[o+16>>2]|0)|0)==0):0)?(Dp(c[q>>2]|0),c[q>>2]=Sh(c[1476+((c[r>>2]|0)*48|0)+32>>2]|0)|0,(wo(c[q>>2]|0,c[o+32>>2]|0)|0)==0):0)?(Dp(c[q>>2]|0),c[q>>2]=Sh(c[1476+((c[r>>2]|0)*48|0)+44>>2]|0)|0,(wo(c[q>>2]|0,c[o+36>>2]|0)|0)==0):0)?(Dp(c[q>>2]|0),c[q>>2]=Sh(c[1476+((c[r>>2]|0)*48|0)+36>>2]|0)|0,(wo(c[q>>2]|0,c[o+20>>2]|0)|0)==0):0)?(Dp(c[q>>2]|0),c[q>>2]=Sh(c[1476+((c[r>>2]|0)*48|0)+40>>2]|0)|0,(wo(c[q>>2]|0,c[o+20+4>>2]|0)|0)==0):0)break;c[r>>2]=(c[r>>2]|0)+1}c[n>>2]=c[1476+((c[r>>2]|0)*48|0)>>2];if(c[l>>2]|0)c[c[l>>2]>>2]=c[1476+((c[r>>2]|0)*48|0)+4>>2]}while(0);Tp(c[q>>2]|0);Tp(c[o+8>>2]|0);Tp(c[o+12>>2]|0);Tp(c[o+16>>2]|0);Tp(c[p>>2]|0);An(o+20|0);Tp(c[o+32>>2]|0);Tp(c[o+36>>2]|0);c[g>>2]=c[n>>2];u=c[g>>2]|0;i=e;return u|0}function Vh(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return c[d>>2]&65535|0}function Wh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;e=i;i=i+80|0;if((i|0)>=(j|0))$(80);f=e+76|0;g=e+72|0;h=e+68|0;k=e+64|0;l=e+60|0;m=e+56|0;n=e+52|0;o=e+48|0;p=e+44|0;q=e+40|0;r=e+36|0;s=e+32|0;t=e+28|0;u=e+24|0;v=e+20|0;w=e+16|0;x=e+12|0;y=e+8|0;z=e+4|0;A=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[l>>2]=0;c[m>>2]=0;c[n>>2]=0;c[o>>2]=0;c[p>>2]=0;c[q>>2]=0;c[r>>2]=0;c[s>>2]=0;c[t>>2]=0;c[u>>2]=0;c[v>>2]=0;c[w>>2]=0;c[c[f>>2]>>2]=0;do if(c[g>>2]|0){c[x>>2]=Tf(c[g>>2]|0,47177,0)|0;if(c[x>>2]|0?(c[k>>2]=Fj(c[x>>2]|0,w,0)|0,Rf(c[x>>2]|0),c[x>>2]=0,c[k>>2]|0):0)break;c[x>>2]=Tf(c[g>>2]|0,47217,5)|0;if(c[x>>2]|0?(c[w>>2]&512|0)==0:0){B=13;break}c[k>>2]=Xh(o,c[g>>2]|0,47258)|0;if((((((c[k>>2]|0)==0?(c[k>>2]=Xh(p,c[g>>2]|0,39371)|0,(c[k>>2]|0)==0):0)?(c[k>>2]=Xh(q,c[g>>2]|0,35612)|0,(c[k>>2]|0)==0):0)?(c[k>>2]=Yh(r,c[g>>2]|0,35614,0)|0,(c[k>>2]|0)==0):0)?(c[k>>2]=Xh(s,c[g>>2]|0,39375)|0,(c[k>>2]|0)==0):0)?(c[k>>2]=Xh(t,c[g>>2]|0,35616)|0,(c[k>>2]|0)==0):0)B=13}else{c[x>>2]=0;B=13}while(0);do if((B|0)==13){if((c[x>>2]|0)!=0|(c[h>>2]|0)!=0){if(c[x>>2]|0){c[y>>2]=_f(c[x>>2]|0,1)|0;Rf(c[x>>2]|0);if(!(c[y>>2]|0)){c[k>>2]=65;break}}else c[y>>2]=0;c[z>>2]=wf(1,44)|0;if(!(c[z>>2]|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];c[t>>2]=0}if(c[g>>2]|0){c[k>>2]=Yh(u,c[g>>2]|0,47215,c[A>>2]|0)|0;if(c[k>>2]|0)break;c[k>>2]=Xh(v,c[g>>2]|0,35618)|0;if(c[k>>2]|0)break}if(c[u>>2]|0){c[(c[A>>2]|0)+40>>2]=c[u>>2];c[u>>2]=0}if(c[v>>2]|0){c[(c[A>>2]|0)+44>>2]=c[v>>2];c[v>>2]=0}c[c[f>>2]>>2]=c[l>>2];c[l>>2]=0}}while(0);sh(c[l>>2]|0);Dp(c[o>>2]|0);Dp(c[p>>2]|0);Dp(c[q>>2]|0);zn(c[r>>2]|0);Dp(c[s>>2]|0);Dp(c[t>>2]|0);zn(c[u>>2]|0);Dp(c[v>>2]|0);i=e;return c[k>>2]|0}function Xh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=0;c[l>>2]=Tf(c[g>>2]|0,c[h>>2]|0,0)|0;if(!(c[l>>2]|0)){m=c[k>>2]|0;i=e;return m|0}h=$f(c[l>>2]|0,1,5)|0;c[c[f>>2]>>2]=h;Rf(c[l>>2]|0);if(c[c[f>>2]>>2]|0){m=c[k>>2]|0;i=e;return m|0}c[k>>2]=65;m=c[k>>2]|0;i=e;return m|0}function Yh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;i=i+64|0;if((i|0)>=(j|0))$(64);g=f+48|0;h=f+44|0;k=f+40|0;l=f+36|0;m=f+32|0;n=f+28|0;o=f+24|0;p=f+20|0;q=f+16|0;r=f+12|0;s=f+8|0;t=f+4|0;u=f;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[o>>2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0;else{Dp(n);Dp(c[t>>2]|0);Dp(c[u>>2]|0);c[p>>2]=0}vf(c[r>>2]|0)}if(c[p>>2]|0)c[c[h>>2]>>2]=c[p>>2];c[g>>2]=0;v=c[g>>2]|0;i=f;return v|0}function Zh(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;b=i;i=i+144|0;if((i|0)>=(j|0))$(144);d=b+8|0;e=b;f=b+132|0;g=b+128|0;h=b+124|0;k=b+80|0;l=b+76|0;m=b+72|0;n=b+68|0;o=b+40|0;p=b+36|0;q=b+32|0;c[g>>2]=a;a=k;r=a+44|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(r|0));if(Qh(0,c[g>>2]|0,k,h)|0){c[f>>2]=0;s=c[f>>2]|0;i=b;return s|0}c[m>>2]=Rp(0)|0;c[n>>2]=Rp(0)|0;c[l>>2]=En(0,0,0,c[k+8>>2]|0,c[k+12>>2]|0,0)|0;if(tn(c[m>>2]|0,c[n>>2]|0,k+20|0,c[l>>2]|0)|0)We(35629,e);In(c[l>>2]|0);An(k+20|0);c[o>>2]=c[k+8>>2];c[o+4>>2]=c[k+12>>2];c[o+8>>2]=c[k+16>>2];c[o+12>>2]=xi(c[m>>2]|0,c[n>>2]|0,c[k+8>>2]|0)|0;c[o+16>>2]=c[k+32>>2];c[o+20>>2]=c[k+36>>2];c[o+24>>2]=0;Dp(c[m>>2]|0);Dp(c[n>>2]|0);n=c[o+4>>2]|0;m=c[o+8>>2]|0;k=c[o+12>>2]|0;l=c[o+16>>2]|0;e=c[o+20>>2]|0;c[d>>2]=c[o>>2];c[d+4>>2]=n;c[d+8>>2]=m;c[d+12>>2]=k;c[d+16>>2]=l;c[d+20>>2]=e;if(cg(p,0,35678,d)|0)c[p>>2]=0;c[q>>2]=0;while(1){if(!(c[o+(c[q>>2]<<2)>>2]|0))break;Tp(c[o+(c[q>>2]<<2)>>2]|0);c[q>>2]=(c[q>>2]|0)+1}c[f>>2]=c[p>>2];s=c[f>>2]|0;i=b;return s|0}function _h(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+20|0;h=f+16|0;k=f+12|0;l=f+8|0;m=f+4|0;n=f;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(a[c[h>>2]>>0]|0)){c[g>>2]=0;o=c[g>>2]|0;i=f;return o|0}if((Fu(c[h>>2]|0,47258)|0)==0?c[(c[k>>2]|0)+16>>2]|0:0){if(c[(c[k>>2]|0)+16>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[k>>2]|0)+16>>2]|0)+12>>2]&32|0)==0):0)p=c[(c[k>>2]|0)+16>>2]|0;else p=Ip(c[(c[k>>2]|0)+16>>2]|0)|0;c[g>>2]=p;o=c[g>>2]|0;i=f;return o|0}if((Fu(c[h>>2]|0,39371)|0)==0?c[(c[k>>2]|0)+20>>2]|0:0){if(c[(c[k>>2]|0)+20>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[k>>2]|0)+20>>2]|0)+12>>2]&32|0)==0):0)q=c[(c[k>>2]|0)+20>>2]|0;else q=Ip(c[(c[k>>2]|0)+20>>2]|0)|0;c[g>>2]=q;o=c[g>>2]|0;i=f;return o|0}if((Fu(c[h>>2]|0,35612)|0)==0?c[(c[k>>2]|0)+24>>2]|0:0){if(c[(c[k>>2]|0)+24>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[k>>2]|0)+24>>2]|0)+12>>2]&32|0)==0):0)r=c[(c[k>>2]|0)+24>>2]|0;else r=Ip(c[(c[k>>2]|0)+24>>2]|0)|0;c[g>>2]=r;o=c[g>>2]|0;i=f;return o|0}if((Fu(c[h>>2]|0,39375)|0)==0?c[(c[k>>2]|0)+32>>2]|0:0){if(c[(c[k>>2]|0)+32>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[k>>2]|0)+32>>2]|0)+12>>2]&32|0)==0):0)s=c[(c[k>>2]|0)+32>>2]|0;else s=Ip(c[(c[k>>2]|0)+32>>2]|0)|0;c[g>>2]=s;o=c[g>>2]|0;i=f;return o|0}if((Fu(c[h>>2]|0,35616)|0)==0?c[(c[k>>2]|0)+36>>2]|0:0){if(c[(c[k>>2]|0)+36>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[k>>2]|0)+36>>2]|0)+12>>2]&32|0)==0):0)t=c[(c[k>>2]|0)+36>>2]|0;else t=Ip(c[(c[k>>2]|0)+36>>2]|0)|0;c[g>>2]=t;o=c[g>>2]|0;i=f;return o|0}if((Fu(c[h>>2]|0,35618)|0)==0?c[(c[k>>2]|0)+44>>2]|0:0){if(c[(c[k>>2]|0)+44>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[k>>2]|0)+44>>2]|0)+12>>2]&32|0)==0):0)u=c[(c[k>>2]|0)+44>>2]|0;else u=Ip(c[(c[k>>2]|0)+44>>2]|0)|0;c[g>>2]=u;o=c[g>>2]|0;i=f;return o|0}if(((Fu(c[h>>2]|0,35726)|0)==0?c[(c[k>>2]|0)+28>>2]|0:0)?c[c[(c[k>>2]|0)+28>>2]>>2]|0:0){if(c[c[(c[k>>2]|0)+28>>2]>>2]|0?!(c[l>>2]|0?1:(c[(c[c[(c[k>>2]|0)+28>>2]>>2]|0)+12>>2]&32|0)==0):0)v=c[c[(c[k>>2]|0)+28>>2]>>2]|0;else v=Ip(c[c[(c[k>>2]|0)+28>>2]>>2]|0)|0;c[g>>2]=v;o=c[g>>2]|0;i=f;return o|0}if(((Fu(c[h>>2]|0,35730)|0)==0?c[(c[k>>2]|0)+28>>2]|0:0)?c[(c[(c[k>>2]|0)+28>>2]|0)+4>>2]|0:0){if(c[(c[(c[k>>2]|0)+28>>2]|0)+4>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[(c[k>>2]|0)+28>>2]|0)+4>>2]|0)+12>>2]&32|0)==0):0)w=c[(c[(c[k>>2]|0)+28>>2]|0)+4>>2]|0;else w=Ip(c[(c[(c[k>>2]|0)+28>>2]|0)+4>>2]|0)|0;c[g>>2]=w;o=c[g>>2]|0;i=f;return o|0}if(((Fu(c[h>>2]|0,35734)|0)==0?c[(c[k>>2]|0)+40>>2]|0:0)?c[c[(c[k>>2]|0)+40>>2]>>2]|0:0){if(c[c[(c[k>>2]|0)+40>>2]>>2]|0?!(c[l>>2]|0?1:(c[(c[c[(c[k>>2]|0)+40>>2]>>2]|0)+12>>2]&32|0)==0):0)x=c[c[(c[k>>2]|0)+40>>2]>>2]|0;else x=Ip(c[c[(c[k>>2]|0)+40>>2]>>2]|0)|0;c[g>>2]=x;o=c[g>>2]|0;i=f;return o|0}if(((Fu(c[h>>2]|0,35738)|0)==0?c[(c[k>>2]|0)+40>>2]|0:0)?c[(c[(c[k>>2]|0)+40>>2]|0)+4>>2]|0:0){if(c[(c[(c[k>>2]|0)+28>>2]|0)+4>>2]|0?!(c[l>>2]|0?1:(c[(c[(c[(c[k>>2]|0)+28>>2]|0)+4>>2]|0)+12>>2]&32|0)==0):0)y=c[(c[(c[k>>2]|0)+40>>2]|0)+4>>2]|0;else y=Ip(c[(c[(c[k>>2]|0)+40>>2]|0)+4>>2]|0)|0;c[g>>2]=y;o=c[g>>2]|0;i=f;return o|0}if((Fu(c[h>>2]|0,35614)|0)==0?c[(c[k>>2]|0)+28>>2]|0:0){c[g>>2]=yi(c[(c[k>>2]|0)+28>>2]|0,c[k>>2]|0)|0;o=c[g>>2]|0;i=f;return o|0}do if((a[c[h>>2]>>0]|0)==113){if(a[(c[h>>2]|0)+1>>0]|0?(a[(c[h>>2]|0)+1>>0]|0)!=64:0)break;if(!(c[(c[k>>2]|0)+40>>2]|0)){y=Ai(0,c[k>>2]|0,0,0)|0;c[(c[k>>2]|0)+40>>2]=y}if(!(c[(c[k>>2]|0)+40>>2]|0)){c[g>>2]=0;o=c[g>>2]|0;i=f;return o|0}if((a[(c[h>>2]|0)+1>>0]|0)!=64){c[g>>2]=yi(c[(c[k>>2]|0)+40>>2]|0,c[k>>2]|0)|0;o=c[g>>2]|0;i=f;return o|0}if((Fu((c[h>>2]|0)+2|0,49923)|0)==0?(c[c[k>>2]>>2]|0)==2:0){if(ci(c[(c[k>>2]|0)+40>>2]|0,c[k>>2]|0,0,0,0,m,n)|0)break;c[g>>2]=Ep(0,c[m>>2]|0,c[n>>2]<<3)|0;o=c[g>>2]|0;i=f;return o|0}}while(0);c[g>>2]=0;o=c[g>>2]|0;i=f;return o|0}function $h(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;if((Fu(c[f>>2]|0,35614)|0)==0?c[(c[g>>2]|0)+28>>2]|0:0){c[e>>2]=ai(c[(c[g>>2]|0)+28>>2]|0)|0;h=c[e>>2]|0;i=d;return h|0}if(!(Fu(c[f>>2]|0,47215)|0)){if(!(c[(c[g>>2]|0)+40>>2]|0)){f=Ai(0,c[g>>2]|0,0,0)|0;c[(c[g>>2]|0)+40>>2]=f}if(c[(c[g>>2]|0)+40>>2]|0){c[e>>2]=ai(c[(c[g>>2]|0)+40>>2]|0)|0;h=c[e>>2]|0;i=d;return h|0}}c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}function ai(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;if(c[d>>2]|0){c[e>>2]=xn(0)|0;bi(c[e>>2]|0,c[d>>2]|0);f=c[e>>2]|0;i=b;return f|0}else{c[e>>2]=0;f=c[e>>2]|0;i=b;return f|0}return 0}function bi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;Kp(c[c[e>>2]>>2]|0,c[c[f>>2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]|0){c[d>>2]=Bt(c[f>>2]|0)|0;We(35925,d)}else{i=b;return c[g>>2]|0}return 0}function hi(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;k=i;i=i+64|0;if((i|0)>=(j|0))$(64);l=k+48|0;m=k+44|0;n=k+40|0;o=k+36|0;p=k+32|0;q=k+28|0;r=k+24|0;s=k+20|0;t=k+16|0;u=k+12|0;v=k+8|0;w=k+4|0;x=k;c[m>>2]=b;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;do if(c[m>>2]|0?c[(c[m>>2]|0)+12>>2]&4|0:0){c[v>>2]=Gp(c[m>>2]|0,t)|0;if(!(c[v>>2]|0)){c[l>>2]=65;y=c[l>>2]|0;i=k;return y|0}c[t>>2]=(((c[t>>2]|0)+7|0)>>>0)/8|0;do if((c[t>>2]|0)>>>0>1?((c[t>>2]|0)>>>0)%2|0|0:0){h=c[v>>2]|0;if((d[c[v>>2]>>0]|0|0)!=4){if((d[h>>0]|0|0)!=64)break;c[t>>2]=(c[t>>2]|0)+-1;c[v>>2]=(c[v>>2]|0)+1;break}c[r>>2]=Zo(w,1,h+1|0,(((c[t>>2]|0)-1|0)>>>0)/2|0,0)|0;if(c[r>>2]|0){c[l>>2]=c[r>>2];y=c[l>>2]|0;i=k;return y|0}c[r>>2]=Zo(x,1,(c[v>>2]|0)+1+((((c[t>>2]|0)-1|0)>>>0)/2|0)|0,(((c[t>>2]|0)-1|0)>>>0)/2|0,0)|0;if(c[r>>2]|0){Dp(c[w>>2]|0);c[l>>2]=c[r>>2];y=c[l>>2]|0;i=k;return y|0}if(c[p>>2]|0?(c[r>>2]=di(c[w>>2]|0,c[x>>2]|0,((c[(c[n>>2]|0)+12>>2]|0)>>>0)/8|0,0,c[p>>2]|0,c[q>>2]|0)|0,c[r>>2]|0):0){Dp(c[w>>2]|0);Dp(c[x>>2]|0);c[l>>2]=c[r>>2];y=c[l>>2]|0;i=k;return y|0}Mp(c[c[o>>2]>>2]|0,c[w>>2]|0);Mp(c[(c[o>>2]|0)+4>>2]|0,c[x>>2]|0);Op(c[(c[o>>2]|0)+8>>2]|0,1)|0;c[l>>2]=0;y=c[l>>2]|0;i=k;return y|0}while(0);c[s>>2]=pf(c[t>>2]|0?c[t>>2]|0:1)|0;if(c[s>>2]|0){Yw(c[s>>2]|0,c[v>>2]|0,c[t>>2]|0)|0;ii(c[s>>2]|0,c[t>>2]|0);break}c[l>>2]=Et()|0;y=c[l>>2]|0;i=k;return y|0}else z=21;while(0);if((z|0)==21?(c[s>>2]=Vo(c[m>>2]|0,((c[(c[n>>2]|0)+12>>2]|0)>>>0)/8|0,t,0)|0,(c[s>>2]|0)==0):0){c[l>>2]=Et()|0;y=c[l>>2]|0;i=k;return y|0}if(c[t>>2]|0){c[u>>2]=(((d[c[s>>2]>>0]|0)&128|0)!=0^1^1)&1;m=c[s>>2]|0;a[m>>0]=(d[m>>0]|0)&127}else c[u>>2]=0;Yo(c[(c[o>>2]|0)+4>>2]|0,c[s>>2]|0,c[t>>2]|0,0);if(c[p>>2]|0){if((c[u>>2]|0)!=0&(c[t>>2]|0)!=0){m=c[s>>2]|0;a[m>>0]=d[m>>0]|0|128}ii(c[s>>2]|0,c[t>>2]|0);c[c[p>>2]>>2]=c[s>>2];if(c[q>>2]|0)c[c[q>>2]>>2]=c[t>>2]}else vf(c[s>>2]|0);c[r>>2]=fi(c[c[o>>2]>>2]|0,c[(c[o>>2]|0)+4>>2]|0,c[u>>2]|0,c[n>>2]|0)|0;Op(c[(c[o>>2]|0)+8>>2]|0,1)|0;c[l>>2]=c[r>>2];y=c[l>>2]|0;i=k;return y|0}function ii(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=b;c[h>>2]=e;c[l>>2]=0;while(1){if((c[l>>2]|0)>>>0>=(((c[h>>2]|0)>>>0)/2|0)>>>0)break;c[k>>2]=d[(c[g>>2]|0)+(c[l>>2]|0)>>0];a[(c[g>>2]|0)+(c[l>>2]|0)>>0]=a[(c[g>>2]|0)+((c[h>>2]|0)-1-(c[l>>2]|0))>>0]|0;a[(c[g>>2]|0)+((c[h>>2]|0)-1-(c[l>>2]|0))>>0]=c[k>>2];c[l>>2]=(c[l>>2]|0)+1}i=f;return}function ji(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;g=i;i=i+80|0;if((i|0)>=(j|0))$(80);h=g+68|0;k=g+64|0;l=g+60|0;m=g+56|0;n=g+52|0;o=g+48|0;p=g+44|0;q=g+40|0;r=g+8|0;s=g+4|0;t=g;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[o>>2]=0;c[c[k>>2]>>2]=0;c[s>>2]=10;if((c[s>>2]|0)!=10){c[h>>2]=5;u=c[h>>2]|0;i=g;return u|0}c[t>>2]=(((c[(c[m>>2]|0)+12>>2]|0)+7|0)>>>0)/8|0;if((c[t>>2]|0)!=32){c[h>>2]=63;u=c[h>>2]|0;i=g;return u|0}c[q>>2]=xf(2,c[t>>2]|0)|0;if(!(c[q>>2]|0)){c[h>>2]=Et()|0;u=c[h>>2]|0;i=g;return u|0};c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;c[r+16>>2]=0;c[r+20>>2]=0;c[r+24>>2]=0;c[r+28>>2]=0;c[o>>2]=Vo(c[l>>2]|0,0,p,0)|0;l=c[q>>2]|0;if(!(c[o>>2]|0)){vf(l);c[h>>2]=Et()|0;u=c[h>>2]|0;i=g;return u|0}c[r+12>>2]=l;c[r+4>>2]=0;if((c[t>>2]|0)>>>0>(c[p>>2]|0)>>>0)v=(c[t>>2]|0)-(c[p>>2]|0)|0;else v=0;c[r+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c[f>>2]=b;Kp(c[c[e>>2]>>2]|0,c[c[f>>2]>>2]|0)|0;Kp(c[(c[e>>2]|0)+4>>2]|0,c[(c[f>>2]|0)+4>>2]|0)|0;Kp(c[(c[e>>2]|0)+8>>2]|0,c[(c[f>>2]|0)+8>>2]|0)|0;i=d;return}function ni(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=oi(1,c[d>>2]|0)|0;i=b;return a|0}function oi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function pi(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;h=i;i=i+160|0;if((i|0)>=(j|0))$(160);k=h+156|0;l=h+152|0;m=h+148|0;n=h+144|0;o=h+140|0;p=h+136|0;q=h+132|0;r=h+128|0;s=h+124|0;t=h+120|0;u=h+116|0;v=h+112|0;w=h+64|0;x=h+60|0;y=h+56|0;z=h+52|0;A=h+48|0;B=h+44|0;C=h+40|0;D=h+28|0;E=h+16|0;F=h+12|0;G=h+8|0;H=h+4|0;I=h;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[s>>2]=0;c[z>>2]=0;c[B>>2]=0;g=w;f=g+48|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(f|0));if(c[l>>2]|0?c[(c[l>>2]|0)+12>>2]&4|0:0){yn(D);yn(E);c[F>>2]=Sp(0)|0;c[G>>2]=Rp(0)|0;c[H>>2]=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2]=d;c[m>>2]=e;c[n>>2]=Vo(c[h>>2]|0,c[k>>2]|0,o,0)|0;if(c[n>>2]|0){c[c[l>>2]>>2]=c[n>>2];c[c[m>>2]>>2]=c[o>>2];c[g>>2]=0;p=c[g>>2]|0;i=f;return p|0}else{c[g>>2]=Et()|0;p=c[g>>2]|0;i=f;return p|0}return 0}function ri(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;h=i;i=i+240|0;if((i|0)>=(j|0))$(240);k=h+172|0;l=h+168|0;m=h+164|0;n=h+160|0;o=h+156|0;p=h+152|0;q=h+148|0;r=h+144|0;s=h+140|0;t=h+136|0;u=h+132|0;v=h+120|0;w=h+116|0;x=h+112|0;y=h+108|0;z=h+104|0;A=h+100|0;B=h+96|0;C=h+92|0;D=h+88|0;E=h+176|0;F=h+40|0;G=h+36|0;H=h+32|0;I=h+20|0;J=h+8|0;K=h+4|0;L=h;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[s>>2]=0;c[w>>2]=0;c[A>>2]=0;if(((c[l>>2]|0?(c[n>>2]|0?(c[(c[l>>2]|0)+12>>2]&4|0)!=0:0):0)?(c[o>>2]|0?(c[(c[n>>2]|0)+12>>2]&4|0)!=0:0):0)?c[(c[o>>2]|0)+12>>2]&4|0:0){if((c[p>>2]|0)!=10){c[k>>2]=5;M=c[k>>2]|0;i=h;return M|0}yn(v);yn(I);yn(J);c[G>>2]=Rp(0)|0;c[H>>2]=Rp(0)|0;c[s>>2]=En(c[c[m>>2]>>2]|0,c[(c[m>>2]|0)+4>>2]|0,0,c[(c[m>>2]|0)+8>>2]|0,c[(c[m>>2]|0)+12>>2]|0,c[(c[m>>2]|0)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0);Jp(c[J>>2]|0,c[J>>2]|0);Vn(I,I,J,c[s>>2]|0);c[r>>2]=ci(I,c[s>>2]|0,c[H>>2]|0,c[G>>2]|0,0,A,D)|0;if(!(c[r>>2]|0)){do if((c[D>>2]|0)==(c[C>>2]|0)){if(Jv(c[A>>2]|0,c[z>>2]|0,c[D>>2]|0)|0)break;c[r>>2]=0;break a}while(0);c[r>>2]=8}}}while(0);vf(c[w>>2]|0);vf(c[A>>2]|0);In(c[s>>2]|0);Tp(c[H>>2]|0);Tp(c[G>>2]|0);An(I);An(J);An(v);c[k>>2]=c[r>>2];M=c[k>>2]|0;i=h;return M|0}c[k>>2]=79;M=c[k>>2]|0;i=h;return M|0}function si(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Dp(c[(c[d>>2]|0)+8>>2]|0);c[(c[d>>2]|0)+8>>2]=0;Dp(c[(c[d>>2]|0)+12>>2]|0);c[(c[d>>2]|0)+12>>2]=0;Dp(c[(c[d>>2]|0)+16>>2]|0);c[(c[d>>2]|0)+16>>2]=0;An((c[d>>2]|0)+20|0);Dp(c[(c[d>>2]|0)+32>>2]|0);c[(c[d>>2]|0)+32>>2]=0;Dp(c[(c[d>>2]|0)+36>>2]|0);c[(c[d>>2]|0)+36>>2]=0;i=b;return}function ti(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d;c[e>>2]=c[b>>2];c[e+4>>2]=c[b+4>>2];c[e+40>>2]=c[b+40>>2];c[e+8>>2]=Ip(c[b+8>>2]|0)|0;c[e+12>>2]=Ip(c[b+12>>2]|0)|0;c[e+16>>2]=Ip(c[b+16>>2]|0)|0;yn(e+20|0);ui(e+20|0,b+20|0);c[e+32>>2]=Ip(c[b+32>>2]|0)|0;c[e+36>>2]=Ip(c[b+36>>2]|0)|0;b=a;a=e;e=b+44|0;do{c[b>>2]=c[a>>2];b=b+4|0;a=a+4|0}while((b|0)<(e|0));i=d;return}function ui(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;Kp(c[c[e>>2]>>2]|0,c[c[f>>2]>>2]|0)|0;Kp(c[(c[e>>2]|0)+4>>2]|0,c[(c[f>>2]|0)+4>>2]|0)|0;Kp(c[(c[e>>2]|0)+8>>2]|0,c[(c[f>>2]|0)+8>>2]|0)|0;i=d;return}function vi(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=37975;switch(c[d>>2]|0){case 0:{c[e>>2]=36021;break}case 1:{c[e>>2]=45707;break}case 2:{c[e>>2]=36033;break}default:{}}i=b;return c[e>>2]|0}function wi(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=37975;switch(c[d>>2]|0){case 0:{c[e>>2]=36041;break}case 1:{c[e>>2]=36050;break}default:{}}i=b;return c[e>>2]|0}function xi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;i=i+64|0;if((i|0)>=(j|0))$(64);g=f+16|0;h=f+8|0;k=f;l=f+52|0;m=f+48|0;n=f+44|0;o=f+40|0;p=f+36|0;q=f+32|0;r=f+28|0;s=f+24|0;t=f+20|0;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[p>>2]=(((lo(c[n>>2]|0)|0)+7|0)>>>0)/8|0;c[r>>2]=zf(1+(c[p>>2]<<1)|0)|0;a[c[r>>2]>>0]=4;c[s>>2]=(c[r>>2]|0)+1;c[o>>2]=bp(5,c[s>>2]|0,c[p>>2]|0,q,c[l>>2]|0)|0;if(c[o>>2]|0){c[k>>2]=Bt(c[o>>2]|0)|0;We(36058,k)}if((c[q>>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q=e;c[g>>2]=a;c[h>>2]=b;do if(c[h>>2]|0?c[(c[h>>2]|0)+12>>2]&4|0:0){c[m>>2]=Gp(c[h>>2]|0,q)|0;if(c[m>>2]|0){c[l>>2]=(((c[q>>2]|0)+7|0)>>>0)/8|0;c[n>>2]=0;break}c[f>>2]=65;r=c[f>>2]|0;i=e;return r|0}else s=6;while(0);do if((s|0)==6){c[l>>2]=(((lo(c[h>>2]|0)|0)+7|0)>>>0)/8|0;c[n>>2]=zf(c[l>>2]|0)|0;c[k>>2]=bp(5,c[n>>2]|0,c[l>>2]|0,l,c[h>>2]|0)|0;q=c[n>>2]|0;if(!(c[k>>2]|0)){c[m>>2]=q;break}vf(q);c[f>>2]=c[k>>2];r=c[f>>2]|0;i=e;return r|0}while(0);if((c[l>>2]|0)>>>0<1){vf(c[n>>2]|0);c[f>>2]=65;r=c[f>>2]|0;i=e;return r|0}if((d[c[m>>2]>>0]|0|0)!=4){vf(c[n>>2]|0);c[f>>2]=69;r=c[f>>2]|0;i=e;return r|0}if((((c[l>>2]|0)-1|0)>>>0)%2|0|0){vf(c[n>>2]|0);c[f>>2]=65;r=c[f>>2]|0;i=e;return r|0}c[l>>2]=(((c[l>>2]|0)-1|0)>>>0)/2|0;c[k>>2]=Zo(o,5,(c[m>>2]|0)+1|0,c[l>>2]|0,0)|0;if(c[k>>2]|0){vf(c[n>>2]|0);c[f>>2]=c[k>>2];r=c[f>>2]|0;i=e;return r|0}c[k>>2]=Zo(p,5,(c[m>>2]|0)+1+(c[l>>2]|0)|0,c[l>>2]|0,0)|0;vf(c[n>>2]|0);if(c[k>>2]|0){Dp(c[o>>2]|0);c[f>>2]=c[k>>2];r=c[f>>2]|0;i=e;return r|0}else{Kp(c[c[g>>2]>>2]|0,c[o>>2]|0)|0;Kp(c[(c[g>>2]|0)+4>>2]|0,c[p>>2]|0)|0;Op(c[(c[g>>2]|0)+8>>2]|0,1)|0;Dp(c[o>>2]|0);Dp(c[p>>2]|0);c[f>>2]=0;r=c[f>>2]|0;i=e;return r|0}return 0}function Ai(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+24|0;h=f+20|0;k=f+16|0;l=f+12|0;m=f+8|0;n=f+4|0;o=f;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;if(!(c[l>>2]|0))c[l>>2]=c[(c[k>>2]|0)+28>>2];if(!(c[m>>2]|0))c[m>>2]=c[(c[k>>2]|0)+44>>2];if(((c[m>>2]|0)!=0&(c[l>>2]|0)!=0?c[(c[k>>2]|0)+16>>2]|0:0)?c[(c[k>>2]|0)+20>>2]|0:0){if((c[c[k>>2]>>2]|0)==2?(c[(c[k>>2]|0)+24>>2]|0)==0:0){c[g>>2]=0;p=c[g>>2]|0;i=f;return p|0}if((c[(c[k>>2]|0)+4>>2]|0)==1?c[(c[k>>2]|0)+8>>2]&4096|0:0){if(ji(o,c[m>>2]|0,c[k>>2]|0)|0){c[g>>2]=0;p=c[g>>2]|0;i=f;return p|0}c[n>>2]=Sp(0)|0;Yo(c[n>>2]|0,c[o>>2]|0,32,0);vf(c[o>>2]|0);if(!(c[h>>2]|0))c[h>>2]=xn(0)|0;if(c[h>>2]|0)$n(c[h>>2]|0,c[n>>2]|0,c[l>>2]|0,c[k>>2]|0);Dp(c[n>>2]|0)}else{if(!(c[h>>2]|0))c[h>>2]=xn(0)|0;if(c[h>>2]|0)$n(c[h>>2]|0,c[m>>2]|0,c[l>>2]|0,c[k>>2]|0)}c[g>>2]=c[h>>2];p=c[g>>2]|0;i=f;return p|0}c[g>>2]=0;p=c[g>>2]|0;i=f;return p|0}function Bi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=0;if(pj(c[f>>2]|0,8,0,0)|0){c[k>>2]=5;if(c[h>>2]|0)Eb[c[h>>2]&1](36101,c[f>>2]|0,38068,36106)}else c[k>>2]=Ci(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;h=Di(c[k>>2]|0)|0;i=e;return h|0}function Ci(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;switch(c[f>>2]|0){case 2:{c[k>>2]=Fi(c[g>>2]|0,c[h>>2]|0)|0;break}case 11:{c[k>>2]=Gi(c[g>>2]|0,c[h>>2]|0)|0;break}case 8:{c[k>>2]=Hi(c[g>>2]|0,c[h>>2]|0)|0;break}case 9:{c[k>>2]=Ii(c[g>>2]|0,c[h>>2]|0)|0;break}case 10:{c[k>>2]=Ji(c[g>>2]|0,c[h>>2]|0)|0;break}default:c[k>>2]=5}i=e;return c[k>>2]|0}function Di(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Ei(1,c[d>>2]|0)|0;i=b;return a|0}function Ei(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function Fi(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+160|0;if((i|0)>=(j|0))$(160);f=e+24|0;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;m=e+32|0;n=e+4|0;o=e;c[g>>2]=b;c[h>>2]=d;c[k>>2]=36945;c[n>>2]=0;while(1){if((c[n>>2]|0)>=64)break;a[m+(c[n>>2]|0)>>0]=c[n>>2];c[n>>2]=(c[n>>2]|0)+1}c[l>>2]=Ki(2,36960,9,m,64,36970,20)|0;do if(!(c[l>>2]|0)){if(c[g>>2]|0){c[k>>2]=36991;c[n>>2]=0;c[o>>2]=48;while(1){if((c[n>>2]|0)>=20)break;d=c[o>>2]|0;c[o>>2]=d+1;a[m+(c[n>>2]|0)>>0]=d;c[n>>2]=(c[n>>2]|0)+1}c[l>>2]=Ki(2,37006,9,m,20,37016,20)|0;if(c[l>>2]|0)break;c[k>>2]=37037;c[n>>2]=0;c[o>>2]=80;while(1){if((c[n>>2]|0)>=100)break;d=c[o>>2]|0;c[o>>2]=d+1;a[m+(c[n>>2]|0)>>0]=d;c[n>>2]=(c[n>>2]|0)+1}c[l>>2]=Ki(2,37052,9,m,100,37062,20)|0;if(c[l>>2]|0)break;c[k>>2]=37083;c[n>>2]=0;c[o>>2]=112;while(1){if((c[n>>2]|0)>=49)break;d=c[o>>2]|0;c[o>>2]=d+1;a[m+(c[n>>2]|0)>>0]=d;c[n>>2]=(c[n>>2]|0)+1}c[l>>2]=Ki(2,37098,9,m,49,37108,20)|0;if(c[l>>2]|0)break}c[f>>2]=0;p=c[f>>2]|0;i=e;return p|0}while(0);if(c[h>>2]|0)Eb[c[h>>2]&1](36101,2,c[k>>2]|0,c[l>>2]|0);c[f>>2]=50;p=c[f>>2]|0;i=e;return p|0}function Gi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[f>>2]=a;c[g>>2]=b;c[l>>2]=0;while(1){if(!(c[4088+((c[l>>2]|0)*40|0)>>2]|0)){m=6;break}c[h>>2]=c[4088+((c[l>>2]|0)*40|0)>>2];b=c[4088+((c[l>>2]|0)*40|0)+4>>2]|0;a=hv(c[4088+((c[l>>2]|0)*40|0)+4>>2]|0)|0;n=c[4088+((c[l>>2]|0)*40|0)+8>>2]|0;o=hv(c[4088+((c[l>>2]|0)*40|0)+8>>2]|0)|0;c[k>>2]=Ki(11,b,a,n,o,4088+((c[l>>2]|0)*40|0)+12|0,28)|0;if(c[k>>2]|0)break;if(!(c[f>>2]|0)){m=6;break}c[l>>2]=(c[l>>2]|0)+1}if((m|0)==6){c[e>>2]=0;p=c[e>>2]|0;i=d;return p|0}if(c[g>>2]|0)Eb[c[g>>2]&1](36101,11,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;p=c[e>>2]|0;i=d;return p|0}function Hi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+32|0;f=d+28|0;g=d+24|0;h=d+20|0;k=d+16|0;l=d+12|0;m=d+8|0;n=d+4|0;o=d;c[f>>2]=a;c[g>>2]=b;c[l>>2]=0;while(1){if(!(c[3780+((c[l>>2]|0)*44|0)>>2]|0)){p=13;break}c[h>>2]=c[3780+((c[l>>2]|0)*44|0)>>2];b=c[3780+((c[l>>2]|0)*44|0)+4>>2]|0;a=hv(c[3780+((c[l>>2]|0)*44|0)+4>>2]|0)|0;q=c[3780+((c[l>>2]|0)*44|0)+8>>2]|0;r=hv(c[3780+((c[l>>2]|0)*44|0)+8>>2]|0)|0;c[k>>2]=Ki(8,b,a,q,r,3780+((c[l>>2]|0)*44|0)+12|0,32)|0;if(c[k>>2]|0)break;r=c[3780+((c[l>>2]|0)*44|0)+8>>2]|0;c[m>>2]=Yp(r,hv(c[3780+((c[l>>2]|0)*44|0)+8>>2]|0)|0)|0;if(!(c[m>>2]|0)){p=5;break}r=c[m>>2]|0;q=c[3780+((c[l>>2]|0)*44|0)+4>>2]|0;Zp(r,q,hv(c[3780+((c[l>>2]|0)*44|0)+4>>2]|0)|0);c[n>>2]=cq(c[m>>2]|0,o)|0;if(!(c[n>>2]|0)){p=7;break}if((c[o>>2]|0)!=32){p=10;break}if(Jv(c[n>>2]|0,3780+((c[l>>2]|0)*44|0)+12|0,32)|0){p=10;break}$p(c[m>>2]|0);if(!(c[f>>2]|0)){p=13;break}c[l>>2]=(c[l>>2]|0)+1}if((p|0)==5)c[k>>2]=36850;else if((p|0)==7){c[k>>2]=36875;$p(c[m>>2]|0)}else if((p|0)==10){c[k>>2]=36905;$p(c[m>>2]|0)}else if((p|0)==13){c[e>>2]=0;s=c[e>>2]|0;i=d;return s|0}if(c[g>>2]|0)Eb[c[g>>2]&1](36101,8,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;s=c[e>>2]|0;i=d;return s|0}function Ii(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[f>>2]=a;c[g>>2]=b;c[l>>2]=0;while(1){if(!(c[3360+((c[l>>2]|0)*60|0)>>2]|0)){m=6;break}c[h>>2]=c[3360+((c[l>>2]|0)*60|0)>>2];b=c[3360+((c[l>>2]|0)*60|0)+4>>2]|0;a=hv(c[3360+((c[l>>2]|0)*60|0)+4>>2]|0)|0;n=c[3360+((c[l>>2]|0)*60|0)+8>>2]|0;o=hv(c[3360+((c[l>>2]|0)*60|0)+8>>2]|0)|0;c[k>>2]=Ki(9,b,a,n,o,3360+((c[l>>2]|0)*60|0)+12|0,48)|0;if(c[k>>2]|0)break;if(!(c[f>>2]|0)){m=6;break}c[l>>2]=(c[l>>2]|0)+1}if((m|0)==6){c[e>>2]=0;p=c[e>>2]|0;i=d;return p|0}if(c[g>>2]|0)Eb[c[g>>2]&1](36101,9,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;p=c[e>>2]|0;i=d;return p|0}function Ji(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[f>>2]=a;c[g>>2]=b;c[l>>2]=0;while(1){if(!(c[2828+((c[l>>2]|0)*76|0)>>2]|0)){m=6;break}c[h>>2]=c[2828+((c[l>>2]|0)*76|0)>>2];b=c[2828+((c[l>>2]|0)*76|0)+4>>2]|0;a=hv(c[2828+((c[l>>2]|0)*76|0)+4>>2]|0)|0;n=c[2828+((c[l>>2]|0)*76|0)+8>>2]|0;o=hv(c[2828+((c[l>>2]|0)*76|0)+8>>2]|0)|0;c[k>>2]=Ki(10,b,a,n,o,2828+((c[l>>2]|0)*76|0)+12|0,64)|0;if(c[k>>2]|0)break;if(!(c[f>>2]|0)){m=6;break}c[l>>2]=(c[l>>2]|0)+1}if((m|0)==6){c[e>>2]=0;p=c[e>>2]|0;i=d;return p|0}if(c[g>>2]|0)Eb[c[g>>2]&1](36101,10,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;p=c[e>>2]|0;i=d;return p|0}function Ki(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;k=i;i=i+48|0;if((i|0)>=(j|0))$(48);l=k+36|0;m=k+32|0;n=k+28|0;o=k+24|0;p=k+20|0;q=k+16|0;r=k+12|0;s=k+8|0;t=k+4|0;u=k;c[m>>2]=a;c[n>>2]=b;c[o>>2]=d;c[p>>2]=e;c[q>>2]=f;c[r>>2]=g;c[s>>2]=h;h=oj(c[m>>2]|0)|0;do if((h|0)==(c[s>>2]|0)){if(Si(t,c[m>>2]|0,2)|0){c[l>>2]=49975;break}g=(fj(c[t>>2]|0,c[p>>2]|0,c[q>>2]|0)|0)!=0;f=c[t>>2]|0;if(g){_i(f);c[l>>2]=36149;break}$i(f,c[n>>2]|0,c[o>>2]|0);c[u>>2]=lj(c[t>>2]|0,c[m>>2]|0)|0;if(!(c[u>>2]|0)){_i(c[t>>2]|0);c[l>>2]=36171;break}f=(Jv(c[u>>2]|0,c[r>>2]|0,c[s>>2]|0)|0)!=0;_i(c[t>>2]|0);if(f){c[l>>2]=36191;break}else{c[l>>2]=0;break}}else c[l>>2]=36130;while(0);i=k;return c[l>>2]|0}function Li(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[e>>2]=a;do if(c[e>>2]|0){c[f>>2]=Mi(c[e>>2]|0,0)|0;if(c[f>>2]|0){c[d>>2]=c[c[f>>2]>>2];break}c[f>>2]=Ni(c[e>>2]|0)|0;if(c[f>>2]|0){c[d>>2]=c[c[f>>2]>>2];break}else{c[d>>2]=0;break}}else c[d>>2]=0;while(0);i=b;return c[d>>2]|0}function Mi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;do if(c[f>>2]|0){if(Hv(c[f>>2]|0,37129,4)|0?Hv(c[f>>2]|0,37134,4)|0:0)break;c[f>>2]=(c[f>>2]|0)+4}while(0);c[h>>2]=Oi(c[f>>2]|0)|0;a:do if(c[h>>2]|0?c[(c[h>>2]|0)+20>>2]|0:0){c[k>>2]=0;while(1){if(!(c[(c[(c[h>>2]|0)+20>>2]|0)+(c[k>>2]<<2)>>2]|0))break a;if(!(sv(c[f>>2]|0,c[(c[(c[h>>2]|0)+20>>2]|0)+(c[k>>2]<<2)>>2]|0)|0))break;c[k>>2]=(c[k>>2]|0)+1}if(c[g>>2]|0)c[c[g>>2]>>2]=c[(c[(c[h>>2]|0)+20>>2]|0)+(c[k>>2]<<2)>>2];c[e>>2]=c[h>>2];l=c[e>>2]|0;i=d;return l|0}while(0);c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}function Ni(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;c[g>>2]=0;while(1){a=c[4368+(c[g>>2]<<2)>>2]|0;c[f>>2]=a;if(!a){h=6;break}if(!(sv(c[e>>2]|0,c[(c[f>>2]|0)+8>>2]|0)|0)){h=4;break}c[g>>2]=(c[g>>2]|0)+1}if((h|0)==4){c[d>>2]=c[f>>2];k=c[d>>2]|0;i=b;return k|0}else if((h|0)==6){c[d>>2]=0;k=c[d>>2]|0;i=b;return k|0}return 0}function Oi(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+20|0;e=b+16|0;f=b+12|0;g=b+8|0;h=b+4|0;k=b;c[e>>2]=a;c[h>>2]=0;a:while(1){a=c[4368+(c[h>>2]<<2)>>2]|0;c[f>>2]=a;if(!a){l=10;break}c[g>>2]=c[(c[f>>2]|0)+20>>2];b:do if(c[g>>2]|0){c[k>>2]=0;while(1){if(!(c[(c[g>>2]|0)+(c[k>>2]<<2)>>2]|0))break b;if(!(sv(c[e>>2]|0,c[(c[g>>2]|0)+(c[k>>2]<<2)>>2]|0)|0)){l=7;break a}c[k>>2]=(c[k>>2]|0)+1}}while(0);c[h>>2]=(c[h>>2]|0)+1}if((l|0)==7){c[d>>2]=c[f>>2];m=c[d>>2]|0;i=b;return m|0}else if((l|0)==10){c[d>>2]=0;m=c[d>>2]|0;i=b;return m|0}return 0}function Pi(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=Qi(c[d>>2]|0)|0;if(!(c[e>>2]|0)){f=37975;i=b;return f|0}f=c[(c[e>>2]|0)+8>>2]|0;i=b;return f|0}function Qi(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;c[e>>2]=Ri(c[e>>2]|0)|0;c[f>>2]=0;while(1){a=c[4368+(c[f>>2]<<2)>>2]|0;c[g>>2]=a;if(!a){h=6;break}if((c[e>>2]|0)==(c[c[g>>2]>>2]|0)){h=4;break}c[f>>2]=(c[f>>2]|0)+1}if((h|0)==4){c[d>>2]=c[g>>2];k=c[d>>2]|0;i=b;return k|0}else if((h|0)==6){c[d>>2]=0;k=c[d>>2]|0;i=b;return k|0}return 0}function Ri(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return c[d>>2]|0}function Si(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(c[h>>2]&-260|0)c[k>>2]=45;else c[k>>2]=Ti(l,c[g>>2]|0,c[h>>2]|0)|0;c[c[f>>2]>>2]=c[k>>2]|0?0:c[l>>2]|0;i=e;return c[k>>2]|0}function Ti(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+36|0;h=f+32|0;k=f+28|0;l=f+24|0;m=f+20|0;n=f+16|0;o=f+12|0;p=f+8|0;q=f+4|0;r=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=0;c[m>>2]=((c[k>>2]&1|0)!=0^1^1)&1;c[n>>2]=((c[k>>2]&2|0)!=0^1^1)&1;c[o>>2]=c[m>>2]|0?512:1024;c[r>>2]=16+(c[o>>2]|0);c[r>>2]=((((c[r>>2]|0)+8-1|0)>>>0)/8|0)<<3;o=(c[r>>2]|0)+28|0;if(c[m>>2]|0)c[q>>2]=sf(o)|0;else c[q>>2]=pf(o)|0;if(!(c[q>>2]|0))c[l>>2]=Ct(c[(xu()|0)>>2]|0)|0;if((c[l>>2]|0)==0?(o=(c[q>>2]|0)+(c[r>>2]|0)|0,c[p>>2]=o,c[c[q>>2]>>2]=o,c[(c[q>>2]|0)+8>>2]=(c[r>>2]|0)-16+1,c[(c[q>>2]|0)+4>>2]=0,o=c[c[q>>2]>>2]|0,c[o>>2]=0,c[o+4>>2]=0,c[o+8>>2]=0,c[o+12>>2]=0,c[o+16>>2]=0,c[o+20>>2]=0,c[o+24>>2]=0,c[c[p>>2]>>2]=c[m>>2]|0?378630161:285677921,c[(c[p>>2]|0)+4>>2]=(c[r>>2]|0)+28,r=(c[p>>2]|0)+12|0,a[r>>0]=a[r>>0]&-2|c[m>>2]&1,m=(c[p>>2]|0)+12|0,a[m>>0]=a[m>>0]&-5|(((c[k>>2]&256|0)!=0^1^1)&1)<<2&255,c[n>>2]|0):0){switch(c[h>>2]|0){case 10:case 9:{c[(c[p>>2]|0)+24>>2]=128;break}case 311:case 308:{c[(c[p>>2]|0)+24>>2]=32;break}default:c[(c[p>>2]|0)+24>>2]=64}n=sf(c[(c[p>>2]|0)+24>>2]<<1)|0;c[(c[p>>2]|0)+20>>2]=n;if(!(c[(c[p>>2]|0)+20>>2]|0)){c[l>>2]=Ct(c[(xu()|0)>>2]|0)|0;Ui(c[q>>2]|0)}}if(((c[l>>2]|0)==0?(mn(),c[h>>2]|0):0)?(c[l>>2]=Vi(c[q>>2]|0,c[h>>2]|0)|0,c[l>>2]|0):0)Ui(c[q>>2]|0);if(c[l>>2]|0){s=c[l>>2]|0;i=f;return s|0}c[c[g>>2]>>2]=c[q>>2];s=c[l>>2]|0;i=f;return s|0}function Ui(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0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1){if(!(c[p>>2]&7|0?(c[q>>2]|0)!=0:0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}if((c[q>>2]|0)>>>0>=8){h=s;g=ex(c[h>>2]|0,c[h+4>>2]|0,16843009,16843009)|0;h=s;c[h>>2]=g;c[h+4>>2]=D;do{c[t>>2]=c[p>>2];h=s;g=c[h+4>>2]|0;l=c[t>>2]|0;c[l>>2]=c[h>>2];c[l+4>>2]=g;c[q>>2]=(c[q>>2]|0)-8;c[p>>2]=(c[p>>2]|0)+8}while((c[q>>2]|0)>>>0>=8)}while(1){if(!(c[q>>2]|0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}vf(c[(c[c[f>>2]>>2]|0)+20>>2]|0)}c[u>>2]=c[f>>2];c[v>>2]=c[(c[c[f>>2]>>2]|0)+4>>2];a[w>>0]=0;q=x;c[q>>2]=d[w>>0];c[q+4>>2]=0;while(1){if(!(c[u>>2]&7|0?(c[v>>2]|0)!=0:0))break;a[c[u>>2]>>0]=a[w>>0]|0;c[u>>2]=(c[u>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+-1}if((c[v>>2]|0)>>>0>=8){q=x;p=ex(c[q>>2]|0,c[q+4>>2]|0,16843009,16843009)|0;q=x;c[q>>2]=p;c[q+4>>2]=D;do{c[y>>2]=c[u>>2];q=x;p=c[q+4>>2]|0;r=c[y>>2]|0;c[r>>2]=c[q>>2];c[r+4>>2]=p;c[v>>2]=(c[v>>2]|0)-8;c[u>>2]=(c[u>>2]|0)+8}while((c[v>>2]|0)>>>0>=8)}while(1){if(!(c[v>>2]|0))break;a[c[u>>2]>>0]=a[w>>0]|0;c[u>>2]=(c[u>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+-1}vf(c[f>>2]|0);i=e;return}function Vi(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f;h=f+32|0;k=f+28|0;l=f+24|0;m=f+20|0;n=f+16|0;o=f+12|0;p=f+8|0;q=f+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=c[c[k>>2]>>2];c[p>>2]=0;c[o>>2]=c[(c[m>>2]|0)+16>>2];while(1){if(!(c[o>>2]|0))break;if((c[c[c[o>>2]>>2]>>2]|0)==(c[l>>2]|0)){r=4;break}c[o>>2]=c[(c[o>>2]|0)+4>>2]}if((r|0)==4){c[h>>2]=0;s=c[h>>2]|0;i=f;return s|0}c[n>>2]=Qi(c[l>>2]|0)|0;if(!(c[n>>2]|0)){c[g>>2]=c[l>>2];Ye(37139,g);c[p>>2]=5}if(((c[p>>2]|0)==0&(c[l>>2]|0)==1?Wg()|0:0)?(ch(37178),ah()|0):0)c[p>>2]=5;do if(!(c[p>>2]|0)){c[q>>2]=24+(c[(c[n>>2]|0)+44>>2]|0)-8;l=c[q>>2]|0;if(a[(c[m>>2]|0)+12>>0]&1|0)c[o>>2]=sf(l)|0;else c[o>>2]=pf(l)|0;if(c[o>>2]|0){c[c[o>>2]>>2]=c[n>>2];c[(c[o>>2]|0)+4>>2]=c[(c[m>>2]|0)+16>>2];c[(c[o>>2]|0)+8>>2]=c[q>>2];c[(c[m>>2]|0)+16>>2]=c[o>>2];xb[c[(c[c[o>>2]>>2]|0)+28>>2]&7]((c[o>>2]|0)+16|0,(d[(c[m>>2]|0)+12>>0]|0)>>>2&1|0?256:0);break}else{c[p>>2]=Ct(c[(xu()|0)>>2]|0)|0;break}}while(0);c[h>>2]=c[p>>2];s=c[h>>2]|0;i=f;return s|0}function Wi(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+20|0;e=b+16|0;f=b+8|0;g=b;c[d>>2]=a;if(c[(c[c[d>>2]>>2]|0)+8>>2]|0){if(c[(c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c[(c[c[g>>2]>>2]|0)+8>>2]|0){Ye(37201,d);i=d;return}c[17735]=(c[17735]|0)+1;b=c[h>>2]|0;c[f>>2]=c[17735];c[f+4>>2]=b;Su(k,49,37233,f)|0;f=Pv(k,37250)|0;c[(c[c[g>>2]>>2]|0)+8>>2]=f;if(c[(c[c[g>>2]>>2]|0)+8>>2]|0){i=d;return}c[e>>2]=k;Ye(37252,e);i=d;return}function Zi(b){b=b|0;var e=0,f=0,g=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+4|0;g=e;c[f>>2]=b;b=(c[c[f>>2]>>2]|0)+12|0;a[b>>0]=a[b>>0]&-3;c[(c[f>>2]|0)+4>>2]=0;c[g>>2]=c[(c[c[f>>2]>>2]|0)+16>>2];while(1){if(!(c[g>>2]|0))break;Sw((c[g>>2]|0)+16|0,0,c[(c[c[g>>2]>>2]|0)+44>>2]|0)|0;xb[c[(c[c[g>>2]>>2]|0)+28>>2]&7]((c[g>>2]|0)+16|0,(d[(c[c[f>>2]>>2]|0)+12>>0]|0)>>>2&1|0?256:0);c[g>>2]=c[(c[g>>2]|0)+4>>2]}if(!(c[(c[c[f>>2]>>2]|0)+20>>2]|0)){i=e;return}Xi(c[f>>2]|0,c[(c[c[f>>2]>>2]|0)+20>>2]|0,c[(c[c[f>>2]>>2]|0)+24>>2]|0);i=e;return}function _i(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Ui(c[d>>2]|0);i=b;return}function $i(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;Xi(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function aj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+16|0;h=f+12|0;k=f+8|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[f+4>>2]=e;c[l>>2]=0;switch(c[h>>2]|0){case 5:{bj(c[g>>2]|0);break}case 32:{Yi(c[g>>2]|0,c[k>>2]|0);break}case 33:{Wi(c[g>>2]|0);break}default:c[l>>2]=61}i=f;return c[l>>2]|0}function bj(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+24|0;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;m=e+4|0;n=e;c[f>>2]=b;if((d[(c[c[f>>2]>>2]|0)+12>>0]|0)>>>1&1|0){i=e;return}if(c[(c[f>>2]|0)+4>>2]|0)Xi(c[f>>2]|0,0,0);c[g>>2]=c[(c[c[f>>2]>>2]|0)+16>>2];while(1){if(!(c[g>>2]|0))break;wb[c[(c[c[g>>2]>>2]|0)+36>>2]&15]((c[g>>2]|0)+16|0);c[g>>2]=c[(c[g>>2]|0)+4>>2]}g=(c[c[f>>2]>>2]|0)+12|0;a[g>>0]=a[g>>0]&-3|2;if(!(c[(c[c[f>>2]>>2]|0)+20>>2]|0)){i=e;return}c[h>>2]=cj(c[f>>2]|0)|0;c[k>>2]=dj(c[f>>2]|0,c[h>>2]|0)|0;c[l>>2]=ej(c[h>>2]|0)|0;c[n>>2]=Ti(m,c[h>>2]|0,(a[(c[c[f>>2]>>2]|0)+12>>0]&1|0?1:0)|((d[(c[c[f>>2]>>2]|0)+12>>0]|0)>>>2&1|0?256:0))|0;if(c[n>>2]|0)Le(c[n>>2]|0,0);Xi(c[m>>2]|0,(c[(c[c[f>>2]>>2]|0)+20>>2]|0)+(c[(c[c[f>>2]>>2]|0)+24>>2]|0)|0,c[(c[c[f>>2]>>2]|0)+24>>2]|0);Xi(c[m>>2]|0,c[k>>2]|0,c[l>>2]|0);bj(c[m>>2]|0);f=c[k>>2]|0;k=dj(c[m>>2]|0,c[h>>2]|0)|0;Yw(f|0,k|0,c[l>>2]|0)|0;Ui(c[m>>2]|0);i=e;return}function cj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;e=b+8|0;f=b+4|0;c[e>>2]=a;c[f>>2]=c[(c[c[e>>2]>>2]|0)+16>>2];if(c[f>>2]|0?c[(c[f>>2]|0)+4>>2]|0:0){dh(37187,980,37324,0,37336);Ve(37357,d)}if(!(c[f>>2]|0)){g=0;i=b;return g|0}g=c[c[c[f>>2]>>2]>>2]|0;i=b;return g|0}function dj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;c[g>>2]=a;c[h>>2]=b;c[k>>2]=c[(c[c[g>>2]>>2]|0)+16>>2];if(!(c[h>>2]|0)){if(!(c[k>>2]|0))Re(37187,816,37316);if(c[(c[k>>2]|0)+4>>2]|0)Ye(37277,e);c[f>>2]=yb[c[(c[c[k>>2]>>2]|0)+40>>2]&15]((c[k>>2]|0)+16|0)|0;l=c[f>>2]|0;i=d;return l|0}c[k>>2]=c[(c[c[g>>2]>>2]|0)+16>>2];while(1){if(!(c[k>>2]|0)){m=11;break}n=c[k>>2]|0;if((c[c[c[k>>2]>>2]>>2]|0)==(c[h>>2]|0))break;c[k>>2]=c[n+4>>2]}if((m|0)==11)Re(37187,816,37316);c[f>>2]=yb[c[(c[n>>2]|0)+40>>2]&15]((c[k>>2]|0)+16|0)|0;l=c[f>>2]|0;i=d;return l|0}function ej(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=Qi(c[d>>2]|0)|0;if(!(c[e>>2]|0)){f=0;i=b;return f|0}f=c[(c[e>>2]|0)+24>>2]|0;i=b;return f|0}function fj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(c[(c[c[f>>2]>>2]|0)+20>>2]|0){c[k>>2]=gj(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;if(!(c[k>>2]|0))Zi(c[f>>2]|0)}else c[k>>2]=70;i=e;return c[k>>2]|0}function gj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+32|0;k=g+28|0;l=g+24|0;m=g+20|0;n=g+16|0;o=g+12|0;p=g+8|0;q=g+4|0;r=g;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[o>>2]=cj(c[k>>2]|0)|0;c[p>>2]=0;if(!(c[o>>2]|0)){c[h>>2]=5;s=c[h>>2]|0;i=g;return s|0}do if((c[m>>2]|0)>>>0>(c[(c[c[k>>2]>>2]|0)+24>>2]|0)>>>0){c[p>>2]=sf(ej(c[o>>2]|0)|0)|0;if(c[p>>2]|0){hj(c[o>>2]|0,c[p>>2]|0,c[l>>2]|0,c[m>>2]|0);c[l>>2]=c[p>>2];c[m>>2]=ej(c[o>>2]|0)|0;if((c[m>>2]|0)>>>0<=(c[(c[c[k>>2]>>2]|0)+24>>2]|0)>>>0)break;Se(37408,37187,716,37441)}else{c[h>>2]=Ct(c[(xu()|0)>>2]|0)|0;s=c[h>>2]|0;i=g;return s|0}}while(0);Sw(c[(c[c[k>>2]>>2]|0)+20>>2]|0,0,c[(c[c[k>>2]>>2]|0)+24>>2]<<1|0)|0;c[q>>2]=c[(c[c[k>>2]>>2]|0)+20>>2];c[r>>2]=(c[(c[c[k>>2]>>2]|0)+20>>2]|0)+(c[(c[c[k>>2]>>2]|0)+24>>2]|0);Yw(c[q>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;Yw(c[r>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[(c[c[k>>2]>>2]|0)+24>>2]|0))break;m=(c[q>>2]|0)+(c[n>>2]|0)|0;a[m>>0]=(d[m>>0]|0)^54;m=(c[r>>2]|0)+(c[n>>2]|0)|0;a[m>>0]=(d[m>>0]|0)^92;c[n>>2]=(c[n>>2]|0)+1}vf(c[p>>2]|0);c[h>>2]=0;s=c[h>>2]|0;i=g;return s|0}function hj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;h=f+28|0;k=f+24|0;l=f+20|0;m=f+16|0;n=f+12|0;o=f+8|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;if((c[h>>2]|0)==2){Xl(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0);i=f;return}if((c[h>>2]|0)==3?(Wg()|0)==0:0){bl(c[k>>2]|0,c[l>>2]|0,c[m>>2]|0);i=f;return}if(((c[h>>2]|0)==1?Wg()|0:0)?(ch(37178),ah()|0):0)Yg();c[o>>2]=Ti(n,c[h>>2]|0,0)|0;if(c[o>>2]|0){e=c[h>>2]|0;d=Bt(ij(c[o>>2]|0)|0)|0;c[g>>2]=e;c[g+4>>2]=d;Xe(37457,g)}Xi(c[n>>2]|0,c[l>>2]|0,c[m>>2]|0);bj(c[n>>2]|0);m=c[k>>2]|0;k=dj(c[n>>2]|0,c[h>>2]|0)|0;Yw(m|0,k|0,ej(c[h>>2]|0)|0)|0;Ui(c[n>>2]|0);i=f;return}function ij(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=jj(32,c[d>>2]|0)|0;i=b;return a|0}function jj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=kj(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function kj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function lj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;aj(c[e>>2]|0,5,0,0)|0;b=dj(c[e>>2]|0,c[f>>2]|0)|0;i=d;return b|0}function mj(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+32|0;k=g+28|0;l=g+24|0;m=g+20|0;n=g+16|0;o=g+12|0;p=g+8|0;q=g+4|0;r=g;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;if((c[n>>2]|0)==0|(c[o>>2]|0)<0){c[h>>2]=45;s=c[h>>2]|0;i=g;return s|0}if(c[l>>2]&-3|0){c[h>>2]=45;s=c[h>>2]|0;i=g;return s|0}c[p>>2]=((c[l>>2]&2|0)!=0^1^1)&1;if((c[p>>2]|0)!=0&(c[o>>2]|0)<1){c[h>>2]=45;s=c[h>>2]|0;i=g;return s|0}if((c[k>>2]|0)!=2|(c[p>>2]|0)!=0){if(((c[k>>2]|0)==1?Wg()|0:0)?(ch(37178),ah()|0):0)Yg();c[r>>2]=Ti(q,c[k>>2]|0,c[p>>2]|0?2:0)|0;if(c[r>>2]|0){c[h>>2]=c[r>>2];s=c[h>>2]|0;i=g;return s|0}do if(c[p>>2]|0){c[r>>2]=fj(c[q>>2]|0,(c[(c[n>>2]|0)+12>>2]|0)+(c[(c[n>>2]|0)+4>>2]|0)|0,c[(c[n>>2]|0)+8>>2]|0)|0;if(!(c[r>>2]|0)){c[n>>2]=(c[n>>2]|0)+16;c[o>>2]=(c[o>>2]|0)+-1;break}Ui(c[q>>2]|0);c[h>>2]=c[r>>2];s=c[h>>2]|0;i=g;return s|0}while(0);while(1){t=c[q>>2]|0;if(!(c[o>>2]|0))break;Xi(t,(c[(c[n>>2]|0)+12>>2]|0)+(c[(c[n>>2]|0)+4>>2]|0)|0,c[(c[n>>2]|0)+8>>2]|0);c[n>>2]=(c[n>>2]|0)+16;c[o>>2]=(c[o>>2]|0)+-1}bj(t);t=c[m>>2]|0;r=dj(c[q>>2]|0,c[k>>2]|0)|0;Yw(t|0,r|0,ej(c[k>>2]|0)|0)|0;Ui(c[q>>2]|0)}else Yl(c[m>>2]|0,c[n>>2]|0,c[o>>2]|0);c[h>>2]=0;s=c[h>>2]|0;i=g;return s|0}function nj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=cj(c[d>>2]|0)|0;i=b;return a|0}function oj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=ej(c[d>>2]|0)|0;i=b;return a|0}function pj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+24|0;h=f+20|0;k=f+16|0;l=f+12|0;m=f+8|0;n=f+4|0;o=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;a:do switch(c[h>>2]|0){case 8:{if((c[k>>2]|0)!=0|(c[l>>2]|0)!=0){c[m>>2]=45;break a}else{c[m>>2]=qj(c[g>>2]|0)|0;break a}break}case 10:{c[m>>2]=qj(c[g>>2]|0)|0;if(!(c[m>>2]|0)){c[n>>2]=rj(c[g>>2]|0,o,0)|0;if(c[k>>2]|0?(c[c[l>>2]>>2]|0)>>>0>=(c[o>>2]|0)>>>0:0){Yw(c[k>>2]|0,c[n>>2]|0,c[o>>2]|0)|0;c[c[l>>2]>>2]=c[o>>2];break a}if((c[k>>2]|0)==0&(c[l>>2]|0)!=0){c[c[l>>2]>>2]=c[o>>2];break a}if(c[k>>2]|0){c[m>>2]=66;break a}else{c[m>>2]=45;break a}}break}case 57:{if(c[l>>2]|0)p=c[c[l>>2]>>2]|0;else p=0;c[m>>2]=tj(sj(c[g>>2]|0,p,0)|0)|0;break}default:c[m>>2]=61}while(0);i=f;return c[m>>2]|0}function qj(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=b;c[g>>2]=Qi(c[f>>2]|0)|0;if(c[g>>2]|0?(a[(c[g>>2]|0)+4>>0]&1|0)==0:0){c[e>>2]=0;h=c[e>>2]|0;i=d;return h|0}c[e>>2]=5;h=c[e>>2]|0;i=d;return h|0}function rj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e;g=e+20|0;h=e+16|0;k=e+12|0;l=e+8|0;m=e+4|0;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[m>>2]=0;c[l>>2]=Qi(c[g>>2]|0)|0;if(!(c[l>>2]|0)){c[f>>2]=c[g>>2];Xe(37493,f)}if(c[h>>2]|0)c[c[h>>2]>>2]=c[(c[l>>2]|0)+16>>2];if(!(c[k>>2]|0)){n=c[l>>2]|0;o=n+12|0;p=c[o>>2]|0;c[m>>2]=p;q=c[m>>2]|0;i=e;return q|0}c[c[k>>2]>>2]=c[(c[l>>2]|0)+24>>2];n=c[l>>2]|0;o=n+12|0;p=c[o>>2]|0;c[m>>2]=p;q=c[m>>2]|0;i=e;return q|0}function sj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;m=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=0;c[m>>2]=Qi(c[g>>2]|0)|0;if((c[m>>2]|0?(a[(c[m>>2]|0)+4>>0]&1|0)==0:0)?c[(c[m>>2]|0)+48>>2]|0:0){c[l>>2]=ub[c[(c[m>>2]|0)+48>>2]&63](c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0;n=c[l>>2]|0;o=uj(n)|0;i=f;return o|0}if(c[m>>2]|0)p=(c[(c[m>>2]|0)+48>>2]|0)!=0;else p=0;c[l>>2]=p?5:69;if(!(c[k>>2]|0)){n=c[l>>2]|0;o=uj(n)|0;i=f;return o|0}p=c[k>>2]|0;k=c[g>>2]|0;if(c[m>>2]|0?!(a[(c[m>>2]|0)+4>>0]&1|0):0)q=38046;else q=c[m>>2]|0?38007:38026;Eb[p&1](43214,k,38068,q);n=c[l>>2]|0;o=uj(n)|0;i=f;return o|0}function tj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return c[d>>2]&65535|0}function uj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=kj(1,c[d>>2]|0)|0;i=b;return a|0}function vj(){return 0}function wj(){return 0}function xj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;c[17736]=c[e>>2];c[17737]=c[f>>2];i=d;return}function yj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+32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x>>2]<<2)>>2]=E;c[x>>2]=(c[x>>2]|0)+1}c[z>>2]=0;while(1){if((c[z>>2]|0)>>>0>=2e4)break;c[A>>2]=(c[A>>2]|0)+1;c[x>>2]=0;while(1){E=e[16568+(c[x>>2]<<1)>>1]|0;c[y>>2]=E;if(!E)break;while(1){if(((c[(c[C>>2]|0)+(c[x>>2]<<2)>>2]|0)+(c[z>>2]|0)|0)>>>0<(c[y>>2]|0)>>>0)break;E=(c[C>>2]|0)+(c[x>>2]<<2)|0;c[E>>2]=(c[E>>2]|0)-(c[y>>2]|0)}if(!((c[(c[C>>2]|0)+(c[x>>2]<<2)>>2]|0)+(c[z>>2]|0)|0))break;c[x>>2]=(c[x>>2]|0)+1}if(!(c[y>>2]|0)){eo(c[s>>2]|0,c[r>>2]|0,c[z>>2]|0);c[B>>2]=(c[B>>2]|0)+1;go(c[t>>2]|0,c[s>>2]|0,1);So(c[w>>2]|0,c[u>>2]|0,c[t>>2]|0,c[s>>2]|0);if((vo(c[w>>2]|0,1)|0)==0?Bj(c[s>>2]|0,5,B)|0:0){if(!(mo(c[s>>2]|0,(c[m>>2]|0)-1-(c[n>>2]|0)|0)|0)){F=24;break}if(!(c[p>>2]|0)){F=28;break a}if(!(Db[c[p>>2]&7](c[q>>2]|0,c[s>>2]|0)|0)){F=28;break a}Aj(47)}E=(c[D>>2]|0)+1|0;c[D>>2]=E;if((E|0)==10){Aj(46);c[D>>2]=0}}c[z>>2]=(c[z>>2]|0)+2}if((F|0)==24){F=0;Aj(10);Ye(37578,k)}Aj(58)}if((F|0)==28){Dp(c[u>>2]|0);Dp(c[v>>2]|0);Dp(c[w>>2]|0);Dp(c[t>>2]|0);Dp(c[r>>2]|0);vf(c[C>>2]|0);i=h;return c[s>>2]|0}return 0}function Aj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(!(c[17736]|0)){i=b;return}vb[c[17736]&15](c[17737]|0,37522,c[d>>2]|0,0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2]|0)|0:0){c[r>>2]=1;while(1){if((c[r>>2]|0)>>>0<(c[s>>2]|0)>>>0)w=(wo(c[l>>2]|0,c[n>>2]|0)|0)!=0;else w=0;x=c[l>>2]|0;if(!w)break;So(x,c[l>>2]|0,c[o>>2]|0,c[f>>2]|0);if(!(vo(c[l>>2]|0,1)|0)){v=23;break a}c[r>>2]=(c[r>>2]|0)+1}if(wo(x,c[n>>2]|0)|0){v=23;break}}Aj(43);c[q>>2]=(c[q>>2]|0)+1}if((v|0)==11)Se(37608,37680,951,37691);else if((v|0)==22){c[t>>2]=1;y=c[k>>2]|0;Dp(y);z=c[l>>2]|0;Dp(z);A=c[m>>2]|0;Dp(A);B=c[n>>2]|0;Dp(B);C=c[p>>2]|0;Dp(C);D=c[o>>2]|0;Dp(D);E=c[t>>2]|0;i=e;return E|0}else if((v|0)==23){y=c[k>>2]|0;Dp(y);z=c[l>>2]|0;Dp(z);A=c[m>>2]|0;Dp(A);B=c[n>>2]|0;Dp(B);C=c[p>>2]|0;Dp(C);D=c[o>>2]|0;Dp(D);E=c[t>>2]|0;i=e;return E|0}return 0}function Cj(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;u=h;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=f;c[p>>2]=g;c[s>>2]=0;c[q>>2]=0;while(1){g=e[16568+(c[q>>2]<<1)>>1]|0;c[r>>2]=g;v=c[l>>2]|0;if(!g)break;if(Eo(v,c[r>>2]|0)|0){w=4;break}c[q>>2]=(c[q>>2]|0)+1}if((w|0)==4){c[k>>2]=((vo(c[l>>2]|0,c[r>>2]|0)|0)!=0^1)&1;x=c[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|0;c[f>>2]=Ip(c[d>>2]|0)|0;no(c[f>>2]|0,0);while(1){if(!((Cj(c[f>>2]|0,c[e>>2]|0,64,0,0)|0)!=0^1))break;eo(c[f>>2]|0,c[f>>2]|0,2)}Dp(c[e>>2]|0);i=b;return c[f>>2]|0}function Fj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+36|0;g=e+32|0;h=e+28|0;k=e+24|0;l=e+20|0;m=e+16|0;n=e+12|0;o=e+8|0;p=e+4|0;q=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=0;c[o>>2]=5;c[p>>2]=0;c[q>>2]=0;if(c[f>>2]|0)r=(Uf(c[f>>2]|0)|0)-1|0;else r=0;c[n>>2]=r;while(1){if((c[n>>2]|0)<=0)break;c[l>>2]=Xf(c[f>>2]|0,c[n>>2]|0,m)|0;a:do if(c[l>>2]|0)do switch(c[m>>2]|0){case 3:{if((Jv(c[l>>2]|0,37700,3)|0)==0&(c[o>>2]|0)==5){c[o>>2]=4;c[p>>2]=c[p>>2]|4;break a}if((Jv(c[l>>2]|0,37704,3)|0)==0&(c[o>>2]|0)==5){c[o>>2]=0;c[p>>2]=c[p>>2]|16;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 4:{if(!(Jv(c[l>>2]|0,37708,4)|0)){c[p>>2]=c[p>>2]|1024;break a}if((Jv(c[l>>2]|0,37713,4)|0)==0&(c[o>>2]|0)==5){c[o>>2]=3;c[p>>2]=c[p>>2]|4;break a}if(!(Jv(c[l>>2]|0,49929,4)|0)){c[o>>2]=0;c[p>>2]=c[p>>2]|8192;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 5:{if(!(Jv(c[l>>2]|0,49923,5)|0)){c[o>>2]=0;c[p>>2]=c[p>>2]|4096;break a}if((Jv(c[l>>2]|0,37718,5)|0)==0&(c[o>>2]|0)==5){c[o>>2]=1;c[p>>2]=c[p>>2]|4;break a}if(!(Jv(c[l>>2]|0,37724,5)|0)){c[p>>2]=c[p>>2]|512;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 6:{if(!(Jv(c[l>>2]|0,37730,6)|0)){c[p>>2]=c[p>>2]|2048;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 7:{if(!(Jv(c[l>>2]|0,37737,7)|0)){c[p>>2]=c[p>>2]|2;break a}if((Jv(c[l>>2]|0,37745,7)|0)==0|(c[q>>2]|0)!=0)break a;c[k>>2]=72;break a;break}case 8:{if(!(Jv(c[l>>2]|0,41808,8)|0)){c[p>>2]=c[p>>2]|64;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 9:{if((Jv(c[l>>2]|0,37753,9)|0)==0&(c[o>>2]|0)==5){c[o>>2]=2;c[p>>2]=c[p>>2]|4;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 10:{if(!(Jv(c[l>>2]|0,37763,10)|0)){c[q>>2]=1;break a}if(!(Jv(c[l>>2]|0,37774,10)|0)){c[p>>2]=c[p>>2]|16384;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 11:{if(!(Jv(c[l>>2]|0,37785,11)|0)){c[p>>2]=c[p>>2]|1;break a}if(!(Jv(c[l>>2]|0,37797,11)|0)){c[p>>2]=c[p>>2]|128;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}case 13:{if(!(Jv(c[l>>2]|0,37809,13)|0)){c[p>>2]=c[p>>2]|256;break a}if(!(Jv(c[l>>2]|0,48941,13)|0)){c[p>>2]=c[p>>2]|32;break a}if(c[q>>2]|0)break a;c[k>>2]=72;break a;break}default:{if(c[q>>2]|0)break a;c[k>>2]=72;break a}}while(0);while(0);c[n>>2]=(c[n>>2]|0)+-1}if(c[g>>2]|0)c[c[g>>2]>>2]=c[p>>2];if(!(c[h>>2]|0)){s=c[k>>2]|0;i=e;return s|0}c[c[h>>2]>>2]=c[o>>2];s=c[k>>2]|0;i=e;return s|0}function Gj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+80|0;if((i|0)>=(j|0))$(80);f=e+16|0;g=e+12|0;h=e+8|0;k=e+20|0;l=e+4|0;m=e;c[g>>2]=b;c[h>>2]=d;c[c[h>>2]>>2]=0;c[g>>2]=Tf(c[g>>2]|0,37823,0)|0;if(!(c[g>>2]|0)){c[f>>2]=0;n=c[f>>2]|0;i=e;return n|0}c[l>>2]=Xf(c[g>>2]|0,1,m)|0;if((c[l>>2]|0)==0|(c[m>>2]|0)>>>0>=49){Rf(c[g>>2]|0);c[f>>2]=65;n=c[f>>2]|0;i=e;return n|0}else{Yw(k|0,c[l>>2]|0,c[m>>2]|0)|0;a[k+(c[m>>2]|0)>>0]=0;m=wv(k,0,0)|0;c[c[h>>2]>>2]=m;Rf(c[g>>2]|0);c[f>>2]=0;n=c[f>>2]|0;i=e;return n|0}return 0}function Hj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;e=i;i=i+80|0;if((i|0)>=(j|0))$(80);f=e+16|0;g=e+12|0;h=e+8|0;k=e+20|0;l=e+4|0;m=e;c[g>>2]=b;c[h>>2]=d;c[c[h>>2]>>2]=0;c[g>>2]=Tf(c[g>>2]|0,37829,0)|0;if(!(c[g>>2]|0)){c[c[h>>2]>>2]=65537;c[f>>2]=0;n=c[f>>2]|0;i=e;return n|0}c[l>>2]=Xf(c[g>>2]|0,1,m)|0;if((c[l>>2]|0)==0|(c[m>>2]|0)>>>0>=49){Rf(c[g>>2]|0);c[f>>2]=65;n=c[f>>2]|0;i=e;return n|0}else{Yw(k|0,c[l>>2]|0,c[m>>2]|0)|0;a[k+(c[m>>2]|0)>>0]=0;m=wv(k,0,0)|0;c[c[h>>2]>>2]=m;Rf(c[g>>2]|0);c[f>>2]=0;n=c[f>>2]|0;i=e;return n|0}return 0}function Ij(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+32|0;h=f+28|0;k=f+24|0;l=f+20|0;m=f+16|0;n=f+12|0;o=f+8|0;p=f+4|0;q=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;c[n>>2]=0;c[o>>2]=0;c[p>>2]=0;c[c[k>>2]>>2]=0;if(c[l>>2]|0)c[c[l>>2]>>2]=0;c[n>>2]=Tf(c[g>>2]|0,37839,0)|0;do if(c[n>>2]|0){c[o>>2]=Vf(c[n>>2]|0,1)|0;if(!(c[o>>2]|0)){c[m>>2]=68;break}c[p>>2]=_f(c[o>>2]|0,0)|0;if(!(c[p>>2]|0)){c[m>>2]=65;break}if(!(Fu(c[p>>2]|0,47177)|0)){Rf(c[o>>2]|0);c[o>>2]=Vf(c[n>>2]|0,2)|0;if(!(c[o>>2]|0)){c[m>>2]=65;break}vf(c[p>>2]|0);c[p>>2]=_f(c[o>>2]|0,0)|0;if(!(c[p>>2]|0)){c[m>>2]=65;break}}c[q>>2]=0;while(1){if(!(c[(c[h>>2]|0)+(c[q>>2]<<2)>>2]|0))break;if(!(sv(c[p>>2]|0,c[(c[h>>2]|0)+(c[q>>2]<<2)>>2]|0)|0))break;c[q>>2]=(c[q>>2]|0)+1}if(!(c[(c[h>>2]|0)+(c[q>>2]<<2)>>2]|0)){c[m>>2]=70;break}if(c[l>>2]|0){if(!(Fu(c[p>>2]|0,49923)|0))c[c[l>>2]>>2]=4096;if(!(Fu(c[p>>2]|0,49929)|0))c[c[l>>2]>>2]=8192}c[c[k>>2]>>2]=c[o>>2];c[o>>2]=0;c[m>>2]=0}else c[m>>2]=65;while(0);vf(c[p>>2]|0);Rf(c[o>>2]|0);Rf(c[n>>2]|0);i=f;return c[m>>2]|0}function Jj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e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c[(c[l>>2]|0)+24>>2]=c[q>>2];break}else{c[m>>2]=Et()|0;break}}}else c[m>>2]=68;while(0);if(c[m>>2]|0)break}}c[s>>2]=2;a:while(1){Rf(c[o>>2]|0);g=Vf(c[n>>2]|0,c[s>>2]|0)|0;c[o>>2]=g;if(!g)break;c[t>>2]=Xf(c[o>>2]|0,0,q)|0;if(!((c[q>>2]|0)==9?!(Jv(c[t>>2]|0,37847,9)|0):0))u=30;do if((u|0)==30){u=0;if((c[q>>2]|0)==5?(Jv(c[t>>2]|0,37857,5)|0)==0:0)break;if((c[q>>2]|0)!=15)break a;if(Jv(c[t>>2]|0,37863,15)|0)break a}while(0);c[s>>2]=(c[s>>2]|0)+1}if(!(c[o>>2]|0)){c[m>>2]=68;break}vf(c[p>>2]|0);c[p>>2]=_f(c[o>>2]|0,0)|0;if(!(c[p>>2]|0)){c[m>>2]=65;break}}else c[r>>2]=c[r>>2]|8;c[s>>2]=0;while(1){if(!(c[(c[h>>2]|0)+(c[s>>2]<<2)>>2]|0))break;if(!(sv(c[p>>2]|0,c[(c[h>>2]|0)+(c[s>>2]<<2)>>2]|0)|0))break;c[s>>2]=(c[s>>2]|0)+1}if(c[(c[h>>2]|0)+(c[s>>2]<<2)>>2]|0){c[c[k>>2]>>2]=c[o>>2];c[o>>2]=0;g=(c[l>>2]|0)+12|0;c[g>>2]=c[g>>2]|c[r>>2];c[m>>2]=0;break}else{c[m>>2]=70;break}}else c[m>>2]=65;while(0);vf(c[p>>2]|0);Rf(c[o>>2]|0);Rf(c[n>>2]|0);i=f;return c[m>>2]|0}function Kj(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=b;c[g>>2]=d;c[k>>2]=0;while(1){if(!(c[4400+(c[k>>2]<<3)>>2]|0))break;d=hv(c[4400+(c[k>>2]<<3)>>2]|0)|0;if((d|0)==(c[g>>2]|0)?(Jv(c[4400+(c[k>>2]<<3)>>2]|0,c[f>>2]|0,c[g>>2]|0)|0)==0:0)break;c[k>>2]=(c[k>>2]|0)+1}if(c[4400+(c[k>>2]<<3)>>2]|0){c[h>>2]=c[4400+(c[k>>2]<<3)+4>>2];m=c[h>>2]|0;i=e;return m|0}c[l>>2]=pf((c[g>>2]|0)+1|0)|0;if(c[l>>2]|0){Yw(c[l>>2]|0,c[f>>2]|0,c[g>>2]|0)|0;a[(c[l>>2]|0)+(c[g>>2]|0)>>0]=0;c[h>>2]=Li(c[l>>2]|0)|0;vf(c[l>>2]|0);m=c[h>>2]|0;i=e;return m|0}else{c[h>>2]=0;m=c[h>>2]|0;i=e;return m|0}return 0}function Lj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[c[f>>2]>>2]=c[g>>2];c[(c[f>>2]|0)+4>>2]=c[h>>2];c[(c[f>>2]|0)+8>>2]=5;c[(c[f>>2]|0)+12>>2]=0;c[(c[f>>2]|0)+16>>2]=2;c[(c[f>>2]|0)+20>>2]=0;c[(c[f>>2]|0)+24>>2]=0;c[(c[f>>2]|0)+28>>2]=20;c[(c[f>>2]|0)+32>>2]=0;c[(c[f>>2]|0)+36>>2]=0;i=e;return}function Mj(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;vf(c[(c[d>>2]|0)+20>>2]|0);i=b;return}
-function gq(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;k=i;i=i+64|0;if((i|0)>=(j|0))$(64);l=k+56|0;m=k+52|0;n=k+48|0;o=k+44|0;p=k+40|0;q=k+36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>2]|0)+64|0,c[n>>2]|0,c[u>>2]|0)}if((c[x>>2]|0)>>>0>0){bf((c[x>>2]|0)+16|0);cf()}c[l>>2]=0;B=c[l>>2]|0;i=k;return B|0}function hq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[o>>2]=c[k>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[h>>2]=3;if(!((c[o>>2]|c[p>>2]|c[q>>2])&3)){c[r>>2]=c[o>>2];c[s>>2]=c[p>>2];c[t>>2]=c[q>>2];while(1){if((c[n>>2]|0)>>>0<4)break;m=c[s>>2]|0;c[s>>2]=m+4;l=c[m>>2]|0;m=c[t>>2]|0;c[t>>2]=m+4;k=l^c[m>>2];m=c[r>>2]|0;c[r>>2]=m+4;c[m>>2]=k;c[n>>2]=(c[n>>2]|0)-4}c[o>>2]=c[r>>2];c[p>>2]=c[s>>2];c[q>>2]=c[t>>2]}while(1){if(!(c[n>>2]|0))break;t=c[p>>2]|0;c[p>>2]=t+1;s=d[t>>0]|0;t=c[q>>2]|0;c[q>>2]=t+1;r=(s^(d[t>>0]|0))&255;t=c[o>>2]|0;c[o>>2]=t+1;a[t>>0]=r;c[n>>2]=(c[n>>2]|0)+-1}i=h;return}function iq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+8|0;o=f+4|0;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=c[g>>2];c[m>>2]=c[h>>2];c[f>>2]=3;if(!((c[l>>2]|c[m>>2])&3)){c[n>>2]=c[l>>2];c[o>>2]=c[m>>2];while(1){if((c[k>>2]|0)>>>0<4)break;h=c[o>>2]|0;c[o>>2]=h+4;g=c[h>>2]|0;h=c[n>>2]|0;c[n>>2]=h+4;c[h>>2]=g;c[k>>2]=(c[k>>2]|0)-4}c[l>>2]=c[n>>2];c[m>>2]=c[o>>2]}while(1){if(!(c[k>>2]|0))break;o=c[m>>2]|0;c[m>>2]=o+1;n=a[o>>0]|0;o=c[l>>2]|0;c[l>>2]=o+1;a[o>>0]=n;c[k>>2]=(c[k>>2]|0)+-1}i=f;return}function jq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=i;i=i+64|0;if((i|0)>=(j|0))$(64);k=h+52|0;l=h+48|0;m=h+44|0;n=h+40|0;o=h+36|0;p=h+32|0;q=h+28|0;r=h+24|0;s=h+20|0;t=h+16|0;u=h+12|0;v=h+8|0;w=h+4|0;x=h;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[s>>2]=c[(c[(c[l>>2]|0)+12>>2]|0)+20>>2];c[t>>2]=c[(c[(c[l>>2]|0)+12>>2]|0)+40>>2];c[u>>2]=((c[p>>2]|0)>>>0)/((c[s>>2]|0)>>>0)|0;if((c[n>>2]|0)>>>0<(c[p>>2]|0)>>>0){c[k>>2]=200;y=c[k>>2]|0;i=h;return y|0}do if(((c[p>>2]|0)>>>0)%((c[s>>2]|0)>>>0)|0|0){if((c[p>>2]|0)>>>0>(c[s>>2]|0)>>>0?c[(c[l>>2]|0)+52>>2]&4|0:0)break;c[k>>2]=139;y=c[k>>2]|0;i=h;return y|0}while(0);c[v>>2]=0;if(c[(c[l>>2]|0)+52>>2]&4|0?(c[p>>2]|0)>>>0>(c[s>>2]|0)>>>0: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0;c[e+8>>2]=0;c[e+12>>2]=0;c[(c[h>>2]|0)+112>>2]=0;a[(c[h>>2]|0)+80>>0]=c[n>>2];Yw((c[h>>2]|0)+80+1|0,c[k>>2]|0,c[l>>2]|0)|0;Sw((c[h>>2]|0)+80+(1+(c[l>>2]|0))|0,0,c[m>>2]|0)|0;a[(c[h>>2]|0)+64>>0]=c[n>>2];Yw((c[h>>2]|0)+64+1|0,c[k>>2]|0,c[l>>2]|0)|0;Sw((c[h>>2]|0)+64+(1+(c[l>>2]|0))|0,0,c[m>>2]|0)|0;m=(c[h>>2]|0)+128+56|0;a[m>>0]=a[m>>0]&-2|1;c[g>>2]=0;o=c[g>>2]|0;i=f;return o|0}return 0}function mq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;h=i;i=i+96|0;if((i|0)>=(j|0))$(96);k=h+64|0;l=h+60|0;m=h+56|0;n=h+52|0;o=h+48|0;p=h+40|0;q=h+72|0;r=h+36|0;s=h+32|0;t=h+28|0;u=h+24|0;v=h+20|0;w=h+16|0;x=h+68|0;y=h;z=h+12|0;A=h+8|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[o>>2]=g;c[h+44>>2]=16;c[p>>2]=c[(c[(c[l>>2]|0)+12>>2]|0)+36>>2];c[r>>2]=0;c[s>>2]=c[(c[l>>2]|0)+128+36>>2];if((c[n>>2]|0)==0?!((c[s>>2]|0)!=0&(c[o>>2]|0)!=0):0){c[k>>2]=0;B=c[k>>2]|0;i=h;return B|0}a:do{b:do if((c[s>>2]|0)>>>0>0?1:((c[n>>2]|0)+(c[s>>2]|0)|0)>>>0<16)while(1){if(!(c[n>>2]|0?(c[s>>2]|0)>>>0<16:0))break b;g=c[m>>2]|0;c[m>>2]=g+1;f=a[g>>0]|0;g=c[s>>2]|0;c[s>>2]=g+1;a[(c[l>>2]|0)+128+20+g>>0]=f;c[n>>2]=(c[n>>2]|0)+-1}while(0);c:do if(!(c[n>>2]|0)){if(!(c[o>>2]|0))break a;while(1){if((c[s>>2]|0)>>>0>=16)break c;f=c[s>>2]|0;c[s>>2]=f+1;a[(c[l>>2]|0)+128+20+f>>0]=0}}while(0);if((c[s>>2]|0)>>>0>0){nq((c[l>>2]|0)+64|0,(c[l>>2]|0)+64|0,(c[l>>2]|0)+128+20|0,16);c[u>>2]=ub[c[p>>2]&63]((c[l>>2]|0)+496|0,(c[l>>2]|0)+64|0,(c[l>>2]|0)+64|0)|0;c[r>>2]=(c[r>>2]|0)>>>0>(c[u>>2]|0)>>>0?c[r>>2]|0:c[u>>2]|0;c[s>>2]=0}d:do if(c[(c[l>>2]|0)+20+8>>2]|0){c[t>>2]=((c[n>>2]|0)>>>0)/16|0;Cb[c[(c[l>>2]|0)+20+8>>2]&1]((c[l>>2]|0)+496|0,(c[l>>2]|0)+64|0,q,c[m>>2]|0,c[t>>2]|0,1);c[m>>2]=(c[m>>2]|0)+(c[t>>2]<<4);c[n>>2]=(c[n>>2]|0)-(c[t>>2]<<4);c[v>>2]=q;c[w>>2]=16;a[x>>0]=0;f=y;c[f>>2]=d[x>>0];c[f+4>>2]=0;while(1){if(!(c[v>>2]&7|0?(c[w>>2]|0)!=0:0))break;a[c[v>>2]>>0]=a[x>>0]|0;c[v>>2]=(c[v>>2]|0)+1;c[w>>2]=(c[w>>2]|0)+-1}if((c[w>>2]|0)>>>0>=8){f=y;g=ex(c[f>>2]|0,c[f+4>>2]|0,16843009,16843009)|0;f=y;c[f>>2]=g;c[f+4>>2]=D;do{c[z>>2]=c[v>>2];f=y;g=c[f+4>>2]|0;e=c[z>>2]|0;c[e>>2]=c[f>>2];c[e+4>>2]=g;c[w>>2]=(c[w>>2]|0)-8;c[v>>2]=(c[v>>2]|0)+8}while((c[w>>2]|0)>>>0>=8)}while(1){if(!(c[w>>2]|0))break d;a[c[v>>2]>>0]=a[x>>0]|0;c[v>>2]=(c[v>>2]|0)+1;c[w>>2]=(c[w>>2]|0)+-1}}else while(1){if((c[n>>2]|0)>>>0<16)break d;nq((c[l>>2]|0)+64|0,(c[l>>2]|0)+64|0,c[m>>2]|0,16);c[A>>2]=ub[c[p>>2]&63]((c[l>>2]|0)+496|0,(c[l>>2]|0)+64|0,(c[l>>2]|0)+64|0)|0;c[r>>2]=(c[r>>2]|0)>>>0>(c[A>>2]|0)>>>0?c[r>>2]|0:c[A>>2]|0;c[n>>2]=(c[n>>2]|0)-16;c[m>>2]=(c[m>>2]|0)+16}while(0)}while((c[n>>2]|0)>>>0>0);c[(c[l>>2]|0)+128+36>>2]=c[s>>2];if(c[r>>2]|0)c[r>>2]=(c[r>>2]|0)+16;c[k>>2]=c[r>>2];B=c[k>>2]|0;i=h;return B|0}function nq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[o>>2]=c[k>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[h>>2]=3;if(!((c[o>>2]|c[p>>2]|c[q>>2])&3)){c[r>>2]=c[o>>2];c[s>>2]=c[p>>2];c[t>>2]=c[q>>2];while(1){if((c[n>>2]|0)>>>0<4)break;m=c[s>>2]|0;c[s>>2]=m+4;l=c[m>>2]|0;m=c[t>>2]|0;c[t>>2]=m+4;k=l^c[m>>2];m=c[r>>2]|0;c[r>>2]=m+4;c[m>>2]=k;c[n>>2]=(c[n>>2]|0)-4}c[o>>2]=c[r>>2];c[p>>2]=c[s>>2];c[q>>2]=c[t>>2]}while(1){if(!(c[n>>2]|0))break;t=c[p>>2]|0;c[p>>2]=t+1;s=d[t>>0]|0;t=c[q>>2]|0;c[q>>2]=t+1;r=(s^(d[t>>0]|0))&255;t=c[o>>2]|0;c[o>>2]=t+1;a[t>>0]=r;c[n>>2]=(c[n>>2]|0)+-1}i=h;return}function oq(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;k=i;i=i+32|0;if((i|0)>=(j|0))$(32);l=k+24|0;m=k+20|0;n=k+16|0;o=k+12|0;p=k+8|0;q=k+4|0;r=k;c[m>>2]=b;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;if((c[o>>2]|0)>>>0<(c[q>>2]|0)>>>0){c[l>>2]=200;s=c[l>>2]|0;i=k;return s|0}if(((a[(c[m>>2]|0)+128+56>>0]&1|0?((d[(c[m>>2]|0)+56>>0]|0)>>>2&1|0)==0:0)?(d[(c[m>>2]|0)+128+56>>0]|0)>>>1&1|0:0)?(h=(c[m>>2]|0)+128+8|0,g=c[h+4>>2]|0,!(g>>>0>0|(g|0)==0&(c[h>>2]|0)>>>0>0)):0){h=(c[m>>2]|0)+128|0;g=c[h+4>>2]|0;if(0>g>>>0|(0==(g|0)?(c[q>>2]|0)>>>0>(c[h>>2]|0)>>>0:0)){c[l>>2]=139;s=c[l>>2]|0;i=k;return s|0}h=(c[m>>2]|0)+128|0;g=h;f=Rw(c[g>>2]|0,c[g+4>>2]|0,c[q>>2]|0,0)|0;g=h;c[g>>2]=f;c[g+4>>2]=D;c[r>>2]=mq(c[m>>2]|0,c[p>>2]|0,c[q>>2]|0,0)|0;if(c[r>>2]|0){bf((c[r>>2]|0)+20|0);cf()}c[l>>2]=yq(c[m>>2]|0,c[n>>2]|0,c[o>>2]|0,c[p>>2]|0,c[q>>2]|0)|0;s=c[l>>2]|0;i=k;return s|0}c[l>>2]=156;s=c[l>>2]|0;i=k;return s|0}function pq(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n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function sq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+8|0;o=f+4|0;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=c[g>>2];c[m>>2]=c[h>>2];c[f>>2]=3;if(!((c[l>>2]|c[m>>2])&3)){c[n>>2]=c[l>>2];c[o>>2]=c[m>>2];while(1){if((c[k>>2]|0)>>>0<4)break;h=c[o>>2]|0;c[o>>2]=h+4;g=c[h>>2]|0;h=c[n>>2]|0;c[n>>2]=h+4;c[h>>2]=g;c[k>>2]=(c[k>>2]|0)-4}c[l>>2]=c[n>>2];c[m>>2]=c[o>>2]}while(1){if(!(c[k>>2]|0))break;o=c[m>>2]|0;c[m>>2]=o+1;n=a[o>>0]|0;o=c[l>>2]|0;c[l>>2]=o+1;a[o>>0]=n;c[k>>2]=(c[k>>2]|0)+-1}i=f;return}function tq(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;g=i;i=i+64|0;if((i|0)>=(j|0))$(64);h=g+48|0;k=g+44|0;l=g+40|0;m=g+36|0;n=g+32|0;o=g+28|0;p=g+24|0;q=g+20|0;r=g+16|0;s=g+12|0;t=g+8|0;u=g+4|0;v=g;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;c[q>>2]=c[(c[(c[k>>2]|0)+12>>2]|0)+36>>2];c[r>>2]=c[(c[(c[k>>2]|0)+12>>2]|0)+20>>2];c[s>>2]=(c[r>>2]|0)+(c[r>>2]|0);if((c[m>>2]|0)>>>0<(c[o>>2]|0)>>>0){c[h>>2]=200;w=c[h>>2]|0;i=g;return w|0}if((c[o>>2]|0)>>>0<=(c[(c[k>>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x^(d[w>>0]|0))&255;w=c[q>>2]|0;c[q>>2]=w+1;a[w>>0]=y;y=a[u>>0]|0;w=c[r>>2]|0;c[r>>2]=w+1;a[w>>0]=y;c[p>>2]=(c[p>>2]|0)+-1}i=k;return}function wq(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;xq(c[d>>2]|0);i=b;return 0}function xq(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+80|0;if((i|0)>=(j|0))$(80);f=e+56|0;g=e+52|0;h=e+64|0;k=e+63|0;l=e+62|0;m=e+61|0;n=e+48|0;o=e+44|0;p=e+40|0;q=e+24|0;r=e+16|0;s=e+12|0;t=e+60|0;u=e;v=e+8|0;c[f>>2]=b;c[g>>2]=c[(c[(c[f>>2]|0)+12>>2]|0)+20>>2];if(16<(c[g>>2]|0)>>>0)Re(46821,113,46835);Sw(q|0,0,c[g>>2]|0)|0;c[n>>2]=ub[c[(c[(c[f>>2]|0)+12>>2]|0)+36>>2]&63]((c[f>>2]|0)+496|0,q,q)|0;a[h>>0]=(c[g>>2]|0)==16?135:27;c[p>>2]=0;while(1){if((c[p>>2]|0)>=2)break;a[k>>0]=0;c[o>>2]=(c[g>>2]|0)-1;while(1){if((c[o>>2]|0)<0)break;a[m>>0]=a[q+(c[o>>2]|0)>>0]|0;a[l>>0]=d[k>>0]|0|(d[m>>0]|0)<<1;a[k>>0]=(d[m>>0]|0)>>7;a[q+(c[o>>2]|0)>>0]=d[l>>0]|0;a[(c[f>>2]|0)+128+1+(c[p>>2]<<4)+(c[o>>2]|0)>>0]=a[q+(c[o>>2]|0)>>0]|0;c[o>>2]=(c[o>>2]|0)+-1}b=q+((c[g>>2]|0)-1)|0;a[b>>0]=(d[b>>0]|0)^(d[k>>0]|0|0?d[h>>0]|0:0);a[(c[f>>2]|0)+128+1+(c[p>>2]<<4)+((c[g>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>2]|0;h=c[n>>2]|0;c[n>>2]=h+4;c[h>>2]=g;c[k>>2]=(c[k>>2]|0)-4}c[l>>2]=c[n>>2];c[m>>2]=c[o>>2]}while(1){if(!(c[k>>2]|0))break;o=c[m>>2]|0;c[m>>2]=o+1;n=a[o>>0]|0;o=c[l>>2]|0;c[l>>2]=o+1;a[o>>0]=n;c[k>>2]=(c[k>>2]|0)+-1}i=f;return}function Bq(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;k=i;i=i+32|0;if((i|0)>=(j|0))$(32);l=k+24|0;m=k+20|0;n=k+16|0;o=k+12|0;p=k+8|0;q=k+4|0;r=k;c[m>>2]=b;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;if((c[(c[(c[m>>2]|0)+12>>2]|0)+20>>2]|0)!=16){c[l>>2]=12;s=c[l>>2]|0;i=k;return s|0}if((c[o>>2]|0)>>>0<(c[q>>2]|0)>>>0){c[l>>2]=200;s=c[l>>2]|0;i=k;return s|0}if((d[(c[m>>2]|0)+128+68>>0]|0)>>>2&1|0){c[l>>2]=139;s=c[l>>2]|0;i=k;return s|0}if(((d[(c[m>>2]|0)+56>>0]|0)>>>2&1|0)==0?(a[(c[m>>2]|0)+128+68>>0]&1|0)==0:0){if(!((d[(c[m>>2]|0)+56>>0]|0)>>>1&1))Cq(c[m>>2]|0,72251,16)|0;if((d[(c[m>>2]|0)+128+68>>0]|0)>>>3&1|0){c[l>>2]=156;s=c[l>>2]|0;i=k;return s|0}if(!((d[(c[m>>2]|0)+128+68>>0]|0)>>>1&1)){Dq(c[m>>2]|0,(c[m>>2]|0)+128|0,0,0,1);h=(c[m>>2]|0)+128+68|0;a[h>>0]=a[h>>0]&-3|2}Eq((c[m>>2]|0)+128+44|0,c[q>>2]|0);h=(Fq((c[m>>2]|0)+128+44|0)|0)!=0;g=c[m>>2]|0;if(!h){h=g+128+68|0;a[h>>0]=a[h>>0]&-5|4;c[l>>2]=139;s=c[l>>2]|0;i=k;return s|0}c[r>>2]=yq(g,c[n>>2]|0,c[o>>2]|0,c[p>>2]|0,c[q>>2]|0)|0;if(c[r>>2]|0){c[l>>2]=c[r>>2];s=c[l>>2]|0;i=k;return s|0}else{Dq(c[m>>2]|0,(c[m>>2]|0)+128|0,c[n>>2]|0,c[q>>2]|0,0);c[l>>2]=0;s=c[l>>2]|0;i=k;return s|0}}c[l>>2]=156;s=c[l>>2]|0;i=k;return s|0}function Cq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+8|0;h=f+4|0;k=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;e=(c[g>>2]|0)+56|0;a[e>>0]=a[e>>0]&-3;e=(c[g>>2]|0)+56|0;a[e>>0]=a[e>>0]&-5;e=(c[g>>2]|0)+128+68|0;a[e>>0]=a[e>>0]&-9;if(!(Wg()|0)){l=c[g>>2]|0;m=c[h>>2]|0;n=c[k>>2]|0;o=Hq(l,m,n)|0;i=f;return o|0}e=(c[g>>2]|0)+128+68|0;a[e>>0]=a[e>>0]&-9|8;l=c[g>>2]|0;m=c[h>>2]|0;n=c[k>>2]|0;o=Hq(l,m,n)|0;i=f;return o|0}function Dq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;u=h;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=g;c[p>>2]=16;c[q>>2]=c[(c[k>>2]|0)+128+32>>2];c[r>>2]=c[(c[k>>2]|0)+128+96>>2];c[u>>2]=0;if((c[n>>2]|0)==0?!((c[q>>2]|0)!=0&(c[o>>2]|0)!=0):0){i=h;return}a:do{if((c[q>>2]|0)>>>0>0?1:((c[n>>2]|0)+(c[q>>2]|0)|0)>>>0<(c[p>>2]|0)>>>0){c[t>>2]=(c[p>>2]|0)-(c[q>>2]|0);c[t>>2]=(c[t>>2]|0)>>>0<(c[n>>2]|0)>>>0?c[t>>2]|0:c[n>>2]|0;Gq((c[k>>2]|0)+128+16+(c[q>>2]|0)|0,c[m>>2]|0,c[t>>2]|0);c[q>>2]=(c[q>>2]|0)+(c[t>>2]|0);c[m>>2]=(c[m>>2]|0)+(c[t>>2]|0);c[n>>2]=(c[n>>2]|0)-(c[t>>2]|0)}b:do if(!(c[n>>2]|0)){if(!(c[o>>2]|0))break a;while(1){if((c[q>>2]|0)>>>0>=(c[p>>2]|0)>>>0)break b;g=c[q>>2]|0;c[q>>2]=g+1;a[(c[k>>2]|0)+128+16+g>>0]=0}}while(0);if((c[q>>2]|0)>>>0>0){if((c[q>>2]|0)!=(c[p>>2]|0)){v=11;break}c[u>>2]=Bb[c[r>>2]&7](c[k>>2]|0,c[l>>2]|0,(c[k>>2]|0)+128+16|0,1)|0;c[q>>2]=0}c[s>>2]=((c[n>>2]|0)>>>0)/((c[p>>2]|0)>>>0)|0;if(c[s>>2]|0){c[u>>2]=Bb[c[r>>2]&7](c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[s>>2]|0)|0;g=S(c[p>>2]|0,c[s>>2]|0)|0;c[m>>2]=(c[m>>2]|0)+g;g=S(c[p>>2]|0,c[s>>2]|0)|0;c[n>>2]=(c[n>>2]|0)-g}}while((c[n>>2]|0)>>>0>0);if((v|0)==11)Se(46917,46937,499,46950);c[(c[k>>2]|0)+128+32>>2]=c[q>>2];if(!(c[u>>2]|0)){i=h;return}bf(c[u>>2]|0);cf();i=h;return}function Eq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=c[e>>2]|0;c[b>>2]=(c[b>>2]|0)+(c[f>>2]|0);if((c[c[e>>2]>>2]|0)>>>0>=(c[f>>2]|0)>>>0){i=d;return}f=(c[e>>2]|0)+4|0;c[f>>2]=(c[f>>2]|0)+1;i=d;return}function Fq(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;do if((c[(c[e>>2]|0)+4>>2]|0)>>>0<=15){if((c[(c[e>>2]|0)+4>>2]|0)>>>0<15){c[d>>2]=1;break}if((c[c[e>>2]>>2]|0)>>>0<=4294967264){c[d>>2]=1;break}else{c[d>>2]=0;break}}else c[d>>2]=0;while(0);i=b;return c[d>>2]|0}function Gq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+8|0;o=f+4|0;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=c[g>>2];c[m>>2]=c[h>>2];c[f>>2]=3;if(!((c[l>>2]|c[m>>2])&3)){c[n>>2]=c[l>>2];c[o>>2]=c[m>>2];while(1){if((c[k>>2]|0)>>>0<4)break;h=c[o>>2]|0;c[o>>2]=h+4;g=c[h>>2]|0;h=c[n>>2]|0;c[n>>2]=h+4;c[h>>2]=g;c[k>>2]=(c[k>>2]|0)-4}c[l>>2]=c[n>>2];c[m>>2]=c[o>>2]}while(1){if(!(c[k>>2]|0))break;o=c[m>>2]|0;c[m>>2]=o+1;n=a[o>>0]|0;o=c[l>>2]|0;c[l>>2]=o+1;a[o>>0]=n;c[k>>2]=(c[k>>2]|0)+-1}i=f;return}function Hq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,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+12>>2]|0)+36>>2]&63]((c[k>>2]|0)+496|0,(c[k>>2]|0)+128+52|0,(c[k>>2]|0)+80|0)|0;Jq((c[k>>2]|0)+80|0,1)|0;c[(c[k>>2]|0)+112>>2]=0;m=(c[k>>2]|0)+56|0;a[m>>0]=a[m>>0]&-3|2;m=(c[k>>2]|0)+56|0;a[m>>0]=a[m>>0]&-5;c[h>>2]=0;z=c[h>>2]|0;i=g;return z|0}function Iq(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;do if((c[(c[e>>2]|0)+4>>2]|0)>>>0<=536870911){if((c[(c[e>>2]|0)+4>>2]|0)>>>0<536870911){c[d>>2]=1;break}if((c[c[e>>2]>>2]|0)>>>0<=4294967295){c[d>>2]=1;break}else{c[d>>2]=0;break}}else c[d>>2]=0;while(0);i=b;return c[d>>2]|0}function Jq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[d+8>>2]=16;c[g>>2]=(c[e>>2]|0)+16+-4;e=_w(c[c[g>>2]>>2]|0)|0;c[h>>2]=e+(c[f>>2]|0);f=_w(c[h>>2]|0)|0;c[c[g>>2]>>2]=f;i=d;return c[h>>2]|0}function Kq(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;k=i;i=i+32|0;if((i|0)>=(j|0))$(32);l=k+20|0;m=k+16|0;n=k+12|0;o=k+8|0;p=k+4|0;q=k;c[m>>2]=b;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;if((c[(c[(c[m>>2]|0)+12>>2]|0)+20>>2]|0)!=16){c[l>>2]=12;r=c[l>>2]|0;i=k;return r|0}if((c[o>>2]|0)>>>0<(c[q>>2]|0)>>>0){c[l>>2]=200;r=c[l>>2]|0;i=k;return r|0}if((d[(c[m>>2]|0)+128+68>>0]|0)>>>2&1|0){c[l>>2]=139;r=c[l>>2]|0;i=k;return r|0}if(((d[(c[m>>2]|0)+56>>0]|0)>>>2&1|0)==0?(a[(c[m>>2]|0)+128+68>>0]&1|0)==0:0){if(!((d[(c[m>>2]|0)+56>>0]|0)>>>1&1))Cq(c[m>>2]|0,72267,16)|0;if(!((d[(c[m>>2]|0)+128+68>>0]|0)>>>1&1)){Dq(c[m>>2]|0,(c[m>>2]|0)+128|0,0,0,1);h=(c[m>>2]|0)+128+68|0;a[h>>0]=a[h>>0]&-3|2}Eq((c[m>>2]|0)+128+44|0,c[q>>2]|0);h=(Fq((c[m>>2]|0)+128+44|0)|0)!=0;g=c[m>>2]|0;if(h){Dq(g,(c[m>>2]|0)+128|0,c[p>>2]|0,c[q>>2]|0,0);c[l>>2]=yq(c[m>>2]|0,c[n>>2]|0,c[o>>2]|0,c[p>>2]|0,c[q>>2]|0)|0;r=c[l>>2]|0;i=k;return r|0}else{q=g+128+68|0;a[q>>0]=a[q>>0]&-5|4;c[l>>2]=139;r=c[l>>2]|0;i=k;return r|0}}c[l>>2]=156;r=c[l>>2]|0;i=k;return r|0}function Lq(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=(c[d>>2]|0)+128+80|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;ub[c[(c[(c[d>>2]|0)+12>>2]|0)+36>>2]&63]((c[d>>2]|0)+496|0,(c[d>>2]|0)+128+80|0,(c[d>>2]|0)+128+80|0)|0;Mq(c[d>>2]|0);i=b;return}function Mq(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;c[(c[d>>2]|0)+128+96>>2]=2;Oq((c[d>>2]|0)+128+80|0,(c[d>>2]|0)+128+100|0);i=b;return}function Nq(a,b,d,e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>>2]|0)>>>8;a[(c[h>>2]|0)+3>>0]=c[g>>2];i=e;return}function Uq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+20|0;h=f+16|0;k=f+12|0;l=f;m=f+8|0;c[h>>2]=a;c[k>>2]=b;b=l;c[b>>2]=d;c[b+4>>2]=e;e=l;c[m>>2]=Vq(c[e>>2]|0,c[e+4>>2]|0)|0;if((c[m>>2]|0)<16){c[g>>2]=(c[h>>2]|0)+128+32+(c[m>>2]<<4);n=c[g>>2]|0;i=f;return n|0}Wq(c[k>>2]|0,(c[h>>2]|0)+128+32+240|0);c[m>>2]=(c[m>>2]|0)-16;while(1){o=c[k>>2]|0;if(!(c[m>>2]|0))break;Xq(o);c[m>>2]=(c[m>>2]|0)+-1}c[g>>2]=o;n=c[g>>2]|0;i=f;return n|0}function Vq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d;g=f;c[g>>2]=a;c[g+4>>2]=b;b=f;g=c[b+4>>2]|0;if((c[f>>2]|0)!=0|0!=0){c[e>>2]=$q(c[b>>2]|0)|0;h=c[e>>2]|0;i=d;return h|0}else{c[e>>2]=32+($q(g)|0);h=c[e>>2]|0;i=d;return h|0}return 0}function Wq(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if((c[e>>2]|0)!=(c[f>>2]|0))_q(c[e>>2]|0,c[f>>2]|0,16);Xq(c[e>>2]|0);i=d;return}function Xq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+24|0;e=b+16|0;f=b+8|0;g=b;c[d>>2]=a;a=Yq(c[d>>2]|0)|0;h=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e=Vw(c[d>>2]|0)|0;i=b;return (a?e:32)|0}function ar(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0;g=i;i=i+128|0;if((i|0)>=(j|0))$(128);h=g+68|0;k=g+64|0;l=g+60|0;m=g+56|0;n=g+104|0;o=g+80|0;p=g+52|0;q=g+48|0;r=g+44|0;s=g+40|0;t=g+36|0;u=g+32|0;v=g+73|0;w=g+8|0;x=g+28|0;y=g+24|0;z=g+20|0;A=g+72|0;B=g;C=g+16|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[r>>2]=0;if(!(a[(c[k>>2]|0)+56>>0]&1)){c[h>>2]=156;E=c[h>>2]|0;i=g;return E|0}switch(d[(c[k>>2]|0)+128+352>>0]|0|0){case 16:case 12:case 8:break;default:{c[h>>2]=59;E=c[h>>2]|0;i=g;return E|0}}if((c[(c[(c[k>>2]|0)+12>>2]|0)+20>>2]|0)!=16){c[h>>2]=12;E=c[h>>2]|0;i=g;return E|0}if(!(c[l>>2]|0)){c[h>>2]=45;E=c[h>>2]|0;i=g;return E|0}if((c[m>>2]|0)>>>0>15|(c[m>>2]|0)>>>0<8|(c[m>>2]|0)>>>0>=16){c[h>>2]=139;E=c[h>>2]|0;i=g;return E|0}f=n;e=f+16|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(e|0));c[s>>2]=ub[c[(c[(c[k>>2]|0)+12>>2]|0)+36>>2]&63]((c[k>>2]|0)+496|0,(c[k>>2]|0)+128|0,n)|0;c[r>>2]=(c[s>>2]|0)>>>0>(c[r>>2]|0)>>>0?c[s>>2]|0:c[r>>2]|0;Wq((c[k>>2]|0)+128+16|0,(c[k>>2]|0)+128|0);Wq((c[k>>2]|0)+128+32|0,(c[k>>2]|0)+128+16|0);c[q>>2]=1;while(1){if((c[q>>2]|0)>=16)break;Wq((c[k>>2]|0)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f()}c[h>>2]=0;E=c[h>>2]|0;i=g;return E|0}function br(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[o>>2]=c[k>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[h>>2]=3;if(!((c[o>>2]|c[p>>2]|c[q>>2])&3)){c[r>>2]=c[o>>2];c[s>>2]=c[p>>2];c[t>>2]=c[q>>2];while(1){if((c[n>>2]|0)>>>0<4)break;m=c[s>>2]|0;c[s>>2]=m+4;l=c[m>>2]|0;m=c[t>>2]|0;c[t>>2]=m+4;k=l^c[m>>2];m=c[r>>2]|0;c[r>>2]=m+4;c[m>>2]=k;c[n>>2]=(c[n>>2]|0)-4}c[o>>2]=c[r>>2];c[p>>2]=c[s>>2];c[q>>2]=c[t>>2]}while(1){if(!(c[n>>2]|0))break;t=c[p>>2]|0;c[p>>2]=t+1;s=d[t>>0]|0;t=c[q>>2]|0;c[q>>2]=t+1;r=(s^(d[t>>0]|0))&255;t=c[o>>2]|0;c[o>>2]=t+1;a[t>>0]=r;c[n>>2]=(c[n>>2]|0)+-1}i=h;return}function cr(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0;h=i;i=i+32|0;if((i|0)>=(j|0))$(32);k=h+16|0;l=h+12|0;m=h+8|0;n=h+4|0;o=h;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[l>>2]=(c[l>>2]|0)+(((c[m>>2]|0)>>>0)/8|0);c[o>>2]=((c[m>>2]|0)>>>0)%8|0;if(c[o>>2]|0){while(1){if(!(c[n>>2]|0))break;a[c[k>>2]>>0]=(d[c[l>>2]>>0]|0)<<c[o>>2]|(d[(c[l>>2]|0)+1>>0]|0)>>8-(c[o>>2]|0);c[n>>2]=(c[n>>2]|0)+-1;c[k>>2]=(c[k>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+1}i=h;return}else{while(1){if(!(c[n>>2]|0))break;a[c[k>>2]>>0]=a[c[l>>2]>>0]|0;c[n>>2]=(c[n>>2]|0)+-1;c[k>>2]=(c[k>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+1}i=h;return}}function dr(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+28|0;k=g+24|0;l=g+20|0;m=g+16|0;n=g+12|0;o=g+8|0;p=g+4|0;c[h>>2]=b;c[k>>2]=e;c[l>>2]=f;c[m>>2]=c[h>>2];c[n>>2]=c[k>>2];c[g>>2]=3;if(!((c[m>>2]|c[n>>2])&3)){c[o>>2]=c[m>>2];c[p>>2]=c[n>>2];while(1){if((c[l>>2]|0)>>>0<4)break;k=c[p>>2]|0;c[p>>2]=k+4;h=c[k>>2]|0;k=c[o>>2]|0;c[o>>2]=k+4;c[k>>2]=c[k>>2]^h;c[l>>2]=(c[l>>2]|0)-4}c[m>>2]=c[o>>2];c[n>>2]=c[p>>2]}while(1){if(!(c[l>>2]|0))break;p=c[n>>2]|0;c[n>>2]=p+1;o=d[p>>0]|0;p=c[m>>2]|0;c[m>>2]=p+1;a[p>>0]=(d[p>>0]|0)^o;c[l>>2]=(c[l>>2]|0)+-1}i=g;return}function er(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;f=fr(c[h>>2]|0,1,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;i=g;return f|0}function fr(b,e,f,g,h,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;l=i;i=i+80|0;if((i|0)>=(j|0))$(80);m=l+40|0;n=l+36|0;o=l+32|0;p=l+28|0;q=l+24|0;r=l+20|0;s=l+16|0;t=l+64|0;u=l+12|0;v=l+8|0;w=l+4|0;x=l;y=l+48|0;c[n>>2]=b;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[r>>2]=h;c[s>>2]=k;c[u>>2]=0;c[w>>2]=((c[s>>2]|0)>>>0)/16|0;if((d[(c[n>>2]|0)+56>>0]|0)>>>1&1|0?(a[(c[n>>2]|0)+128+353>>0]&1|0)==0:0){if((c[(c[(c[n>>2]|0)+12>>2]|0)+20>>2]|0)!=16){c[m>>2]=12;z=c[m>>2]|0;i=l;return z|0}if((c[q>>2]|0)>>>0<(c[s>>2]|0)>>>0){c[m>>2]=200;z=c[m>>2]|0;i=l;return z|0}if(((d[(c[n>>2]|0)+56>>0]|0)>>>3&1|0)==0?((c[s>>2]|0)>>>0)%16|0|0:0){c[m>>2]=139;z=c[m>>2]|0;i=l;return z|0}if(c[w>>2]|0?c[(c[n>>2]|0)+20+20>>2]|0:0){vb[c[(c[n>>2]|0)+20+20>>2]&15](c[n>>2]|0,c[p>>2]|0,c[r>>2]|0,c[w>>2]|0,c[o>>2]|0);c[r>>2]=(c[r>>2]|0)+(c[w>>2]<<4);c[p>>2]=(c[p>>2]|0)+(c[w>>2]<<4);c[s>>2]=(c[s>>2]|0)-(c[w>>2]<<4);c[q>>2]=(c[q>>2]|0)-(c[w>>2]<<4);c[w>>2]=0}if(c[w>>2]|0){k=c[(c[n>>2]|0)+12>>2]|0;if(c[o>>2]|0)A=c[k+36>>2]|0;else A=c[k+40>>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[p>>2]|0,t,c[s>>2]|0);dr((c[n>>2]|0)+80|0,t,16);break}}while(0);if((d[(c[n>>2]|0)+56>>0]|0)>>>3&1|0){br((c[n>>2]|0)+128+288|0,(c[n>>2]|0)+80|0,(c[n>>2]|0)+64|0,16);dr((c[n>>2]|0)+128+288|0,(c[n>>2]|0)+128+16|0,16);c[v>>2]=ub[c[(c[(c[n>>2]|0)+12>>2]|0)+36>>2]&63]((c[n>>2]|0)+496|0,(c[n>>2]|0)+128+288|0,(c[n>>2]|0)+128+288|0)|0;c[u>>2]=(c[v>>2]|0)>>>0>(c[u>>2]|0)>>>0?c[v>>2]|0:c[u>>2]|0;v=(c[n>>2]|0)+128+353|0;a[v>>0]=a[v>>0]&-2|1}if((c[u>>2]|0)>>>0>0){bf((c[u>>2]|0)+16|0);cf()}c[m>>2]=0;z=c[m>>2]|0;i=l;return z|0}c[m>>2]=156;z=c[m>>2]|0;i=l;return z|0}function gr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;while(1){if((c[h>>2]|0)>>>0<=0)break;dr(c[f>>2]|0,c[g>>2]|0,16);c[g>>2]=(c[g>>2]|0)+16;c[h>>2]=(c[h>>2]|0)+-1}i=e;return}function hr(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;f=fr(c[h>>2]|0,0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0)|0;i=g;return f|0}function ir(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,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2];m=c[r>>2]|0;c[r>>2]=m+4;c[m>>2]=k;c[n>>2]=(c[n>>2]|0)-4}c[o>>2]=c[r>>2];c[p>>2]=c[s>>2];c[q>>2]=c[t>>2]}while(1){if(!(c[n>>2]|0))break;t=c[p>>2]|0;c[p>>2]=t+1;s=d[t>>0]|0;t=c[q>>2]|0;c[q>>2]=t+1;r=(s^(d[t>>0]|0))&255;t=c[o>>2]|0;c[o>>2]=t+1;a[t>>0]=r;c[n>>2]=(c[n>>2]|0)+-1}i=h;return}function kr(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;f=d+8|0;c[e>>2]=b;a[f>>0]=0;a[f+1>>0]=0;a[f+2>>0]=0;a[f+3>>0]=0;a[f+4>>0]=0;a[f+5>>0]=0;a[f+6>>0]=0;a[f+7>>0]=0;b=mr(c[e>>2]|0,f,8)|0;i=d;return b|0}function lr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=0;b=c[f>>2]|0;c[b>>2]=(c[b>>2]|0)+(c[g>>2]|0);if((c[c[f>>2]>>2]|0)>>>0>=(c[g>>2]|0)>>>0){c[e>>2]=c[h>>2];k=c[e>>2]|0;i=d;return k|0}else{g=(c[f>>2]|0)+4|0;c[g>>2]=(c[g>>2]|0)+1;c[e>>2]=((c[(c[f>>2]|0)+4>>2]|0)>>>0<1?1:(c[h>>2]|0)!=0)&1;k=c[e>>2]|0;i=d;return k|0}return 0}function mr(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=i;i=i+112|0;if((i|0)>=(j|0))$(112);h=g+36|0;k=g+32|0;l=g+28|0;m=g+24|0;n=g+48|0;o=g+20|0;p=g+16|0;q=g+12|0;r=g+40|0;s=g;t=g+8|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;if((c[l>>2]|0)==0&(c[m>>2]|0)!=12){c[h>>2]=45;u=c[h>>2]|0;i=g;return u|0}f=(c[k>>2]|0)+128+20|0;e=f+92|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(e|0));c[(c[k>>2]|0)+128>>2]=0;c[(c[k>>2]|0)+128+4>>2]=0;c[(c[k>>2]|0)+128+8>>2]=0;c[(c[k>>2]|0)+128+8+4>>2]=0;b=(c[k>>2]|0)+128+16|0;a[b>>0]=a[b>>0]&-3;b=(c[k>>2]|0)+128+16|0;a[b>>0]=a[b>>0]&-2;b=(c[k>>2]|0)+56|0;a[b>>0]=a[b>>0]&-5;b=(c[k>>2]|0)+56|0;a[b>>0]=a[b>>0]&-3;zb[c[(c[(c[k>>2]|0)+12>>2]|0)+60>>2]&7]((c[k>>2]|0)+496|0,c[l>>2]|0,c[m>>2]|0);f=n;e=f+64|0;do{a[f>>0]=0;f=f+1|0}while((f|0)<(e|0));Eb[c[(c[(c[k>>2]|0)+12>>2]|0)+44>>2]&1]((c[k>>2]|0)+496|0,n,n,64);c[o>>2]=Sr((c[k>>2]|0)+128+20|0,n,32)|0;c[p>>2]=n;c[q>>2]=64;a[r>>0]=0;n=s;c[n>>2]=d[r>>0];c[n+4>>2]=0;while(1){if(!(c[p>>2]&7|0?(c[q>>2]|0)!=0:0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}if((c[q>>2]|0)>>>0>=8){n=s;f=ex(c[n>>2]|0,c[n+4>>2]|0,16843009,16843009)|0;n=s;c[n>>2]=f;c[n+4>>2]=D;do{c[t>>2]=c[p>>2];n=s;f=c[n+4>>2]|0;e=c[t>>2]|0;c[e>>2]=c[n>>2];c[e+4>>2]=f;c[q>>2]=(c[q>>2]|0)-8;c[p>>2]=(c[p>>2]|0)+8}while((c[q>>2]|0)>>>0>=8)}while(1){if(!(c[q>>2]|0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}if(c[o>>2]|0){c[h>>2]=c[o>>2];u=c[h>>2]|0;i=g;return u|0}else{o=(c[k>>2]|0)+56|0;a[o>>0]=a[o>>0]&-3|2;c[h>>2]=0;u=c[h>>2]|0;i=g;return u|0}return 0}function nr(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;k=i;i=i+32|0;if((i|0)>=(j|0))$(32);l=k+24|0;m=k+20|0;n=k+16|0;o=k+12|0;p=k+8|0;q=k+4|0;r=k;c[m>>2]=b;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;if((c[o>>2]|0)>>>0<(c[q>>2]|0)>>>0){c[l>>2]=200;s=c[l>>2]|0;i=k;return s|0}if((d[(c[m>>2]|0)+56>>0]|0)>>>2&1|0){c[l>>2]=156;s=c[l>>2]|0;i=k;return s|0}if((d[(c[m>>2]|0)+128+16>>0]|0)>>>1&1|0){c[l>>2]=139;s=c[l>>2]|0;i=k;return s|0}if(((d[(c[m>>2]|0)+56>>0]|0)>>>1&1|0)==0?(c[r>>2]=kr(c[m>>2]|0)|0,c[r>>2]|0):0){c[l>>2]=c[r>>2];s=c[l>>2]|0;i=k;return s|0}if(!(a[(c[m>>2]|0)+128+16>>0]&1))or(c[m>>2]|0);r=(lr((c[m>>2]|0)+128+8|0,c[q>>2]|0)|0)!=0;o=c[m>>2]|0;if(r){r=o+128+16|0;a[r>>0]=a[r>>0]&-3|2;c[l>>2]=139;s=c[l>>2]|0;i=k;return s|0}else{Eb[c[(c[o+12>>2]|0)+44>>2]&1]((c[m>>2]|0)+496|0,c[n>>2]|0,c[p>>2]|0,c[q>>2]|0);Or((c[m>>2]|0)+128+20|0,c[n>>2]|0,c[q>>2]|0);c[l>>2]=0;s=c[l>>2]|0;i=k;return s|0}return 0}function or(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=b;pr(c[e>>2]|0,(c[e>>2]|0)+128|0);b=(c[e>>2]|0)+128+16|0;a[b>>0]=a[b>>0]&-2|1;c[(c[e>>2]|0)+128+8>>2]=0;c[(c[e>>2]|0)+128+8+4>>2]=0;i=d;return}function pr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;if((((c[c[f>>2]>>2]|0)>>>0)%16|0)>>>0<=0){i=d;return}c[g>>2]=16-(((c[c[f>>2]>>2]|0)>>>0)%16|0);Or((c[e>>2]|0)+128+20|0,72283,c[g>>2]|0);i=d;return}function qr(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;k=i;i=i+32|0;if((i|0)>=(j|0))$(32);l=k+24|0;m=k+20|0;n=k+16|0;o=k+12|0;p=k+8|0;q=k+4|0;r=k;c[m>>2]=b;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;if((c[o>>2]|0)>>>0<(c[q>>2]|0)>>>0){c[l>>2]=200;s=c[l>>2]|0;i=k;return s|0}if((d[(c[m>>2]|0)+56>>0]|0)>>>2&1|0){c[l>>2]=156;s=c[l>>2]|0;i=k;return s|0}if((d[(c[m>>2]|0)+128+16>>0]|0)>>>1&1|0){c[l>>2]=139;s=c[l>>2]|0;i=k;return s|0}if(((d[(c[m>>2]|0)+56>>0]|0)>>>1&1|0)==0?(c[r>>2]=kr(c[m>>2]|0)|0,c[r>>2]|0):0){c[l>>2]=c[r>>2];s=c[l>>2]|0;i=k;return s|0}if(!(a[(c[m>>2]|0)+128+16>>0]&1))or(c[m>>2]|0);r=(lr((c[m>>2]|0)+128+8|0,c[q>>2]|0)|0)!=0;o=(c[m>>2]|0)+128|0;if(r){r=o+16|0;a[r>>0]=a[r>>0]&-3|2;c[l>>2]=139;s=c[l>>2]|0;i=k;return s|0}else{Or(o+20|0,c[p>>2]|0,c[q>>2]|0);Eb[c[(c[(c[m>>2]|0)+12>>2]|0)+48>>2]&1]((c[m>>2]|0)+496|0,c[n>>2]|0,c[p>>2]|0,c[q>>2]|0);c[l>>2]=0;s=c[l>>2]|0;i=k;return s|0}return 0}function rr(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=b;c[(c[e>>2]|0)+128>>2]=0;c[(c[e>>2]|0)+128+4>>2]=0;c[(c[e>>2]|0)+128+8>>2]=0;c[(c[e>>2]|0)+128+8+4>>2]=0;b=(c[e>>2]|0)+128+16|0;a[b>>0]=a[b>>0]&-3;b=(c[e>>2]|0)+128+16|0;a[b>>0]=a[b>>0]&-2;b=(c[e>>2]|0)+56|0;a[b>>0]=a[b>>0]&-5;b=(c[e>>2]|0)+56|0;a[b>>0]=a[b>>0]&-3;i=d;return}function sr(b,d,e,f,g,h,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;l=i;i=i+80|0;if((i|0)>=(j|0))$(80);m=l+72|0;n=l+64|0;o=l+60|0;p=l+56|0;q=l+52|0;r=l+48|0;s=l+44|0;t=l+40|0;u=l+36|0;v=l+32|0;w=l+28|0;x=l+24|0;y=l+20|0;z=l+16|0;A=l+12|0;B=l+8|0;C=l+4|0;D=l;c[l+68>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[r>>2]=h;c[s>>2]=k;c[C>>2]=(c[s>>2]|0)+15;c[C>>2]=(c[C>>2]|0)-(c[C>>2]&15);c[D>>2]=(c[C>>2]|0)+(c[r>>2]<<1)+((S(c[r>>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r>>2]|0)|0))break;a[(c[w>>2]|0)+(c[t>>2]|0)>>0]=c[t>>2];c[t>>2]=(c[t>>2]|0)+1}c[t>>2]=0;while(1){if((c[t>>2]|0)>=(S(c[q>>2]|0,c[r>>2]|0)|0))break;tr((c[y>>2]|0)+(c[t>>2]|0)|0,c[z>>2]|0,(c[w>>2]|0)+(c[t>>2]|0)|0,c[r>>2]|0);ub[c[o>>2]&63](c[v>>2]|0,(c[y>>2]|0)+(c[t>>2]|0)|0,(c[y>>2]|0)+(c[t>>2]|0)|0)|0;Yw(c[z>>2]|0,(c[y>>2]|0)+(c[t>>2]|0)|0,c[r>>2]|0)|0;c[t>>2]=(c[t>>2]|0)+(c[r>>2]|0)}vb[c[p>>2]&15](c[v>>2]|0,c[A>>2]|0,c[x>>2]|0,c[y>>2]|0,c[q>>2]|0);if(Jv(c[x>>2]|0,c[w>>2]|0,S(c[q>>2]|0,c[r>>2]|0)|0)|0){vf(c[B>>2]|0);c[m>>2]=47003;E=c[m>>2]|0;i=l;return E|0}q=(Jv(c[A>>2]|0,c[z>>2]|0,c[r>>2]|0)|0)!=0;vf(c[B>>2]|0);if(q){c[m>>2]=47003;E=c[m>>2]|0;i=l;return E|0}else{c[m>>2]=0;E=c[m>>2]|0;i=l;return E|0}return 0}function tr(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[o>>2]=c[k>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[h>>2]=3;if(!((c[o>>2]|c[p>>2]|c[q>>2])&3)){c[r>>2]=c[o>>2];c[s>>2]=c[p>>2];c[t>>2]=c[q>>2];while(1){if((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0)-2)>>0]=0;a[(c[E>>2]|0)+((c[s>>2]|0)-3)>>0]=0;a[(c[E>>2]|0)+((c[s>>2]|0)-4)>>0]=0;c[u>>2]=0;while(1){if((c[u>>2]|0)>=(S(c[s>>2]|0,c[r>>2]|0)|0))break;o=c[u>>2]&255;a[(c[z>>2]|0)+(c[u>>2]|0)>>0]=o;a[(c[A>>2]|0)+(c[u>>2]|0)>>0]=o;c[u>>2]=(c[u>>2]|0)+1}c[u>>2]=0;while(1){if((c[u>>2]|0)>=(S(c[s>>2]|0,c[r>>2]|0)|0))break;ub[c[p>>2]&63](c[y>>2]|0,(c[B>>2]|0)+(c[u>>2]|0)|0,c[D>>2]|0)|0;c[v>>2]=0;while(1){if((c[v>>2]|0)>=(c[s>>2]|0))break;o=(c[B>>2]|0)+((c[u>>2]|0)+(c[v>>2]|0))|0;a[o>>0]=d[o>>0]^d[(c[z>>2]|0)+((c[u>>2]|0)+(c[v>>2]|0))>>0];c[v>>2]=(c[v>>2]|0)+1}c[v>>2]=c[s>>2];while(1){if((c[v>>2]|0)<=0)break;o=(c[D>>2]|0)+((c[v>>2]|0)-1)|0;a[o>>0]=(a[o>>0]|0)+1<<24>>24;if(a[(c[D>>2]|0)+((c[v>>2]|0)-1)>>0]|0)break;c[v>>2]=(c[v>>2]|0)+-1}c[u>>2]=(c[u>>2]|0)+(c[s>>2]|0)}vb[c[q>>2]&15](c[y>>2]|0,c[E>>2]|0,c[C>>2]|0,c[A>>2]|0,c[r>>2]|0);if(Jv(c[C>>2]|0,c[B>>2]|0,S(c[s>>2]|0,c[r>>2]|0)|0)|0){vf(c[F>>2]|0);c[n>>2]=47101;I=c[n>>2]|0;i=m;return I|0}if(Jv(c[E>>2]|0,c[D>>2]|0,c[s>>2]|0)|0){vf(c[F>>2]|0);c[n>>2]=47101;I=c[n>>2]|0;i=m;return I|0}c[x>>2]=0;while(1){if((c[x>>2]|0)>=(c[r>>2]|0)){J=56;break}Sw(c[D>>2]|0,-1,c[s>>2]|0)|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;break}c[x>>2]=(c[x>>2]|0)+1}if((J|0)==52){vf(c[F>>2]|0);c[n>>2]=47101;I=c[n>>2]|0;i=m;return I|0}else if((J|0)==54){vf(c[F>>2]|0);c[n>>2]=47101;I=c[n>>2]|0;i=m;return I|0}else if((J|0)==56){vf(c[F>>2]|0);c[n>>2]=0;I=c[n>>2]|0;i=m;return I|0}return 0}function xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,aa=0,ba=0,ca=0,da=0;d=i;i=i+352|0;if((i|0)>=(j|0))$(352);e=d+160|0;f=d+128|0;g=d+48|0;h=d+40|0;k=d+32|0;l=d+24|0;m=d+16|0;n=d+8|0;o=d;p=d+344|0;q=d+340|0;r=d+336|0;s=d+332|0;t=d+328|0;u=d+284|0;v=d+224|0;w=d+220|0;x=d+216|0;y=d+212|0;z=d+208|0;A=d+204|0;B=d+200|0;C=d+196|0;D=d+192|0;E=d+188|0;F=d+184|0;G=d+180|0;H=d+176|0;I=d+172|0;J=d+168|0;K=d+164|0;c[q>>2]=a;c[r>>2]=b;c[w>>2]=0;c[x>>2]=0;c[y>>2]=0;c[z>>2]=0;c[A>>2]=0;c[C>>2]=0;c[D>>2]=0;c[E>>2]=0;c[F>>2]=0;c[G>>2]=0;c[H>>2]=0;c[I>>2]=0;b=u;a=b+44|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(a|0));b=v;a=b+60|0;do{c[b>>2]=0;b=b+4|0}while((b|0)<(a|0));c[s>>2]=Gj(c[q>>2]|0,t)|0;if(c[s>>2]|0){c[p>>2]=c[s>>2];L=c[p>>2]|0;i=d;return L|0}c[B>>2]=Tf(c[q>>2]|0,47217,0)|0;if(c[B>>2]|0?(c[A>>2]=_f(c[B>>2]|0,1)|0,Rf(c[B>>2]|0),(c[A>>2]|0)==0):0){c[p>>2]=65;L=c[p>>2]|0;i=d;return L|0}c[B>>2]=Tf(c[q>>2]|0,47177,0)|0;if(!(c[B>>2]|0?(c[s>>2]=Fj(c[B>>2]|0,I,0)|0,Rf(c[B>>2]|0),(c[s>>2]|0)!=0):0))M=8;do if((M|0)==8){c[B>>2]=Tf(c[q>>2]|0,48941,0)|0;if(c[B>>2]|0){c[I>>2]=c[I>>2]|32;Rf(c[B>>2]|0)}if(!((c[t>>2]|0)!=0|(c[A>>2]|0)!=0)){c[p>>2]=68;L=c[p>>2]|0;i=d;return L|0}c[s>>2]=Qh(c[t>>2]|0,c[A>>2]|0,u,t)|0;vf(c[A>>2]|0);c[A>>2]=0;if(!(c[s>>2]|0)){if(Ff(1)|0){b=vi(c[u>>2]|0)|0;a=wi(c[u+4>>2]|0)|0;c[o>>2]=b;c[o+4>>2]=a;Ye(48955,o);if(c[u+40>>2]|0){c[n>>2]=c[u+40>>2];Ye(48980,n)}af(49002,c[u+8>>2]|0);af(49018,c[u+12>>2]|0);af(49034,c[u+16>>2]|0);af(49050,c[u+32>>2]|0);af(49066,c[u+36>>2]|0);sn(49082,u+20|0,0)}c[C>>2]=En(c[u>>2]|0,c[u+4>>2]|0,0,c[u+8>>2]|0,c[u+12>>2]|0,c[u+16>>2]|0)|0;a=c[C>>2]|0;b=c[I>>2]|0;if(c[I>>2]&4096|0)c[s>>2]=ki(v,u,a,b)|0;else c[s>>2]=Ir(v,u,a,b,c[t>>2]|0,y,z)|0;if(!(c[s>>2]|0)){c[w>>2]=Rp(0)|0;c[x>>2]=Rp(0)|0;if(tn(c[w>>2]|0,c[x>>2]|0,v+20|0,c[C>>2]|0)|0){c[m>>2]=49144;We(49096,m)}c[F>>2]=xi(c[w>>2]|0,c[x>>2]|0,c[v+8>>2]|0)|0;do if((c[v+4>>2]|0)==1?!(c[I>>2]&2048|0):0){c[s>>2]=ci(v+44|0,c[C>>2]|0,c[w>>2]|0,c[x>>2]|0,((c[I>>2]&1024|0)!=0^1^1)&1,J,K)|0;if(!(c[s>>2]|0)){c[G>>2]=Rp(0)|0;Ep(c[G>>2]|0,c[J>>2]|0,c[K>>2]<<3)|0;c[J>>2]=0;break}c[p>>2]=c[s>>2];L=c[p>>2]|0;i=d;return L|0}else M=28;while(0);if((M|0)==28){if((c[y>>2]|0)==0?(c[y>>2]=Rp(0)|0,c[z>>2]=Rp(0)|0,tn(c[y>>2]|0,c[z>>2]|0,v+44|0,c[C>>2]|0)|0):0){c[l>>2]=49146;We(49096,l)}c[G>>2]=xi(c[y>>2]|0,c[z>>2]|0,c[v+8>>2]|0)|0}c[H>>2]=c[v+56>>2];c[v+56>>2]=0;if(c[u+40>>2]|0?(c[k>>2]=c[u+40>>2],c[s>>2]=cg(D,0,49148,k)|0,c[s>>2]|0):0)break;if(!(!(c[I>>2]&512|0)?!(c[I>>2]&4096|0):0)){if(c[I>>2]&512|0?c[I>>2]&4096|0:0)N=49187;else N=c[I>>2]&512|0?49159:49173;c[s>>2]=cg(E,0,N,h)|0;if(c[s>>2]|0)break}if(c[I>>2]&512|0?c[u+40>>2]|0:0){b=c[r>>2]|0;a=c[E>>2]|0;O=c[v+8>>2]|0;P=c[v+12>>2]|0;Q=c[v+16>>2]|0;R=c[F>>2]|0;S=c[v+32>>2]|0;T=c[v+36>>2]|0;U=c[G>>2]|0;V=c[D>>2]|0;W=c[E>>2]|0;X=c[v+8>>2]|0;Y=c[v+12>>2]|0;Z=c[v+16>>2]|0;_=c[F>>2]|0;aa=c[v+32>>2]|0;ba=c[v+36>>2]|0;ca=c[G>>2]|0;da=c[H>>2]|0;c[g>>2]=c[D>>2];c[g+4>>2]=a;c[g+8>>2]=O;c[g+12>>2]=P;c[g+16>>2]=Q;c[g+20>>2]=R;c[g+24>>2]=S;c[g+28>>2]=T;c[g+32>>2]=U;c[g+36>>2]=V;c[g+40>>2]=W;c[g+44>>2]=X;c[g+48>>2]=Y;c[g+52>>2]=Z;c[g+56>>2]=_;c[g+60>>2]=aa;c[g+64>>2]=ba;c[g+68>>2]=ca;c[g+72>>2]=da;c[s>>2]=cg(b,0,49207,g)|0}else{b=c[r>>2]|0;da=c[E>>2]|0;ca=c[G>>2]|0;ba=c[D>>2]|0;aa=c[E>>2]|0;_=c[G>>2]|0;Z=c[H>>2]|0;c[f>>2]=c[D>>2];c[f+4>>2]=da;c[f+8>>2]=ca;c[f+12>>2]=ba;c[f+16>>2]=aa;c[f+20>>2]=_;c[f+24>>2]=Z;c[s>>2]=cg(b,0,49343,f)|0}if(((c[s>>2]|0)==0?Ff(1)|0:0)?(af(49419,c[v+8>>2]|0),af(49435,c[v+12>>2]|0),af(49451,c[v+16>>2]|0),af(49467,c[F>>2]|0),af(49483,c[v+32>>2]|0),af(49499,c[v+36>>2]|0),af(49515,c[G>>2]|0),af(49531,c[H>>2]|0),c[I>>2]&4096|0):0)Ye(49547,e)}}}while(0);Dp(c[H>>2]|0);Dp(c[G>>2]|0);Dp(c[F>>2]|0);si(v);An(v+44|0);Dp(c[v+56>>2]|0);si(u);Dp(c[w>>2]|0);Dp(c[x>>2]|0);Dp(c[y>>2]|0);Dp(c[z>>2]|0);In(c[C>>2]|0);Rf(c[E>>2]|0);Rf(c[D>>2]|0);c[p>>2]=c[s>>2];L=c[p>>2]|0;i=d;return L|0}function yr(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;b=i;i=i+176|0;if((i|0)>=(j|0))$(176);d=b+72|0;e=b+64|0;f=b+56|0;g=b+40|0;h=b;k=b+168|0;l=b+164|0;m=b+160|0;n=b+156|0;o=b+152|0;p=b+148|0;q=b+144|0;r=b+140|0;s=b+80|0;t=b+76|0;c[l>>2]=a;c[n>>2]=0;c[o>>2]=0;c[p>>2]=0;c[q>>2]=0;c[r>>2]=0;c[t>>2]=0;a=s;u=a+60|0;do{c[a>>2]=0;a=a+4|0}while((a|0)<(u|0));c[n>>2]=Tf(c[l>>2]|0,47177,0)|0;if(!(c[n>>2]|0?(c[m>>2]=Fj(c[n>>2]|0,o,0)|0,(c[m>>2]|0)!=0):0))v=3;do if((v|0)==3){a=c[l>>2]|0;if(c[o>>2]&512|0){c[h>>2]=s+8;c[h+4>>2]=s+12;c[h+8>>2]=s+16;c[h+12>>2]=q;c[h+16>>2]=s+32;c[h+20>>2]=s+36;c[h+24>>2]=r;c[h+28>>2]=s+56;c[h+32>>2]=0;c[m>>2]=lg(a,0,47534,h)|0}else{c[g>>2]=r;c[g+4>>2]=s+56;c[g+8>>2]=0;c[m>>2]=lg(a,0,47553,g)|0}if(!(c[m>>2]|0)){Rf(c[n>>2]|0);c[n>>2]=Tf(c[l>>2]|0,47217,5)|0;if((c[n>>2]|0?(c[p>>2]=_f(c[n>>2]|0,1)|0,c[p>>2]|0):0)?(c[m>>2]=Th(c[p>>2]|0,s,s+4|0,s+8|0,s+12|0,s+16|0,q,s+32|0,s+36|0)|0,c[m>>2]|0):0){c[k>>2]=c[m>>2];w=c[k>>2]|0;i=b;return w|0}if(c[q>>2]|0?(yn(s+20|0),c[m>>2]=zi(s+20|0,c[q>>2]|0)|0,c[m>>2]|0):0)break;if(!(c[p>>2]|0)){c[s>>2]=c[o>>2]&4096|0?2:0;c[s+4>>2]=c[o>>2]&4096|0?1:0}if(Ff(1)|0){a=vi(c[s>>2]|0)|0;u=wi(c[s+4>>2]|0)|0;c[f>>2]=a;c[f+4>>2]=u;Ye(48462,f);if(c[s+40>>2]|0){c[e>>2]=c[s+40>>2];Ye(48486,e)}af(48507,c[s+8>>2]|0);af(48523,c[s+12>>2]|0);af(48539,c[s+16>>2]|0);sn(48555,s+20|0,0);af(48569,c[s+32>>2]|0);af(48585,c[s+36>>2]|0);af(48601,c[r>>2]|0);if(!(Wg()|0))af(48617,c[s+56>>2]|0)}if((((((c[s+8>>2]|0?c[s+12>>2]|0:0)?c[s+16>>2]|0:0)?c[s+20>>2]|0:0)?c[s+32>>2]|0:0)?c[s+36>>2]|0:0)?c[s+56>>2]|0:0){c[t>>2]=En(c[s>>2]|0,c[s+4>>2]|0,0,c[s+8>>2]|0,c[s+12>>2]|0,c[s+16>>2]|0)|0;if(!(c[r>>2]|0)){c[m>>2]=68;break}yn(s+44|0);if((c[(c[t>>2]|0)+4>>2]|0)==1)c[m>>2]=hi(c[r>>2]|0,c[t>>2]|0,s+44|0,0,0)|0;else c[m>>2]=zi(s+44|0,c[r>>2]|0)|0;if(c[m>>2]|0)break;if(!(Hr(s,c[t>>2]|0,c[o>>2]|0)|0))break;c[m>>2]=7;break}c[m>>2]=68}}while(0);In(c[t>>2]|0);Tp(c[s+8>>2]|0);Tp(c[s+12>>2]|0);Tp(c[s+16>>2]|0);Tp(c[q>>2]|0);An(s+20|0);Tp(c[s+32>>2]|0);Tp(c[s+36>>2]|0);Tp(c[r>>2]|0);An(s+44|0);Tp(c[s+56>>2]|0);vf(c[p>>2]|0);Rf(c[n>>2]|0);if(Ff(1)|0){c[d>>2]=Bt(c[m>>2]|0)|0;Ye(48633,d)}c[k>>2]=c[m>>2];w=c[k>>2]|0;i=b;return w|0}function zr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0;e=i;i=i+256|0;if((i|0)>=(j|0))$(256);f=e+72|0;g=e+64|0;h=e+56|0;k=e+48|0;l=e+40|0;m=e+32|0;n=e;o=e+248|0;p=e+244|0;q=e+240|0;r=e+236|0;s=e+232|0;t=e+192|0;u=e+184|0;v=e+180|0;w=e+176|0;x=e+172|0;y=e+168|0;z=e+164|0;A=e+160|0;B=e+104|0;C=e+96|0;D=e+84|0;E=e+80|0;F=e+76|0;c[p>>2]=a;c[q>>2]=b;c[r>>2]=d;c[u>>2]=0;c[v>>2]=0;c[w>>2]=0;c[x>>2]=0;c[y>>2]=0;c[z>>2]=0;c[A>>2]=0;c[C>>2]=0;d=B;b=d+56|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(b|0));Lj(t,0,Dr(c[r>>2]|0)|0);c[s>>2]=Nj(c[q>>2]|0,A,t)|0;do if(!(c[s>>2]|0)){if(Ff(1)|0)af(48122,c[A>>2]|0);if(c[A>>2]|0?c[(c[A>>2]|0)+12>>2]&4|0:0){c[s>>2]=79;break}q=c[r>>2]|0;c[n>>2]=B+8;c[n+4>>2]=B+12;c[n+8>>2]=B+16;c[n+12>>2]=w;c[n+16>>2]=B+32;c[n+20>>2]=B+36;c[n+24>>2]=x;c[n+28>>2]=0;c[s>>2]=lg(q,0,48139,n)|0;if(!(c[s>>2]|0)){if(c[w>>2]|0?(yn(B+20|0),c[s>>2]=zi(B+20|0,c[w>>2]|0)|0,c[s>>2]|0):0)break;Rf(c[u>>2]|0);c[u>>2]=Tf(c[r>>2]|0,47217,5)|0;if((c[u>>2]|0?(c[v>>2]=_f(c[u>>2]|0,1)|0,c[v>>2]|0):0)?(c[s>>2]=Qh(0,c[v>>2]|0,B,0)|0,c[s>>2]|0):0){c[o>>2]=c[s>>2];G=c[o>>2]|0;i=e;return G|0}if(!(c[v>>2]|0)){c[B>>2]=0;c[B+4>>2]=0}if(Ff(1)|0){q=vi(c[B>>2]|0)|0;d=wi(c[B+4>>2]|0)|0;c[m>>2]=q;c[m+4>>2]=d;Ye(48155,m);if(c[B+40>>2]|0){c[l>>2]=c[B+40>>2];Ye(48180,l)}af(48202,c[B+8>>2]|0);af(48219,c[B+12>>2]|0);af(48236,c[B+16>>2]|0);sn(48253,B+20|0,0);af(48268,c[B+32>>2]|0);af(48285,c[B+36>>2]|0);af(48302,c[x>>2]|0)}if(((((c[B+8>>2]|0?c[B+12>>2]|0:0)?c[B+16>>2]|0:0)?c[B+20>>2]|0:0)?c[B+32>>2]|0:0)?(c[B+36>>2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|0;g=e+64|0;h=e+56|0;k=e+48|0;l=e+40|0;m=e+8|0;n=e;o=e+248|0;p=e+244|0;q=e+240|0;r=e+236|0;s=e+232|0;t=e+192|0;u=e+188|0;v=e+184|0;w=e+124|0;x=e+120|0;y=e+116|0;z=e+112|0;A=e+100|0;B=e+88|0;C=e+84|0;D=e+80|0;E=e+76|0;c[p>>2]=a;c[q>>2]=b;c[r>>2]=d;c[u>>2]=0;c[v>>2]=0;c[x>>2]=0;c[y>>2]=0;c[z>>2]=0;c[C>>2]=0;d=w;b=d+60|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(b|0));yn(A);yn(B);Lj(t,1,Dr(c[r>>2]|0)|0);c[s>>2]=Jj(c[q>>2]|0,12976,u,t)|0;do if((c[s>>2]|0)==0?(q=c[u>>2]|0,c[n>>2]=v,c[n+4>>2]=0,c[s>>2]=lg(q,0,47833,n)|0,(c[s>>2]|0)==0):0){if(Ff(1)|0)af(47835,c[v>>2]|0);if(c[v>>2]|0?c[(c[v>>2]|0)+12>>2]&4|0:0){c[s>>2]=79;break}q=c[r>>2]|0;c[m>>2]=w+8;c[m+4>>2]=w+12;c[m+8>>2]=w+16;c[m+12>>2]=x;c[m+16>>2]=w+32;c[m+20>>2]=w+36;c[m+24>>2]=w+56;c[m+28>>2]=0;c[s>>2]=lg(q,0,47852,m)|0;if(!(c[s>>2]|0)){if(c[x>>2]|0?(yn(w+20|0),c[s>>2]=zi(w+20|0,c[x>>2]|0)|0,c[s>>2]|0):0)break;Rf(c[u>>2]|0);c[u>>2]=Tf(c[r>>2]|0,47217,5)|0;if((c[u>>2]|0?(c[y>>2]=_f(c[u>>2]|0,1)|0,c[y>>2]|0):0)?(c[s>>2]=Qh(0,c[y>>2]|0,w,0)|0,c[s>>2]|0):0){c[o>>2]=c[s>>2];F=c[o>>2]|0;i=e;return F|0}if(!(c[y>>2]|0)){c[w>>2]=0;c[w+4>>2]=0}if(Ff(1)|0){q=vi(c[w>>2]|0)|0;d=wi(c[w+4>>2]|0)|0;c[l>>2]=q;c[l+4>>2]=d;Ye(47868,l);if(c[w+40>>2]|0){c[k>>2]=c[w+40>>2];Ye(47893,k)}af(47915,c[w+8>>2]|0);af(47932,c[w+12>>2]|0);af(47949,c[w+16>>2]|0);sn(47966,w+20|0,0);af(47981,c[w+32>>2]|0);af(47998,c[w+36>>2]|0);if(!(Wg()|0))af(48015,c[w+56>>2]|0)}if((((((c[w+8>>2]|0?c[w+12>>2]|0:0)?c[w+16>>2]|0:0)?c[w+20>>2]|0:0)?c[w+32>>2]|0:0)?c[w+36>>2]|0:0)?c[w+56>>2]|0:0){c[s>>2]=zi(A,c[v>>2]|0)|0;if(c[s>>2]|0){An(A);c[o>>2]=c[s>>2];F=c[o>>2]|0;i=e;return F|0}c[z>>2]=En(c[w>>2]|0,c[w+4>>2]|0,0,c[w+8>>2]|0,c[w+12>>2]|0,c[w+16>>2]|0)|0;$n(B,c[w+56>>2]|0,A,c[z>>2]|0);c[D>>2]=Rp(0)|0;c[E>>2]=Rp(0)|0;if(tn(c[D>>2]|0,c[E>>2]|0,B,c[z>>2]|0)|0)We(48032,h);c[C>>2]=xi(c[D>>2]|0,c[E>>2]|0,c[w+8>>2]|0)|0;if(c[C>>2]|0)c[s>>2]=0;else c[s>>2]=Et()|0;Dp(c[D>>2]|0);Dp(c[E>>2]|0);if(Ff(1)|0)af(48072,c[C>>2]|0);if(c[s>>2]|0)break;d=c[p>>2]|0;c[g>>2]=c[C>>2];c[s>>2]=cg(d,0,48089,g)|0;break}c[s>>2]=68}}while(0);An(B);An(A);Tp(c[C>>2]|0);Tp(c[w+8>>2]|0);Tp(c[w+12>>2]|0);Tp(c[w+16>>2]|0);Tp(c[x>>2]|0);An(w+20|0);Tp(c[w+32>>2]|0);Tp(c[w+36>>2]|0);Tp(c[w+56>>2]|0);Tp(c[v>>2]|0);vf(c[y>>2]|0);Rf(c[u>>2]|0);In(c[z>>2]|0);Mj(t);if(Ff(1)|0){c[f>>2]=Bt(c[s>>2]|0)|0;Ye(48100,f)}c[o>>2]=c[s>>2];F=c[o>>2]|0;i=e;return F|0}function Br(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;e=i;i=i+272|0;if((i|0)>=(j|0))$(272);f=e+104|0;g=e+96|0;h=e+88|0;k=e+80|0;l=e+72|0;m=e+56|0;n=e+40|0;o=e;p=e+256|0;q=e+252|0;r=e+248|0;s=e+244|0;t=e+240|0;u=e+200|0;v=e+192|0;w=e+188|0;x=e+184|0;y=e+180|0;z=e+176|0;A=e+116|0;B=e+112|0;C=e+108|0;c[q>>2]=a;c[r>>2]=b;c[s>>2]=d;c[v>>2]=0;c[w>>2]=0;c[x>>2]=0;c[y>>2]=0;c[z>>2]=0;c[B>>2]=0;c[C>>2]=0;d=A;b=d+60|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(b|0));Lj(u,2,0);c[t>>2]=Nj(c[r>>2]|0,v,u)|0;do if(!(c[t>>2]|0)){if(Ff(1)|0)af(47518,c[v>>2]|0);r=c[s>>2]|0;if(c[u+12>>2]&512|0){c[o>>2]=A+8;c[o+4>>2]=A+12;c[o+8>>2]=A+16;c[o+12>>2]=y;c[o+16>>2]=A+32;c[o+20>>2]=A+36;c[o+24>>2]=z;c[o+28>>2]=A+56;c[o+32>>2]=0;c[t>>2]=lg(r,0,47534,o)|0}else{c[n>>2]=z;c[n+4>>2]=A+56;c[n+8>>2]=0;c[t>>2]=lg(r,0,47553,n)|0}if(!(c[t>>2]|0)){if(c[y>>2]|0?(yn(A+20|0),c[t>>2]=zi(A+20|0,c[y>>2]|0)|0,c[t>>2]|0):0)break;Rf(c[w>>2]|0);c[w>>2]=Tf(c[s>>2]|0,47217,5)|0;if((c[w>>2]|0?(c[x>>2]=_f(c[w>>2]|0,1)|0,c[x>>2]|0):0)?(c[t>>2]=Qh(0,c[x>>2]|0,A,0)|0,c[t>>2]|0):0){c[p>>2]=c[t>>2];D=c[p>>2]|0;i=e;return D|0}if(!(c[x>>2]|0)){c[A>>2]=c[u+12>>2]&4096|0?2:0;c[A+4>>2]=c[u+12>>2]&4096|0?1:0}if(Ff(1)|0){r=vi(c[A>>2]|0)|0;d=wi(c[A+4>>2]|0)|0;b=c[u+12>>2]&4096|0?47328:72319;c[m>>2]=r;c[m+4>>2]=d;c[m+8>>2]=b;Ye(47559,m);if(c[A+40>>2]|0){c[l>>2]=c[A+40>>2];Ye(47585,l)}af(47606,c[A+8>>2]|0);af(47622,c[A+12>>2]|0);af(47638,c[A+16>>2]|0);sn(47654,A+20|0,0);af(47668,c[A+32>>2]|0);af(47684,c[A+36>>2]|0);af(47700,c[z>>2]|0);if(!(Wg()|0))af(47716,c[A+56>>2]|0)}if((((((c[A+8>>2]|0?c[A+12>>2]|0:0)?c[A+16>>2]|0:0)?c[A+20>>2]|0:0)?c[A+32>>2]|0:0)?c[A+36>>2]|0:0)?c[A+56>>2]|0:0){c[B>>2]=Rp(0)|0;c[C>>2]=Rp(0)|0;if(c[u+12>>2]&4096|0){c[t>>2]=pi(c[v>>2]|0,A,c[B>>2]|0,c[C>>2]|0,c[u+16>>2]|0,c[z>>2]|0)|0;if(c[t>>2]|0)break;b=c[q>>2]|0;d=c[C>>2]|0;c[k>>2]=c[B>>2];c[k+4>>2]=d;c[t>>2]=cg(b,0,47732,k)|0;break}b=c[v>>2]|0;d=c[B>>2]|0;r=c[C>>2]|0;if(c[u+12>>2]&8192|0){c[t>>2]=yt(b,A,d,r)|0;if(c[t>>2]|0)break;a=c[q>>2]|0;E=c[C>>2]|0;c[h>>2]=c[B>>2];c[h+4>>2]=E;c[t>>2]=cg(a,0,47759,h)|0;break}else{c[t>>2]=wt(b,A,d,r,c[u+12>>2]|0,c[u+16>>2]|0)|0;if(c[t>>2]|0)break;r=c[q>>2]|0;d=c[C>>2]|0;c[g>>2]=c[B>>2];c[g+4>>2]=d;c[t>>2]=cg(r,0,47785,g)|0;break}}c[t>>2]=68}}while(0);Tp(c[A+8>>2]|0);Tp(c[A+12>>2]|0);Tp(c[A+16>>2]|0);Tp(c[y>>2]|0);An(A+20|0);Tp(c[A+32>>2]|0);Tp(c[A+36>>2]|0);Tp(c[z>>2]|0);An(A+44|0);Tp(c[A+56>>2]|0);Tp(c[B>>2]|0);Tp(c[C>>2]|0);vf(c[x>>2]|0);Tp(c[v>>2]|0);Rf(c[w>>2]|0);Mj(u);if(Ff(1)|0){c[f>>2]=Bt(c[t>>2]|0)|0;Ye(47812,f)}c[p>>2]=c[t>>2];D=c[p>>2]|0;i=e;return D|0}function Cr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;e=i;i=i+272|0;if((i|0)>=(j|0))$(272);f=e+80|0;g=e+72|0;h=e+56|0;k=e+48|0;l=e+16|0;m=e;n=e+256|0;o=e+252|0;p=e+248|0;q=e+244|0;r=e+240|0;s=e+200|0;t=e+192|0;u=e+188|0;v=e+184|0;w=e+180|0;x=e+176|0;y=e+172|0;z=e+168|0;A=e+112|0;B=e+104|0;C=e+100|0;D=e+96|0;E=e+92|0;F=e+88|0;G=e+84|0;c[o>>2]=a;c[p>>2]=b;c[q>>2]=d;c[t>>2]=0;c[u>>2]=0;c[v>>2]=0;c[w>>2]=0;c[x>>2]=0;c[y>>2]=0;c[z>>2]=0;d=A;b=d+56|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(b|0));Lj(s,3,Dr(c[q>>2]|0)|0);c[r>>2]=Nj(c[p>>2]|0,z,s)|0;a:do if(!(c[r>>2]|0)){if(Ff(1)|0)af(47260,c[z>>2]|0);c[r>>2]=Ij(c[o>>2]|0,12976,t,B)|0;if((c[r>>2]|0)==0?(p=c[t>>2]|0,d=c[B>>2]&4096|0?47276:47174,c[m>>2]=x,c[m+4>>2]=y,c[m+8>>2]=0,c[r>>2]=lg(p,0,d,m)|0,(c[r>>2]|0)==0):0){if(Ff(1)|0){af(47280,c[x>>2]|0);af(47296,c[y>>2]|0)}if(c[s+12>>2]&4096^c[B>>2]&4096|0){c[r>>2]=70;break}d=c[q>>2]|0;if(c[s+12>>2]&512|0){c[l>>2]=A+8;c[l+4>>2]=A+12;c[l+8>>2]=A+16;c[l+12>>2]=v;c[l+16>>2]=A+32;c[l+20>>2]=A+32;c[l+24>>2]=w;c[l+28>>2]=0;c[r>>2]=lg(d,0,47312,l)|0}else{c[k>>2]=w;c[k+4>>2]=0;c[r>>2]=lg(d,0,47212,k)|0}if(!(c[r>>2]|0)){if(c[v>>2]|0?(yn(A+20|0),c[r>>2]=zi(A+20|0,c[v>>2]|0)|0,c[r>>2]|0):0)break;Rf(c[t>>2]|0);c[t>>2]=Tf(c[q>>2]|0,47217,5)|0;if((c[t>>2]|0?(c[u>>2]=_f(c[t>>2]|0,1)|0,c[u>>2]|0):0)?(c[r>>2]=Qh(0,c[u>>2]|0,A,0)|0,c[r>>2]|0):0){c[n>>2]=c[r>>2];H=c[n>>2]|0;i=e;return H|0}if(!(c[u>>2]|0)){c[A>>2]=c[B>>2]&4096|0?2:0;c[A+4>>2]=c[B>>2]&4096|0?1:0}if(Ff(1)|0){d=vi(c[A>>2]|0)|0;p=wi(c[A+4>>2]|0)|0;b=c[B>>2]&4096|0?47328:72319;c[h>>2]=d;c[h+4>>2]=p;c[h+8>>2]=b;Ye(47335,h);if(c[A+40>>2]|0){c[g>>2]=c[A+40>>2];Ye(47361,g)}af(47382,c[A+8>>2]|0);af(47398,c[A+12>>2]|0);af(47414,c[A+16>>2]|0);sn(47430,A+20|0,0);af(47444,c[A+32>>2]|0);af(47460,c[A+36>>2]|0);af(47476,c[w>>2]|0)}if(((((c[A+8>>2]|0?c[A+12>>2]|0:0)?c[A+16>>2]|0:0)?c[A+20>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t>>2]|0);Mj(s);if(Ff(1)|0){if(c[r>>2]|0)I=Bt(c[r>>2]|0)|0;else I=47492;c[f>>2]=I;Ye(47497,f)}c[n>>2]=c[r>>2];H=c[n>>2]|0;i=e;return H|0}function Dr(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+20|0;e=b+16|0;f=b+12|0;g=b+8|0;h=b+4|0;k=b;c[e>>2]=a;c[h>>2]=0;c[f>>2]=Tf(c[e>>2]|0,47258,1)|0;if(c[f>>2]|0){c[g>>2]=$f(c[f>>2]|0,1,5)|0;Rf(c[f>>2]|0);if(c[g>>2]|0){c[h>>2]=lo(c[g>>2]|0)|0;Tp(c[g>>2]|0)}}else{c[f>>2]=Tf(c[e>>2]|0,47217,5)|0;if(!(c[f>>2]|0)){c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}c[k>>2]=_f(c[f>>2]|0,1)|0;Rf(c[f>>2]|0);if(!(c[k>>2]|0)){c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}if(Qh(0,c[k>>2]|0,0,h)|0)c[h>>2]=0;vf(c[k>>2]|0)}c[d>>2]=c[h>>2];l=c[d>>2]|0;i=b;return l|0}function Er(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e;c[g>>2]=a;c[e+4>>2]=b;c[h>>2]=d;if((c[g>>2]|0)!=18){c[f>>2]=4;k=c[f>>2]|0;i=e;return k|0}else{c[f>>2]=Gr(c[h>>2]|0)|0;k=c[f>>2]|0;i=e;return k|0}return 0}function Fr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;e=i;i=i+208|0;if((i|0)>=(j|0))$(208);f=e+88|0;g=e+80|0;h=e+72|0;k=e+64|0;l=e+32|0;m=e;n=e+172|0;o=e+168|0;p=e+164|0;q=e+160|0;r=e+132|0;s=e+128|0;t=e+124|0;u=e+120|0;v=e+116|0;w=e+112|0;x=e+176|0;y=e+108|0;z=e+104|0;A=e+100|0;B=e+96|0;c[n>>2]=b;c[o>>2]=d;c[t>>2]=0;c[u>>2]=0;c[v>>2]=0;c[w>>2]=0;c[s>>2]=0;while(1){if((c[s>>2]|0)>=7)break;c[r+(c[s>>2]<<2)>>2]=0;c[s>>2]=(c[s>>2]|0)+1}c[q>>2]=Tf(c[o>>2]|0,47177,0)|0;if(!(c[q>>2]|0?(c[p>>2]=Fj(c[q>>2]|0,u,0)|0,(c[p>>2]|0)!=0):0))C=6;a:do if((C|0)==6){d=(c[u>>2]&4096|0)!=0;b=c[o>>2]|0;do if(c[u>>2]&512|0){D=r+4|0;E=r+8|0;F=r+12|0;G=r+16|0;H=r+20|0;I=r+24|0;if(d){c[m>>2]=r;c[m+4>>2]=D;c[m+8>>2]=E;c[m+12>>2]=F;c[m+16>>2]=G;c[m+20>>2]=H;c[m+24>>2]=I;c[m+28>>2]=0;c[p>>2]=lg(b,0,47183,m)|0;break}else{c[l>>2]=r;c[l+4>>2]=D;c[l+8>>2]=E;c[l+12>>2]=F;c[l+16>>2]=G;c[l+20>>2]=H;c[l+24>>2]=I;c[l+28>>2]=0;c[p>>2]=lg(b,0,47198,l)|0;break}}else{I=r+24|0;if(d){c[k>>2]=I;c[k+4>>2]=0;c[p>>2]=lg(b,0,47212,k)|0;break}else{c[h>>2]=I;c[h+4>>2]=0;c[p>>2]=lg(b,0,47215,h)|0;break}}while(0);if(!(c[p>>2]|0)){Rf(c[q>>2]|0);c[q>>2]=Tf(c[o>>2]|0,47217,5)|0;if((c[q>>2]|0?(c[t>>2]=_f(c[q>>2]|0,1)|0,c[t>>2]|0):0)?(c[p>>2]=Th(c[t>>2]|0,v,w,r,r+4|0,r+8|0,r+12|0,r+16|0,r+20|0)|0,c[p>>2]|0):0)break;if(!(c[t>>2]|0)){c[v>>2]=c[u>>2]&4096|0?2:0;c[w>>2]=c[u>>2]&4096|0?1:0}c[s>>2]=0;while(1){if((c[s>>2]|0)>=7)break;if(!(c[r+(c[s>>2]<<2)>>2]|0)){C=22;break}ko(c[r+(c[s>>2]<<2)>>2]|0);c[s>>2]=(c[s>>2]|0)+1}if((C|0)==22){c[p>>2]=68;break}if(c[u>>2]&4096|0){if((c[w>>2]|0)==1)c[p>>2]=ei(c[r+24>>2]|0,256)|0;else c[p>>2]=69;if(c[p>>2]|0)break}c[s>>2]=0;b:while(1){if((c[s>>2]|0)>=7)break a;do if((c[s>>2]|0)!=5){if(c[r+(c[s>>2]<<2)>>2]|0?c[(c[r+(c[s>>2]<<2)>>2]|0)+12>>2]&4|0:0){c[y>>2]=Gp(c[r+(c[s>>2]<<2)>>2]|0,z)|0;c[z>>2]=(((c[z>>2]|0)+7|0)>>>0)/8|0;b=c[z>>2]|0;c[g>>2]=a[47223+(c[s>>2]|0)>>0];c[g+4>>2]=b;Su(x,30,47230,g)|0;b=c[n>>2]|0;$i(b,x,hv(x)|0);$i(c[n>>2]|0,c[y>>2]|0,c[z>>2]|0);$i(c[n>>2]|0,47239,1);break}c[A>>2]=Vo(c[r+(c[s>>2]<<2)>>2]|0,0,B,0)|0;if(!(c[A>>2]|0))break b;b=c[B>>2]|0;c[f>>2]=a[47223+(c[s>>2]|0)>>0];c[f+4>>2]=b;Su(x,30,47230,f)|0;b=c[n>>2]|0;$i(b,x,hv(x)|0);$i(c[n>>2]|0,c[A>>2]|0,c[B>>2]|0);$i(c[n>>2]|0,47239,1);vf(c[A>>2]|0)}while(0);c[s>>2]=(c[s>>2]|0)+1}c[p>>2]=Et()|0}}while(0);vf(c[t>>2]|0);Rf(c[q>>2]|0);c[s>>2]=0;while(1){if((c[s>>2]|0)>=7)break;Tp(c[r+(c[s>>2]<<2)>>2]|0);c[s>>2]=(c[s>>2]|0)+1}i=e;return c[p>>2]|0}function Gr(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;c[f>>2]=47241;c[g>>2]=0;if(!(c[g>>2]|0)){c[d>>2]=0;h=c[d>>2]|0;i=b;return h|0}if(c[e>>2]|0)Eb[c[e>>2]&1](47251,18,c[f>>2]|0,c[g>>2]|0);c[d>>2]=50;h=c[d>>2]|0;i=b;return h|0}function Hr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=i;i=i+112|0;if((i|0)>=(j|0))$(112);f=e+64|0;g=e+56|0;h=e+48|0;k=e+40|0;l=e+32|0;m=e+24|0;n=e+16|0;o=e+8|0;p=e;q=e+108|0;r=e+104|0;s=e+100|0;t=e+96|0;u=e+84|0;v=e+80|0;w=e+76|0;x=e+72|0;y=e+68|0;c[q>>2]=a;c[r>>2]=b;c[s>>2]=d;c[t>>2]=1;c[x>>2]=0;c[y>>2]=0;yn(u);c[v>>2]=Rp(0)|0;if((c[c[r>>2]>>2]|0)==1)c[w>>2]=0;else c[w>>2]=Rp(0)|0;a:do if(!(bo((c[q>>2]|0)+20|0,c[r>>2]|0)|0)){if(Ff(1)|0)Ye(48654,p)}else{if(!(vo(c[(c[q>>2]|0)+20+8>>2]|0,0)|0)){if(!(Ff(1)|0))break;Ye(48706,o);break}if((c[(c[q>>2]|0)+4>>2]|0)!=1?($n(u,c[(c[q>>2]|0)+32>>2]|0,(c[q>>2]|0)+20|0,c[r>>2]|0),vo(c[u+8>>2]|0,0)|0):0){if(!(Ff(1)|0))break;Ye(48751,n);break}if(!(vo(c[(c[q>>2]|0)+44+8>>2]|0,0)|0)){if(!(Ff(1)|0))break;Ye(48798,m);break}if(!(Ai(u,c[r>>2]|0,(c[q>>2]|0)+20|0,c[(c[q>>2]|0)+56>>2]|0)|0)){if(!(Ff(1)|0))break;Ye(48844,l);break}if(tn(c[v>>2]|0,c[w>>2]|0,u,c[r>>2]|0)|0){if(!(Ff(1)|0))break;Ye(48798,k);break}do if(!(c[s>>2]&4096)){if(!(vo(c[(c[q>>2]|0)+44+8>>2]|0,1)|0)){if(!(wo(c[v>>2]|0,c[(c[q>>2]|0)+44>>2]|0)|0)){if(c[w>>2]|0)break;if(!(wo(c[w>>2]|0,c[(c[q>>2]|0)+44+4>>2]|0)|0))break}if(!(Ff(1)|0))break a;Ye(48881,h);break a}c[x>>2]=Rp(0)|0;c[y>>2]=Rp(0)|0;if(tn(c[x>>2]|0,c[y>>2]|0,(c[q>>2]|0)+44|0,c[r>>2]|0)|0){if(!(Ff(1)|0))break a;Ye(48798,g);break a}if((wo(c[v>>2]|0,c[x>>2]|0)|0)==0?(wo(c[w>>2]|0,c[y>>2]|0)|0)==0:0)break;if(!(Ff(1)|0))break a;Ye(48881,f);break a}while(0);c[t>>2]=0}while(0);Dp(c[x>>2]|0);Dp(c[v>>2]|0);Dp(c[w>>2]|0);Dp(c[y>>2]|0);An(u);i=e;return c[t>>2]|0}function Ir(b,d,e,f,g,h,k){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;l=i;i=i+96|0;if((i|0)>=(j|0))$(96);m=l+16|0;n=l+8|0;o=l;p=l+80|0;q=l+76|0;r=l+72|0;s=l+68|0;t=l+64|0;u=l+60|0;v=l+56|0;w=l+44|0;x=l+40|0;y=l+36|0;z=l+32|0;A=l+28|0;B=l+24|0;C=l+20|0;c[p>>2]=b;c[q>>2]=d;c[r>>2]=e;c[s>>2]=f;c[t>>2]=g;c[u>>2]=h;c[v>>2]=k;c[A>>2]=lo(c[(c[q>>2]|0)+8>>2]|0)|0;yn(w);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0);else ho(o,r,c[y>>2]|0);if((wo(c[C>>2]|0,c[z>>2]|0)|0)>=0){Dp(c[C>>2]|0);Jr((c[p>>2]|0)+44|0,w);if(!(Ff(1)|0))break;Ye(49622,m);break}if(!(c[c[q>>2]>>2]|0)){Dp(c[z>>2]|0);c[z>>2]=c[C>>2]}else{Dp(c[y>>2]|0);c[y>>2]=c[C>>2]}ho(c[(c[p>>2]|0)+56>>2]|0,c[(c[q>>2]|0)+32>>2]|0,c[(c[p>>2]|0)+56>>2]|0);r=(c[p>>2]|0)+44|0;o=c[y>>2]|0;B=c[z>>2]|0;Bn(r,o,B,Wp(1)|0)|0;if(Ff(1)|0)Ye(49582,n)}else Jr((c[p>>2]|0)+44|0,w);while(0);c[c[u>>2]>>2]=c[y>>2];c[c[v>>2]>>2]=c[z>>2];An(w);if(c[s>>2]&16384|0){i=l;return 0}s=c[p>>2]|0;w=(c[t>>2]|0)-64|0;if((c[c[p>>2]>>2]|0)!=1){Kr(s,w);i=l;return 0}else{Lr(s,w);i=l;return 0}return 0}function Jr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;Kp(c[c[e>>2]>>2]|0,c[c[f>>2]>>2]|0)|0;Kp(c[(c[e>>2]|0)+4>>2]|0,c[(c[f>>2]|0)+4>>2]|0)|0;Kp(c[(c[e>>2]|0)+8>>2]|0,c[(c[f>>2]|0)+8>>2]|0)|0;i=d;return}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=i;i=i+224|0;if((i|0)>=(j|0))$(224);e=d+168|0;f=d+24|0;g=d+16|0;h=d+8|0;k=d+164|0;l=d+160|0;m=d+104|0;n=d+100|0;o=d+88|0;p=d+84|0;q=d+80|0;r=d+76|0;s=d+72|0;t=d+28|0;c[k>>2]=a;c[l>>2]=b;c[n>>2]=Rp(c[l>>2]|0)|0;c[p>>2]=Rp(c[l>>2]|0)|0;c[q>>2]=Rp(c[l>>2]|0)|0;c[r>>2]=Rp(c[l>>2]|0)|0;c[s>>2]=Rp(c[l>>2]|0)|0;if(Ff(1)|0)Ye(49675,d);yn(o);b=e;a=c[k>>2]|0;u=b+44|0;do{c[b>>2]=c[a>>2];b=b+4|0;a=a+4|0}while((b|0)<(u|0));ti(t,e);b=m;a=t;u=b+44|0;do{c[b>>2]=c[a>>2];b=b+4|0;a=a+4|0}while((b|0)<(u|0));yn(m+44|0);Jr(m+44|0,(c[k>>2]|0)+44|0);Up(c[n>>2]|0,c[l>>2]|0,0);if(wt(c[n>>2]|0,c[k>>2]|0,c[r>>2]|0,c[s>>2]|0,0,0)|0)We(49805,h);if(xt(c[n>>2]|0,m,c[r>>2]|0,c[s>>2]|0)|0)We(49835,g);if(!(Ff(1)|0)){v=m+44|0;An(v);si(m);An(o);w=c[s>>2]|0;Dp(w);x=c[r>>2]|0;Dp(x);y=c[q>>2]|0;Dp(y);z=c[p>>2]|0;Dp(z);A=c[n>>2]|0;Dp(A);i=d;return}Ye(49873,f);v=m+44|0;An(v);si(m);An(o);w=c[s>>2]|0;Dp(w);x=c[r>>2]|0;Dp(x);y=c[q>>2]|0;Dp(y);z=c[p>>2]|0;Dp(z);A=c[n>>2]|0;Dp(A);i=d;return}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+224|0;if((i|0)>=(j|0))$(224);f=e+168|0;g=e+24|0;h=e+16|0;k=e+8|0;l=e+164|0;m=e+160|0;n=e+104|0;o=e+100|0;p=e+88|0;q=e+84|0;r=e+80|0;s=e+76|0;t=e+32|0;u=e+28|0;c[l>>2]=b;c[m>>2]=d;if(Ff(1)|0)Ye(49675,e);yn(p);d=f;b=c[l>>2]|0;v=d+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,r=0,s=0,t=0,u=0,v=0,w=0,x=0;h=i;i=i+1056|0;if((i|0)>=(j|0))$(1056);k=h+44|0;l=h+40|0;m=h+36|0;n=h+32|0;o=h+28|0;p=h+24|0;q=h+20|0;r=h+16|0;s=h+12|0;t=h+8|0;u=h+4|0;v=h+48|0;w=h;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[r>>2]=0;c[s>>2]=0;g=oj(c[l>>2]|0)|0;if((g|0)!=(c[q>>2]|0)){c[k>>2]=49934;x=c[k>>2]|0;i=h;return x|0}c[s>>2]=Si(t,c[l>>2]|0,0)|0;if(c[s>>2]|0){c[k>>2]=49975;x=c[k>>2]|0;i=h;return x|0}a:do switch(c[m>>2]|0){case 0:{$i(c[t>>2]|0,c[n>>2]|0,c[o>>2]|0);break}case 1:{Sw(v|0,97,1e3)|0;c[w>>2]=0;while(1){if((c[w>>2]|0)>=1e3)break a;$i(c[t>>2]|0,v,1e3);c[w>>2]=(c[w>>2]|0)+1}break}default:c[r>>2]=49995}while(0);if((c[r>>2]|0)==0?(c[u>>2]=lj(c[t>>2]|0,c[l>>2]|0)|0,Jv(c[u>>2]|0,c[p>>2]|0,c[q>>2]|0)|0):0)c[r>>2]=50012;_i(c[t>>2]|0);c[k>>2]=c[r>>2];x=c[k>>2]|0;i=h;return x|0}function Nr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+8|0;o=f+4|0;p=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=c[h>>2];c[m>>2]=c[g>>2];c[n>>2]=0;c[o>>2]=c[(c[m>>2]|0)+148>>2];if(128<(c[o>>2]|0)>>>0)Re(50028,112,50042);if(!(c[(c[m>>2]|0)+152>>2]|0)){i=f;return}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&63](c[k>>2]|0,(c[f>>2]|0)+68|0,c[m>>2]|0)|0;c[(c[f>>2]|0)+88>>2]=0;break}}while(0);if((c[h>>2]|0)>>>0>=(c[m>>2]|0)>>>0){c[o>>2]=c[h>>2]&~((c[m>>2]|0)-1);c[l>>2]=ub[c[(c[(c[f>>2]|0)+84>>2]|0)+8>>2]&63](c[k>>2]|0,c[g>>2]|0,c[o>>2]|0)|0;c[g>>2]=(c[g>>2]|0)+(c[o>>2]|0);c[h>>2]=(c[h>>2]|0)-(c[o>>2]|0)}if(c[h>>2]|0){Qr((c[f>>2]|0)+68+(c[(c[f>>2]|0)+88>>2]|0)|0,c[g>>2]|0,c[h>>2]|0);g=(c[f>>2]|0)+88|0;c[g>>2]=(c[g>>2]|0)+(c[h>>2]|0)}if(!(c[l>>2]|0)){i=e;return}bf(c[l>>2]|0);cf();i=e;return}function Pr(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];c[e>>2]=(c[e>>2]|0)+3;c[e>>2]=(c[e>>2]|0)+(0-(c[e>>2]&3));i=b;return c[e>>2]|0}function Qr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+8|0;o=f+4|0;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=c[g>>2];c[m>>2]=c[h>>2];c[f>>2]=3;if(!((c[l>>2]|c[m>>2])&3)){c[n>>2]=c[l>>2];c[o>>2]=c[m>>2];while(1){if((c[k>>2]|0)>>>0<4)break;h=c[o>>2]|0;c[o>>2]=h+4;g=c[h>>2]|0;h=c[n>>2]|0;c[n>>2]=h+4;c[h>>2]=g;c[k>>2]=(c[k>>2]|0)-4}c[l>>2]=c[n>>2];c[m>>2]=c[o>>2]}while(1){if(!(c[k>>2]|0))break;o=c[m>>2]|0;c[m>>2]=o+1;n=a[o>>0]|0;o=c[l>>2]|0;c[l>>2]=o+1;a[o>>0]=n;c[k>>2]=(c[k>>2]|0)+-1}i=f;return}function Rr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=Pr(c[e>>2]|0)|0;c[h>>2]=Bb[c[(c[(c[e>>2]|0)+84>>2]|0)+12>>2]&7](c[g>>2]|0,(c[e>>2]|0)+68|0,c[(c[e>>2]|0)+88>>2]|0,c[f>>2]|0)|0;bf(c[h>>2]|0);cf();i=d;return}function Sr(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;g=i;i=i+80|0;if((i|0)>=(j|0))$(80);h=g+8|0;k=g+40|0;l=g+36|0;m=g+32|0;n=g+28|0;o=g+48|0;p=g+20|0;q=g+16|0;r=g+44|0;s=g;t=g+12|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[g+24>>2]=pg()|0;if((c[17757]|0)==0?(c[17757]=1,c[17758]=Tr()|0,c[17758]|0):0){c[h>>2]=c[17758];Ve(50063,h)}if((c[n>>2]|0)!=32){c[k>>2]=44;u=c[k>>2]|0;i=g;return u|0}if(c[17758]|0){c[k>>2]=50;u=c[k>>2]|0;i=g;return u|0}c[(c[l>>2]|0)+84>>2]=13e3;Qr(o,c[m>>2]|0,32);Ur(c[l>>2]|0,o);c[p>>2]=o;c[q>>2]=32;a[r>>0]=0;o=s;c[o>>2]=d[r>>0];c[o+4>>2]=0;while(1){if(!(c[p>>2]&7|0?(c[q>>2]|0)!=0:0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}if((c[q>>2]|0)>>>0>=8){o=s;l=ex(c[o>>2]|0,c[o+4>>2]|0,16843009,16843009)|0;o=s;c[o>>2]=l;c[o+4>>2]=D;do{c[t>>2]=c[p>>2];o=s;l=c[o+4>>2]|0;m=c[t>>2]|0;c[m>>2]=c[o>>2];c[m+4>>2]=l;c[q>>2]=(c[q>>2]|0)-8;c[p>>2]=(c[p>>2]|0)+8}while((c[q>>2]|0)>>>0>=8)}while(1){if(!(c[q>>2]|0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}c[k>>2]=0;u=c[k>>2]|0;i=g;return u|0}function Tr(){var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;b=i;i=i+512|0;if((i|0)>=(j|0))$(512);d=b+192|0;e=b+100|0;f=b+8|0;g=b+472|0;h=b+216|0;k=b+200|0;l=b+4|0;m=b;n=e;o=n+92|0;do{c[n>>2]=0;n=n+4|0}while((n|0)<(o|0));n=f;o=n+92|0;do{c[n>>2]=0;n=n+4|0}while((n|0)<(o|0));n=k;o=n+16|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(o|0));_r(k,50094,131,50225);if(Jv(50257,k,16)|0){c[d>>2]=50273;p=c[d>>2]|0;i=b;return p|0}n=k;o=n+16|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(o|0));Sr(e,50225,32)|0;Or(e,50094,32);Or(e,50126,64);Or(e,50190,16);Or(e,50206,8);Or(e,50214,4);Or(e,50218,2);Or(e,50220,1);Or(e,50221,1);Or(e,50222,1);Or(e,50223,1);Or(e,50224,1);Rr(e,k);if(Jv(50257,k,16)|0){c[d>>2]=50297;p=c[d>>2]|0;i=b;return p|0}n=k;o=n+16|0;do{a[n>>0]=0;n=n+1|0}while((n|0)<(o|0));_r(k,50321,16,50337);if(Jv(50369,k,16)|0){c[d>>2]=50385;p=c[d>>2]|0;i=b;return p|0}Sr(f,50409,32)|0;c[l>>2]=0;while(1){if((c[l>>2]|0)>>>0>=256)break;c[m>>2]=0;while(1){if((c[m>>2]|0)>>>0>=32)break;a[g+(c[m>>2]|0)>>0]=c[l>>2];c[m>>2]=(c[m>>2]|0)+1}c[m>>2]=0;while(1){if((c[m>>2]|0)>>>0>=(c[l>>2]|0)>>>0)break;a[h+(c[m>>2]|0)>>0]=c[l>>2];c[m>>2]=(c[m>>2]|0)+1}_r(k,h,c[l>>2]|0,g);Or(f,k,16);c[l>>2]=(c[l>>2]|0)+1}Rr(f,k);if(Jv(50441,k,16)|0){c[d>>2]=50457;p=c[d>>2]|0;i=b;return p|0}else{c[d>>2]=0;p=c[d>>2]|0;i=b;return p|0}return 0}function Ur(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=Pr(c[e>>2]|0)|0;c[(c[e>>2]|0)+88>>2]=0;xb[c[(c[(c[e>>2]|0)+84>>2]|0)+4>>2]&7](c[g>>2]|0,c[f>>2]|0);i=d;return}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=d;c[h>>2]=c[f>>2];f=(Zr(c[g>>2]|0)|0)&67108863;c[c[h>>2]>>2]=f;f=(Zr((c[g>>2]|0)+3|0)|0)>>>2&67108611;c[(c[h>>2]|0)+4>>2]=f;f=(Zr((c[g>>2]|0)+6|0)|0)>>>4&67092735;c[(c[h>>2]|0)+8>>2]=f;f=(Zr((c[g>>2]|0)+9|0)|0)>>>6&66076671;c[(c[h>>2]|0)+12>>2]=f;f=(Zr((c[g>>2]|0)+12|0)|0)>>>8&1048575;c[(c[h>>2]|0)+16>>2]=f;c[(c[h>>2]|0)+20>>2]=0;c[(c[h>>2]|0)+20+4>>2]=0;c[(c[h>>2]|0)+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,s=0,t=0;h=i;i=i+144|0;if((i|0)>=(j|0))$(144);k=h+124|0;l=h+120|0;m=h+116|0;n=h+112|0;o=h+20|0;p=h+16|0;q=h+12|0;r=h+128|0;s=h;t=h+8|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;g=o;f=g+92|0;do{c[g>>2]=0;g=g+4|0}while((g|0)<(f|0));Sr(o,c[n>>2]|0,32)|0;Or(o,c[l>>2]|0,c[m>>2]|0);Rr(o,c[k>>2]|0);c[p>>2]=o;c[q>>2]=92;a[r>>0]=0;o=s;c[o>>2]=d[r>>0];c[o+4>>2]=0;while(1){if(!(c[p>>2]&7|0?(c[q>>2]|0)!=0:0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}if((c[q>>2]|0)>>>0>=8){o=s;k=ex(c[o>>2]|0,c[o+4>>2]|0,16843009,16843009)|0;o=s;c[o>>2]=k;c[o+4>>2]=D;do{c[t>>2]=c[p>>2];o=s;k=c[o+4>>2]|0;m=c[t>>2]|0;c[m>>2]=c[o>>2];c[m+4>>2]=k;c[q>>2]=(c[q>>2]|0)-8;c[p>>2]=(c[p>>2]|0)+8}while((c[q>>2]|0)>>>0>=8)}while(1){if(!(c[q>>2]|0))break;a[c[p>>2]>>0]=a[r>>0]|0;c[p>>2]=(c[p>>2]|0)+1;c[q>>2]=(c[q>>2]|0)+-1}i=h;return}function $r(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(c[d>>2]|0){bs();i=b;return}else{as();i=b;return}}function as(){if(c[17782]|0)return;c[17782]=1;return}function bs(){var a=0,b=0;as();cs();if(c[17759]|0){gs();return}if(c[17760]|0)a=Df(1,664)|0;else a=Cf(1,664)|0;c[17759]=a;if(c[17760]|0)b=Df(1,664)|0;else b=Cf(1,664)|0;c[17761]=b;c[17762]=ds()|0;if(!(c[17762]|0)){c[17763]=1;c[17762]=3}c[17764]=fs()|0;gs();return}function cs(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[d>>2]=Ht(13016)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;We(50662,b)}else{c[17765]=1;i=a;return}}function ds(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;if(($v(52863,4)|0)==0?($v(52875,4)|0)==0:0){c[d>>2]=4;i=a;return c[d>>2]|0}We(Je(50624)|0,b);return 0}function es(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+24|0;k=g+20|0;l=g+12|0;m=g+8|0;n=g+4|0;c[g+28>>2]=b;c[h>>2]=d;c[k>>2]=e;c[g+16>>2]=f;if(!(c[17766]|0)){Te(Je(50518)|0,g);c[17766]=1;f=kb(0)|0;vw(S(f,_v()|0)|0)}f=zf(c[k>>2]|0)|0;c[m>>2]=f;c[n>>2]=f;c[l>>2]=c[k>>2];while(1){f=c[l>>2]|0;c[l>>2]=f+-1;if(!f)break;f=1+~~(+(ww()|0)*256.0/2147483648.0)-1&255;e=c[n>>2]|0;c[n>>2]=e+1;a[e>>0]=f}hs(c[m>>2]|0,c[k>>2]|0,c[h>>2]|0);vf(c[m>>2]|0);i=g;return 0}function fs(){return 0}function gs(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[17765]=0;c[d>>2]=It(13016)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;We(50481,b)}else{i=a;return}}function hs(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+16|0;k=g+12|0;l=g+8|0;m=g+4|0;n=g;c[h>>2]=b;c[k>>2]=e;c[l>>2]=f;c[m>>2]=c[h>>2];c[n>>2]=0;if(!(c[17765]|0))Se(50569,50584,1074,50600);c[17775]=(c[17775]|0)+(c[k>>2]|0);c[17776]=(c[17776]|0)+1;while(1){h=c[k>>2]|0;c[k>>2]=h+-1;if(!h)break;h=c[m>>2]|0;c[m>>2]=h+1;f=d[h>>0]|0;h=c[17777]|0;c[17777]=h+1;e=(c[17759]|0)+h|0;a[e>>0]=(d[e>>0]|0)^f;c[n>>2]=(c[n>>2]|0)+1;if((c[17777]|0)>>>0<600)continue;if(!((c[l>>2]|0)>>>0<3|(c[17778]|0)!=0)?(c[17779]=(c[17779]|0)+(c[n>>2]|0),c[n>>2]=0,(c[17779]|0)>>>0>=600):0)c[17778]=1;c[17777]=0;is(c[17759]|0);c[17767]=(c[17767]|0)+1;c[17780]=((c[k>>2]|0)!=0^1)&1}i=g;return}function is(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=i;i=i+224|0;if((i|0)>=(j|0))$(224);f=e+208|0;g=e+204|0;h=e+200|0;k=e+196|0;l=e+192|0;m=e+188|0;n=e;o=e+184|0;c[f>>2]=b;c[g>>2]=(c[f>>2]|0)+600;if(!(c[17765]|0))Se(50569,50584,615,50615);$k(n);c[k>>2]=(c[f>>2]|0)+600;b=c[g>>2]|0;p=(c[k>>2]|0)+-20|0;q=b+20|0;do{a[b>>0]=a[p>>0]|0;b=b+1|0;p=p+1|0}while((b|0)<(q|0));b=(c[g>>2]|0)+20|0;p=c[f>>2]|0;q=b+44|0;do{a[b>>0]=a[p>>0]|0;b=b+1|0;p=p+1|0}while((b|0)<(q|0));al(n,c[g>>2]|0);b=c[f>>2]|0;p=c[g>>2]|0;q=b+20|0;do{a[b>>0]=a[p>>0]|0;b=b+1|0;p=p+1|0}while((b|0)<(q|0));a:do if(c[17781]|0?(c[f>>2]|0)==(c[17759]|0):0){c[l>>2]=0;while(1){if((c[l>>2]|0)>=20)break a;r=(c[f>>2]|0)+(c[l>>2]|0)|0;a[r>>0]=(d[r>>0]|0)^(d[72298+(c[l>>2]|0)>>0]|0);c[l>>2]=(c[l>>2]|0)+1}}while(0);c[h>>2]=c[f>>2];c[m>>2]=1;while(1){if((c[m>>2]|0)>=30)break;b=c[g>>2]|0;p=c[h>>2]|0;q=b+20|0;do{a[b>>0]=a[p>>0]|0;b=b+1|0;p=p+1|0}while((b|0)<(q|0));c[h>>2]=(c[h>>2]|0)+20;b:do if(((c[h>>2]|0)+20+64|0)>>>0<(c[k>>2]|0)>>>0){b=(c[g>>2]|0)+20|0;p=(c[h>>2]|0)+20|0;q=b+44|0;do{a[b>>0]=a[p>>0]|0;b=b+1|0;p=p+1|0}while((b|0)<(q|0))}else{c[o>>2]=(c[h>>2]|0)+20;c[l>>2]=20;while(1){if((c[l>>2]|0)>=64)break b;if((c[o>>2]|0)>>>0>=(c[k>>2]|0)>>>0)c[o>>2]=c[f>>2];r=c[o>>2]|0;c[o>>2]=r+1;a[(c[g>>2]|0)+(c[l>>2]|0)>>0]=a[r>>0]|0;c[l>>2]=(c[l>>2]|0)+1}}while(0);al(n,c[g>>2]|0);b=c[h>>2]|0;p=c[g>>2]|0;q=b+20|0;do{a[b>>0]=a[p>>0]|0;b=b+1|0;p=p+1|0}while((b|0)<(q|0));c[m>>2]=(c[m>>2]|0)+1}if((c[f>>2]|0)!=(c[17759]|0)){bf(384);cf();i=e;return}bl(72298,c[f>>2]|0,600);c[17781]=1;bf(384);cf();i=e;return}function js(){cs();nt(0,0,0,0)|0;c[17778]=0;gs();return}function ks(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;a=i;i=i+48|0;if((i|0)>=(j|0))$(48);b=a;d=c[17767]|0;e=c[17769]|0;f=c[17770]|0;g=c[17776]|0;h=c[17775]|0;k=c[17768]|0;l=c[17772]|0;m=c[17771]|0;n=c[17774]|0;o=c[17773]|0;p=(kt()|0)!=0;c[b>>2]=600;c[b+4>>2]=d;c[b+8>>2]=e;c[b+12>>2]=f;c[b+16>>2]=g;c[b+20>>2]=h;c[b+24>>2]=k;c[b+28>>2]=l;c[b+32>>2]=m;c[b+36>>2]=n;c[b+40>>2]=o;c[b+44>>2]=p?50699:72319;Te(50715,b);i=a;return}function ls(){c[17760]=1;return}function ms(){c[17783]=1;return}function ns(a){a=a|0;var b=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[b>>2]=a;i=b;return}function os(a){a=a|0;var b=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[b>>2]=a;i=b;return 0}function ps(){bs();return (c[17763]|0?1:(c[17783]|0)!=0)&1|0}function qs(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;bs();if((c[17783]|0)!=0&(c[h>>2]|0)>>>0>1)c[h>>2]=1;c[h>>2]=c[h>>2]&3;cs();d=c[g>>2]|0;if((c[h>>2]|0)>>>0>=2){c[17773]=(c[17773]|0)+d;c[17774]=(c[17774]|0)+1}else{c[17771]=(c[17771]|0)+d;c[17772]=(c[17772]|0)+1}c[k>>2]=c[f>>2];while(1){if((c[g>>2]|0)>>>0<=0)break;c[l>>2]=(c[g>>2]|0)>>>0>600?600:c[g>>2]|0;rs(c[k>>2]|0,c[l>>2]|0,c[h>>2]|0);c[g>>2]=(c[g>>2]|0)-(c[l>>2]|0);c[k>>2]=(c[k>>2]|0)+(c[l>>2]|0)}gs();i=e;return}function rs(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;i=i+64|0;if((i|0)>=(j|0))$(64);g=f;h=f+48|0;k=f+44|0;l=f+40|0;m=f+36|0;n=f+32|0;o=f+28|0;p=f+24|0;q=f+20|0;r=f+16|0;s=f+12|0;t=f+8|0;u=f+4|0;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(c[17765]|0))Se(50569,50584,934,50839);while(1){c[p>>2]=_v()|0;if((c[3265]|0)==-1)c[3265]=c[p>>2];if((c[3265]|0)!=(c[p>>2]|0)){c[3265]=c[p>>2];c[q>>2]=c[3265];hs(q,4,0);c[17780]=0}if(!(c[17765]|0)){v=8;break}if((c[k>>2]|0)>>>0>600){v=10;break}if((c[17778]|0)==0?ss()|0:0)c[17778]=1;if(!((c[l>>2]|0)!=2|(c[17784]|0)!=0)){c[17785]=0;c[r>>2]=(c[k>>2]|0)-(c[17785]|0);if((c[r>>2]|0)>>>0>=16){if((c[r>>2]|0)>>>0>600){v=18;break}}else c[r>>2]=16;ts(4,c[r>>2]|0,2);c[17785]=(c[17785]|0)+(c[r>>2]|0);c[17784]=1}if((c[l>>2]|0)==2?(c[17785]|0)>>>0<(c[k>>2]|0)>>>0:0){if((c[17785]|0)<0)c[17785]=0;c[s>>2]=(c[k>>2]|0)-(c[17785]|0);if((c[s>>2]|0)>>>0>600){v=25;break}ts(4,c[s>>2]|0,2);c[17785]=(c[17785]|0)+(c[s>>2]|0)}while(1){if(!((c[17778]|0)!=0^1))break;us()}vs();c[t>>2]=c[3265];hs(t,4,0);if(!(c[17780]|0)){is(c[17759]|0);c[17767]=(c[17767]|0)+1}c[m>>2]=0;c[o>>2]=c[17761];c[n>>2]=c[17759];while(1){if((c[m>>2]|0)>=150)break;c[c[o>>2]>>2]=(c[c[n>>2]>>2]|0)+-1515870811;c[m>>2]=(c[m>>2]|0)+1;c[o>>2]=(c[o>>2]|0)+4;c[n>>2]=(c[n>>2]|0)+4}is(c[17759]|0);c[17767]=(c[17767]|0)+1;is(c[17761]|0);c[17768]=(c[17768]|0)+1;while(1){e=c[k>>2]|0;c[k>>2]=e+-1;if(!e)break;e=c[17786]|0;c[17786]=e+1;d=a[(c[17761]|0)+e>>0]|0;e=c[h>>2]|0;c[h>>2]=e+1;a[e>>0]=d;if((c[17786]|0)>>>0>=600)c[17786]=0;c[17785]=(c[17785]|0)+-1}if((c[17785]|0)<0)c[17785]=0;Sw(c[17761]|0,0,600)|0;d=_v()|0;if((d|0)==(c[p>>2]|0)){v=43;break}c[u>>2]=_v()|0;hs(u,4,0);c[17780]=0;c[3265]=c[u>>2]}if((v|0)==8)Se(50569,50584,953,50839);else if((v|0)==10)Xe(50849,g);else if((v|0)==18)Re(50584,979,50839);else if((v|0)==25)Re(50584,995,50839);else if((v|0)==43){i=f;return}}function ss(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;a=i;i=i+768|0;if((i|0)>=(j|0))$(768);b=a+48|0;d=a+40|0;e=a+32|0;f=a+24|0;g=a+16|0;h=a+8|0;k=a+152|0;l=a+148|0;m=a+72|0;n=a+160|0;o=a+68|0;p=a+64|0;q=a+60|0;r=a+56|0;if(!(c[17765]|0))Se(50569,50584,743,50990);if(!(c[17787]|0)){c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}c[l>>2]=gw(c[17787]|0,0,a)|0;if((c[l>>2]|0)==-1?(c[(xu()|0)>>2]|0)==2:0){c[17788]=1;c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}if((c[l>>2]|0)==-1){t=Je(51005)|0;u=c[17787]|0;v=Nu(c[(xu()|0)>>2]|0)|0;c[h>>2]=u;c[h+4>>2]=v;Te(t,h);c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}h=(ws(c[l>>2]|0,c[17787]|0,0)|0)!=0;t=c[l>>2]|0;if(h){Kv(t)|0;c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}if(cw(t,m)|0){t=Je(51026)|0;h=c[17787]|0;v=Nu(c[(xu()|0)>>2]|0)|0;c[g>>2]=h;c[g+4>>2]=v;Te(t,g);Kv(c[l>>2]|0)|0;c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}if((c[m+12>>2]&61440|0)!=32768){g=Je(51047)|0;c[f>>2]=c[17787];Te(g,f);Kv(c[l>>2]|0)|0;c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}if(!(c[m+36>>2]|0)){Te(Je(51085)|0,e);Kv(c[l>>2]|0)|0;c[17788]=1;c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}if((c[m+36>>2]|0)!=600){Te(Je(51118)|0,d);Kv(c[l>>2]|0)|0;c[k>>2]=0;s=c[k>>2]|0;i=a;return s|0}do{c[o>>2]=fw(c[l>>2]|0,n,600)|0;if((c[o>>2]|0)!=-1)break}while((c[(xu()|0)>>2]|0)==4);if((c[o>>2]|0)!=600){o=Je(51172)|0;d=c[17787]|0;m=Nu(c[(xu()|0)>>2]|0)|0;c[b>>2]=d;c[b+4>>2]=m;We(o,b)}Kv(c[l>>2]|0)|0;hs(n,600,0);c[p>>2]=_v()|0;hs(p,4,0);c[q>>2]=kb(0)|0;hs(q,4,0);c[r>>2]=Ta()|0;hs(r,4,0);ts(0,16,0);c[17788]=1;c[k>>2]=1;s=c[k>>2]|0;i=a;return s|0}function ts(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(!(c[17762]|0))We(50901,e);if((Bb[c[17762]&7](3,c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0)<0)We(50952,e+8|0);else{i=e;return}}function us(){c[17769]=(c[17769]|0)+1;ts(3,120,1);return}function vs(){var a=0,b=0,d=0,e=0,f=0;a=i;i=i+160|0;if((i|0)>=(j|0))$(160);b=a+144|0;d=a+8|0;e=a+4|0;f=a;if(!(c[17765]|0))Se(50569,50584,1180,50881);c[17770]=(c[17770]|0)+1;if(c[17764]|0)xb[c[17764]&7](3,2);if(lb(b|0,0)|0)Re(50584,1198,50881);else{hs(b,4,2);hs(b+4|0,4,2);Bw(0,d)|0;hs(d,136,2);Sw(d|0,0,136)|0;c[e>>2]=kb(0)|0;hs(e,4,2);c[f>>2]=Ta()|0;hs(f,4,2);lt(3,2);i=a;return}}function ws(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;i=i+64|0;if((i|0)>=(j|0))$(64);g=f+16|0;h=f+8|0;k=f;l=f+60|0;m=f+56|0;n=f+52|0;o=f+48|0;p=f+32|0;q=f+24|0;r=f+20|0;c[m>>2]=a;c[n>>2]=d;c[o>>2]=e;c[r>>2]=0;c[p>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;c[p+12>>2]=0;b[p>>1]=c[o>>2]|0?1:0;b[p+2>>1]=0;while(1){o=c[m>>2]|0;c[k>>2]=p;if((Lv(o,13,k)|0)!=-1){s=10;break}if((c[(xu()|0)>>2]|0)!=11?(c[(xu()|0)>>2]|0)!=13:0){s=5;break}if((c[r>>2]|0)>2){o=Je(51214)|0;c[g>>2]=c[n>>2];Te(o,g)}c[q>>2]=c[r>>2];c[q+4>>2]=25e4;dw(0,0,0,0,q)|0;if((c[r>>2]|0)>=10)continue;c[r>>2]=(c[r>>2]|0)+1}if((s|0)==5){r=Je(51193)|0;q=c[n>>2]|0;n=Nu(c[(xu()|0)>>2]|0)|0;c[h>>2]=q;c[h+4>>2]=n;Te(r,h);c[l>>2]=-1;t=c[l>>2]|0;i=f;return t|0}else if((s|0)==10){c[l>>2]=0;t=c[l>>2]|0;i=f;return t|0}return 0}function xs(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(c[17787]|0)Re(50584,673,51243);else{c[17787]=Ef(c[d>>2]|0)|0;i=b;return}}function ys(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;a=i;i=i+64|0;if((i|0)>=(j|0))$(64);b=a+40|0;d=a+32|0;e=a+24|0;f=a+16|0;g=a+8|0;h=a+60|0;k=a+56|0;l=a+52|0;m=a+48|0;as();cs();if(!((c[17787]|0)!=0&(c[17759]|0)!=0&(c[17778]|0)!=0)){gs();i=a;return}if(!(c[17788]|0)){gs();Te(Je(51273)|0,a);i=a;return}c[m>>2]=0;c[k>>2]=c[17761];c[h>>2]=c[17759];while(1){if((c[m>>2]|0)>=150)break;c[c[k>>2]>>2]=(c[c[h>>2]>>2]|0)+-1515870811;c[m>>2]=(c[m>>2]|0)+1;c[k>>2]=(c[k>>2]|0)+4;c[h>>2]=(c[h>>2]|0)+4}is(c[17759]|0);c[17767]=(c[17767]|0)+1;is(c[17761]|0);c[17768]=(c[17768]|0)+1;h=c[17787]|0;c[g>>2]=384;c[l>>2]=gw(h,65,g)|0;do if((c[l>>2]|0)!=-1){g=(ws(c[l>>2]|0,c[17787]|0,1)|0)!=0;h=c[l>>2]|0;if(g){Kv(h)|0;break}if(pw(h,0)|0){h=Je(51332)|0;g=c[17787]|0;k=Nu(c[(xu()|0)>>2]|0)|0;c[e>>2]=g;c[e+4>>2]=k;Te(h,e);Kv(c[l>>2]|0)|0;break}do{c[m>>2]=ew(c[l>>2]|0,c[17761]|0,600)|0;if((c[m>>2]|0)!=-1)break}while((c[(xu()|0)>>2]|0)==4);if((c[m>>2]|0)!=600){h=Je(51332)|0;k=c[17787]|0;g=Nu(c[(xu()|0)>>2]|0)|0;c[d>>2]=k;c[d+4>>2]=g;Te(h,d)}if(Kv(c[l>>2]|0)|0){h=Je(51354)|0;g=c[17787]|0;k=Nu(c[(xu()|0)>>2]|0)|0;c[b>>2]=g;c[b+4>>2]=k;Te(h,b)}}else{h=Je(51309)|0;k=c[17787]|0;g=Nu(c[(xu()|0)>>2]|0)|0;c[f>>2]=k;c[f+4>>2]=g;Te(h,f)}while(0);gs();i=a;return}function zs(){as();cs();if(!(c[17759]|0)){gs();return}vs();gs();return}function As(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Bs();if(!(c[d>>2]|0)){i=b;return}Cs();do if(c[17789]|0){if(c[(c[17790]|0)+52>>2]|0)Se(51376,51404,767,51418);if(c[(c[17791]|0)+52>>2]|0)Se(51443,51404,768,51418);if(c[(c[17792]|0)+52>>2]|0)Se(51473,51404,769,51418);else{Es(c[17790]|0);Es(c[17791]|0);Es(c[17792]|0);break}}else{c[17789]=Bf(48)|0;c[17790]=Cf(1,68)|0;Ds(c[17790]|0);c[17791]=Df(1,68)|0;Ds(c[17791]|0);c[17792]=Df(1,68)|0;Ds(c[17792]|0)}while(0);Fs();i=b;return}function Bs(){if(c[17794]|0)return;c[17794]=1;c[17793]=0;return}function Cs(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[d>>2]=Ht(13064)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;We(51588,b)}else{c[17793]=1;i=a;return}}function Ds(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=b;a[c[e>>2]>>0]=17;a[(c[e>>2]|0)+16>>0]=42;a[(c[e>>2]|0)+33>>0]=-119;a[(c[e>>2]|0)+50>>0]=-4;i=d;return}function Es(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b;f=b+4|0;c[f>>2]=a;if((((d[c[f>>2]>>0]|0|0)==17?(d[(c[f>>2]|0)+16>>0]|0|0)==42:0)?(d[(c[f>>2]|0)+33>>0]|0|0)==137:0)?(d[(c[f>>2]|0)+50>>0]|0|0)==252:0){i=b;return}c[e>>2]=c[f>>2];We(51542,e)}function Fs(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[17793]=0;c[d>>2]=It(13064)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;We(51506,b)}else{i=a;return}}function Gs(){Cs();nt(0,0,0,0)|0;Fs();return}function Hs(){return}function Is(){return 0}function Js(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;As(1);Cs();d=c[f>>2]|0;f=c[g>>2]|0;if((c[h>>2]|0)==2){Ks(d,f,c[17792]|0);Fs();i=e;return}else{Ks(d,f,c[17791]|0);Fs();i=e;return}}
-function Nj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;e=i;i=i+160|0;if((i|0)>=(j|0))$(160);f=e+144|0;g=e+140|0;h=e+136|0;k=e+132|0;l=e+128|0;m=e+124|0;n=e+120|0;o=e+116|0;p=e+112|0;q=e+108|0;r=e+104|0;s=e+100|0;t=e+96|0;u=e+92|0;v=e+88|0;w=e+84|0;x=e+80|0;y=e+76|0;z=e+72|0;A=e+68|0;B=e+64|0;C=e+60|0;D=e+56|0;E=e+52|0;F=e+48|0;G=e+44|0;H=e+40|0;I=e+36|0;J=e+32|0;K=e+28|0;L=e+24|0;M=e+20|0;N=e+16|0;O=e+12|0;P=e+8|0;Q=e+4|0;R=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=0;c[r>>2]=0;c[s>>2]=0;c[c[h>>2]>>2]=0;c[m>>2]=Tf(c[g>>2]|0,37953,0)|0;if(!(c[m>>2]|0)){d=$f(c[g>>2]|0,0,0)|0;c[c[h>>2]>>2]=d;c[f>>2]=c[c[h>>2]>>2]|0?0:65;S=c[f>>2]|0;i=e;return S|0}c[t>>2]=Tf(c[m>>2]|0,47177,0)|0;if(c[t>>2]|0){if(Fj(c[t>>2]|0,s,(c[k>>2]|0)+8|0)|0)c[r>>2]=1;Rf(c[t>>2]|0)}if((c[(c[k>>2]|0)+8>>2]|0)==5)c[(c[k>>2]|0)+8>>2]=0;c[n>>2]=Tf(c[m>>2]|0,37958,0)|0;if(c[n>>2]|0)T=0;else T=Tf(c[m>>2]|0,40906,0)|0;c[o>>2]=T;a:do if(((c[n>>2]|0)!=0^1)&1^((c[o>>2]|0)!=0^1)&1|0){if(c[r>>2]|0){c[l>>2]=72;break}if((c[(c[k>>2]|0)+8>>2]|0)==0?c[s>>2]&4096|0:0){if(!(c[o>>2]|0)){c[l>>2]=65;break}c[u>>2]=Tf(c[m>>2]|0,37847,0)|0;if(c[u>>2]|0){c[q>>2]=Xf(c[u>>2]|0,1,p)|0;if(c[q>>2]|0){T=Kj(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=T;if(!(c[(c[k>>2]|0)+16>>2]|0))c[l>>2]=5}else c[l>>2]=68;Rf(c[u>>2]|0)}else c[l>>2]=65;if(c[l>>2]|0)break;c[v>>2]=Zf(c[o>>2]|0,1,w)|0;if(c[v>>2]|0){if(c[w>>2]<<3>>>0<(c[w>>2]|0)>>>0){vf(c[v>>2]|0);c[l>>2]=67}}else{c[w>>2]=0;c[v>>2]=pf(1)|0;if(!(c[v>>2]|0))c[l>>2]=Et()|0}if(c[l>>2]|0)break;T=Ep(0,c[v>>2]|0,c[w>>2]<<3)|0;c[c[h>>2]>>2]=T;break}do if(c[n>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==0:0){if((c[s>>2]&16|0)==0?(c[s>>2]&2|0)==0:0)break;if((Uf(c[n>>2]|0)|0)!=3){c[l>>2]=65;break a}T=Xf(c[n>>2]|0,1,p)|0;c[q>>2]=T;if(!((T|0)!=0&(c[p>>2]|0)!=0)){c[l>>2]=65;break a}T=Kj(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=T;if(!(c[(c[k>>2]|0)+16>>2]|0)){c[l>>2]=5;break a}T=Zf(c[n>>2]|0,2,y)|0;c[x>>2]=T;if(!T){c[l>>2]=65;break a}T=c[x>>2]|0;if(c[y>>2]<<3>>>0<(c[y>>2]|0)>>>0){vf(T);c[l>>2]=67;break a}else{t=Ep(0,T,c[y>>2]<<3)|0;c[c[h>>2]>>2]=t;break a}}while(0);if(c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==0:0){if(c[s>>2]&2|0){c[l>>2]=70;break}t=$f(c[o>>2]|0,1,5)|0;c[c[h>>2]>>2]=t;if(c[c[h>>2]>>2]|0)break;c[l>>2]=65;break}if((c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==1:0)?(c[c[k>>2]>>2]|0)==0:0){c[C>>2]=0;c[D>>2]=0;t=Xf(c[o>>2]|0,1,A)|0;c[z>>2]=t;if(!((t|0)!=0&(c[A>>2]|0)!=0)){c[l>>2]=65;break}c[B>>2]=Tf(c[m>>2]|0,37863,0)|0;if(c[B>>2]|0){c[q>>2]=Xf(c[B>>2]|0,1,p)|0;do if(c[q>>2]|0){if((c[p>>2]|0)>>>0>0){c[C>>2]=pf(c[p>>2]|0)|0;if(c[C>>2]|0){Yw(c[C>>2]|0,c[q>>2]|0,c[p>>2]|0)|0;c[D>>2]=c[p>>2];break}else{c[l>>2]=Et()|0;break}}}else c[l>>2]=68;while(0);Rf(c[B>>2]|0);if(c[l>>2]|0)break}c[l>>2]=cl(c[h>>2]|0,c[(c[k>>2]|0)+4>>2]|0,c[z>>2]|0,c[A>>2]|0,c[C>>2]|0,c[D>>2]|0)|0;vf(c[C>>2]|0);break}do if(c[n>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==1:0){if((c[c[k>>2]>>2]|0)!=2?(c[c[k>>2]>>2]|0)!=3:0)break;if((Uf(c[n>>2]|0)|0)!=3){c[l>>2]=65;break a}t=Xf(c[n>>2]|0,1,p)|0;c[q>>2]=t;if(!((t|0)!=0&(c[p>>2]|0)!=0)){c[l>>2]=65;break a}t=Kj(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=t;if(!(c[(c[k>>2]|0)+16>>2]|0)){c[l>>2]=5;break a}t=Xf(c[n>>2]|0,2,F)|0;c[E>>2]=t;if((t|0)!=0&(c[F>>2]|0)!=0){c[l>>2]=gl(c[h>>2]|0,c[(c[k>>2]|0)+4>>2]|0,c[E>>2]|0,c[F>>2]|0,c[(c[k>>2]|0)+16>>2]|0)|0;break a}else{c[l>>2]=65;break a}}while(0);do if(c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==2:0){if((c[c[k>>2]>>2]|0)!=2?(c[c[k>>2]>>2]|0)!=3:0)break;if((Uf(c[o>>2]|0)|0)!=2){c[l>>2]=65;break a}t=Xf(c[o>>2]|0,1,H)|0;c[G>>2]=t;if((t|0)!=0&(c[H>>2]|0)!=0){c[l>>2]=hl(c[h>>2]|0,c[(c[k>>2]|0)+4>>2]|0,c[G>>2]|0,c[H>>2]|0)|0;break a}else{c[l>>2]=65;break a}}while(0);if((c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==3:0)?(c[c[k>>2]>>2]|0)==0:0){t=Xf(c[o>>2]|0,1,J)|0;c[I>>2]=t;if(!((t|0)!=0&(c[J>>2]|0)!=0)){c[l>>2]=65;break}c[L>>2]=0;c[M>>2]=0;c[K>>2]=Tf(c[m>>2]|0,37847,0)|0;if(c[K>>2]|0){c[q>>2]=Xf(c[K>>2]|0,1,p)|0;do if(c[q>>2]|0){t=Kj(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=t;if(c[(c[k>>2]|0)+16>>2]|0)break;c[l>>2]=5}else c[l>>2]=68;while(0);Rf(c[K>>2]|0);if(c[l>>2]|0)break}c[K>>2]=Tf(c[m>>2]|0,37857,0)|0;if(c[K>>2]|0){c[q>>2]=Xf(c[K>>2]|0,1,p)|0;do if(c[q>>2]|0){if((c[p>>2]|0)>>>0<=0)break;t=pf(c[p>>2]|0)|0;c[(c[k>>2]|0)+20>>2]=t;if(c[(c[k>>2]|0)+20>>2]|0){Yw(c[(c[k>>2]|0)+20>>2]|0,c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+24>>2]=c[p>>2];break}else{c[l>>2]=Et()|0;break}}else c[l>>2]=68;while(0);Rf(c[K>>2]|0);if(c[l>>2]|0)break}c[K>>2]=Tf(c[m>>2]|0,37863,0)|0;if(c[K>>2]|0){c[q>>2]=Xf(c[K>>2]|0,1,p)|0;do if(c[q>>2]|0){if((c[p>>2]|0)>>>0<=0)break;c[L>>2]=pf(c[p>>2]|0)|0;if(c[L>>2]|0){Yw(c[L>>2]|0,c[q>>2]|0,c[p>>2]|0)|0;c[M>>2]=c[p>>2];break}else{c[l>>2]=Et()|0;break}}else c[l>>2]=68;while(0);Rf(c[K>>2]|0);if(c[l>>2]|0)break}c[l>>2]=il(c[h>>2]|0,c[(c[k>>2]|0)+4>>2]|0,c[(c[k>>2]|0)+16>>2]|0,c[I>>2]|0,c[J>>2]|0,c[(c[k>>2]|0)+20>>2]|0,c[(c[k>>2]|0)+24>>2]|0,c[L>>2]|0,c[M>>2]|0)|0;vf(c[L>>2]|0);break}if((c[n>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==4:0)?(c[c[k>>2]>>2]|0)==2:0){if((Uf(c[n>>2]|0)|0)!=3){c[l>>2]=65;break}t=Xf(c[n>>2]|0,1,p)|0;c[q>>2]=t;if(!((t|0)!=0&(c[p>>2]|0)!=0)){c[l>>2]=65;break}c[P>>2]=0;c[Q>>2]=0;t=Kj(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=t;if(!(c[(c[k>>2]|0)+16>>2]|0)){c[l>>2]=5;break}t=Xf(c[n>>2]|0,2,O)|0;c[N>>2]=t;if(!((t|0)!=0&(c[O>>2]|0)!=0)){c[l>>2]=65;break}c[R>>2]=Tf(c[m>>2]|0,37963,0)|0;do if(c[R>>2]|0){c[q>>2]=Xf(c[R>>2]|0,1,p)|0;if(c[q>>2]|0){t=wv(c[q>>2]|0,0,10)|0;c[(c[k>>2]|0)+28>>2]=t;Rf(c[R>>2]|0);break}else{c[l>>2]=68;break a}}while(0);c[R>>2]=Tf(c[m>>2]|0,37863,0)|0;if(c[R>>2]|0){c[q>>2]=Xf(c[R>>2]|0,1,p)|0;do if(c[q>>2]|0){if((c[p>>2]|0)>>>0<=0)break;c[P>>2]=pf(c[p>>2]|0)|0;if(c[P>>2]|0){Yw(c[P>>2]|0,c[q>>2]|0,c[p>>2]|0)|0;c[Q>>2]=c[p>>2];break}else{c[l>>2]=Et()|0;break}}else c[l>>2]=68;while(0);Rf(c[R>>2]|0);if(c[l>>2]|0)break}c[l>>2]=ml(c[h>>2]|0,(c[(c[k>>2]|0)+4>>2]|0)-1|0,c[(c[k>>2]|0)+16>>2]|0,c[N>>2]|0,c[O>>2]|0,c[(c[k>>2]|0)+28>>2]|0,c[P>>2]|0,c[Q>>2]|0)|0;vf(c[P>>2]|0);break}if((c[n>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==4:0)?(c[c[k>>2]>>2]|0)==3:0){if((Uf(c[n>>2]|0)|0)!=3){c[l>>2]=65;break}t=Xf(c[n>>2]|0,1,p)|0;c[q>>2]=t;if(!((t|0)!=0&(c[p>>2]|0)!=0)){c[l>>2]=65;break}t=Kj(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=t;if(!(c[(c[k>>2]|0)+16>>2]|0)){c[l>>2]=5;break}t=$f(c[n>>2]|0,2,5)|0;c[c[h>>2]>>2]=t;if(!(c[c[h>>2]>>2]|0))c[l>>2]=65;c[(c[k>>2]|0)+32>>2]=5;c[(c[k>>2]|0)+36>>2]=c[c[h>>2]>>2];break}c[l>>2]=70}else c[l>>2]=65;while(0);Rf(c[m>>2]|0);Rf(c[n>>2]|0);Rf(c[o>>2]|0);if(c[l>>2]|0){vf(c[(c[k>>2]|0)+20>>2]|0);c[(c[k>>2]|0)+20>>2]=0}else c[(c[k>>2]|0)+12>>2]=c[s>>2];c[f>>2]=c[l>>2];S=c[f>>2]|0;i=e;return S|0}function Oj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=c[e>>2];c[h>>2]=c[(c[g>>2]|0)+36>>2];e=nl(c[h>>2]|0,c[f>>2]|0,(c[(c[g>>2]|0)+4>>2]|0)-1|0,c[(c[g>>2]|0)+16>>2]|0,c[(c[g>>2]|0)+28>>2]|0)|0;i=d;return e|0}function Pj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+16|0;e=b+12|0;f=b+8|0;g=b+4|0;h=b;c[e>>2]=a;c[g>>2]=0;a:while(1){a=c[4504+(c[g>>2]<<2)>>2]|0;c[f>>2]=a;if(!a){k=11;break}a=(sv(c[e>>2]|0,c[(c[f>>2]|0)+12>>2]|0)|0)!=0;l=c[f>>2]|0;if(!a){k=4;break}c[h>>2]=c[l+16>>2];while(1){if(!(c[c[h>>2]>>2]|0))break;if(!(sv(c[e>>2]|0,c[c[h>>2]>>2]|0)|0)){k=8;break a}c[h>>2]=(c[h>>2]|0)+4}c[g>>2]=(c[g>>2]|0)+1}if((k|0)==4){c[d>>2]=l;m=c[d>>2]|0;i=b;return m|0}else if((k|0)==8){c[d>>2]=c[f>>2];m=c[d>>2]|0;i=b;return m|0}else if((k|0)==11){c[d>>2]=0;m=c[d>>2]|0;i=b;return m|0}return 0}function Qj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[e>>2]=a;c[f>>2]=Rj(c[e>>2]|0)|0;if(c[f>>2]|0){c[d>>2]=c[(c[f>>2]|0)+12>>2];g=c[d>>2]|0;i=b;return g|0}else{c[d>>2]=37975;g=c[d>>2]|0;i=b;return g|0}return 0}function Rj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;c[e>>2]=Sj(c[e>>2]|0)|0;c[f>>2]=0;while(1){a=c[4504+(c[f>>2]<<2)>>2]|0;c[g>>2]=a;if(!a){h=6;break}if((c[e>>2]|0)==(c[c[g>>2]>>2]|0)){h=4;break}c[f>>2]=(c[f>>2]|0)+1}if((h|0)==4){c[d>>2]=c[g>>2];k=c[d>>2]|0;i=b;return k|0}else if((h|0)==6){c[d>>2]=0;k=c[d>>2]|0;i=b;return k|0}return 0}function Sj(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;switch(c[e>>2]|0){case 2:{c[d>>2]=1;break}case 3:{c[d>>2]=1;break}case 16:{c[d>>2]=20;break}case 301:{c[d>>2]=18;break}case 302:{c[d>>2]=18;break}default:c[d>>2]=c[e>>2]}i=b;return c[d>>2]|0}function Tj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[c[f>>2]>>2]=0;c[k>>2]=Uj(c[h>>2]|0,0,l,m)|0;do if(!(c[k>>2]|0))if(c[(c[l>>2]|0)+48>>2]|0){c[k>>2]=ub[c[(c[l>>2]|0)+48>>2]&63](c[f>>2]|0,c[g>>2]|0,c[m>>2]|0)|0;break}else{c[k>>2]=69;break}while(0);Rf(c[m>>2]|0);i=e;return c[k>>2]|0}function Uj(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0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}else{c[k>>2]=69;break}while(0);Rf(c[m>>2]|0);i=e;return c[k>>2]|0}function Wj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[c[f>>2]>>2]=0;c[k>>2]=Uj(c[h>>2]|0,1,l,m)|0;do if(!(c[k>>2]|0))if(c[(c[l>>2]|0)+56>>2]|0){c[k>>2]=ub[c[(c[l>>2]|0)+56>>2]&63](c[f>>2]|0,c[g>>2]|0,c[m>>2]|0)|0;break}else{c[k>>2]=69;break}while(0);Rf(c[m>>2]|0);i=e;return c[k>>2]|0}function Xj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=Uj(c[h>>2]|0,0,l,m)|0;do if(!(c[k>>2]|0))if(c[(c[l>>2]|0)+60>>2]|0){c[k>>2]=ub[c[(c[l>>2]|0)+60>>2]&63](c[f>>2]|0,c[g>>2]|0,c[m>>2]|0)|0;break}else{c[k>>2]=69;break}while(0);Rf(c[m>>2]|0);i=e;return c[k>>2]|0}function Yj(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[d>>2]=a;c[e>>2]=Uj(c[d>>2]|0,1,f,g)|0;do if(!(c[e>>2]|0))if(c[(c[f>>2]|0)+44>>2]|0){c[e>>2]=yb[c[(c[f>>2]|0)+44>>2]&15](c[g>>2]|0)|0;break}else{c[e>>2]=69;break}while(0);Rf(c[g>>2]|0);i=b;return c[e>>2]|0}function Zj(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+24|0;f=d+20|0;g=d+16|0;h=d+12|0;k=d+8|0;l=d+4|0;m=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=0;c[h>>2]=0;c[k>>2]=0;c[l>>2]=0;c[c[e>>2]>>2]=0;c[h>>2]=Tf(c[f>>2]|0,38e3,0)|0;do if(c[h>>2]|0){c[k>>2]=bg(c[h>>2]|0)|0;Rf(c[h>>2]|0);c[h>>2]=c[k>>2];c[k>>2]=0;if(!(c[h>>2]|0)){c[m>>2]=68;break}c[l>>2]=_f(c[h>>2]|0,0)|0;if(!(c[l>>2]|0)){c[m>>2]=65;break}c[g>>2]=Pj(c[l>>2]|0)|0;vf(c[l>>2]|0);c[l>>2]=0;if(!(c[g>>2]|0)){c[m>>2]=4;break}if(c[(c[g>>2]|0)+40>>2]|0){c[m>>2]=Db[c[(c[g>>2]|0)+40>>2]&7](c[h>>2]|0,c[e>>2]|0)|0;break}else{c[m>>2]=69;break}}else c[m>>2]=65;while(0);Rf(c[h>>2]|0);vf(c[l>>2]|0);Rf(c[k>>2]|0);i=d;return c[m>>2]|0}function _j(){return 0}function $j(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;m=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[g>>2]=Sj(c[g>>2]|0)|0;c[m>>2]=Rj(c[g>>2]|0)|0;if((c[m>>2]|0?(a[(c[m>>2]|0)+4>>0]&1|0)==0:0)?c[(c[m>>2]|0)+68>>2]|0:0){c[l>>2]=ub[c[(c[m>>2]|0)+68>>2]&63](c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0;n=c[l>>2]|0;o=ak(n)|0;i=f;return o|0}c[l>>2]=4;if(!(c[k>>2]|0)){n=c[l>>2]|0;o=ak(n)|0;i=f;return o|0}h=c[k>>2]|0;k=c[g>>2]|0;if(c[m>>2]|0?!(a[(c[m>>2]|0)+4>>0]&1|0):0)p=38046;else p=c[m>>2]|0?38007:38026;Eb[h&1](47251,k,38068,p);n=c[l>>2]|0;o=ak(n)|0;i=f;return o|0}function ak(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=bk(1,c[d>>2]|0)|0;i=b;return a|0}function bk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function ck(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];f=tk(c[k>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return f|0}function dk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];if(c[(c[k>>2]|0)+496>>2]|0)Ab[c[(c[k>>2]|0)+496>>2]&3]();f=ub[c[(c[k>>2]|0)+488>>2]&63](c[k>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return f|0}function ek(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];nk(c[k>>2]|0);if(c[(c[k>>2]|0)+500>>2]|0)Ab[c[(c[k>>2]|0)+500>>2]&3]();f=ub[c[(c[k>>2]|0)+492>>2]&63](c[k>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return f|0}function fk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;switch(c[f>>2]|0){case 7:{c[k>>2]=gk(c[g>>2]|0,c[h>>2]|0)|0;break}case 8:{c[k>>2]=hk(c[g>>2]|0,c[h>>2]|0)|0;break}case 9:{c[k>>2]=ik(c[g>>2]|0,c[h>>2]|0)|0;break}default:c[k>>2]=12}i=e;return c[k>>2]|0}function gk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=47241;c[k>>2]=lk()|0;do if(!(c[k>>2]|0)){if(c[f>>2]|0){c[h>>2]=38334;c[k>>2]=mk(2)|0;if(c[k>>2]|0)break;c[h>>2]=38338;c[k>>2]=mk(5)|0;if(c[k>>2]|0)break}c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}while(0);if(c[g>>2]|0)Eb[c[g>>2]&1](38079,7,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;l=c[e>>2]|0;i=d;return l|0}function hk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+8|0;g=d+4|0;h=d;c[d+12>>2]=a;c[f>>2]=b;c[g>>2]=47241;c[h>>2]=kk()|0;if(!(c[h>>2]|0)){c[e>>2]=0;k=c[e>>2]|0;i=d;return k|0}if(c[f>>2]|0)Eb[c[f>>2]&1](38079,8,c[g>>2]|0,c[h>>2]|0);c[e>>2]=50;k=c[e>>2]|0;i=d;return k|0}function ik(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+8|0;g=d+4|0;h=d;c[d+12>>2]=a;c[f>>2]=b;c[g>>2]=47241;c[h>>2]=jk()|0;if(!(c[h>>2]|0)){c[e>>2]=0;k=c[e>>2]|0;i=d;return k|0}if(c[f>>2]|0)Eb[c[f>>2]&1](38079,9,c[g>>2]|0,c[h>>2]|0);c[e>>2]=50;k=c[e>>2]|0;i=d;return k|0}function jk(){var a=0,b=0,d=0,e=0;a=i;i=i+528|0;if((i|0)>=(j|0))$(528);b=a+504|0;d=a;e=a+512|0;ck(d,38086,32)|0;dk(d,e,38118)|0;do if(!(Jv(e,38134,16)|0)){ek(d,e,e)|0;if(Jv(e,38118,16)|0){c[b>>2]=38182;break}else{c[b>>2]=0;break}}else c[b>>2]=38150;while(0);i=a;return c[b>>2]|0}function kk(){var a=0,b=0,d=0,e=0;a=i;i=i+528|0;if((i|0)>=(j|0))$(528);b=a+504|0;d=a;e=a+512|0;ck(d,38214,24)|0;dk(d,e,38238)|0;do if(!(Jv(e,38254,16)|0)){ek(d,e,e)|0;if(Jv(e,38238,16)|0){c[b>>2]=38302;break}else{c[b>>2]=0;break}}else c[b>>2]=38270;while(0);i=a;return c[b>>2]|0}function lk(){var a=0,b=0,d=0,e=0;a=i;i=i+528|0;if((i|0)>=(j|0))$(528);b=a+504|0;d=a;e=a+512|0;ck(d,38455,16)|0;dk(d,e,38471)|0;do if(!(Jv(e,38487,16)|0)){ek(d,e,e)|0;if(Jv(e,38471,16)|0){c[b>>2]=38535;break}else{c[b>>2]=0;break}}else c[b>>2]=38503;while(0);i=a;return c[b>>2]|0}function mk(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;b=i;i=i+48|0;if((i|0)>=(j|0))$(48);d=b+24|0;e=b+20|0;f=b+32|0;g=b+16|0;h=b+12|0;k=b+8|0;l=b+4|0;m=b;c[e>>2]=a;c[l>>2]=0;c[m>>2]=0;c[h>>2]=0;while(1){if((c[h>>2]|0)>>>0>=2)break;if((c[4636+((c[h>>2]|0)*164|0)>>2]|0)==(c[e>>2]|0))break;c[h>>2]=(c[h>>2]|0)+1}if((c[h>>2]|0)==2){Bh(c[l>>2]|0);Bh(c[m>>2]|0);c[d>>2]=38342;n=c[d>>2]|0;i=b;return n|0}c[g>>2]=wh(l,7,c[4636+((c[h>>2]|0)*164|0)>>2]|0,0)|0;if(c[g>>2]|0){Bh(c[l>>2]|0);Bh(c[m>>2]|0);c[d>>2]=38369;n=c[d>>2]|0;i=b;return n|0}c[g>>2]=wh(m,7,c[4636+((c[h>>2]|0)*164|0)>>2]|0,0)|0;e=c[l>>2]|0;if(c[g>>2]|0){Bh(e);Bh(c[m>>2]|0);c[d>>2]=38369;n=c[d>>2]|0;i=b;return n|0}c[g>>2]=Jh(e,4636+((c[h>>2]|0)*164|0)+4|0,16)|0;if(!(c[g>>2]|0))c[g>>2]=Jh(c[m>>2]|0,4636+((c[h>>2]|0)*164|0)+4|0,16)|0;e=c[l>>2]|0;if(c[g>>2]|0){Bh(e);Bh(c[m>>2]|0);c[d>>2]=38374;n=c[d>>2]|0;i=b;return n|0}c[g>>2]=Lh(e,4636+((c[h>>2]|0)*164|0)+20|0,16)|0;if(!(c[g>>2]|0))c[g>>2]=Lh(c[m>>2]|0,4636+((c[h>>2]|0)*164|0)+20|0,16)|0;if(c[g>>2]|0){Bh(c[l>>2]|0);Bh(c[m>>2]|0);c[d>>2]=38382;n=c[d>>2]|0;i=b;return n|0}c[k>>2]=0;while(1){o=c[l>>2]|0;if((c[k>>2]|0)>>>0>=4){p=30;break}c[g>>2]=Ch(o,f,16,4636+((c[h>>2]|0)*164|0)+36+(c[k>>2]<<5)|0,16)|0;if(c[g>>2]|0){p=22;break}if(Jv(f,4636+((c[h>>2]|0)*164|0)+36+(c[k>>2]<<5)+16|0,16)|0){p=24;break}c[g>>2]=Gh(c[m>>2]|0,f,16,4636+((c[h>>2]|0)*164|0)+36+(c[k>>2]<<5)+16|0,16)|0;if(c[g>>2]|0){p=26;break}if(Jv(f,4636+((c[h>>2]|0)*164|0)+36+(c[k>>2]<<5)|0,16)|0){p=28;break}c[k>>2]=(c[k>>2]|0)+1}if((p|0)==22){Bh(c[l>>2]|0);Bh(c[m>>2]|0);c[d>>2]=38389;n=c[d>>2]|0;i=b;return n|0}else if((p|0)==24){Bh(c[l>>2]|0);Bh(c[m>>2]|0);c[d>>2]=38405;n=c[d>>2]|0;i=b;return n|0}else if((p|0)==26){Bh(c[l>>2]|0);Bh(c[m>>2]|0);c[d>>2]=38422;n=c[d>>2]|0;i=b;return n|0}else if((p|0)==28){Bh(c[l>>2]|0);Bh(c[m>>2]|0);c[d>>2]=38438;n=c[d>>2]|0;i=b;return n|0}else if((p|0)==30){Bh(o);Bh(c[m>>2]|0);c[d>>2]=0;n=c[d>>2]|0;i=b;return n|0}return 0}function nk(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=b;if(a[(c[e>>2]|0)+484>>0]&1|0){i=d;return}ok(c[e>>2]|0);b=(c[e>>2]|0)+484|0;a[b>>0]=a[b>>0]&-2|1;i=d;return}function ok(a){a=a|0;var b=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=b+20|0;f=b+16|0;g=b+12|0;h=b+8|0;k=b+4|0;l=b;c[e>>2]=a;c[g>>2]=4965;pk();qk();c[(c[e>>2]|0)+240>>2]=c[c[e>>2]>>2];c[(c[e>>2]|0)+240+4>>2]=c[(c[e>>2]|0)+4>>2];c[(c[e>>2]|0)+240+8>>2]=c[(c[e>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=n^(rk(c[5988+((d[(c[g>>2]|0)+(((c[l>>2]|0)>>>16&255)<<2)>>0]|0)<<2)>>2]|0,16)|0);n=a^(rk(c[5988+((d[(c[g>>2]|0)+(((c[l>>2]|0)>>>24&255)<<2)>>0]|0)<<2)>>2]|0,24)|0);c[(c[k>>2]|0)+8>>2]=n;c[l>>2]=c[(c[h>>2]|0)+12>>2];n=rk(c[5988+((d[(c[g>>2]|0)+(((c[l>>2]|0)>>>0&255)<<2)>>0]|0)<<2)>>2]|0,0)|0;a=n^(rk(c[5988+((d[(c[g>>2]|0)+(((c[l>>2]|0)>>>8&255)<<2)>>0]|0)<<2)>>2]|0,8)|0);n=a^(rk(c[5988+((d[(c[g>>2]|0)+(((c[l>>2]|0)>>>16&255)<<2)>>0]|0)<<2)>>2]|0,16)|0);a=n^(rk(c[5988+((d[(c[g>>2]|0)+(((c[l>>2]|0)>>>24&255)<<2)>>0]|0)<<2)>>2]|0,24)|0);c[(c[k>>2]|0)+12>>2]=a;c[f>>2]=(c[f>>2]|0)+1}c[(c[e>>2]|0)+240+(c[f>>2]<<4)>>2]=c[m>>2];c[(c[e>>2]|0)+240+(c[f>>2]<<4)+4>>2]=c[(c[e>>2]|0)+(c[f>>2]<<4)+4>>2];c[(c[e>>2]|0)+240+(c[f>>2]<<4)+8>>2]=c[(c[e>>2]|0)+(c[f>>2]<<4)+8>>2];c[(c[e>>2]|0)+240+(c[f>>2]<<4)+12>>2]=c[(c[e>>2]|0)+(c[f>>2]<<4)+12>>2];i=b;return}function pk(){sk(4964,1024);return}function qk(){sk(5988,1280);return}function rk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;i=d;return c[e>>2]<<(c[f>>2]&31)|(c[e>>2]|0)>>>(32-(c[f>>2]|0)&31)|0}function sk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[d+8>>2]=a;c[e>>2]=b;c[f>>2]=0;while(1){if((c[f>>2]|0)>>>0>=(c[e>>2]|0)>>>0)break;c[f>>2]=(c[f>>2]|0)+256}i=d;return}function tk(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;g=i;i=i+144|0;if((i|0)>=(j|0))$(144);h=g+72|0;k=g+132|0;l=g+128|0;m=g+124|0;n=g+120|0;o=g+116|0;p=g+112|0;q=g+108|0;r=g+104|0;s=g+100|0;t=g+96|0;u=g+92|0;v=g+88|0;w=g+8|0;x=g+84|0;y=g+80|0;z=g+136|0;A=g;B=g+76|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[t>>2]=0;f=(Wg()|0)!=0;if(!(f|(c[17738]|0)!=0)?(c[17738]=1,c[17739]=uk()|0,c[17739]|0):0){c[h>>2]=c[17739];Ve(43492,h)}if(c[17739]|0){c[k>>2]=50;C=c[k>>2]|0;i=g;return C|0}do if((c[n>>2]|0)==16){c[o>>2]=10;c[u>>2]=4}else{if((c[n>>2]|0)==24){c[o>>2]=12;c[u>>2]=6;break}if((c[n>>2]|0)==32){c[o>>2]=14;c[u>>2]=8;break}c[k>>2]=44;C=c[k>>2]|0;i=g;return C|0}while(0);c[(c[l>>2]|0)+480>>2]=c[o>>2];h=(c[l>>2]|0)+484|0;a[h>>0]=a[h>>0]&-2;c[(c[l>>2]|0)+488>>2]=29;c[(c[l>>2]|0)+492>>2]=30;c[(c[l>>2]|0)+496>>2]=1;c[(c[l>>2]|0)+500>>2]=2;c[v>>2]=4965;pk();c[p>>2]=0;while(1){if((c[p>>2]|0)>>>0>=(c[n>>2]|0)>>>0)break;a[w+(c[p>>2]>>2<<2)+(c[p>>2]&3)>>0]=a[(c[m>>2]|0)+(c[p>>2]|0)>>0]|0;c[p>>2]=(c[p>>2]|0)+1}c[q>>2]=(c[u>>2]|0)-1;while(1){if((c[q>>2]|0)<0)break;c[w+32+(c[q>>2]<<2)>>2]=c[w+(c[q>>2]<<2)>>2];c[q>>2]=(c[q>>2]|0)+-1}c[r>>2]=0;c[s>>2]=0;c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[u>>2]|0))break;if((c[r>>2]|0)>=((c[o>>2]|0)+1|0))break;while(1){if(!((c[q>>2]|0)<(c[u>>2]|0)?(c[s>>2]|0)<4:0))break;c[(c[l>>2]|0)+(c[r>>2]<<4)+(c[s>>2]<<2)>>2]=c[w+32+(c[q>>2]<<2)>>2];c[q>>2]=(c[q>>2]|0)+1;c[s>>2]=(c[s>>2]|0)+1}if((c[s>>2]|0)!=4)continue;c[r>>2]=(c[r>>2]|0)+1;c[s>>2]=0}a:while(1){if((c[r>>2]|0)>=((c[o>>2]|0)+1|0))break;p=w+32|0;a[p>>0]=(d[p>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+((c[u>>2]|0)-1<<2)+1>>0]|0)<<2)>>0]|0);p=w+32+1|0;a[p>>0]=(d[p>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+((c[u>>2]|0)-1<<2)+2>>0]|0)<<2)>>0]|0);p=w+32+2|0;a[p>>0]=(d[p>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+((c[u>>2]|0)-1<<2)+3>>0]|0)<<2)>>0]|0);p=w+32+3|0;a[p>>0]=(d[p>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+((c[u>>2]|0)-1<<2)>>0]|0)<<2)>>0]|0);p=c[t>>2]|0;c[t>>2]=p+1;m=w+32|0;a[m>>0]=(d[m>>0]|0)^c[7268+(p<<2)>>2];p=(c[u>>2]|0)!=8;c[q>>2]=1;b:do if(p)while(1){if((c[q>>2]|0)>=(c[u>>2]|0))break b;m=w+32+(c[q>>2]<<2)|0;c[m>>2]=c[m>>2]^c[w+32+((c[q>>2]|0)-1<<2)>>2];c[q>>2]=(c[q>>2]|0)+1}else{while(1){if((c[q>>2]|0)>=((c[u>>2]|0)/2|0|0))break;m=w+32+(c[q>>2]<<2)|0;c[m>>2]=c[m>>2]^c[w+32+((c[q>>2]|0)-1<<2)>>2];c[q>>2]=(c[q>>2]|0)+1}m=w+32+(((c[u>>2]|0)/2|0)<<2)|0;a[m>>0]=(d[m>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+(((c[u>>2]|0)/2|0)-1<<2)>>0]|0)<<2)>>0]|0);m=w+32+(((c[u>>2]|0)/2|0)<<2)+1|0;a[m>>0]=(d[m>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+(((c[u>>2]|0)/2|0)-1<<2)+1>>0]|0)<<2)>>0]|0);m=w+32+(((c[u>>2]|0)/2|0)<<2)+2|0;a[m>>0]=(d[m>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+(((c[u>>2]|0)/2|0)-1<<2)+2>>0]|0)<<2)>>0]|0);m=w+32+(((c[u>>2]|0)/2|0)<<2)+3|0;a[m>>0]=(d[m>>0]|0)^(d[(c[v>>2]|0)+((d[w+32+(((c[u>>2]|0)/2|0)-1<<2)+3>>0]|0)<<2)>>0]|0);c[q>>2]=((c[u>>2]|0)/2|0)+1;while(1){if((c[q>>2]|0)>=(c[u>>2]|0))break b;m=w+32+(c[q>>2]<<2)|0;c[m>>2]=c[m>>2]^c[w+32+((c[q>>2]|0)-1<<2)>>2];c[q>>2]=(c[q>>2]|0)+1}}while(0);c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[u>>2]|0))continue a;if((c[r>>2]|0)>=((c[o>>2]|0)+1|0))continue a;while(1){if(!((c[q>>2]|0)<(c[u>>2]|0)?(c[s>>2]|0)<4:0))break;c[(c[l>>2]|0)+(c[r>>2]<<4)+(c[s>>2]<<2)>>2]=c[w+32+(c[q>>2]<<2)>>2];c[q>>2]=(c[q>>2]|0)+1;c[s>>2]=(c[s>>2]|0)+1}if((c[s>>2]|0)!=4)continue;c[r>>2]=(c[r>>2]|0)+1;c[s>>2]=0}}c[x>>2]=w;c[y>>2]=64;a[z>>0]=0;w=A;c[w>>2]=d[z>>0];c[w+4>>2]=0;while(1){if(!(c[x>>2]&7|0?(c[y>>2]|0)!=0:0))break;a[c[x>>2]>>0]=a[z>>0]|0;c[x>>2]=(c[x>>2]|0)+1;c[y>>2]=(c[y>>2]|0)+-1}if((c[y>>2]|0)>>>0>=8){w=A;s=ex(c[w>>2]|0,c[w+4>>2]|0,16843009,16843009)|0;w=A;c[w>>2]=s;c[w+4>>2]=D;do{c[B>>2]=c[x>>2];w=A;s=c[w+4>>2]|0;r=c[B>>2]|0;c[r>>2]=c[w>>2];c[r+4>>2]=s;c[y>>2]=(c[y>>2]|0)-8;c[x>>2]=(c[x>>2]|0)+8}while((c[y>>2]|0)>>>0>=8)}while(1){if(!(c[y>>2]|0))break;a[c[x>>2]>>0]=a[z>>0]|0;c[x>>2]=(c[x>>2]|0)+1;c[y>>2]=(c[y>>2]|0)+-1}c[k>>2]=0;C=c[k>>2]|0;i=g;return C|0}function uk(){var a=0,b=0,d=0,e=0,f=0,g=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a+4|0;d=a;e=lk()|0;c[d>>2]=e;do if((!(e|0)?(f=kk()|0,c[d>>2]=f,!(f|0)):0)?(f=jk()|0,c[d>>2]=f,!(f|0)):0){f=Bk()|0;c[d>>2]=f;if(f|0){c[b>>2]=c[d>>2];break}f=Ck()|0;c[d>>2]=f;if(f|0){c[b>>2]=c[d>>2];break}else{c[d>>2]=Dk()|0;c[b>>2]=c[d>>2];break}}else g=4;while(0);if((g|0)==4)c[b>>2]=c[d>>2];i=a;return c[b>>2]|0}function vk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=Ak(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function wk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=xk(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;i=e;return d|0}function xk(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+64|0;if((i|0)>=(j|0))$(64);g=f+48|0;h=f+44|0;k=f+40|0;l=f+36|0;m=f+32|0;n=f+16|0;o=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=e;c[l>>2]=c[(c[g>>2]|0)+480>>2];c[o>>2]=yk(c[k>>2]|0)|0;c[o+4>>2]=yk((c[k>>2]|0)+4|0)|0;c[o+8>>2]=yk((c[k>>2]|0)+8|0)|0;c[o+12>>2]=yk((c[k>>2]|0)+12|0)|0;c[n>>2]=c[o>>2]^c[(c[g>>2]|0)+240+(c[l>>2]<<4)>>2];c[n+4>>2]=c[o+4>>2]^c[(c[g>>2]|0)+240+(c[l>>2]<<4)+4>>2];c[n+8>>2]=c[o+8>>2]^c[(c[g>>2]|0)+240+(c[l>>2]<<4)+8>>2];c[n+12>>2]=c[o+12>>2]^c[(c[g>>2]|0)+240+(c[l>>2]<<4)+12>>2];c[m>>2]=(c[l>>2]|0)-1;while(1){l=(c[m>>2]|0)>1;c[o>>2]=rk(c[5988+(((c[n>>2]|0)>>>0&255)<<2)>>2]|0,0)|0;c[o+4>>2]=rk(c[5988+(((c[n>>2]|0)>>>8&255)<<2)>>2]|0,8)|0;c[o+8>>2]=rk(c[5988+(((c[n>>2]|0)>>>16&255)<<2)>>2]|0,16)|0;c[o+12>>2]=rk(c[5988+(((c[n>>2]|0)>>>24&255)<<2)>>2]|0,24)|0;if(!l)break;c[n>>2]=c[(c[g>>2]|0)+240+(c[m>>2]<<4)>>2]^c[o>>2];l=rk(c[5988+(((c[n+4>>2]|0)>>>0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(c[5988+(((c[n+12>>2]|0)>>>8&255)<<2)>>2]|0,8)|0;c[n>>2]=c[n>>2]^m;m=rk(c[5988+(((c[n+12>>2]|0)>>>16&255)<<2)>>2]|0,16)|0;l=n+4|0;c[l>>2]=c[l>>2]^m;m=rk(c[5988+(((c[n+12>>2]|0)>>>24&255)<<2)>>2]|0,24)|0;l=n+8|0;c[l>>2]=c[l>>2]^m;c[n+12>>2]=c[(c[g>>2]|0)+240+16+12>>2]^c[o+12>>2];c[o>>2]=(d[7012+((c[n>>2]|0)>>>0&255)>>0]|0)<<0;c[o+4>>2]=(d[7012+((c[n>>2]|0)>>>8&255)>>0]|0)<<8;c[o+8>>2]=(d[7012+((c[n>>2]|0)>>>16&255)>>0]|0)<<16;c[o+12>>2]=(d[7012+((c[n>>2]|0)>>>24&255)>>0]|0)<<24;c[n>>2]=c[o>>2]^c[(c[g>>2]|0)+240>>2];m=o+4|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+4>>2]|0)>>>0&255)>>0]|0)<<0;m=o+8|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+4>>2]|0)>>>8&255)>>0]|0)<<8;m=o+12|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+4>>2]|0)>>>16&255)>>0]|0)<<16;c[n>>2]=c[n>>2]^(d[7012+((c[n+4>>2]|0)>>>24&255)>>0]|0)<<24;c[n+4>>2]=c[o+4>>2]^c[(c[g>>2]|0)+240+4>>2];m=o+8|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+8>>2]|0)>>>0&255)>>0]|0)<<0;m=o+12|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+8>>2]|0)>>>8&255)>>0]|0)<<8;c[n>>2]=c[n>>2]^(d[7012+((c[n+8>>2]|0)>>>16&255)>>0]|0)<<16;m=n+4|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+8>>2]|0)>>>24&255)>>0]|0)<<24;c[n+8>>2]=c[o+8>>2]^c[(c[g>>2]|0)+240+8>>2];m=o+12|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+12>>2]|0)>>>0&255)>>0]|0)<<0;c[n>>2]=c[n>>2]^(d[7012+((c[n+12>>2]|0)>>>8&255)>>0]|0)<<8;m=n+4|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+12>>2]|0)>>>16&255)>>0]|0)<<16;m=n+8|0;c[m>>2]=c[m>>2]^(d[7012+((c[n+12>>2]|0)>>>24&255)>>0]|0)<<24;c[n+12>>2]=c[o+12>>2]^c[(c[g>>2]|0)+240+12>>2];zk(c[h>>2]|0,c[n>>2]|0);zk((c[h>>2]|0)+4|0,c[n+4>>2]|0);zk((c[h>>2]|0)+8|0,c[n+8>>2]|0);zk((c[h>>2]|0)+12|0,c[n+12>>2]|0);i=f;return 64}function yk(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b+4|0;f=b;c[e>>2]=a;c[f>>2]=c[e>>2];i=b;return (d[(c[f>>2]|0)+3>>0]|0)<<24|(d[(c[f>>2]|0)+2>>0]|0)<<16|(d[(c[f>>2]|0)+1>>0]|0)<<8|(d[c[f>>2]>>0]|0)|0}function zk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=d;c[h>>2]=c[f>>2];a[(c[h>>2]|0)+3>>0]=(c[g>>2]|0)>>>24;a[(c[h>>2]|0)+2>>0]=(c[g>>2]|0)>>>16;a[(c[h>>2]|0)+1>>0]=(c[g>>2]|0)>>>8;a[c[h>>2]>>0]=c[g>>2];i=e;return}function Ak(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;i=i+64|0;if((i|0)>=(j|0))$(64);g=f+52|0;h=f+48|0;k=f+44|0;l=f+40|0;m=f+36|0;n=f+32|0;o=f+16|0;p=f;c[g>>2]=a;c[h>>2]=b;c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k;k=rk(c[4964+(((c[o+8>>2]|0)>>>16&255)<<2)>>2]|0,16)|0;c[o>>2]=c[o>>2]^k;k=rk(c[4964+(((c[o+8>>2]|0)>>>24&255)<<2)>>2]|0,24)|0;e=p+12|0;c[e>>2]=c[e>>2]^k;c[o+8>>2]=c[(c[g>>2]|0)+16+8>>2]^c[p+8>>2];k=rk(c[4964+(((c[o+12>>2]|0)>>>0&255)<<2)>>2]|0,0)|0;e=p+12|0;c[e>>2]=c[e>>2]^k;k=rk(c[4964+(((c[o+12>>2]|0)>>>8&255)<<2)>>2]|0,8)|0;e=o+8|0;c[e>>2]=c[e>>2]^k;k=rk(c[4964+(((c[o+12>>2]|0)>>>16&255)<<2)>>2]|0,16)|0;e=o+4|0;c[e>>2]=c[e>>2]^k;k=rk(c[4964+(((c[o+12>>2]|0)>>>24&255)<<2)>>2]|0,24)|0;c[o>>2]=c[o>>2]^k;c[o+12>>2]=c[(c[g>>2]|0)+16+12>>2]^c[p+12>>2];c[n>>2]=2;while(1){q=(c[o>>2]|0)>>>0&255;if((c[n>>2]|0)>=(c[m>>2]|0))break;c[p>>2]=rk(c[4964+(q<<2)>>2]|0,0)|0;c[p+12>>2]=rk(c[4964+(((c[o>>2]|0)>>>8&255)<<2)>>2]|0,8)|0;c[p+8>>2]=rk(c[4964+(((c[o>>2]|0)>>>16&255)<<2)>>2]|0,16)|0;c[p+4>>2]=rk(c[4964+(((c[o>>2]|0)>>>24&255)<<2)>>2]|0,24)|0;c[o>>2]=c[(c[g>>2]|0)+(c[n>>2]<<4)>>2]^c[p>>2];k=rk(c[4964+(((c[o+4>>2]|0)>>>0&255)<<2)>>2]|0,0)|0;e=p+4|0;c[e>>2]=c[e>>2]^k;k=rk(c[4964+(((c[o+4>>2]|0)>>>8&255)<<2)>>2]|0,8)|0;c[o>>2]=c[o>>2]^k;k=rk(c[4964+(((c[o+4>>2]|0)>>>16&255)<<2)>>2]|0,16)|0;e=p+12|0;c[e>>2]=c[e>>2]^k;k=rk(c[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^(d[(c[l>>2]|0)+(((c[o+12>>2]|0)>>>0&255)<<2)>>0]|0)<<0;q=o+8|0;c[q>>2]=c[q>>2]^(d[(c[l>>2]|0)+(((c[o+12>>2]|0)>>>8&255)<<2)>>0]|0)<<8;q=o+4|0;c[q>>2]=c[q>>2]^(d[(c[l>>2]|0)+(((c[o+12>>2]|0)>>>16&255)<<2)>>0]|0)<<16;c[o>>2]=c[o>>2]^(d[(c[l>>2]|0)+(((c[o+12>>2]|0)>>>24&255)<<2)>>0]|0)<<24;c[o+12>>2]=c[(c[g>>2]|0)+(c[n>>2]<<4)+12>>2]^c[p+12>>2];zk(c[h>>2]|0,c[o>>2]|0);zk((c[h>>2]|0)+4|0,c[o+4>>2]|0);zk((c[h>>2]|0)+8|0,c[o+8>>2]|0);zk((c[h>>2]|0)+12|0,c[o+12>>2]|0);i=f;return 64}function Bk(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[a+8>>2]=9;c[a+4>>2]=16;c[a>>2]=504;b=wr(38075,1,2,4,9,16,504)|0;i=a;return b|0}function Ck(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[a+8>>2]=10;c[a+4>>2]=16;c[a>>2]=504;b=sr(38075,1,2,3,10,16,504)|0;i=a;return b|0}function Dk(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[a+8>>2]=10;c[a+4>>2]=16;c[a>>2]=504;b=ur(38075,1,2,2,10,16,504)|0;i=a;return b|0}function Ek(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+36|0;k=g+32|0;l=g+28|0;m=g+24|0;n=g+20|0;o=g+16|0;p=g+12|0;q=g+8|0;r=g+4|0;s=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=c[h>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[r>>2]=0;if(c[(c[o>>2]|0)+496>>2]|0)Ab[c[(c[o>>2]|0)+496>>2]&3]();c[s>>2]=c[(c[o>>2]|0)+488>>2];while(1){if(!(c[n>>2]|0))break;c[r>>2]=ub[c[s>>2]&63](c[o>>2]|0,c[k>>2]|0,c[k>>2]|0)|0;Fk(c[p>>2]|0,c[k>>2]|0,c[q>>2]|0,16);c[p>>2]=(c[p>>2]|0)+16;c[q>>2]=(c[q>>2]|0)+16;c[n>>2]=(c[n>>2]|0)+-1}if(!(c[r>>2]|0)){i=g;return}bf((c[r>>2]|0)+16|0);cf();i=g;return}function Fk(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;Gk(c[g>>2]|0,c[k>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}function Gk(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;k=i;i=i+64|0;if((i|0)>=(j|0))$(64);l=k+56|0;m=k+52|0;n=k+48|0;o=k+44|0;p=k+40|0;q=k+36|0;r=k+32|0;s=k+28|0;t=k+24|0;u=k+60|0;v=k+20|0;w=k+16|0;x=k+12|0;y=k+8|0;z=k+4|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[o>>2]=g;c[p>>2]=h;c[q>>2]=c[l>>2];c[r>>2]=c[n>>2];c[s>>2]=c[m>>2];c[t>>2]=c[o>>2];c[k>>2]=3;if(!((c[t>>2]|c[s>>2]|c[q>>2]|c[r>>2])&3)){c[v>>2]=c[q>>2];c[y>>2]=c[s>>2];c[w>>2]=c[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2]=c[n>>2];c[s>>2]=c[o>>2];c[t>>2]=0;if(c[(c[q>>2]|0)+496>>2]|0)Ab[c[(c[q>>2]|0)+496>>2]&3]();c[w>>2]=c[(c[q>>2]|0)+488>>2];while(1){if(!(c[p>>2]|0))break;c[t>>2]=ub[c[w>>2]&63](c[q>>2]|0,v,c[m>>2]|0)|0;Jk(c[r>>2]|0,v,c[s>>2]|0,16);c[r>>2]=(c[r>>2]|0)+16;c[s>>2]=(c[s>>2]|0)+16;c[u>>2]=16;while(1){if((c[u>>2]|0)<=0)break;o=(c[m>>2]|0)+((c[u>>2]|0)-1)|0;a[o>>0]=(a[o>>0]|0)+1<<24>>24;if(a[(c[m>>2]|0)+((c[u>>2]|0)-1)>>0]|0)break;c[u>>2]=(c[u>>2]|0)+-1}c[p>>2]=(c[p>>2]|0)+-1}c[x>>2]=v;c[y>>2]=16;a[z>>0]=0;v=A;c[v>>2]=d[z>>0];c[v+4>>2]=0;while(1){if(!(c[x>>2]&7|0?(c[y>>2]|0)!=0:0))break;a[c[x>>2]>>0]=a[z>>0]|0;c[x>>2]=(c[x>>2]|0)+1;c[y>>2]=(c[y>>2]|0)+-1}if((c[y>>2]|0)>>>0>=8){v=A;p=ex(c[v>>2]|0,c[v+4>>2]|0,16843009,16843009)|0;v=A;c[v>>2]=p;c[v+4>>2]=D;do{c[B>>2]=c[x>>2];v=A;p=c[v+4>>2]|0;u=c[B>>2]|0;c[u>>2]=c[v>>2];c[u+4>>2]=p;c[y>>2]=(c[y>>2]|0)-8;c[x>>2]=(c[x>>2]|0)+8}while((c[y>>2]|0)>>>0>=8)}while(1){if(!(c[y>>2]|0))break;a[c[x>>2]>>0]=a[z>>0]|0;c[x>>2]=(c[x>>2]|0)+1;c[y>>2]=(c[y>>2]|0)+-1}if(!(c[t>>2]|0)){i=k;return}bf((c[t>>2]|0)+16|0);cf();i=k;return}function Jk(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=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>2]|0)+488>>2];while(1){if(!(c[n>>2]|0))break;c[r>>2]=ub[c[s>>2]&63](c[o>>2]|0,c[k>>2]|0,c[k>>2]|0)|0;Lk(c[p>>2]|0,c[k>>2]|0,c[q>>2]|0,16);c[p>>2]=(c[p>>2]|0)+16;c[q>>2]=(c[q>>2]|0)+16;c[n>>2]=(c[n>>2]|0)+-1}if(!(c[r>>2]|0)){i=g;return}bf((c[r>>2]|0)+16|0);cf();i=g;return}function Lk(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[o>>2]=c[k>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[h>>2]=3;if(!((c[q>>2]|c[o>>2]|c[p>>2])&3)){c[r>>2]=c[o>>2];c[s>>2]=c[p>>2];c[t>>2]=c[q>>2];while(1){if((c[n>>2]|0)>>>0<4)break;m=c[t>>2]|0;c[t>>2]=m+4;l=c[m>>2]|0;m=c[s>>2]|0;c[s>>2]=m+4;k=c[m>>2]^l;c[m>>2]=k;m=c[r>>2]|0;c[r>>2]=m+4;c[m>>2]=k;c[n>>2]=(c[n>>2]|0)-4}c[o>>2]=c[r>>2];c[p>>2]=c[s>>2];c[q>>2]=c[t>>2]}while(1){if(!(c[n>>2]|0))break;t=c[q>>2]|0;c[q>>2]=t+1;s=d[t>>0]|0;t=c[p>>2]|0;c[p>>2]=t+1;r=((d[t>>0]|0)^s)&255;a[t>>0]=r;t=c[o>>2]|0;c[o>>2]=t+1;a[t>>0]=r;c[n>>2]=(c[n>>2]|0)+-1}i=h;return}function Mk(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+44|0;l=h+40|0;m=h+36|0;n=h+32|0;o=h+28|0;p=h+24|0;q=h+20|0;r=h+16|0;s=h+12|0;t=h+8|0;u=h+4|0;v=h;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=c[k>>2];c[r>>2]=c[m>>2];c[s>>2]=c[n>>2];c[u>>2]=0;if(c[(c[q>>2]|0)+496>>2]|0)Ab[c[(c[q>>2]|0)+496>>2]&3]();c[v>>2]=c[(c[q>>2]|0)+488>>2];c[t>>2]=c[l>>2];while(1){if(!(c[o>>2]|0))break;Jk(c[r>>2]|0,c[s>>2]|0,c[t>>2]|0,16);c[u>>2]=ub[c[v>>2]&63](c[q>>2]|0,c[r>>2]|0,c[r>>2]|0)|0;c[t>>2]=c[r>>2];c[s>>2]=(c[s>>2]|0)+16;if(!(c[p>>2]|0))c[r>>2]=(c[r>>2]|0)+16;c[o>>2]=(c[o>>2]|0)+-1}if((c[t>>2]|0)!=(c[l>>2]|0))Nk(c[l>>2]|0,c[t>>2]|0,16);if(!(c[u>>2]|0)){i=h;return}bf((c[u>>2]|0)+16|0);cf();i=h;return}function Nk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+8|0;o=f+4|0;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;c[l>>2]=c[g>>2];c[m>>2]=c[h>>2];c[f>>2]=3;if(!((c[l>>2]|c[m>>2])&3)){c[n>>2]=c[l>>2];c[o>>2]=c[m>>2];while(1){if((c[k>>2]|0)>>>0<4)break;h=c[o>>2]|0;c[o>>2]=h+4;g=c[h>>2]|0;h=c[n>>2]|0;c[n>>2]=h+4;c[h>>2]=g;c[k>>2]=(c[k>>2]|0)-4}c[l>>2]=c[n>>2];c[m>>2]=c[o>>2]}while(1){if(!(c[k>>2]|0))break;o=c[m>>2]|0;c[m>>2]=o+1;n=a[o>>0]|0;o=c[l>>2]|0;c[l>>2]=o+1;a[o>>0]=n;c[k>>2]=(c[k>>2]|0)+-1}i=f;return}function Ok(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;g=i;i=i+112|0;if((i|0)>=(j|0))$(112);h=g+104|0;k=g+100|0;l=g+96|0;m=g+92|0;n=g+88|0;o=g+84|0;p=g+80|0;q=g+76|0;r=g+72|0;s=g+16|0;t=g+68|0;u=g+40|0;v=g+64|0;w=g+60|0;x=g;y=g+56|0;z=g+32|0;A=g+52|0;B=g+48|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=(c[h>>2]|0)+496;c[p>>2]=c[k>>2];c[q>>2]=c[l>>2];c[r>>2]=0;l=c[o>>2]|0;if(c[n>>2]|0){if(c[l+496>>2]|0)Ab[c[(c[o>>2]|0)+496>>2]&3]()}else{nk(l);if(c[(c[o>>2]|0)+500>>2]|0)Ab[c[(c[o>>2]|0)+500>>2]&3]()}l=c[o>>2]|0;a:do if(c[n>>2]|0){c[t>>2]=c[l+488>>2];while(1){if(!(c[m>>2]|0))break a;k=(c[h>>2]|0)+128+336|0;f=k;e=Uw(c[f>>2]|0,c[f+4>>2]|0,1,0)|0;f=D;d=k;c[d>>2]=e;c[d+4>>2]=f;d=u;c[d>>2]=e;c[d+4>>2]=f;f=u;c[v>>2]=Pk(c[f>>2]|0,c[f+4>>2]|0)|0;if((c[v>>2]|0)>>>0<16)c[w>>2]=(c[h>>2]|0)+128+32+(c[v>>2]<<4);else{f=u;c[w>>2]=Uq(c[h>>2]|0,s,c[f>>2]|0,c[f+4>>2]|0)|0}Qk((c[h>>2]|0)+64|0,c[w>>2]|0,16);Nk(s,c[q>>2]|0,16);Qk((c[h>>2]|0)+80|0,s,16);Qk(s,(c[h>>2]|0)+64|0,16);c[r>>2]=ub[c[t>>2]&63](c[o>>2]|0,s,s)|0;Qk(s,(c[h>>2]|0)+64|0,16);Nk(c[p>>2]|0,s,16);c[q>>2]=(c[q>>2]|0)+16;c[p>>2]=(c[p>>2]|0)+16;c[m>>2]=(c[m>>2]|0)+-1}}else{c[y>>2]=c[l+492>>2];while(1){if(!(c[m>>2]|0))break a;f=(c[h>>2]|0)+128+336|0;d=f;e=Uw(c[d>>2]|0,c[d+4>>2]|0,1,0)|0;d=D;k=f;c[k>>2]=e;c[k+4>>2]=d;k=z;c[k>>2]=e;c[k+4>>2]=d;d=z;c[A>>2]=Pk(c[d>>2]|0,c[d+4>>2]|0)|0;if((c[A>>2]|0)>>>0<16)c[B>>2]=(c[h>>2]|0)+128+32+(c[A>>2]<<4);else{d=z;c[B>>2]=Uq(c[h>>2]|0,x,c[d>>2]|0,c[d+4>>2]|0)|0}Qk((c[h>>2]|0)+64|0,c[B>>2]|0,16);Nk(x,c[q>>2]|0,16);Qk(x,(c[h>>2]|0)+64|0,16);c[r>>2]=ub[c[y>>2]&63](c[o>>2]|0,x,x)|0;Qk(x,(c[h>>2]|0)+64|0,16);Qk((c[h>>2]|0)+80|0,x,16);Nk(c[p>>2]|0,x,16);c[q>>2]=(c[q>>2]|0)+16;c[p>>2]=(c[p>>2]|0)+16;c[m>>2]=(c[m>>2]|0)+-1}}while(0);if(!(c[r>>2]|0)){i=g;return}bf((c[r>>2]|0)+16|0);cf();i=g;return}function Pk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d;g=f;c[g>>2]=a;c[g+4>>2]=b;b=f;g=c[b+4>>2]|0;if((c[f>>2]|0)!=0|0!=0){c[e>>2]=Rk(c[b>>2]|0)|0;h=c[e>>2]|0;i=d;return h|0}else{c[e>>2]=32+(Rk(g)|0);h=c[e>>2]|0;i=d;return h|0}return 0}function Qk(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g+28|0;k=g+24|0;l=g+20|0;m=g+16|0;n=g+12|0;o=g+8|0;p=g+4|0;c[h>>2]=b;c[k>>2]=e;c[l>>2]=f;c[m>>2]=c[h>>2];c[n>>2]=c[k>>2];c[g>>2]=3;if(!((c[m>>2]|c[n>>2])&3)){c[o>>2]=c[m>>2];c[p>>2]=c[n>>2];while(1){if((c[l>>2]|0)>>>0<4)break;k=c[p>>2]|0;c[p>>2]=k+4;h=c[k>>2]|0;k=c[o>>2]|0;c[o>>2]=k+4;c[k>>2]=c[k>>2]^h;c[l>>2]=(c[l>>2]|0)-4}c[m>>2]=c[o>>2];c[n>>2]=c[p>>2]}while(1){if(!(c[l>>2]|0))break;p=c[n>>2]|0;c[n>>2]=p+1;o=d[p>>0]|0;p=c[m>>2]|0;c[m>>2]=p+1;a[p>>0]=(d[p>>0]|0)^o;c[l>>2]=(c[l>>2]|0)+-1}i=g;return}function Rk(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=(c[d>>2]|0)!=0;e=Vw(c[d>>2]|0)|0;i=b;return (a?e:32)|0}function Sk(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;g=i;i=i+96|0;if((i|0)>=(j|0))$(96);h=g+76|0;k=g+72|0;l=g+68|0;m=g+64|0;n=g+60|0;o=g+56|0;p=g;q=g+52|0;r=g+24|0;s=g+48|0;t=g+44|0;u=g+40|0;v=g+36|0;w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]|0)>>>0>=8)}while(1){if(!(c[v>>2]|0))break;a[c[u>>2]>>0]=a[w>>0]|0;c[u>>2]=(c[u>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+-1}if(!(c[o>>2]|0)){i=g;return}bf((c[o>>2]|0)+16|0);cf();i=g;return}function Tk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d;c[e>>2]=a;c[d+4>>2]=b;c[f>>2]=c[e>>2];c[(c[f>>2]|0)+160>>2]=1732584193;c[(c[f>>2]|0)+164>>2]=-271733879;c[(c[f>>2]|0)+168>>2]=-1732584194;c[(c[f>>2]|0)+172>>2]=271733878;c[(c[f>>2]|0)+176>>2]=-1009589776;e=(c[f>>2]|0)+128|0;c[e>>2]=0;c[e+4>>2]=0;e=(c[f>>2]|0)+136|0;c[e>>2]=0;c[e+4>>2]=0;c[(c[f>>2]|0)+144>>2]=0;c[(c[f>>2]|0)+148>>2]=64;c[(c[f>>2]|0)+152>>2]=31;i=d;return}function Uk(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+28|0;f=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;l=d+8|0;m=d+4|0;n=d;c[e>>2]=b;c[f>>2]=c[e>>2];Nr(c[f>>2]|0,0,0);c[g>>2]=c[(c[f>>2]|0)+128>>2];c[h>>2]=c[(c[f>>2]|0)+128+4>>2];c[l>>2]=c[g>>2]<<6;c[k>>2]=c[h>>2]<<6|(c[g>>2]|0)>>>26;c[g>>2]=c[l>>2];h=(c[l>>2]|0)+(c[(c[f>>2]|0)+144>>2]|0)|0;c[l>>2]=h;if(h>>>0<(c[g>>2]|0)>>>0)c[k>>2]=(c[k>>2]|0)+1;c[g>>2]=c[l>>2];c[l>>2]=c[l>>2]<<3;c[k>>2]=c[k>>2]<<3;c[k>>2]=c[k>>2]|(c[g>>2]|0)>>>29;g=(c[(c[f>>2]|0)+144>>2]|0)<56;h=(c[f>>2]|0)+144|0;e=c[h>>2]|0;c[h>>2]=e+1;a[(c[f>>2]|0)+e>>0]=-128;a:do if(g)while(1){if((c[(c[f>>2]|0)+144>>2]|0)>=56)break a;e=(c[f>>2]|0)+144|0;h=c[e>>2]|0;c[e>>2]=h+1;a[(c[f>>2]|0)+h>>0]=0}else{while(1){o=c[f>>2]|0;if((c[(c[f>>2]|0)+144>>2]|0)>=64)break;h=o+144|0;e=c[h>>2]|0;c[h>>2]=e+1;a[(c[f>>2]|0)+e>>0]=0}Nr(o,0,0);e=c[f>>2]|0;h=e+56|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(h|0))}while(0);Wk((c[f>>2]|0)+56|0,c[l>>2]|0);Wk((c[f>>2]|0)+60|0,c[k>>2]|0);c[n>>2]=Xk(c[f>>2]|0,c[f>>2]|0,1)|0;bf(c[n>>2]|0);cf();c[m>>2]=c[f>>2];Wk(c[m>>2]|0,c[(c[f>>2]|0)+160>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Wk(c[m>>2]|0,c[(c[f>>2]|0)+164>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Wk(c[m>>2]|0,c[(c[f>>2]|0)+168>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Wk(c[m>>2]|0,c[(c[f>>2]|0)+172>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Wk(c[m>>2]|0,c[(c[f>>2]|0)+176>>2]|0);c[m>>2]=(c[m>>2]|0)+4;i=d;return}function Vk(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];i=b;return c[e>>2]|0}function Wk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=d;c[h>>2]=c[f>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[q>>2])+1548603684+(c[t+4>>2]|0));u=_k(c[k>>2]|0,13)|0;c[k>>2]=u+(c[s>>2]|0);c[o>>2]=_k(c[o>>2]|0,10)|0;c[r>>2]=(c[r>>2]|0)+((c[h>>2]&c[l>>2]|~c[h>>2]&c[n>>2])+1518500249+(c[t+32>>2]|0));u=_k(c[r>>2]|0,12)|0;c[r>>2]=u+(c[p>>2]|0);c[l>>2]=_k(c[l>>2]|0,10)|0;c[s>>2]=(c[s>>2]|0)+((c[k>>2]&c[o>>2]|c[m>>2]&~c[o>>2])+1548603684+(c[t+8>>2]|0));u=_k(c[s>>2]|0,11)|0;c[s>>2]=u+(c[q>>2]|0);c[m>>2]=_k(c[m>>2]|0,10)|0;c[p>>2]=(c[p>>2]|0)+(((c[r>>2]|~c[h>>2])^c[l>>2])+1859775393+(c[t+12>>2]|0));u=_k(c[p>>2]|0,11)|0;c[p>>2]=u+(c[n>>2]|0);c[h>>2]=_k(c[h>>2]|0,10)|0;c[q>>2]=(c[q>>2]|0)+(((c[s>>2]|~c[k>>2])^c[m>>2])+1836072691+(c[t+60>>2]|0));u=_k(c[q>>2]|0,9)|0;c[q>>2]=u+(c[o>>2]|0);c[k>>2]=_k(c[k>>2]|0,10)|0;c[n>>2]=(c[n>>2]|0)+(((c[p>>2]|~c[r>>2])^c[h>>2])+1859775393+(c[t+40>>2]|0));u=_k(c[n>>2]|0,13)|0;c[n>>2]=u+(c[l>>2]|0);c[r>>2]=_k(c[r>>2]|0,10)|0;c[o>>2]=(c[o>>2]|0)+(((c[q>>2]|~c[s>>2])^c[k>>2])+1836072691+(c[t+20>>2]|0));u=_k(c[o>>2]|0,7)|0;c[o>>2]=u+(c[m>>2]|0);c[s>>2]=_k(c[s>>2]|0,10)|0;c[l>>2]=(c[l>>2]|0)+(((c[n>>2]|~c[p>>2])^c[r>>2])+1859775393+(c[t+56>>2]|0));u=_k(c[l>>2]|0,6)|0;c[l>>2]=u+(c[h>>2]|0);c[p>>2]=_k(c[p>>2]|0,10)|0;c[m>>2]=(c[m>>2]|0)+(((c[o>>2]|~c[q>>2])^c[s>>2])+1836072691+(c[t+4>>2]|0));u=_k(c[m>>2]|0,15)|0;c[m>>2]=u+(c[k>>2]|0);c[q>>2]=_k(c[q>>2]|0,10)|0;c[h>>2]=(c[h>>2]|0)+(((c[l>>2]|~c[n>>2])^c[p>>2])+1859775393+(c[t+16>>2]|0));u=_k(c[h>>2]|0,7)|0;c[h>>2]=u+(c[r>>2]|0);c[n>>2]=_k(c[n>>2]|0,10)|0;c[k>>2]=(c[k>>2]|0)+(((c[m>>2]|~c[o>>2])^c[q>>2])+1836072691+(c[t+12>>2]|0));u=_k(c[k>>2]|0,11)|0;c[k>>2]=u+(c[s>>2]|0);c[o>>2]=_k(c[o>>2]|0,10)|0;c[r>>2]=(c[r>>2]|0)+(((c[h>>2]|~c[l>>2])^c[n>>2])+1859775393+(c[t+36>>2]|0));u=_k(c[r>>2]|0,14)|0;c[r>>2]=u+(c[p>>2]|0);c[l>>2]=_k(c[l>>2]|0,10)|0;c[s>>2]=(c[s>>2]|0)+(((c[k>>2]|~c[m>>2])^c[o>>2])+1836072691+(c[t+28>>2]|0));u=_k(c[s>>2]|0,8)|0;c[s>>2]=u+(c[q>>2]|0);c[m>>2]=_k(c[m>>2]|0,10)|0;c[p>>2]=(c[p>>2]|0)+(((c[r>>2]|~c[h>>2])^c[l>>2])+1859775393+(c[t+60>>2]|0));u=_k(c[p>>2]|0,9)|0;c[p>>2]=u+(c[n>>2]|0);c[h>>2]=_k(c[h>>2]|0,10)|0;c[q>>2]=(c[q>>2]|0)+(((c[s>>2]|~c[k>>2])^c[m>>2])+1836072691+(c[t+56>>2]|0));u=_k(c[q>>2]|0,6)|0;c[q>>2]=u+(c[o>>2]|0);c[k>>2]=_k(c[k>>2]|0,10)|0;c[n>>2]=(c[n>>2]|0)+(((c[p>>2]|~c[r>>2])^c[h>>2])+1859775393+(c[t+32>>2]|0));u=_k(c[n>>2]|0,13)|0;c[n>>2]=u+(c[l>>2]|0);c[r>>2]=_k(c[r>>2]|0,10)|0;c[o>>2]=(c[o>>2]|0)+(((c[q>>2]|~c[s>>2])^c[k>>2])+1836072691+(c[t+24>>2]|0));u=_k(c[o>>2]|0,6)|0;c[o>>2]=u+(c[m>>2]|0);c[s>>2]=_k(c[s>>2]|0,10)|0;c[l>>2]=(c[l>>2]|0)+(((c[n>>2]|~c[p>>2])^c[r>>2])+1859775393+(c[t+4>>2]|0));u=_k(c[l>>2]|0,15)|0;c[l>>2]=u+(c[h>>2]|0);c[p>>2]=_k(c[p>>2]|0,10)|0;c[m>>2]=(c[m>>2]|0)+(((c[o>>2]|~c[q>>2])^c[s>>2])+1836072691+(c[t+36>>2]|0));u=_k(c[m>>2]|0,14)|0;c[m>>2]=u+(c[k>>2]|0);c[q>>2]=_k(c[q>>2]|0,10)|0;c[h>>2]=(c[h>>2]|0)+(((c[l>>2]|~c[n>>2])^c[p>>2])+1859775393+(c[t+8>>2]|0));u=_k(c[h>>2]|0,14)|0;c[h>>2]=u+(c[r>>2]|0);c[n>>2]=_k(c[n>>2]|0,10)|0;c[k>>2]=(c[k>>2]|0)+(((c[m>>2]|~c[o>>2])^c[q>>2])+1836072691+(c[t+44>>2]|0));u=_k(c[k>>2]|0,12)|0;c[k>>2]=u+(c[s>>2]|0);c[o>>2]=_k(c[o>>2]|0,10)|0;c[r>>2]=(c[r>>2]|0)+(((c[h>>2]|~c[l>>2])^c[n>>2])+1859775393+(c[t+28>>2]|0));u=_k(c[r>>2]|0,8)|0;c[r>>2]=u+(c[p>>2]|0);c[l>>2]=_k(c[l>>2]|0,10)|0;c[s>>2]=(c[s>>2]|0)+(((c[k>>2]|~c[m>>2])^c[o>>2])+1836072691+(c[t+32>>2]|0));u=_k(c[s>>2]|0,13)|0;c[s>>2]=u+(c[q>>2]|0);c[m>>2]=_k(c[m>>2]|0,10)|0;c[p>>2]=(c[p>>2]|0)+(((c[r>>2]|~c[h>>2])^c[l>>2])+1859775393+(c[t>>2]|0));u=_k(c[p>>2]|0,13)|0;c[p>>2]=u+(c[n>>2]|0);c[h>>2]=_k(c[h>>2]|0,10)|0;c[q>>2]=(c[q>>2]|0)+(((c[s>>2]|~c[k>>2])^c[m>>2])+1836072691+(c[t+48>>2]|0));u=_k(c[q>>2]|0,5)|0;c[q>>2]=u+(c[o>>2]|0);c[k>>2]=_k(c[k>>2]|0,10)|0;c[n>>2]=(c[n>>2]|0)+(((c[p>>2]|~c[r>>2])^c[h>>2])+1859775393+(c[t+24>>2]|0));u=_k(c[n>>2]|0,6)|0;c[n>>2]=u+(c[l>>2]|0);c[r>>2]=_k(c[r>>2]|0,10)|0;c[o>>2]=(c[o>>2]|0)+(((c[q>>2]|~c[s>>2])^c[k>>2])+1836072691+(c[t+8>>2]|0));u=_k(c[o>>2]|0,14)|0;c[o>>2]=u+(c[m>>2]|0);c[s>>2]=_k(c[s>>2]|0,10)|0;c[l>>2]=(c[l>>2]|0)+(((c[n>>2]|~c[p>>2])^c[r>>2])+1859775393+(c[t+52>>2]|0));u=_k(c[l>>2]|0,5)|0;c[l>>2]=u+(c[h>>2]|0);c[p>>2]=_k(c[p>>2]|0,10)|0;c[m>>2]=(c[m>>2]|0)+(((c[o>>2]|~c[q>>2])^c[s>>2])+1836072691+(c[t+40>>2]|0));u=_k(c[m>>2]|0,13)|0;c[m>>2]=u+(c[k>>2]|0);c[q>>2]=_k(c[q>>2]|0,10)|0;c[h>>2]=(c[h>>2]|0)+(((c[l>>2]|~c[n>>2])^c[p>>2])+1859775393+(c[t+44>>2]|0));u=_k(c[h>>2]|0,12)|0;c[h>>2]=u+(c[r>>2]|0);c[n>>2]=_k(c[n>>2]|0,10)|0;c[k>>2]=(c[k>>2]|0)+(((c[m>>2]|~c[o>>2])^c[q>>2])+1836072691+(c[t>>2]|0));u=_k(c[k>>2]|0,13)|0;c[k>>2]=u+(c[s>>2]|0);c[o>>2]=_k(c[o>>2]|0,10)|0;c[r>>2]=(c[r>>2]|0)+(((c[h>>2]|~c[l>>2])^c[n>>2])+1859775393+(c[t+20>>2]|0));u=_k(c[r>>2]|0,7)|0;c[r>>2]=u+(c[p>>2]|0);c[l>>2]=_k(c[l>>2]|0,10)|0;c[s>>2]=(c[s>>2]|0)+(((c[k>>2]|~c[m>>2])^c[o>>2])+1836072691+(c[t+16>>2]|0));u=_k(c[s>>2]|0,7)|0;c[s>>2]=u+(c[q>>2]|0);c[m>>2]=_k(c[m>>2]|0,10)|0;c[p>>2]=(c[p>>2]|0)+(((c[r>>2]|~c[h>>2])^c[l>>2])+1859775393+(c[t+48>>2]|0));u=_k(c[p>>2]|0,5)|0;c[p>>2]=u+(c[n>>2]|0);c[h>>2]=_k(c[h>>2]|0,10)|0;c[q>>2]=(c[q>>2]|0)+(((c[s>>2]|~c[k>>2])^c[m>>2])+1836072691+(c[t+52>>2]|0));u=_k(c[q>>2]|0,5)|0;c[q>>2]=u+(c[o>>2]|0);c[k>>2]=_k(c[k>>2]|0,10)|0;c[n>>2]=(c[n>>2]|0)+((c[p>>2]&c[h>>2]|c[r>>2]&~c[h>>2])+-1894007588+(c[t+4>>2]|0));u=_k(c[n>>2]|0,11)|0;c[n>>2]=u+(c[l>>2]|0);c[r>>2]=_k(c[r>>2]|0,10)|0;c[o>>2]=(c[o>>2]|0)+((c[q>>2]&c[s>>2]|~c[q>>2]&c[k>>2])+2053994217+(c[t+32>>2]|0));u=_k(c[o>>2]|0,15)|0;c[o>>2]=u+(c[m>>2]|0);c[s>>2]=_k(c[s>>2]|0,10)|0;c[l>>2]=(c[l>>2]|0)+((c[n>>2]&c[r>>2]|c[p>>2]&~c[r>>2])+-1894007588+(c[t+36>>2]|0));u=_k(c[l>>2]|0,12)|0;c[l>>2]=u+(c[h>>2]|0);c[p>>2]=_k(c[p>>2]|0,10)|0;c[m>>2]=(c[m>>2]|0)+((c[o>>2]&c[q>>2]|~c[o>>2]&c[s>>2])+2053994217+(c[t+24>>2]|0));u=_k(c[m>>2]|0,5)|0;c[m>>2]=u+(c[k>>2]|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168>>2]|0)+(c[p>>2]|0)+(c[s>>2]|0);c[(c[g>>2]|0)+168>>2]=(c[(c[g>>2]|0)+172>>2]|0)+(c[r>>2]|0)+(c[k>>2]|0);c[(c[g>>2]|0)+172>>2]=(c[(c[g>>2]|0)+176>>2]|0)+(c[h>>2]|0)+(c[m>>2]|0);c[(c[g>>2]|0)+176>>2]=(c[(c[g>>2]|0)+160>>2]|0)+(c[l>>2]|0)+(c[o>>2]|0);c[(c[g>>2]|0)+160>>2]=c[q>>2];i=d;return 124}function Zk(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b+4|0;f=b;c[e>>2]=a;c[f>>2]=c[e>>2];i=b;return (d[(c[f>>2]|0)+3>>0]|0)<<24|(d[(c[f>>2]|0)+2>>0]|0)<<16|(d[(c[f>>2]|0)+1>>0]|0)<<8|(d[c[f>>2]>>0]|0)|0}function _k(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;i=d;return c[e>>2]<<(c[f>>2]&31)|(c[e>>2]|0)>>>(32-(c[f>>2]|0)&31)|0}function $k(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Tk(c[d>>2]|0,0);i=b;return}function al(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=c[f>>2];Xk(c[e>>2]|0,c[f>>2]|0,1)|0;c[c[g>>2]>>2]=c[(c[e>>2]|0)+160>>2];c[(c[g>>2]|0)+4>>2]=c[(c[e>>2]|0)+164>>2];c[(c[g>>2]|0)+8>>2]=c[(c[e>>2]|0)+168>>2];c[(c[g>>2]|0)+12>>2]=c[(c[e>>2]|0)+172>>2];c[(c[g>>2]|0)+16>>2]=c[(c[e>>2]|0)+176>>2];i=d;return}function bl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+208|0;if((i|0)>=(j|0))$(208);g=f+192|0;h=f+188|0;k=f+184|0;l=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;$k(l);Nr(l,c[h>>2]|0,c[k>>2]|0);Uk(l);k=c[g>>2]|0;g=l;l=k+20|0;do{a[k>>0]=a[g>>0]|0;k=k+1|0;g=g+1|0}while((k|0)<(l|0));i=f;return}function cl(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;k=i;i=i+80|0;if((i|0)>=(j|0))$(80);l=k+64|0;m=k+60|0;n=k+56|0;o=k+52|0;p=k+48|0;q=k+44|0;r=k+40|0;s=k+36|0;t=k+32|0;u=k+28|0;v=k+24|0;w=k+20|0;x=k+16|0;y=k+12|0;z=k+8|0;A=k+4|0;B=k;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[r>>2]=h;c[s>>2]=0;c[t>>2]=0;c[u>>2]=(((c[n>>2]|0)+7|0)>>>0)/8|0;if(!(c[u>>2]|0?((c[p>>2]|0)+7|0)>>>0<=(c[u>>2]|0)>>>0:0)){c[l>>2]=66;C=c[l>>2]|0;i=k;return C|0}n=sf(c[u>>2]|0)|0;c[t>>2]=n;if(!n){c[l>>2]=Et()|0;C=c[l>>2]|0;i=k;return C|0}c[w>>2]=0;n=c[w>>2]|0;c[w>>2]=n+1;a[(c[t>>2]|0)+n>>0]=0;n=c[w>>2]|0;c[w>>2]=n+1;a[(c[t>>2]|0)+n>>0]=2;c[v>>2]=(c[u>>2]|0)-3-(c[p>>2]|0);if((c[v>>2]|0)<=0)Se(38982,38988,95,39001);do if(c[q>>2]|0){if((c[r>>2]|0)!=(c[v>>2]|0)){vf(c[t>>2]|0);c[l>>2]=45;C=c[l>>2]|0;i=k;return C|0}c[y>>2]=0;while(1){if((c[y>>2]|0)>>>0>=(c[r>>2]|0)>>>0){D=15;break}if(!(a[(c[q>>2]|0)+(c[y>>2]|0)>>0]|0))break;c[y>>2]=(c[y>>2]|0)+1}if((D|0)==15){Yw((c[t>>2]|0)+(c[w>>2]|0)|0,c[q>>2]|0,c[r>>2]|0)|0;c[w>>2]=(c[w>>2]|0)+(c[r>>2]|0);break}vf(c[t>>2]|0);c[l>>2]=45;C=c[l>>2]|0;i=k;return C|0}else{c[x>>2]=hn(c[v>>2]|0,1)|0;while(1){c[A>>2]=0;c[z>>2]=0;while(1){if((c[z>>2]|0)>=(c[v>>2]|0))break;if(!(a[(c[x>>2]|0)+(c[z>>2]|0)>>0]|0))c[A>>2]=(c[A>>2]|0)+1;c[z>>2]=(c[z>>2]|0)+1}if(!(c[A>>2]|0))break;c[A>>2]=(c[A>>2]|0)+(((c[A>>2]|0)/128|0)+3);c[B>>2]=hn(c[A>>2]|0,1)|0;c[z>>2]=0;while(1){if(!((c[z>>2]|0)<(c[v>>2]|0)?(c[A>>2]|0)!=0:0))break;if(!(a[(c[x>>2]|0)+(c[z>>2]|0)>>0]|0)){n=(c[A>>2]|0)+-1|0;c[A>>2]=n;a[(c[x>>2]|0)+(c[z>>2]|0)>>0]=a[(c[B>>2]|0)+n>>0]|0}if(!(a[(c[x>>2]|0)+(c[z>>2]|0)>>0]|0))continue;c[z>>2]=(c[z>>2]|0)+1}vf(c[B>>2]|0)}Yw((c[t>>2]|0)+(c[w>>2]|0)|0,c[x>>2]|0,c[v>>2]|0)|0;c[w>>2]=(c[w>>2]|0)+(c[v>>2]|0);vf(c[x>>2]|0)}while(0);x=c[w>>2]|0;c[w>>2]=x+1;a[(c[t>>2]|0)+x>>0]=0;Yw((c[t>>2]|0)+(c[w>>2]|0)|0,c[o>>2]|0,c[p>>2]|0)|0;c[w>>2]=(c[w>>2]|0)+(c[p>>2]|0);if((c[w>>2]|0)!=(c[u>>2]|0))Se(39032,38988,153,39001);c[s>>2]=Zo(c[m>>2]|0,5,c[t>>2]|0,c[w>>2]|0,u)|0;if((c[s>>2]|0)==0?Ff(1)|0:0)af(39044,c[c[m>>2]>>2]|0);vf(c[t>>2]|0);c[l>>2]=c[s>>2];C=c[l>>2]|0;i=k;return C|0}function dl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+32|0;l=h+28|0;m=h+24|0;n=h+20|0;o=h+16|0;p=h+12|0;q=h+8|0;r=h+4|0;s=h;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[o>>2]=g;c[q>>2]=0;c[r>>2]=(((c[n>>2]|0)+7|0)>>>0)/8|0;c[c[l>>2]>>2]=0;n=sf(c[r>>2]|0)|0;c[q>>2]=n;if(!n){c[k>>2]=Et()|0;t=c[k>>2]|0;i=h;return t|0}c[p>>2]=bp(5,c[q>>2]|0,c[r>>2]|0,s,c[o>>2]|0)|0;if(c[p>>2]|0){vf(c[q>>2]|0);c[k>>2]=el(c[p>>2]|0)|0;t=c[k>>2]|0;i=h;return t|0}c[r>>2]=c[s>>2];if((c[r>>2]|0)>>>0<4){vf(c[q>>2]|0);c[k>>2]=155;t=c[k>>2]|0;i=h;return t|0}c[s>>2]=0;if(!(a[c[q>>2]>>0]|0))c[s>>2]=(c[s>>2]|0)+1;p=c[s>>2]|0;c[s>>2]=p+1;if((d[(c[q>>2]|0)+p>>0]|0)!=2){vf(c[q>>2]|0);c[k>>2]=155;t=c[k>>2]|0;i=h;return t|0}while(1){if((c[s>>2]|0)>>>0>=(c[r>>2]|0)>>>0)break;if(!(d[(c[q>>2]|0)+(c[s>>2]|0)>>0]|0))break;c[s>>2]=(c[s>>2]|0)+1}if(((c[s>>2]|0)+1|0)>>>0>=(c[r>>2]|0)>>>0){vf(c[q>>2]|0);c[k>>2]=155;t=c[k>>2]|0;i=h;return t|0}c[s>>2]=(c[s>>2]|0)+1;Zw(c[q>>2]|0,(c[q>>2]|0)+(c[s>>2]|0)|0,(c[r>>2]|0)-(c[s>>2]|0)|0)|0;c[c[l>>2]>>2]=c[q>>2];c[c[m>>2]>>2]=(c[r>>2]|0)-(c[s>>2]|0);if(Ff(1)|0)_e(39077,c[c[l>>2]>>2]|0,c[c[m>>2]>>2]|0);c[k>>2]=0;t=c[k>>2]|0;i=h;return t|0}function el(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=fl(c[d>>2]|0)|0;i=b;return a|0}function fl(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return c[d>>2]&65535|0}function gl(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;h=i;i=i+160|0;if((i|0)>=(j|0))$(160);k=h+48|0;l=h+44|0;m=h+40|0;n=h+36|0;o=h+32|0;p=h+28|0;q=h+24|0;r=h+52|0;s=h+20|0;t=h+16|0;u=h+12|0;v=h+8|0;w=h+4|0;x=h;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=0;c[s>>2]=0;c[t>>2]=(((c[m>>2]|0)+7|0)>>>0)/8|0;c[w>>2]=100;c[x>>2]=oj(c[p>>2]|0)|0;if(pj(c[p>>2]|0,10,r,w)|0){c[k>>2]=69;y=c[k>>2]|0;i=h;return y|0}if((c[o>>2]|0)!=(c[x>>2]|0)){c[k>>2]=70;y=c[k>>2]|0;i=h;return y|0}if(c[x>>2]|0?((c[x>>2]|0)+(c[w>>2]|0)+4|0)>>>0<=(c[t>>2]|0)>>>0:0){x=pf(c[t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c[I>>2]=(c[I>>2]|0)+8}while((c[J>>2]|0)>>>0>=8)}while(1){if(!(c[J>>2]|0))break;a[c[I>>2]>>0]=a[K>>0]|0;c[I>>2]=(c[I>>2]|0)+1;c[J>>2]=(c[J>>2]|0)+-1}vf(c[w>>2]|0);N=c[q>>2]|0;i=k;return N|0}function ol(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=i;i=i+112|0;if((i|0)>=(j|0))$(112);e=d;f=d+100|0;g=d+96|0;h=d+92|0;k=d+88|0;l=d+84|0;m=d+80|0;n=d+56|0;o=d+52|0;p=d+48|0;q=d+44|0;r=d+40|0;s=d+36|0;c[g>>2]=a;c[h>>2]=b;c[p>>2]=0;c[r>>2]=0;c[n>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[n+12>>2]=0;c[n+16>>2]=0;c[n+20>>2]=0;c[k>>2]=Gj(c[g>>2]|0,l)|0;if(c[k>>2]|0){c[f>>2]=c[k>>2];t=c[f>>2]|0;i=d;return t|0}c[k>>2]=Hj(c[g>>2]|0,m)|0;if(c[k>>2]|0){c[f>>2]=c[k>>2];t=c[f>>2]|0;i=d;return t|0}c[q>>2]=Tf(c[g>>2]|0,47177,0)|0;if(c[q>>2]|0?(c[k>>2]=Fj(c[q>>2]|0,p,0)|0,Rf(c[q>>2]|0),c[k>>2]|0):0){c[f>>2]=c[k>>2];t=c[f>>2]|0;i=d;return t|0}if(c[g>>2]|0)u=Tf(c[g>>2]|0,41795,0)|0;else u=0;c[o>>2]=u;if((c[o>>2]|0)==0?(c[q>>2]=Tf(c[g>>2]|0,41808,0)|0,c[q>>2]|0):0){c[p>>2]=c[p>>2]|64;Rf(c[q>>2]|0)}if((!(c[o>>2]|0)?!(c[p>>2]&64|0):0)?!(Wg()|0):0){if((c[p>>2]&32|0)==0?(c[q>>2]=Tf(c[g>>2]|0,48941,0)|0,c[q>>2]|0):0){c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(c[h+8>>2]|0);Tp(c[h+12>>2]|0);Tp(c[h+16>>2]|0);Tp(c[h+20>>2]|0);if(!(Ff(1)|0)){k=c[g>>2]|0;i=b;return k|0}c[d>>2]=Bt(c[g>>2]|0)|0;Ye(41773,d);k=c[g>>2]|0;i=b;return k|0}function ql(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+128|0;if((i|0)>=(j|0))$(128);f=e+32|0;g=e+24|0;h=e+16|0;k=e;l=e+116|0;m=e+112|0;n=e+108|0;o=e+104|0;p=e+64|0;q=e+56|0;r=e+48|0;s=e+44|0;t=e+40|0;u=e+36|0;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[q>>2]=0;c[r>>2]=0;c[r+4>>2]=0;c[s>>2]=0;Lj(p,0,ul(c[n>>2]|0)|0);c[o>>2]=Nj(c[m>>2]|0,q,p)|0;do if(!(c[o>>2]|0)){if(Ff(1)|0)af(41643,c[q>>2]|0);if(c[q>>2]|0?c[(c[q>>2]|0)+12>>2]&4|0:0){c[o>>2]=79;break}m=c[n>>2]|0;c[k>>2]=r;c[k+4>>2]=r+4;c[k+8>>2]=0;c[o>>2]=lg(m,0,39361,k)|0;if(!(c[o>>2]|0)){if(Ff(1)|0){af(41660,c[r>>2]|0);af(41677,c[r+4>>2]|0)}c[s>>2]=Rp(0)|0;El(c[s>>2]|0,c[q>>2]|0,r);if(Ff(1)|0)af(41694,c[s>>2]|0);if(!(c[p+12>>2]&4)){m=c[l>>2]|0;c[g>>2]=c[s>>2];c[o>>2]=cg(m,0,41731,g)|0;break}c[u>>2]=(((lo(c[r>>2]|0)|0)+7|0)>>>0)/8|0;c[o>>2]=dp(t,0,c[s>>2]|0,c[u>>2]|0)|0;if(!(c[o>>2]|0)){m=c[l>>2]|0;d=c[t>>2]|0;c[h>>2]=c[u>>2];c[h+4>>2]=d;c[o>>2]=cg(m,0,41711,h)|0;vf(c[t>>2]|0)}}}while(0);Tp(c[s>>2]|0);Tp(c[r>>2]|0);Tp(c[r+4>>2]|0);Tp(c[q>>2]|0);Mj(p);if(!(Ff(1)|0)){v=c[o>>2]|0;i=e;return v|0}c[f>>2]=Bt(c[o>>2]|0)|0;Ye(41751,f);v=c[o>>2]|0;i=e;return v|0}function rl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;e=i;i=i+192|0;if((i|0)>=(j|0))$(192);f=e+64|0;g=e+56|0;h=e+48|0;k=e+40|0;l=e+8|0;m=e;n=e+180|0;o=e+176|0;p=e+172|0;q=e+168|0;r=e+128|0;s=e+124|0;t=e+120|0;u=e+96|0;v=e+88|0;w=e+84|0;x=e+80|0;y=e+76|0;z=e+72|0;A=e+68|0;c[n>>2]=a;c[o>>2]=b;c[p>>2]=d;c[s>>2]=0;c[t>>2]=0;c[u>>2]=0;c[u+4>>2]=0;c[u+8>>2]=0;c[u+12>>2]=0;c[u+16>>2]=0;c[u+20>>2]=0;c[v>>2]=0;c[w>>2]=0;c[x>>2]=0;c[y>>2]=0;c[z>>2]=0;c[A>>2]=0;Lj(r,1,ul(c[p>>2]|0)|0);c[q>>2]=Jj(c[o>>2]|0,7768,s,r)|0;a:do if((c[q>>2]|0)==0?(o=c[s>>2]|0,c[m>>2]=t,c[m+4>>2]=0,c[q>>2]=lg(o,0,39371,m)|0,(c[q>>2]|0)==0):0){if(Ff(1)|0)af(41471,c[t>>2]|0);if(c[t>>2]|0?c[(c[t>>2]|0)+12>>2]&4|0:0){c[q>>2]=79;break}o=c[p>>2]|0;c[l>>2]=u;c[l+4>>2]=u+4;c[l+8>>2]=u+8;c[l+12>>2]=u+12;c[l+16>>2]=u+16;c[l+20>>2]=u+20;c[l+24>>2]=0;c[q>>2]=lg(o,0,41288,l)|0;if(!(c[q>>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=c[A>>2];c[h+4>>2]=d;c[q>>2]=cg(o,0,41607,h)|0;break a;break}default:{o=c[n>>2]|0;d=c[r+12>>2]&8|0?41618:48089;c[g>>2]=c[v>>2];c[q>>2]=cg(o,0,d,g)|0;break a}}}}while(0);vf(c[z>>2]|0);Tp(c[v>>2]|0);Tp(c[u>>2]|0);Tp(c[u+4>>2]|0);Tp(c[u+8>>2]|0);Tp(c[u+12>>2]|0);Tp(c[u+16>>2]|0);Tp(c[u+20>>2]|0);Tp(c[t>>2]|0);Tp(c[w>>2]|0);Tp(c[x>>2]|0);Tp(c[y>>2]|0);Rf(c[s>>2]|0);Mj(r);if(!(Ff(1)|0)){B=c[q>>2]|0;i=e;return B|0}c[f>>2]=Bt(c[q>>2]|0)|0;Ye(41621,f);B=c[q>>2]|0;i=e;return B|0}function sl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+160|0;if((i|0)>=(j|0))$(160);f=e+48|0;g=e+40|0;h=e+32|0;k=e;l=e+148|0;m=e+144|0;n=e+140|0;o=e+136|0;p=e+96|0;q=e+88|0;r=e+64|0;s=e+60|0;t=e+56|0;u=e+52|0;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[q>>2]=0;c[r>>2]=0;c[r+4>>2]=0;c[r+8>>2]=0;c[r+12>>2]=0;c[r+16>>2]=0;c[r+20>>2]=0;c[s>>2]=0;Lj(p,2,ul(c[n>>2]|0)|0);c[o>>2]=Nj(c[m>>2]|0,q,p)|0;do if(!(c[o>>2]|0)){if(Ff(1)|0)af(41272,c[q>>2]|0);if(c[q>>2]|0?c[(c[q>>2]|0)+12>>2]&4|0:0){c[o>>2]=79;break}m=c[n>>2]|0;c[k>>2]=r;c[k+4>>2]=r+4;c[k+8>>2]=r+8;c[k+12>>2]=r+12;c[k+16>>2]=r+16;c[k+20>>2]=r+20;c[k+24>>2]=0;c[o>>2]=lg(m,0,41288,k)|0;if(!(c[o>>2]|0)){if(Ff(1)|0?(af(41298,c[r>>2]|0),af(41314,c[r+4>>2]|0),(Wg()|0)==0):0){af(41330,c[r+8>>2]|0);af(41346,c[r+12>>2]|0);af(41362,c[r+16>>2]|0);af(41378,c[r+20>>2]|0)}c[s>>2]=Rp(0)|0;Fl(c[s>>2]|0,c[q>>2]|0,r);if(Ff(1)|0)af(41394,c[s>>2]|0);if(!(c[p+12>>2]&4)){m=c[l>>2]|0;c[g>>2]=c[s>>2];c[o>>2]=cg(m,0,41430,g)|0;break}c[u>>2]=(((lo(c[r>>2]|0)|0)+7|0)>>>0)/8|0;c[o>>2]=dp(t,0,c[s>>2]|0,c[u>>2]|0)|0;if(!(c[o>>2]|0)){m=c[l>>2]|0;d=c[t>>2]|0;c[h>>2]=c[u>>2];c[h+4>>2]=d;c[o>>2]=cg(m,0,41410,h)|0;vf(c[t>>2]|0)}}}while(0);Tp(c[s>>2]|0);Tp(c[r>>2]|0);Tp(c[r+4>>2]|0);Tp(c[r+8>>2]|0);Tp(c[r+12>>2]|0);Tp(c[r+16>>2]|0);Tp(c[r+20>>2]|0);Tp(c[q>>2]|0);Mj(p);if(!(Ff(1)|0)){v=c[o>>2]|0;i=e;return v|0}c[f>>2]=Bt(c[o>>2]|0)|0;Ye(41450,f);v=c[o>>2]|0;i=e;return v|0}function tl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+112|0;if((i|0)>=(j|0))$(112);f=e+24|0;g=e+8|0;h=e;k=e+108|0;l=e+104|0;m=e+100|0;n=e+96|0;o=e+56|0;p=e+48|0;q=e+44|0;r=e+40|0;s=e+32|0;t=e+28|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[p>>2]=0;c[q>>2]=0;c[r>>2]=0;c[s>>2]=0;c[s+4>>2]=0;c[t>>2]=0;Lj(o,3,ul(c[m>>2]|0)|0);c[n>>2]=Nj(c[l>>2]|0,r,o)|0;do if(!(c[n>>2]|0)){if(Ff(1)|0)af(41171,c[r>>2]|0);if(c[r>>2]|0?c[(c[r>>2]|0)+12>>2]&4|0:0){c[n>>2]=79;break}c[n>>2]=Ij(c[k>>2]|0,7768,p,0)|0;if((c[n>>2]|0)==0?(l=c[p>>2]|0,c[h>>2]=q,c[h+4>>2]=0,c[n>>2]=lg(l,0,39373,h)|0,(c[n>>2]|0)==0):0){if(Ff(1)|0)af(41187,c[q>>2]|0);l=c[m>>2]|0;c[g>>2]=s;c[g+4>>2]=s+4;c[g+8>>2]=0;c[n>>2]=lg(l,0,39361,g)|0;if(!(c[n>>2]|0)){if(Ff(1)|0){af(41203,c[s>>2]|0);af(41219,c[s+4>>2]|0)}c[t>>2]=Rp(0)|0;El(c[t>>2]|0,c[q>>2]|0,s);if(Ff(1)|0)af(41235,c[t>>2]|0);if(c[o+32>>2]|0){c[n>>2]=Db[c[o+32>>2]&7](o,c[t>>2]|0)|0;break}else{l=(wo(c[t>>2]|0,c[r>>2]|0)|0)!=0;c[n>>2]=l?8:0;break}}}}while(0);Tp(c[t>>2]|0);Tp(c[s>>2]|0);Tp(c[s+4>>2]|0);Tp(c[r>>2]|0);Tp(c[q>>2]|0);Rf(c[p>>2]|0);Mj(o);if(!(Ff(1)|0)){u=c[n>>2]|0;i=e;return u|0}if(c[n>>2]|0)v=Bt(c[n>>2]|0)|0;else v=47492;c[f>>2]=v;Ye(41251,f);u=c[n>>2]|0;i=e;return u|0}function ul(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+16|0;e=b+12|0;f=b+8|0;g=b+4|0;h=b;c[e>>2]=a;c[f>>2]=Tf(c[e>>2]|0,39375,1)|0;if(!(c[f>>2]|0)){c[d>>2]=0;k=c[d>>2]|0;i=b;return k|0}c[g>>2]=$f(c[f>>2]|0,1,5)|0;Rf(c[f>>2]|0);if(c[g>>2]|0)l=lo(c[g>>2]|0)|0;else l=0;c[h>>2]=l;Tp(c[g>>2]|0);c[d>>2]=c[h>>2];k=c[d>>2]|0;i=b;return k|0}function vl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+4|0;h=e;c[f>>2]=a;c[e+8>>2]=b;c[g>>2]=d;if((c[f>>2]|0)==1){c[h>>2]=xl(c[g>>2]|0)|0;k=c[h>>2]|0;i=e;return k|0}else{c[h>>2]=4;k=c[h>>2]|0;i=e;return k|0}return 0}function wl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=Tf(c[g>>2]|0,39375,1)|0;if(!(c[h>>2]|0)){c[e>>2]=68;m=c[e>>2]|0;i=d;return m|0}c[k>>2]=Xf(c[h>>2]|0,1,l)|0;if(c[k>>2]|0){$i(c[f>>2]|0,c[k>>2]|0,c[l>>2]|0);Rf(c[h>>2]|0);c[e>>2]=0;m=c[e>>2]|0;i=d;return m|0}else{Rf(c[h>>2]|0);c[e>>2]=68;m=c[e>>2]|0;i=d;return m|0}return 0}function xl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+24|0;e=b+20|0;f=b+16|0;g=b+12|0;h=b+8|0;k=b+4|0;l=b;c[e>>2]=a;c[k>>2]=0;c[l>>2]=0;c[f>>2]=39377;c[h>>2]=eg(k,0,39385,hv(39385)|0)|0;if(!(c[h>>2]|0))c[h>>2]=eg(l,0,40415,hv(40415)|0)|0;do if(!(c[h>>2]|0)){c[f>>2]=40732;c[h>>2]=Yj(c[k>>2]|0)|0;if(c[h>>2]|0){c[g>>2]=yl(c[h>>2]|0)|0;break}c[f>>2]=40748;c[g>>2]=zl(c[l>>2]|0,c[k>>2]|0)|0;if((c[g>>2]|0)==0?(c[f>>2]=40753,c[g>>2]=Al(c[l>>2]|0,c[k>>2]|0)|0,(c[g>>2]|0)==0):0){Rf(c[l>>2]|0);Rf(c[k>>2]|0);c[d>>2]=0;m=c[d>>2]|0;i=b;return m|0}}else c[g>>2]=yl(c[h>>2]|0)|0;while(0);Rf(c[l>>2]|0);Rf(c[k>>2]|0);if(c[e>>2]|0)Eb[c[e>>2]&1](47251,1,c[f>>2]|0,c[g>>2]|0);c[d>>2]=50;m=c[d>>2]|0;i=b;return m|0}function yl(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Bt(c[d>>2]|0)|0;i=b;return a|0}function zl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+24|0;f=d+20|0;g=d+16|0;h=d+12|0;k=d+8|0;l=d+4|0;m=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=0;c[k>>2]=0;c[l>>2]=0;c[m>>2]=0;c[h>>2]=eg(k,0,40963,hv(40963)|0)|0;if(!(c[h>>2]|0))c[h>>2]=eg(l,0,41039,hv(41039)|0)|0;do if(!(c[h>>2]|0)){c[h>>2]=Wj(m,c[k>>2]|0,c[f>>2]|0)|0;if(c[h>>2]|0){c[g>>2]=41115;break}c[h>>2]=Xj(c[m>>2]|0,c[k>>2]|0,c[e>>2]|0)|0;if(c[h>>2]|0){c[g>>2]=41130;break}c[h>>2]=Xj(c[m>>2]|0,c[l>>2]|0,c[e>>2]|0)|0;if((Cl(c[h>>2]|0)|0)!=8)c[g>>2]=41144}else c[g>>2]=40791;while(0);Rf(c[m>>2]|0);Rf(c[l>>2]|0);Rf(c[k>>2]|0);i=d;return c[g>>2]|0}function Al(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+64|0;if((i|0)>=(j|0))$(64);e=d;f=d+48|0;g=d+44|0;h=d+40|0;k=d+36|0;l=d+28|0;m=d+24|0;n=d+20|0;o=d+16|0;p=d+12|0;q=d+8|0;r=d+4|0;c[f>>2]=a;c[g>>2]=b;c[h>>2]=0;c[d+32>>2]=1e3;c[l>>2]=0;c[m>>2]=0;c[n>>2]=0;c[o>>2]=0;c[p>>2]=0;c[q>>2]=0;c[r>>2]=0;c[l>>2]=Rp(1e3)|0;Up(c[l>>2]|0,1e3,0);c[e>>2]=c[l>>2];c[k>>2]=cg(m,0,40761,e)|0;do if(!(c[k>>2]|0)){c[k>>2]=Tj(n,c[m>>2]|0,c[f>>2]|0)|0;if(c[k>>2]|0){c[h>>2]=40814;break}c[o>>2]=Bl(c[n>>2]|0)|0;if(!(c[o>>2]|0)){c[h>>2]=40829;break}if(!(wo(c[l>>2]|0,c[o>>2]|0)|0)){c[h>>2]=40862;break}c[k>>2]=Vj(p,c[n>>2]|0,c[g>>2]|0)|0;if(c[k>>2]|0){c[h>>2]=40891;break}c[r>>2]=Tf(c[p>>2]|0,40906,0)|0;if(c[r>>2]|0)c[q>>2]=$f(c[r>>2]|0,1,5)|0;else c[q>>2]=$f(c[p>>2]|0,0,5)|0;if(!(c[q>>2]|0)){c[h>>2]=40912;break}if(wo(c[l>>2]|0,c[q>>2]|0)|0)c[h>>2]=40942}else c[h>>2]=40791;while(0);Rf(c[r>>2]|0);Tp(c[q>>2]|0);Rf(c[p>>2]|0);Tp(c[o>>2]|0);Rf(c[n>>2]|0);Rf(c[m>>2]|0);Tp(c[l>>2]|0);i=d;return c[h>>2]|0}function Bl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+20|0;e=b+16|0;f=b+12|0;g=b+8|0;h=b+4|0;k=b;c[e>>2]=a;c[f>>2]=Tf(c[e>>2]|0,40951,0)|0;if(!(c[f>>2]|0)){c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}c[g>>2]=Tf(c[f>>2]|0,40959,0)|0;Rf(c[f>>2]|0);if(!(c[g>>2]|0)){c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}c[h>>2]=Tf(c[g>>2]|0,39371,0)|0;Rf(c[g>>2]|0);if(c[h>>2]|0){c[k>>2]=$f(c[h>>2]|0,1,0)|0;Rf(c[h>>2]|0);c[d>>2]=c[k>>2];l=c[d>>2]|0;i=b;return l|0}else{c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}return 0}function Cl(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Dl(c[d>>2]|0)|0;i=b;return a|0}function Dl(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return c[d>>2]&65535|0}function El(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if((c[f>>2]|0)==(c[g>>2]|0)){c[k>>2]=vp(c[(c[g>>2]|0)+4>>2]<<1)|0;So(c[k>>2]|0,c[g>>2]|0,c[(c[h>>2]|0)+4>>2]|0,c[c[h>>2]>>2]|0);Kp(c[f>>2]|0,c[k>>2]|0)|0;Dp(c[k>>2]|0);i=e;return}else{So(c[f>>2]|0,c[g>>2]|0,c[(c[h>>2]|0)+4>>2]|0,c[c[h>>2]>>2]|0);i=e;return}}function Fl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4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>>2]<<1)|0;Qo(c[f>>2]|0,c[(c[d>>2]|0)+12>>2]|0,c[(c[d>>2]|0)+16>>2]|0);c[e>>2]=wo(c[f>>2]|0,c[c[d>>2]>>2]|0)|0;Dp(c[f>>2]|0);i=b;return ((c[e>>2]|0)!=0^1)&1|0}function Hl(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0;g=i;i=i+176|0;if((i|0)>=(j|0))$(176);h=g;k=g+164|0;l=g+160|0;m=g+156|0;n=g+152|0;o=g+148|0;p=g+144|0;q=g+140|0;r=g+136|0;s=g+132|0;t=g+128|0;u=g+124|0;v=g+120|0;w=g+116|0;x=g+112|0;y=g+108|0;z=g+104|0;A=g+100|0;B=g+96|0;C=g+92|0;D=g+88|0;E=g+84|0;F=g+80|0;G=g+76|0;H=g+72|0;I=g+16|0;J=g+8|0;K=g+4|0;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[c[p>>2]>>2]=0;if((c[n>>2]|0)==1)c[n>>2]=65537;if((c[m>>2]|0)>>>0>=1024?(((c[m>>2]|0)>>>0)%256|0|0)==0:0){if((c[n>>2]|0)>>>0<3){c[k>>2]=55;L=c[k>>2]|0;i=g;return L|0}if(!(c[n>>2]&1)){c[k>>2]=55;L=c[k>>2]|0;i=g;return L|0}c[B>>2]=0;c[C>>2]=0;c[D>>2]=0;c[E>>2]=0;c[F>>2]=0;c[G>>2]=0;if(c[o>>2]|0){f=I;e=f+56|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(e|0));c[I>>2]=42052;c[I+8>>2]=42056;c[I+16>>2]=42060;c[I+24>>2]=42063;c[I+32>>2]=42067;c[I+40>>2]=42071;c[I+4>>2]=B;c[I+8+4>>2]=C;c[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];c[(c[l>>2]|0)+16>>2]=c[r>>2];c[(c[l>>2]|0)+8>>2]=c[u>>2];c[(c[l>>2]|0)+20>>2]=c[v>>2];if(Kl(c[l>>2]|0,(c[m>>2]|0)-64|0)|0){Tp(c[c[l>>2]>>2]|0);c[c[l>>2]>>2]=0;Tp(c[(c[l>>2]|0)+4>>2]|0);c[(c[l>>2]|0)+4>>2]=0;Tp(c[(c[l>>2]|0)+12>>2]|0);c[(c[l>>2]|0)+12>>2]=0;Tp(c[(c[l>>2]|0)+16>>2]|0);c[(c[l>>2]|0)+16>>2]=0;Tp(c[(c[l>>2]|0)+8>>2]|0);c[(c[l>>2]|0)+8>>2]=0;Tp(c[(c[l>>2]|0)+20>>2]|0);c[(c[l>>2]|0)+20>>2]=0;dh(41941,586,42108,0,42014);c[k>>2]=50;L=c[k>>2]|0;i=g;return L|0}else{c[k>>2]=0;L=c[k>>2]|0;i=g;return L|0}}c[k>>2]=55;L=c[k>>2]|0;i=g;return L|0}function Il(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;i=i+80|0;if((i|0)>=(j|0))$(80);g=f+64|0;h=f+60|0;k=f+56|0;l=f+52|0;m=f+48|0;n=f+44|0;o=f+40|0;p=f+36|0;q=f+32|0;r=f+28|0;s=f+24|0;t=f+20|0;u=f+16|0;v=f+12|0;w=f+8|0;x=f+4|0;y=f;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;if(Wg()|0){if((c[k>>2]|0)>>>0<1024){c[g>>2]=55;z=c[g>>2]|0;i=f;return z|0}if(c[m>>2]|0){c[g>>2]=55;z=c[g>>2]|0;i=f;return z|0}}c[y>>2]=c[m>>2]|0?1:2;if(c[k>>2]&1|0)c[k>>2]=(c[k>>2]|0)+1;if((c[l>>2]|0)==1)c[l>>2]=65537;c[u>>2]=vp(1)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]|0,c[n>>2]|0,c[o>>2]|0)|0;if(Ff(1)|0){af(41960,c[n>>2]|0);af(41966,c[o>>2]|0);af(41972,c[v>>2]|0);af(41978,c[w>>2]|0);af(41984,c[x>>2]|0);af(41990,c[t>>2]|0);af(41996,c[u>>2]|0);af(42002,c[p>>2]|0);af(42008,c[q>>2]|0)}Tp(c[r>>2]|0);Tp(c[s>>2]|0);Tp(c[v>>2]|0);Tp(c[x>>2]|0);Tp(c[w>>2]|0);c[c[h>>2]>>2]=c[t>>2];c[(c[h>>2]|0)+4>>2]=c[u>>2];c[(c[h>>2]|0)+12>>2]=c[n>>2];c[(c[h>>2]|0)+16>>2]=c[o>>2];c[(c[h>>2]|0)+8>>2]=c[p>>2];c[(c[h>>2]|0)+20>>2]=c[q>>2];if(Kl(c[h>>2]|0,(c[k>>2]|0)-64|0)|0){Tp(c[c[h>>2]>>2]|0);c[c[h>>2]>>2]=0;Tp(c[(c[h>>2]|0)+4>>2]|0);c[(c[h>>2]|0)+4>>2]=0;Tp(c[(c[h>>2]|0)+12>>2]|0);c[(c[h>>2]|0)+12>>2]=0;Tp(c[(c[h>>2]|0)+16>>2]|0);c[(c[h>>2]|0)+16>>2]=0;Tp(c[(c[h>>2]|0)+8>>2]|0);c[(c[h>>2]|0)+8>>2]=0;Tp(c[(c[h>>2]|0)+20>>2]|0);c[(c[h>>2]|0)+20>>2]=0;dh(41941,334,41947,0,42014);c[g>>2]=50;z=c[g>>2]|0;i=f;return z|0}else{c[g>>2]=0;z=c[g>>2]|0;i=f;return z|0}return 0}function Jl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=c[e>>2];go(c[f>>2]|0,c[f>>2]|0,1);c[h>>2]=Lp(c[f>>2]|0)|0;c[k>>2]=((Fo(c[h>>2]|0,c[g>>2]|0,c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|0;if((a|0)==(c[d>>2]|0)){i=b;return c[e>>2]|0}else Se(42214,41941,360,42250);return 0}function Ml(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;c[b>>2]=Sp(101)|0;Up(c[b>>2]|0,101,2);oo(c[b>>2]|0,100);if((lo(c[b>>2]|0)|0)==101){i=a;return c[b>>2]|0}else Se(42163,41941,375,42197);return 0}function Nl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+4|0;c[e>>2]=a;c[d+8>>2]=b;c[f>>2]=c[e>>2];c[d>>2]=pg()|0;c[(c[f>>2]|0)+160>>2]=1732584193;c[(c[f>>2]|0)+164>>2]=-271733879;c[(c[f>>2]|0)+168>>2]=-1732584194;c[(c[f>>2]|0)+172>>2]=271733878;c[(c[f>>2]|0)+176>>2]=-1009589776;e=(c[f>>2]|0)+128|0;c[e>>2]=0;c[e+4>>2]=0;e=(c[f>>2]|0)+136|0;c[e>>2]=0;c[e+4>>2]=0;c[(c[f>>2]|0)+144>>2]=0;c[(c[f>>2]|0)+148>>2]=64;c[(c[f>>2]|0)+152>>2]=32;i=d;return}
-function Ks(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f;h=f+12|0;k=f+8|0;l=f+4|0;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(c[h>>2]|0))Se(52739,51404,685,52762);if(!(c[l>>2]|0))Se(51624,51404,686,52762);Es(c[l>>2]|0);do if(!(c[(c[l>>2]|0)+4>>2]|0)){if((c[l>>2]|0)==(c[17790]|0)){e=Ls(1)|0;c[(c[l>>2]|0)+4>>2]=e}else{e=Ls(0)|0;c[(c[l>>2]|0)+4>>2]=e}if(c[(c[l>>2]|0)+4>>2]|0){e=_v()|0;c[(c[l>>2]|0)+60>>2]=e;break}else We(51686,g)}while(0);if(!((a[(c[l>>2]|0)+8>>0]<<7&255)<<24>>24>>7<<24>>24))Ms(c[l>>2]|0);e=c[(c[l>>2]|0)+60>>2]|0;if((e|0)==(_v()|0)?(e=c[(c[l>>2]|0)+64>>2]|0,(e|0)==(_v()|0)):0)if(Ns(c[h>>2]|0,c[k>>2]|0,c[l>>2]|0)|0)We(51686,g);else{Es(c[l>>2]|0);i=f;return}dh(51404,714,52762,0,51632);We(51686,g)}function Ls(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;i=i+64|0;if((i|0)>=(j|0))$(64);f=e+16|0;g=e+8|0;h=e+48|0;k=e+44|0;l=e+40|0;m=e+36|0;n=e+32|0;o=e+28|0;p=e+24|0;q=e+52|0;r=e;s=e+20|0;c[k>>2]=b;if(!(c[17793]|0))Se(51715,51404,596,52093);c[m>>2]=wh(l,7,1,1)|0;if(c[m>>2]|0){c[g>>2]=Ss(c[m>>2]|0)|0;Ve(52111,g);c[h>>2]=0;t=c[h>>2]|0;i=e;return t|0}if(c[k>>2]|0){c[n>>2]=zf(16)|0;Ks(c[n>>2]|0,16,c[17791]|0)}else c[n>>2]=Us(16)|0;c[m>>2]=Jh(c[l>>2]|0,c[n>>2]|0,16)|0;c[o>>2]=c[n>>2];c[p>>2]=16;a[q>>0]=0;k=r;c[k>>2]=d[q>>0];c[k+4>>2]=0;while(1){if(!(c[o>>2]&7|0?(c[p>>2]|0)!=0:0))break;a[c[o>>2]>>0]=a[q>>0]|0;c[o>>2]=(c[o>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+-1}if((c[p>>2]|0)>>>0>=8){k=r;g=ex(c[k>>2]|0,c[k+4>>2]|0,16843009,16843009)|0;k=r;c[k>>2]=g;c[k+4>>2]=D;do{c[s>>2]=c[o>>2];k=r;g=c[k+4>>2]|0;b=c[s>>2]|0;c[b>>2]=c[k>>2];c[b+4>>2]=g;c[p>>2]=(c[p>>2]|0)-8;c[o>>2]=(c[o>>2]|0)+8}while((c[p>>2]|0)>>>0>=8)}while(1){if(!(c[p>>2]|0))break;a[c[o>>2]>>0]=a[q>>0]|0;c[o>>2]=(c[o>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+-1}vf(c[n>>2]|0);if(c[m>>2]|0){c[f>>2]=Ss(c[m>>2]|0)|0;Ve(52154,f);Bh(c[l>>2]|0);c[h>>2]=0;t=c[h>>2]|0;i=e;return t|0}else{c[h>>2]=c[l>>2];t=c[h>>2]|0;i=e;return t|0}return 0}function Ms(b){b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=b;if(!(c[17793]|0))Se(51715,51404,658,51956);b=(c[e>>2]|0)+17|0;if((c[e>>2]|0)==(c[17790]|0)){Ks(b,16,c[17791]|0);f=(c[e>>2]|0)+8|0;a[f>>0]=a[f>>0]&-2|1;f=_v()|0;c[(c[e>>2]|0)+64>>2]=f;i=d;return}else{Ts(b,16);b=(c[e>>2]|0)+8|0;a[b>>0]=a[b>>0]&-2|1;b=_v()|0;c[(c[e>>2]|0)+64>>2]=b;i=d;return}}function Ns(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;g=i;i=i+80|0;if((i|0)>=(j|0))$(80);h=g+48|0;k=g+44|0;l=g+40|0;m=g+36|0;n=g+56|0;o=g+32|0;p=g+28|0;q=g+24|0;r=g+20|0;s=g+16|0;t=g+12|0;u=g+52|0;v=g;w=g+8|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;if(!(c[17793]|0))Se(51715,51404,444,51734);if(!(c[(c[m>>2]|0)+4>>2]|0))Se(51750,51404,445,51734);if(!((a[(c[m>>2]|0)+8>>0]<<7&255)<<24>>24>>7<<24>>24))Se(51769,51404,446,51734);if(!(c[17789]|0))Se(51788,51404,448,51734);c[o>>2]=c[17789];c[p>>2]=(c[17789]|0)+16;c[q>>2]=(c[17789]|0)+32;while(1){if(!(c[l>>2]|0)){x=33;break}if((c[(c[m>>2]|0)+52>>2]|0)==0?(c[(c[m>>2]|0)+12>>2]|0)>>>0>1e3:0){Ms(c[m>>2]|0);c[(c[m>>2]|0)+12>>2]=0}c[r>>2]=(c[l>>2]|0)>>>0<16?c[l>>2]|0:16;Os(n,16,c[m>>2]|0);Ps(c[q>>2]|0,n,(c[m>>2]|0)+17|0,c[(c[m>>2]|0)+4>>2]|0,c[o>>2]|0,c[p>>2]|0);f=(c[m>>2]|0)+12|0;c[f>>2]=(c[f>>2]|0)+1;if(!((((d[(c[m>>2]|0)+51>>0]|0|0?c[(c[m>>2]|0)+52>>2]|0:0)?(c[m>>2]|0)!=(c[17790]|0):0)?(c[m>>2]|0)!=(c[17791]|0):0)?(c[m>>2]|0)!=(c[17792]|0):0)){f=(c[m>>2]|0)+34|0;e=c[q>>2]|0;if(!((a[(c[m>>2]|0)+8>>0]<<6&255)<<24>>24>>7<<24>>24)){y=f;z=e;A=y+16|0;do{a[y>>0]=a[z>>0]|0;y=y+1|0;z=z+1|0}while((y|0)<(A|0));b=(c[m>>2]|0)+8|0;a[b>>0]=a[b>>0]&-3|2;continue}if(!(Jv(f,e,16)|0)){x=22;break}y=(c[m>>2]|0)+34|0;z=c[q>>2]|0;A=y+16|0;do{a[y>>0]=a[z>>0]|0;y=y+1|0;z=z+1|0}while((y|0)<(A|0))}Yw(c[k>>2]|0,c[q>>2]|0,c[r>>2]|0)|0;c[s>>2]=c[q>>2];c[t>>2]=16;a[u>>0]=0;e=v;c[e>>2]=d[u>>0];c[e+4>>2]=0;while(1){if(!(c[s>>2]&7|0?(c[t>>2]|0)!=0:0))break;a[c[s>>2]>>0]=a[u>>0]|0;c[s>>2]=(c[s>>2]|0)+1;c[t>>2]=(c[t>>2]|0)+-1}if((c[t>>2]|0)>>>0>=8){e=v;f=ex(c[e>>2]|0,c[e+4>>2]|0,16843009,16843009)|0;e=v;c[e>>2]=f;c[e+4>>2]=D;do{c[w>>2]=c[s>>2];e=v;f=c[e+4>>2]|0;b=c[w>>2]|0;c[b>>2]=c[e>>2];c[b+4>>2]=f;c[t>>2]=(c[t>>2]|0)-8;c[s>>2]=(c[s>>2]|0)+8}while((c[t>>2]|0)>>>0>=8)}while(1){if(!(c[t>>2]|0))break;a[c[s>>2]>>0]=a[u>>0]|0;c[s>>2]=(c[s>>2]|0)+1;c[t>>2]=(c[t>>2]|0)+-1}c[k>>2]=(c[k>>2]|0)+(c[r>>2]|0);c[l>>2]=(c[l>>2]|0)-(c[r>>2]|0)}if((x|0)==22){dh(51404,502,51734,0,51818);c[h>>2]=-1;B=c[h>>2]|0;i=g;return B|0}else if((x|0)==33){c[h>>2]=0;B=c[h>>2]|0;i=g;return B|0}return 0}function Os(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0;h=i;i=i+32|0;if((i|0)>=(j|0))$(32);k=h;l=h+28|0;m=h+24|0;n=h+20|0;o=h+16|0;p=h+8|0;c[l>>2]=d;c[m>>2]=f;c[n>>2]=g;if((c[m>>2]|0)!=16)Se(51858,51404,273,51917);if(!(c[17793]|0))Se(51715,51404,274,51917);if(((c[(c[n>>2]|0)+52>>2]|0?(c[n>>2]|0)!=(c[17790]|0):0)?(c[n>>2]|0)!=(c[17791]|0):0)?(c[n>>2]|0)!=(c[17792]|0):0){m=c[l>>2]|0;g=c[(c[n>>2]|0)+52>>2]|0;f=m+16|0;do{a[m>>0]=a[g>>0]|0;m=m+1|0;g=g+1|0}while((m|0)<(f|0));a[(c[l>>2]|0)+12>>0]=(c[(c[n>>2]|0)+56>>2]|0)>>>24;a[(c[l>>2]|0)+13>>0]=(c[(c[n>>2]|0)+56>>2]|0)>>>16;a[(c[l>>2]|0)+14>>0]=(c[(c[n>>2]|0)+56>>2]|0)>>>8;a[(c[l>>2]|0)+15>>0]=c[(c[n>>2]|0)+56>>2];g=(c[n>>2]|0)+56|0;c[g>>2]=(c[g>>2]|0)+1;i=h;return}if(!(c[17795]|0)){c[17796]=_v()|0;c[17797]=qw()|0}if(lb(p|0,0)|0){c[k>>2]=Nu(c[(xu()|0)>>2]|0)|0;We(51929,k)}c[o>>2]=c[p+4>>2];c[o>>2]=c[o>>2]<<4;if((c[p>>2]|0)==(c[17795]|0)?(c[o>>2]|0)==(c[17798]|0):0){b[35902]=(b[35902]|0)+1<<16>>16;b[35902]=(e[35902]|0)&4095}else{b[35902]=0;c[17795]=c[p>>2];c[17798]=c[o>>2]}a[c[l>>2]>>0]=c[p>>2]>>24;a[(c[l>>2]|0)+1>>0]=c[p>>2]>>16;a[(c[l>>2]|0)+2>>0]=c[p>>2]>>8;a[(c[l>>2]|0)+3>>0]=c[p>>2];a[(c[l>>2]|0)+4>>0]=(c[o>>2]|0)>>>16;a[(c[l>>2]|0)+5>>0]=(c[o>>2]|0)>>>8;a[(c[l>>2]|0)+6>>0]=c[o>>2]&240|(e[35902]|0)>>8&15;a[(c[l>>2]|0)+7>>0]=e[35902]|0;a[(c[l>>2]|0)+8>>0]=(c[17796]|0)>>>24;a[(c[l>>2]|0)+9>>0]=(c[17796]|0)>>>16;a[(c[l>>2]|0)+10>>0]=(c[17796]|0)>>>8;a[(c[l>>2]|0)+11>>0]=c[17796];a[(c[l>>2]|0)+12>>0]=(c[17797]|0)>>>24;a[(c[l>>2]|0)+13>>0]=(c[17797]|0)>>>16;a[(c[l>>2]|0)+14>>0]=(c[17797]|0)>>>8;a[(c[l>>2]|0)+15>>0]=c[17797];l=(c[17797]|0)+1|0;c[17797]=l;if(l|0){i=h;return}c[17796]=(c[17796]|0)+1;i=h;return}function Ps(b,e,f,g,h,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;l=i;i=i+80|0;if((i|0)>=(j|0))$(80);m=l+60|0;n=l+56|0;o=l+52|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8){r=A;t=ex(c[r>>2]|0,c[r+4>>2]|0,16843009,16843009)|0;r=A;c[r>>2]=t;c[r+4>>2]=D;do{c[B>>2]=c[x>>2];r=A;t=c[r+4>>2]|0;s=c[B>>2]|0;c[s>>2]=c[r>>2];c[s+4>>2]=t;c[y>>2]=(c[y>>2]|0)-8;c[x>>2]=(c[x>>2]|0)+8}while((c[y>>2]|0)>>>0>=8)}while(1){if(!(c[y>>2]|0))break;a[c[x>>2]>>0]=a[z>>0]|0;c[x>>2]=(c[x>>2]|0)+1;c[y>>2]=(c[y>>2]|0)+-1}i=l;return}function Qs(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;h=f+20|0;k=f+16|0;l=f+12|0;m=f+8|0;n=f+4|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;if((c[m>>2]|0)!=16)Se(51858,51404,386,51871);c[n>>2]=Ch(c[h>>2]|0,c[k>>2]|0,c[m>>2]|0,c[l>>2]|0,c[m>>2]|0)|0;if(c[n>>2]|0){c[g>>2]=Ss(c[n>>2]|0)|0;We(51883,g)}else{i=f;return}}function Rs(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;h=i;i=i+16|0;if((i|0)>=(j|0))$(16);k=h+12|0;l=h+8|0;m=h+4|0;n=h;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;while(1){if(!(c[n>>2]|0))break;a[c[k>>2]>>0]=(d[c[l>>2]>>0]|0)^(d[c[m>>2]>>0]|0);c[n>>2]=(c[n>>2]|0)+-1;c[l>>2]=(c[l>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+1;c[k>>2]=(c[k>>2]|0)+1}i=h;return}function Ss(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Bt(c[d>>2]|0)|0;i=b;return a|0}function Ts(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+28|0;h=f+24|0;k=f+20|0;l=f+16|0;m=f+12|0;n=f+32|0;o=f;p=f+8|0;c[g>>2]=b;c[h>>2]=e;if(!(c[17793]|0))Se(51715,51404,642,51968);if((c[h>>2]|0)!=16)Se(51858,51404,643,51968);c[k>>2]=Us(16)|0;h=c[g>>2]|0;g=c[k>>2]|0;e=h+16|0;do{a[h>>0]=a[g>>0]|0;h=h+1|0;g=g+1|0}while((h|0)<(e|0));c[l>>2]=c[k>>2];c[m>>2]=16;a[n>>0]=0;g=o;c[g>>2]=d[n>>0];c[g+4>>2]=0;while(1){if(!(c[l>>2]&7|0?(c[m>>2]|0)!=0:0))break;a[c[l>>2]>>0]=a[n>>0]|0;c[l>>2]=(c[l>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+-1}if((c[m>>2]|0)>>>0>=8){g=o;h=ex(c[g>>2]|0,c[g+4>>2]|0,16843009,16843009)|0;g=o;c[g>>2]=h;c[g+4>>2]=D;do{c[p>>2]=c[l>>2];g=o;h=c[g+4>>2]|0;e=c[p>>2]|0;c[e>>2]=c[g>>2];c[e+4>>2]=h;c[m>>2]=(c[m>>2]|0)-8;c[l>>2]=(c[l>>2]|0)+8}while((c[m>>2]|0)>>>0>=8)}while(1){if(!(c[m>>2]|0))break;a[c[l>>2]>>0]=a[n>>0]|0;c[l>>2]=(c[l>>2]|0)+1;c[m>>2]=(c[m>>2]|0)+-1}vf(c[k>>2]|0);i=f;return}function Us(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;e=b+12|0;f=b+8|0;g=b+4|0;c[e>>2]=a;if(c[17799]|0)Se(51987,51404,552,52011);c[17799]=Bf(c[e>>2]|0)|0;c[17800]=c[e>>2];c[17801]=0;c[g>>2]=nt(4,0,16,2)|0;if((c[g>>2]|0)<0){h=c[17799]|0;vf(h);c[17799]=0;We(52023,d)}if((c[17801]|0)!=(c[17800]|0)){h=c[17799]|0;vf(h);c[17799]=0;We(52023,d)}else{c[f>>2]=c[17799];c[17799]=0;i=b;return c[f>>2]|0}return 0}function Vs(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;g=i;i=i+16|0;if((i|0)>=(j|0))$(16);h=g+12|0;k=g+8|0;l=g;c[h>>2]=b;c[k>>2]=e;c[g+4>>2]=f;c[l>>2]=c[h>>2];if(!(c[17793]|0))Se(51715,51404,531,52051);if(!(c[17799]|0))Se(52070,51404,532,52051);while(1){h=c[k>>2]|0;c[k>>2]=h+-1;if(!h){m=8;break}if((c[17801]|0)>>>0>=(c[17800]|0)>>>0){m=8;break}h=c[l>>2]|0;c[l>>2]=h+1;f=d[h>>0]|0;h=c[17801]|0;c[17801]=h+1;e=(c[17799]|0)+h|0;a[e>>0]=(d[e>>0]|0)^f}if((m|0)==8){i=g;return}}function Ws(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;As(1);Cs();Ks(c[e>>2]|0,c[f>>2]|0,c[17790]|0);Fs();i=d;return}function Xs(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;jn(b+8|0,8,1);c[e>>2]=Ys(c[d>>2]|0)|0;d=Zs(c[e>>2]|0)|0;i=b;return d|0}function Ys(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+20|0;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;m=e;n=e+24|0;c[f>>2]=b;c[m>>2]=0;if(!(c[17789]|0))Se(51788,51404,912,52186);c[k>>2]=Cf(1,68)|0;Ds(c[k>>2]|0);Cs();c[g>>2]=0;a:while(1){if((c[g>>2]|0)>>>0>=3)break;c[l>>2]=wh((c[k>>2]|0)+4|0,7,1,1)|0;if(c[l>>2]|0){o=6;break}c[l>>2]=Jh(c[(c[k>>2]|0)+4>>2]|0,52237+((c[g>>2]|0)*96|0)|0,16)|0;if(c[l>>2]|0){o=8;break}b=_v()|0;c[(c[k>>2]|0)+60>>2]=b;b=(c[k>>2]|0)+17|0;p=52237+((c[g>>2]|0)*96|0)+32|0;q=b+16|0;do{a[b>>0]=a[p>>0]|0;b=b+1|0;p=p+1|0}while((b|0)<(q|0));p=(c[k>>2]|0)+8|0;a[p>>0]=a[p>>0]&-2|1;p=_v()|0;c[(c[k>>2]|0)+64>>2]=p;c[(c[k>>2]|0)+52>>2]=52237+((c[g>>2]|0)*96|0)+16;c[(c[k>>2]|0)+56>>2]=(d[52237+((c[g>>2]|0)*96|0)+16+12>>0]|0)<<24|(d[52237+((c[g>>2]|0)*96|0)+16+13>>0]|0)<<16|(d[52237+((c[g>>2]|0)*96|0)+16+14>>0]|0)<<8|(d[52237+((c[g>>2]|0)*96|0)+16+15>>0]|0);c[h>>2]=0;while(1){if((c[h>>2]|0)>=3)break;if(Ns(n,16,c[k>>2]|0)|0){o=12;break a}if(Jv(n,52237+((c[g>>2]|0)*96|0)+48+(c[h>>2]<<4)|0,16)|0){o=14;break a}c[h>>2]=(c[h>>2]|0)+1}p=c[(c[k>>2]|0)+60>>2]|0;if((p|0)!=(_v()|0)){o=18;break}p=c[(c[k>>2]|0)+64>>2]|0;if((p|0)!=(_v()|0)){o=18;break}Bh(c[(c[k>>2]|0)+4>>2]|0);c[(c[k>>2]|0)+4>>2]=0;p=(c[k>>2]|0)+8|0;a[p>>0]=a[p>>0]&-2;Es(c[k>>2]|0);c[g>>2]=(c[g>>2]|0)+1}if((o|0)==6)c[m>>2]=52199;else if((o|0)==8)c[m>>2]=52525;else if((o|0)==12)c[m>>2]=52551;else if((o|0)==14)c[m>>2]=52582;else if((o|0)==18)c[m>>2]=52620;Fs();Bh(c[(c[k>>2]|0)+4>>2]|0);Es(c[k>>2]|0);vf(c[k>>2]|0);if(!((c[f>>2]|0)!=0&(c[m>>2]|0)!=0)){r=c[m>>2]|0;s=(r|0)!=0;t=s?50:0;i=e;return t|0}Eb[c[f>>2]&1](52642,0,52649,c[m>>2]|0);r=c[m>>2]|0;s=(r|0)!=0;t=s?50:0;i=e;return t|0}function Zs(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=_s(1,c[d>>2]|0)|0;i=b;return a|0}function _s(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;if(!(c[f>>2]|0)){g=0;i=d;return g|0}g=(c[e>>2]&127)<<24|c[f>>2]&65535;i=d;return g|0}function $s(b,e,f,g,h,k,l,m){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;n=i;i=i+48|0;if((i|0)>=(j|0))$(48);o=n+40|0;p=n+36|0;q=n+32|0;r=n+28|0;s=n+24|0;t=n+20|0;u=n+16|0;v=n+12|0;w=n+8|0;x=n+4|0;y=n;c[p>>2]=b;c[q>>2]=e;c[r>>2]=f;c[s>>2]=g;c[t>>2]=h;c[u>>2]=k;c[v>>2]=l;c[w>>2]=m;As(1);if((((((c[p>>2]|0)!=0&(c[r>>2]|0)!=0^1|(c[s>>2]|0)!=16)^1)&(c[t>>2]|0)!=0^1|(c[u>>2]|0)!=16)^1)&(c[v>>2]|0)!=0^1|(c[w>>2]|0)!=16){c[o>>2]=45;z=c[o>>2]|0;i=n;return z|0}c[y>>2]=wf(1,68+(c[w>>2]|0)|0)|0;if(!(c[y>>2]|0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>2]|0);Fs();c[f>>2]=0;m=c[f>>2]|0;i=e;return m|0}return 0}function bt(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];if(!(c[e>>2]|0)){i=b;return}Bh(c[(c[e>>2]|0)+4>>2]|0);vf(c[e>>2]|0);i=b;return}function ct(a){a=a|0;var b=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[b>>2]=a;dt();i=b;return}function dt(){if(c[17802]|0)return;c[17802]=1;c[17803]=0;return}function et(){ft();nt(0,0,0,0)|0;gt();return}function ft(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[d>>2]=Ht(13108)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;We(52696,b)}else{c[17803]=1;i=a;return}}function gt(){var a=0,b=0,d=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;d=a+4|0;c[17803]=0;c[d>>2]=It(13108)|0;if(c[d>>2]|0){c[b>>2]=Bt(c[d>>2]|0)|0;We(52653,b)}else{i=a;return}}function ht(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;ct(1);if((c[h>>2]|0)!=2)c[h>>2]=1;ft();it(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);gt();i=e;return}function it(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e;g=e+16|0;h=e+12|0;k=e+8|0;l=e+4|0;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(!(c[g>>2]|0))Se(52739,52746,144,52762);c[17804]=c[g>>2];c[17805]=c[h>>2];c[17806]=0;c[l>>2]=nt(5,0,c[h>>2]|0,c[k>>2]|0)|0;if((c[l>>2]|0)<0){m=c[l>>2]|0;c[f>>2]=m;We(52773,f)}if((c[17806]|0)!=(c[17805]|0)){m=c[l>>2]|0;c[f>>2]=m;We(52773,f)}else{i=e;return}}function jt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f;c[g>>2]=b;c[h>>2]=d;c[f+4>>2]=e;c[k>>2]=c[g>>2];if(!(c[17803]|0))Se(52819,52746,124,52840);if(!(c[17804]|0))Se(52848,52746,125,52840);while(1){g=c[h>>2]|0;c[h>>2]=g+-1;if(!g){l=8;break}if((c[17806]|0)>>>0>=(c[17805]|0)>>>0){l=8;break}g=c[k>>2]|0;c[k>>2]=g+1;e=a[g>>0]|0;g=c[17806]|0;c[17806]=g+1;a[(c[17804]|0)+g>>0]=e}if((l|0)==8){i=f;return}}function kt(){return c[17807]|0}function lt(a,b){a=a|0;b=b|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[d+4>>2]=a;c[d>>2]=b;i=d;return}function mt(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[d+8>>2]=a;c[d+4>>2]=b;c[e>>2]=0;i=d;return c[e>>2]|0}function nt(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;h=i;i=i+1024|0;if((i|0)>=(j|0))$(1024);k=h+24|0;l=h+16|0;m=h+8|0;n=h+236|0;o=h+232|0;p=h+228|0;q=h+224|0;r=h+220|0;s=h+216|0;t=h+212|0;u=h+248|0;v=h+208|0;w=h+204|0;x=h+200|0;y=h+196|0;z=h+192|0;A=h+64|0;B=h+56|0;C=h+52|0;E=h+48|0;F=h+44|0;G=h+40|0;H=h+36|0;I=h+32|0;J=h+240|0;K=h;L=h+28|0;c[o>>2]=b;c[p>>2]=e;c[q>>2]=f;c[r>>2]=g;c[w>>2]=c[q>>2];c[x>>2]=0;c[y>>2]=0;if(!(c[o>>2]|0)){if((c[3288]|0)!=-1){Kv(c[3288]|0)|0;c[3288]=-1}if((c[3289]|0)!=-1){Kv(c[3289]|0)|0;c[3289]=-1}c[n>>2]=0;M=c[n>>2]|0;i=h;return M|0}c[v>>2]=mt(c[o>>2]|0,c[p>>2]|0)|0;if((c[v>>2]|0)>>>0>(((c[q>>2]|0)>>>0)/2|0)>>>0)c[v>>2]=((c[q>>2]|0)>>>0)/2|0;if((c[q>>2]|0)>>>0>1)c[q>>2]=(c[q>>2]|0)-(c[v>>2]|0);if((c[r>>2]|0)>=2){if((c[3288]|0)==-1){c[3288]=ot(52863,(d[72318]|0)&1)|0;a[72318]=d[72318]|0|1}c[s>>2]=c[3288]}else{if((c[3289]|0)==-1){c[3289]=ot(52875,(d[72318]|0)&2)|0;a[72318]=d[72318]|0|2}c[s>>2]=c[3289]}c[z>>2]=0;while(1){if(!(c[q>>2]|0))break;if(!(!(c[y>>2]|0)?(c[x>>2]|0)==((c[w>>2]|0)-(c[q>>2]|0)|0):0)){c[x>>2]=(c[w>>2]|0)-(c[q>>2]|0);Wm(52888,88,c[x>>2]|0,c[w>>2]|0);c[y>>2]=1}if((c[s>>2]|0)<1024){c[F>>2]=A;c[E>>2]=32;while(1){if(!(c[E>>2]|0))break;r=c[F>>2]|0;c[F>>2]=r+4;c[r>>2]=0;c[E>>2]=(c[E>>2]|0)+-1}r=A+((((c[s>>2]|0)>>>0)/32|0)<<2)|0;c[r>>2]=c[r>>2]|1<<(((c[s>>2]|0)>>>0)%32|0);c[B>>2]=c[z>>2];c[B+4>>2]=c[z>>2]|0?0:1e5;r=dw((c[s>>2]|0)+1|0,A,0,0,B)|0;c[C>>2]=r;if(!r){c[y>>2]=1;c[z>>2]=3;continue}if((c[C>>2]|0)==-1){c[m>>2]=Nu(c[(xu()|0)>>2]|0)|0;Ve(52901,m);if(c[z>>2]|0)continue;c[z>>2]=1;continue}}do{c[G>>2]=(c[q>>2]|0)>>>0<768?c[q>>2]|0:768;c[t>>2]=fw(c[s>>2]|0,u,c[G>>2]|0)|0;if((c[t>>2]|0)>=0?(c[t>>2]|0)>>>0>(c[G>>2]|0)>>>0:0){c[l>>2]=c[t>>2];Ve(52921,l);c[t>>2]=c[G>>2]}if((c[t>>2]|0)!=-1)break}while((c[(xu()|0)>>2]|0)==4);if((c[t>>2]|0)==-1){N=38;break}zb[c[o>>2]&7](u,c[t>>2]|0,c[p>>2]|0);c[q>>2]=(c[q>>2]|0)-(c[t>>2]|0)}if((N|0)==38){c[k>>2]=Nu(c[(xu()|0)>>2]|0)|0;We(52959,k)}c[H>>2]=u;c[I>>2]=768;a[J>>0]=0;u=K;c[u>>2]=d[J>>0];c[u+4>>2]=0;while(1){if(!(c[H>>2]&7|0?(c[I>>2]|0)!=0:0))break;a[c[H>>2]>>0]=a[J>>0]|0;c[H>>2]=(c[H>>2]|0)+1;c[I>>2]=(c[I>>2]|0)+-1}if((c[I>>2]|0)>>>0>=8){u=K;k=ex(c[u>>2]|0,c[u+4>>2]|0,16843009,16843009)|0;u=K;c[u>>2]=k;c[u+4>>2]=D;do{c[L>>2]=c[H>>2];u=K;k=c[u+4>>2]|0;N=c[L>>2]|0;c[N>>2]=c[u>>2];c[N+4>>2]=k;c[I>>2]=(c[I>>2]|0)-8;c[H>>2]=(c[H>>2]|0)+8}while((c[I>>2]|0)>>>0>=8)}while(1){if(!(c[I>>2]|0))break;a[c[H>>2]>>0]=a[J>>0]|0;c[H>>2]=(c[H>>2]|0)+1;c[I>>2]=(c[I>>2]|0)+-1}if(c[y>>2]|0)Wm(52888,88,c[w>>2]|0,c[w>>2]|0);c[n>>2]=0;M=c[n>>2]|0;i=h;return M|0}function ot(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+16|0;f=d+8|0;g=d;h=d+40|0;k=d+36|0;l=d+32|0;m=d+24|0;c[h>>2]=a;c[k>>2]=b;if(c[k>>2]|0)Wm(52992,88,1,0);while(1){c[l>>2]=gw(c[h>>2]|0,0,g)|0;if(!((c[l>>2]|0)==-1&(c[k>>2]|0)!=0))break;c[m>>2]=5;c[m+4>>2]=0;Wm(53008,88,0,c[m>>2]|0);dw(0,0,0,0,m)|0}if((c[l>>2]|0)==-1){m=c[h>>2]|0;h=Nu(c[(xu()|0)>>2]|0)|0;c[f>>2]=m;c[f+4>>2]=h;We(53024,f)}if(!(pt(c[l>>2]|0)|0)){n=c[l>>2]|0;i=d;return n|0}f=c[l>>2]|0;h=Nu(c[(xu()|0)>>2]|0)|0;c[e>>2]=f;c[e+4>>2]=h;Ve(53043,e);n=c[l>>2]|0;i=d;return n|0}function pt(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+8|0;e=b;f=b+20|0;g=b+16|0;h=b+12|0;c[g>>2]=a;a=c[g>>2]|0;c[e>>2]=0;c[h>>2]=Lv(a,1,e)|0;e=c[h>>2]|0;if((c[h>>2]|0)<0){c[f>>2]=e;k=c[f>>2]|0;i=b;return k|0}else{c[h>>2]=e|1;e=c[g>>2]|0;c[d>>2]=c[h>>2];c[f>>2]=Lv(e,2,d)|0;k=c[f>>2]|0;i=b;return k|0}return 0}function qt(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;i=i+80|0;if((i|0)>=(j|0))$(80);g=f+72|0;h=f+68|0;k=f+64|0;l=f+60|0;m=f+56|0;n=f+52|0;o=f+48|0;p=f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>2]|0);vf(c[v>>2]|0);v=c[B>>2]|0;if(c[u>>2]|0)Dp(v);else c[c[n>>2]>>2]=v;c[m>>2]=c[u>>2];F=c[m>>2]|0;i=l;return F|0}function tt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+32|0;g=e+28|0;h=e+24|0;k=e+20|0;l=e+16|0;m=e+12|0;n=e+8|0;o=e+4|0;p=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=bp(5,0,0,m,c[h>>2]|0)|0;if(c[l>>2]|0){c[f>>2]=c[l>>2];q=c[f>>2]|0;i=e;return q|0}if((c[m>>2]|0)>>>0>(c[k>>2]|0)>>>0){c[f>>2]=67;q=c[f>>2]|0;i=e;return q|0}if((c[m>>2]|0)>>>0<(c[k>>2]|0)>>>0)r=(c[k>>2]|0)-(c[m>>2]|0)|0;else r=0;c[n>>2]=r;c[o>>2]=(c[m>>2]|0)+(c[n>>2]|0);if(c[h>>2]|0?c[(c[h>>2]|0)+12>>2]&1|0:0)s=sf(c[o>>2]|0)|0;else s=pf(c[o>>2]|0)|0;c[p>>2]=s;if(!(c[p>>2]|0)){c[f>>2]=Et()|0;q=c[f>>2]|0;i=e;return q|0}if(c[n>>2]|0)Sw(c[p>>2]|0,0,c[n>>2]|0)|0;c[m>>2]=(c[m>>2]|0)+(c[n>>2]|0);c[l>>2]=bp(5,(c[p>>2]|0)+(c[n>>2]|0)|0,(c[m>>2]|0)-(c[n>>2]|0)|0,0,c[h>>2]|0)|0;h=c[p>>2]|0;if(c[l>>2]|0){vf(h);c[f>>2]=c[l>>2];q=c[f>>2]|0;i=e;return q|0}else{c[c[g>>2]>>2]=h;c[f>>2]=0;q=c[f>>2]|0;i=e;return q|0}return 0}function ut(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l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]|0,c[B>>2]|0,(((c[C>>2]|0)+7|0)>>>0)/8|0,c[r>>2]|0,c[t>>2]|0)|0;if(c[s>>2]|0)break a;c[t>>2]=(c[t>>2]|0)+1}else c[u>>2]=rt(c[(c[n>>2]|0)+32>>2]|0,1)|0;$n(z,c[u>>2]|0,(c[n>>2]|0)+20|0,c[E>>2]|0);if(tn(c[y>>2]|0,0,z,c[E>>2]|0)|0){G=15;break a}Mo(c[o>>2]|0,c[y>>2]|0,c[(c[n>>2]|0)+32>>2]|0)}while((vo(c[o>>2]|0,0)|0)!=0^1);Ro(c[v>>2]|0,c[(c[n>>2]|0)+56>>2]|0,c[o>>2]|0,c[(c[n>>2]|0)+32>>2]|0);io(c[w>>2]|0,c[A>>2]|0,c[v>>2]|0,c[(c[n>>2]|0)+32>>2]|0);Lo(c[x>>2]|0,c[u>>2]|0,c[(c[n>>2]|0)+32>>2]|0)|0;Ro(c[p>>2]|0,c[x>>2]|0,c[w>>2]|0,c[(c[n>>2]|0)+32>>2]|0);if(!((vo(c[p>>2]|0,0)|0)!=0^1)){G=20;break}}if((G|0)==10)c[s>>2]=70;else if((G|0)==15){if(Ff(1)|0)Ye(53250,k);c[s>>2]=8}else if((G|0)==20?Ff(1)|0:0){af(53191,c[o>>2]|0);af(53212,c[p>>2]|0)}In(c[E>>2]|0);An(z);Dp(c[y>>2]|0);Dp(c[x>>2]|0);Dp(c[w>>2]|0);Dp(c[v>>2]|0);Dp(c[u>>2]|0);if((c[A>>2]|0)!=(c[m>>2]|0))Dp(c[A>>2]|0);c[l>>2]=c[s>>2];F=c[l>>2]|0;i=h;return F|0}function xt(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=i;i=i+112|0;if((i|0)>=(j|0))$(112);g=f+8|0;h=f;k=f+96|0;l=f+92|0;m=f+88|0;n=f+84|0;o=f+80|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|0){af(53402,c[u>>2]|0);af(53409,c[n>>2]|0);af(53416,c[o>>2]|0)}c[p>>2]=8}}else{if(Ff(1)|0)Ye(53334,h);c[p>>2]=8}while(0);In(c[y>>2]|0);An(x);An(w);An(v);Dp(c[u>>2]|0);Dp(c[t>>2]|0);Dp(c[s>>2]|0);Dp(c[r>>2]|0);if((c[q>>2]|0)!=(c[l>>2]|0))Dp(c[q>>2]|0);c[k>>2]=c[p>>2];A=c[k>>2]|0;i=f;return A|0}c[k>>2]=8;A=c[k>>2]|0;i=f;return A|0}c[k>>2]=8;A=c[k>>2]|0;i=f;return A|0}function yt(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;f=i;i=i+96|0;if((i|0)>=(j|0))$(96);g=f;h=f+80|0;k=f+76|0;l=f+72|0;m=f+68|0;n=f+64|0;o=f+60|0;p=f+56|0;q=f+52|0;r=f+48|0;s=f+44|0;t=f+40|0;u=f+36|0;v=f+24|0;w=f+20|0;x=f+16|0;y=f+12|0;z=f+8|0;A=f+4|0;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=0;if(Ff(1)|0)af(53233,c[k>>2]|0);c[z>>2]=lo(c[(c[l>>2]|0)+32>>2]|0)|0;do if(c[k>>2]|0?c[(c[k>>2]|0)+12>>2]&4|0:0){c[x>>2]=Gp(c[k>>2]|0,y)|0;c[o>>2]=Zo(w,5,c[x>>2]|0,(((c[y>>2]|0)+7|0)>>>0)/8|0,0)|0;if(c[o>>2]|0){c[h>>2]=c[o>>2];B=c[h>>2]|0;i=f;return B|0}else{if((c[y>>2]|0)>>>0<=(c[z>>2]|0)>>>0)break;so(c[w>>2]|0,c[w>>2]|0,(c[y>>2]|0)-(c[z>>2]|0)|0);break}}else C=9;while(0);if((C|0)==9)c[w>>2]=c[k>>2];c[p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,c[u>>2]|0,(c[o>>2]|0)+20|0,c[C>>2]|0);$n(B,c[v>>2]|0,(c[o>>2]|0)+44|0,c[C>>2]|0);Vn(z,A,B,c[C>>2]|0);do if(vo(c[z+8>>2]|0,0)|0){if(tn(c[t>>2]|0,0,z,c[C>>2]|0)|0){if(Ff(1)|0)Ye(53356,k);c[r>>2]=8;break}Mo(c[t>>2]|0,c[t>>2]|0,c[(c[o>>2]|0)+32>>2]|0);n=(wo(c[t>>2]|0,c[p>>2]|0)|0)!=0;e=(Ff(1)|0)!=0;if(!n){if(!e)break;Ye(53449,g);break}if(e){af(53402,c[t>>2]|0);af(53409,c[p>>2]|0);af(53416,c[q>>2]|0);Ye(53423,h)}c[r>>2]=8}else{if(Ff(1)|0)Ye(53334,l);c[r>>2]=8}while(0);In(c[C>>2]|0);An(B);An(A);An(z);Dp(c[y>>2]|0);Dp(c[x>>2]|0);Dp(c[w>>2]|0);Dp(c[v>>2]|0);Dp(c[u>>2]|0);Dp(c[t>>2]|0);Dp(c[s>>2]|0);c[m>>2]=c[r>>2];D=c[m>>2]|0;i=f;return D|0}c[m>>2]=8;D=c[m>>2]|0;i=f;return D|0}c[m>>2]=8;D=c[m>>2]|0;i=f;return D|0}function At(){return Pt()|0}function Bt(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=au(c[d>>2]|0)|0;i=b;return a|0}function Ct(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=eu(c[d>>2]|0)|0;i=b;return a|0}function Dt(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=du(c[d>>2]|0)|0;i=b;return a|0}function Et(){return fu()|0}function Ft(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Rt(c[d>>2]|0);i=b;return}function Gt(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Kt(c[d>>2]|0)|0;i=b;return a|0}function Ht(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Mt(c[d>>2]|0)|0;i=b;return a|0}function It(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Nt(c[d>>2]|0)|0;i=b;return a|0}function Jt(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Ot(c[d>>2]|0)|0;i=b;return a|0}function Kt(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=c[d>>2];if(c[c[e>>2]>>2]|0)c[e>>2]=Lt(c[d>>2]|0)|0;else c[c[e>>2]>>2]=1;c[f>>2]=ya((c[e>>2]|0)+4|0,0)|0;if(!(c[f>>2]|0)){g=c[f>>2]|0;i=b;return g|0}c[f>>2]=Ct(c[f>>2]|0)|0;g=c[f>>2]|0;i=b;return g|0}function Lt(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];if((c[c[e>>2]>>2]|0)!=1)Fa(53471,53491,114,53504);else{i=b;return c[e>>2]|0}return 0}function Mt(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=Lt(c[d>>2]|0)|0;c[f>>2]=Tw((c[e>>2]|0)+4|0)|0;if(!(c[f>>2]|0)){g=c[f>>2]|0;i=b;return g|0}c[f>>2]=Ct(c[f>>2]|0)|0;g=c[f>>2]|0;i=b;return g|0}function Nt(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=Lt(c[d>>2]|0)|0;c[f>>2]=bx((c[e>>2]|0)+4|0)|0;if(!(c[f>>2]|0)){g=c[f>>2]|0;i=b;return g|0}c[f>>2]=Ct(c[f>>2]|0)|0;g=c[f>>2]|0;i=b;return g|0}function Ot(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+64|0;if((i|0)>=(j|0))$(64);d=b+52|0;e=b+48|0;f=b+44|0;g=b;c[d>>2]=a;c[e>>2]=Lt(c[d>>2]|0)|0;c[f>>2]=Ya((c[e>>2]|0)+4|0)|0;if(c[f>>2]|0){c[f>>2]=Ct(c[f>>2]|0)|0;h=c[f>>2]|0;i=b;return h|0}else{e=g;a=e+44|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(a|0));c[g>>2]=1;e=c[d>>2]|0;d=g;a=e+44|0;do{c[e>>2]=c[d>>2];e=e+4|0;d=d+4|0}while((e|0)<(a|0));h=c[f>>2]|0;i=b;return h|0}return 0}function Pt(){Qt();return 0}function Qt(){St()|0;return}function Rt(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=c[d>>2]|0;c[(xu()|0)>>2]=a;i=b;return}function St(){if(c[17808]|0)return 0;c[17808]=1;nb(3)|0;return 0}function Tt(){Ut(0)|0;c[17809]=0;c[17810]=0;return}function Ut(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;if(c[d>>2]|0){Vt(c[d>>2]|0);c[e>>2]=Wt(c[d>>2]|0)|0;Xt(c[d>>2]|0);g=c[e>>2]|0;h=(g|0)!=0;k=h?-1:0;i=b;return k|0}c[e>>2]=0;Yt();c[f>>2]=c[17811];while(1){if(!(c[f>>2]|0))break;if(c[(c[f>>2]|0)+4>>2]|0){Vt(c[(c[f>>2]|0)+4>>2]|0);d=Wt(c[(c[f>>2]|0)+4>>2]|0)|0;c[e>>2]=c[e>>2]|d;Xt(c[(c[f>>2]|0)+4>>2]|0)}c[f>>2]=c[c[f>>2]>>2]}Zt();g=c[e>>2]|0;h=(g|0)!=0;k=h?-1:0;i=b;return k|0}function Vt(a){a=a|0;var b=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b;c[e>>2]=a;if((d[(c[(c[e>>2]|0)+36>>2]|0)+1140>>0]|0)>>>5&1|0){i=b;return}Mt((c[(c[e>>2]|0)+36>>2]|0)+1040|0)|0;i=b;return}function Wt(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;a=c[d>>2]|0;if((c[c[d>>2]>>2]|0)>>>16&1|0){c[e>>2]=_t(a)|0;f=c[e>>2]|0;i=b;return f|0}else{$t(a);c[e>>2]=0;f=c[e>>2]|0;i=b;return f|0}return 0}function Xt(a){a=a|0;var b=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b;c[e>>2]=a;if((d[(c[(c[e>>2]|0)+36>>2]|0)+1140>>0]|0)>>>5&1|0){i=b;return}Nt((c[(c[e>>2]|0)+36>>2]|0)+1040|0)|0;i=b;return}function Yt(){Mt(13160)|0;return}function Zt(){Nt(13160)|0;return}function _t(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[e>>2]=b;c[f>>2]=c[(c[(c[e>>2]|0)+36>>2]|0)+1108>>2];if(!((c[c[e>>2]>>2]|0)>>>16&1))Fa(53562,53543,1654,53584);do if(c[(c[e>>2]|0)+16>>2]|0){if(!(c[f>>2]|0)){c[g>>2]=95;break}c[k>>2]=0;c[g>>2]=0;do{if(((c[(c[e>>2]|0)+16>>2]|0)-(c[k>>2]|0)|0)<=0)break;if(!((c[g>>2]|0)!=0^1))break;c[l>>2]=ub[c[f>>2]&63](c[(c[(c[e>>2]|0)+36>>2]|0)+1084>>2]|0,(c[(c[e>>2]|0)+4>>2]|0)+(c[k>>2]|0)|0,(c[(c[e>>2]|0)+16>>2]|0)-(c[k>>2]|0)|0)|0;if((c[l>>2]|0)==-1){c[h>>2]=0;c[g>>2]=-1}else c[h>>2]=c[l>>2];c[k>>2]=(c[k>>2]|0)+(c[h>>2]|0)}while(!(c[g>>2]|0));b=(c[e>>2]|0)+20|0;c[b>>2]=(c[b>>2]|0)+(c[k>>2]|0);if((c[(c[e>>2]|0)+16>>2]|0)==(c[k>>2]|0)){b=(c[(c[e>>2]|0)+36>>2]|0)+1100|0;c[b>>2]=(c[b>>2]|0)+(c[(c[e>>2]|0)+16>>2]|0);c[(c[e>>2]|0)+16>>2]=0;c[(c[e>>2]|0)+20>>2]=0;ub[c[f>>2]&63](c[(c[(c[e>>2]|0)+36>>2]|0)+1084>>2]|0,0,0)|0}}else c[g>>2]=0;while(0);if(!(c[g>>2]|0)){m=c[g>>2]|0;i=d;return m|0}f=(c[(c[e>>2]|0)+36>>2]|0)+1136|0;a[f>>0]=a[f>>0]&-2|1;m=c[g>>2]|0;i=d;return m|0}function $t(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if((c[c[d>>2]>>2]|0)>>>16&1|0)Fa(53520,53543,1722,53553);else{c[(c[d>>2]|0)+12>>2]=0;c[(c[d>>2]|0)+16>>2]=0;c[(c[d>>2]|0)+32>>2]=0;i=b;return}}function au(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+12|0;e=b+8|0;f=b+4|0;g=b;c[e>>2]=a;c[f>>2]=bu(c[e>>2]|0)|0;do if(c[f>>2]&32768|0){c[g>>2]=Dt(c[f>>2]|0)|0;if(!(c[g>>2]|0)){c[f>>2]=16382;break}c[d>>2]=Nu(c[g>>2]|0)|0;h=c[d>>2]|0;i=b;return h|0}while(0);c[d>>2]=53593+(c[13204+((cu(c[f>>2]|0)|0)<<2)>>2]|0);h=c[d>>2]|0;i=b;return h|0}function bu(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;i=b;return c[d>>2]&65535|0}function cu(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=c[d>>2]|0;if((c[d>>2]|0)>=0&(c[d>>2]|0)<=213){e=a-0|0;i=b;return e|0}f=c[d>>2]|0;if((a|0)>=222&(c[d>>2]|0)<=254){e=f-8|0;i=b;return e|0}a=c[d>>2]|0;if((f|0)>=257&(c[d>>2]|0)<=271){e=a-10|0;i=b;return e|0}f=c[d>>2]|0;if((a|0)>=273&(c[d>>2]|0)<=281){e=f-11|0;i=b;return e|0}a=c[d>>2]|0;if((f|0)>=721&(c[d>>2]|0)<=729){e=a-450|0;i=b;return e|0}f=c[d>>2]|0;if((a|0)>=750&(c[d>>2]|0)<=752){e=f-470|0;i=b;return e|0}a=c[d>>2]|0;if((f|0)>=754&(c[d>>2]|0)<=782){e=a-471|0;i=b;return e|0}f=c[d>>2]|0;if((a|0)>=784&(c[d>>2]|0)<=789){e=f-472|0;i=b;return e|0}a=c[d>>2]|0;if((f|0)>=800&(c[d>>2]|0)<=804){e=a-482|0;i=b;return e|0}f=c[d>>2]|0;if((a|0)>=815&(c[d>>2]|0)<=822){e=f-492|0;i=b;return e|0}a=c[d>>2]|0;if((f|0)>=832&(c[d>>2]|0)<=839){e=a-501|0;i=b;return e|0}f=c[d>>2]|0;if((a|0)>=844&(c[d>>2]|0)<=844){e=f-505|0;i=b;return e|0}a=c[d>>2]|0;if((f|0)>=848&(c[d>>2]|0)<=848){e=a-508|0;i=b;return e|0}f=c[d>>2]|0;if((a|0)>=881&(c[d>>2]|0)<=891){e=f-540|0;i=b;return e|0}a=c[d>>2]|0;if((f|0)>=1024&(c[d>>2]|0)<=1039){e=a-672|0;i=b;return e|0}else{e=(a|0)>=16381&(c[d>>2]|0)<=16383?(c[d>>2]|0)-16013|0:371;i=b;return e|0}return 0}function du(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;do if(c[e>>2]&32768|0){c[e>>2]=c[e>>2]&-32769;if((c[e>>2]|0)>>>0<141){c[d>>2]=c[14692+(c[e>>2]<<2)>>2];break}else{c[d>>2]=0;break}}else c[d>>2]=0;while(0);i=b;return c[d>>2]|0}function eu(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[e>>2]=a;if(!(c[e>>2]|0)){c[d>>2]=0;g=c[d>>2]|0;i=b;return g|0}a=c[e>>2]|0;do if(!((c[e>>2]|0)>=1&(c[e>>2]|0)<=11)){h=c[e>>2]|0;if((a|0)>=11&(c[e>>2]|0)<=35){k=h-0|0;break}l=c[e>>2]|0;if((h|0)>=35&(c[e>>2]|0)<=40){k=l+1|0;break}h=c[e>>2]|0;if((l|0)>=42&(c[e>>2]|0)<=57){k=h-0|0;break}l=c[e>>2]|0;if((h|0)>=59&(c[e>>2]|0)<=95){k=l-1|0;break}else{k=(l|0)>=95&(c[e>>2]|0)<=125?(c[e>>2]|0)-0|0:-1;break}}else k=a-1|0;while(0);c[f>>2]=k;if((c[f>>2]|0)<0){c[d>>2]=16382;g=c[d>>2]|0;i=b;return g|0}else{c[d>>2]=32768|c[15256+(c[f>>2]<<2)>>2];g=c[d>>2]|0;i=b;return g|0}return 0}function fu(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a+8|0;d=a+4|0;e=a;c[d>>2]=c[(xu()|0)>>2];if(!(c[d>>2]|0)){c[b>>2]=16381;f=c[b>>2]|0;i=a;return f|0}g=c[d>>2]|0;do if(!((c[d>>2]|0)>=1&(c[d>>2]|0)<=11)){h=c[d>>2]|0;if((g|0)>=11&(c[d>>2]|0)<=35){k=h-0|0;break}l=c[d>>2]|0;if((h|0)>=35&(c[d>>2]|0)<=40){k=l+1|0;break}h=c[d>>2]|0;if((l|0)>=42&(c[d>>2]|0)<=57){k=h-0|0;break}l=c[d>>2]|0;if((h|0)>=59&(c[d>>2]|0)<=95){k=l-1|0;break}else{k=(l|0)>=95&(c[d>>2]|0)<=125?(c[d>>2]|0)-0|0:-1;break}}else k=g-1|0;while(0);c[e>>2]=k;if((c[e>>2]|0)<0){c[b>>2]=16382;f=c[b>>2]|0;i=a;return f|0}else{c[b>>2]=32768|c[15256+(c[e>>2]<<2)>>2];f=c[b>>2]|0;i=a;return f|0}return 0}function gu(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+4|0;g=e;c[f>>2]=b;c[g>>2]=d;d=c[g>>2]|0;b=Ad(c[d>>2]|0,c[d+4>>2]|0)|0;d=D;h=c[f>>2]|0;k=h;a[k>>0]=b;a[k+1>>0]=b>>8;a[k+2>>0]=b>>16;a[k+3>>0]=b>>24;b=h+4|0;a[b>>0]=d;a[b+1>>0]=d>>8;a[b+2>>0]=d>>16;a[b+3>>0]=d>>24;d=Iv(c[(c[g>>2]|0)+8>>2]|0)|0;b=(c[f>>2]|0)+8|0;a[b>>0]=d;a[b+1>>0]=d>>8;a[b+2>>0]=d>>16;a[b+3>>0]=d>>24;d=(c[f>>2]|0)+12|0;f=(c[g>>2]|0)+12|0;g=d+12|0;do{a[d>>0]=a[f>>0]|0;d=d+1|0;f=f+1|0}while((d|0)<(g|0));i=e;return}function hu(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+4|0;h=f;c[g>>2]=b;c[h>>2]=e;e=c[h>>2]|0;b=e;k=e+4|0;e=Bd(d[b>>0]|d[b+1>>0]<<8|d[b+2>>0]<<16|d[b+3>>0]<<24,d[k>>0]|d[k+1>>0]<<8|d[k+2>>0]<<16|d[k+3>>0]<<24)|0;k=c[g>>2]|0;c[k>>2]=e;c[k+4>>2]=D;k=(c[h>>2]|0)+8|0;e=Mv(d[k>>0]|d[k+1>>0]<<8|d[k+2>>0]<<16|d[k+3>>0]<<24)|0;c[(c[g>>2]|0)+8>>2]=e;e=(c[g>>2]|0)+12|0;g=(c[h>>2]|0)+12|0;h=e+12|0;do{a[e>>0]=a[g>>0]|0;e=e+1|0;g=g+1|0}while((e|0)<(h|0));i=f;return}function iu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+8|0;g=d+4|0;h=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=hv(c[f>>2]|0)|0;if((c[h>>2]|0)>>>0>=12){c[e>>2]=-1;k=c[e>>2]|0;i=d;return k|0}else{b=c[g>>2]|0;c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;c[b+16>>2]=0;c[b+20>>2]=0;Yw((c[g>>2]|0)+12|0,c[f>>2]|0,c[h>>2]|0)|0;c[e>>2]=1;k=c[e>>2]|0;i=d;return k|0}return 0}function ju(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[f>>2]=a;c[g>>2]=b;do if(0!=(ku(c[f>>2]|0)|0)?0!=(ku(c[g>>2]|0)|0):0)if(!(sv((c[f>>2]|0)+12|0,(c[g>>2]|0)+12|0)|0)){c[e>>2]=1;break}else{c[e>>2]=0;break}else h=3;while(0);if((h|0)==3)c[e>>2]=-1;i=d;return c[e>>2]|0}function ku(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=b;i=d;return 0!=(a[(c[e>>2]|0)+12>>0]|0)|0}function lu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+96|0;if((i|0)>=(j|0))$(96);e=d+64|0;f=d+56|0;g=d+48|0;h=d+92|0;k=d+88|0;l=d+84|0;m=d+24|0;n=d;o=d+80|0;p=d+76|0;q=d+72|0;c[k>>2]=a;c[l>>2]=b;if(1!=(ju(c[k>>2]|0,c[l>>2]|0)|0)){c[o>>2]=349;if((c[3940]|0)==-1)c[3940]=$b(1,0,61608,61617,c[o>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3940]|0))_b();c[g>>2]=61608;c[g+4>>2]=349;cc(1,61746,g);_b()}g=c[k>>2]|0;c[m>>2]=c[g>>2];c[m+4>>2]=c[g+4>>2];c[m+8>>2]=c[g+8>>2];c[m+12>>2]=c[g+12>>2];c[m+16>>2]=c[g+16>>2];c[m+20>>2]=c[g+20>>2];g=c[l>>2]|0;c[n>>2]=c[g>>2];c[n+4>>2]=c[g+4>>2];c[n+8>>2]=c[g+8>>2];c[n+12>>2]=c[g+12>>2];c[n+16>>2]=c[g+16>>2];c[n+20>>2]=c[g+20>>2];if(-1==(mu(m)|0)){c[p>>2]=353;if((c[3941]|0)==-1)c[3941]=$b(1,0,61608,61617,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3941]|0))_b();c[f>>2]=61608;c[f+4>>2]=353;cc(1,61746,f);_b()}if(-1==(mu(n)|0)){c[q>>2]=355;if((c[3942]|0)==-1)c[3942]=$b(1,0,61608,61617,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3942]|0))_b();c[e>>2]=61608;c[e+4>>2]=355;cc(1,61746,e);_b()}e=m;q=n;if(!((c[e>>2]|0)==(c[q>>2]|0)?(c[e+4>>2]|0)==(c[q+4>>2]|0):0)){q=m;e=c[q+4>>2]|0;f=n;p=c[f+4>>2]|0;if(e>>>0<p>>>0|((e|0)==(p|0)?(c[q>>2]|0)>>>0<(c[f>>2]|0)>>>0:0)){c[h>>2]=-1;r=c[h>>2]|0;i=d;return r|0}else{c[h>>2]=1;r=c[h>>2]|0;i=d;return r|0}}if((c[m+8>>2]|0)>>>0<(c[n+8>>2]|0)>>>0){c[h>>2]=-1;r=c[h>>2]|0;i=d;return r|0}if((c[m+8>>2]|0)>>>0>(c[n+8>>2]|0)>>>0){c[h>>2]=1;r=c[h>>2]|0;i=d;return r|0}else{c[h>>2]=0;r=c[h>>2]|0;i=d;return r|0}return 0}function mu(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[e>>2]=a;if(1!=(ku(c[e>>2]|0)|0)){c[d>>2]=-1;g=c[d>>2]|0;i=b;return g|0}c[f>>2]=0;while(1){a=c[e>>2]|0;if((c[a>>2]|0)!=-1?1:(c[a+4>>2]|0)!=-1)h=(c[(c[e>>2]|0)+8>>2]|0)>>>0>=1e6;else h=0;a=(c[e>>2]|0)+8|0;k=c[a>>2]|0;if(!h)break;c[a>>2]=k-1e6;a=c[e>>2]|0;l=a;m=Uw(c[l>>2]|0,c[l+4>>2]|0,1,0)|0;l=a;c[l>>2]=m;c[l+4>>2]=D;c[f>>2]=1}if(k>>>0>=1e6){nu(c[e>>2]|0);c[d>>2]=-1;g=c[d>>2]|0;i=b;return g|0}else{c[d>>2]=c[f>>2];g=c[d>>2]|0;i=b;return g|0}return 0}function nu(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=c[d>>2]|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;i=b;return}function ou(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;e=i;i=i+112|0;if((i|0)>=(j|0))$(112);f=e+64|0;g=e+56|0;h=e+48|0;k=e+96|0;l=e+92|0;m=e+88|0;n=e+84|0;o=e+24|0;p=e;q=e+80|0;r=e+76|0;s=e+72|0;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;if(1!=(ju(c[m>>2]|0,c[n>>2]|0)|0)){nu(c[l>>2]|0);c[k>>2]=-1;t=c[k>>2]|0;i=e;return t|0}d=c[m>>2]|0;c[o>>2]=c[d>>2];c[o+4>>2]=c[d+4>>2];c[o+8>>2]=c[d+8>>2];c[o+12>>2]=c[d+12>>2];c[o+16>>2]=c[d+16>>2];c[o+20>>2]=c[d+20>>2];d=c[n>>2]|0;c[p>>2]=c[d>>2];c[p+4>>2]=c[d+4>>2];c[p+8>>2]=c[d+8>>2];c[p+12>>2]=c[d+12>>2];c[p+16>>2]=c[d+16>>2];c[p+20>>2]=c[d+20>>2];if(-1!=(mu(o)|0)?-1!=(mu(p)|0):0){do if((c[o+8>>2]|0)>>>0<(c[p+8>>2]|0)>>>0){d=o;if(!(0==(c[d>>2]|0)?0==(c[d+4>>2]|0):0)){d=o+8|0;c[d>>2]=(c[d>>2]|0)+1e6;d=o;n=Uw(c[d>>2]|0,c[d+4>>2]|0,-1,-1)|0;d=o;c[d>>2]=n;c[d+4>>2]=D;break}nu(c[l>>2]|0);c[k>>2]=-1;t=c[k>>2]|0;i=e;return t|0}while(0);d=o;n=c[d+4>>2]|0;m=p;b=c[m+4>>2]|0;if(n>>>0<b>>>0|((n|0)==(b|0)?(c[d>>2]|0)>>>0<(c[m>>2]|0)>>>0:0)){nu(c[l>>2]|0);c[k>>2]=-1;t=c[k>>2]|0;i=e;return t|0}if(1!=(iu(o+12|0,c[l>>2]|0)|0)){c[q>>2]=421;if((c[3943]|0)==-1)c[3943]=$b(1,0,61608,61634,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3943]|0))_b();c[h>>2]=61608;c[h+4>>2]=421;cc(1,61746,h);_b()}if((c[o+8>>2]|0)>>>0<(c[p+8>>2]|0)>>>0){c[r>>2]=422;if((c[3944]|0)==-1)c[3944]=$b(1,0,61608,61634,c[r>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3944]|0))_b();c[g>>2]=61608;c[g+4>>2]=422;cc(1,61746,g);_b()}c[(c[l>>2]|0)+8>>2]=(c[o+8>>2]|0)-(c[p+8>>2]|0);g=o;r=c[g+4>>2]|0;h=p;q=c[h+4>>2]|0;if(r>>>0>q>>>0|((r|0)==(q|0)?(c[g>>2]|0)>>>0>=(c[h>>2]|0)>>>0:0)){h=o;o=p;p=Rw(c[h>>2]|0,c[h+4>>2]|0,c[o>>2]|0,c[o+4>>2]|0)|0;o=c[l>>2]|0;c[o>>2]=p;c[o+4>>2]=D;if(0==(c[(c[l>>2]|0)+8>>2]|0)?(o=c[l>>2]|0,0==(c[o>>2]|0)?0==(c[o+4>>2]|0):0):0){c[k>>2]=0;t=c[k>>2]|0;i=e;return t|0}c[k>>2]=1;t=c[k>>2]|0;i=e;return t|0}c[s>>2]=424;if((c[3945]|0)==-1)c[3945]=$b(1,0,61608,61634,c[s>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3945]|0))_b();c[f>>2]=61608;c[f+4>>2]=424;cc(1,61746,f);_b()}nu(c[l>>2]|0);c[k>>2]=-1;t=c[k>>2]|0;i=e;return t|0}function pu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+112|0;if((i|0)>=(j|0))$(112);f=e+72|0;g=e+96|0;h=e+92|0;k=e+88|0;l=e+84|0;m=e+48|0;n=e+24|0;o=e;p=e+80|0;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;if(1!=(ju(c[k>>2]|0,c[l>>2]|0)|0)){nu(c[h>>2]|0);c[g>>2]=-1;q=c[g>>2]|0;i=e;return q|0}d=c[k>>2]|0;c[m>>2]=c[d>>2];c[m+4>>2]=c[d+4>>2];c[m+8>>2]=c[d+8>>2];c[m+12>>2]=c[d+12>>2];c[m+16>>2]=c[d+16>>2];c[m+20>>2]=c[d+20>>2];d=c[l>>2]|0;c[n>>2]=c[d>>2];c[n+4>>2]=c[d+4>>2];c[n+8>>2]=c[d+8>>2];c[n+12>>2]=c[d+12>>2];c[n+16>>2]=c[d+16>>2];c[n+20>>2]=c[d+20>>2];if(-1!=(mu(m)|0)?-1!=(mu(n)|0):0){if(1==(iu((c[k>>2]|0)+12|0,o)|0)){k=m;d=n;l=Uw(c[k>>2]|0,c[k+4>>2]|0,c[d>>2]|0,c[d+4>>2]|0)|0;d=o;c[d>>2]=l;c[d+4>>2]=D;d=o;l=c[d+4>>2]|0;k=m;b=c[k+4>>2]|0;if(l>>>0<b>>>0|((l|0)==(b|0)?(c[d>>2]|0)>>>0<(c[k>>2]|0)>>>0:0)){nu(c[h>>2]|0);c[g>>2]=-1;q=c[g>>2]|0;i=e;return q|0}c[o+8>>2]=(c[m+8>>2]|0)+(c[n+8>>2]|0);n=-1==(mu(o)|0);m=c[h>>2]|0;if(n){nu(m);c[g>>2]=-1;q=c[g>>2]|0;i=e;return q|0}else{c[m>>2]=c[o>>2];c[m+4>>2]=c[o+4>>2];c[m+8>>2]=c[o+8>>2];c[m+12>>2]=c[o+12>>2];c[m+16>>2]=c[o+16>>2];c[m+20>>2]=c[o+20>>2];c[g>>2]=1;q=c[g>>2]|0;i=e;return q|0}}c[p>>2]=468;if((c[3946]|0)==-1)c[3946]=$b(1,0,61608,61656,c[p>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3946]|0))_b();c[f>>2]=61608;c[f+4>>2]=468;cc(1,61746,f);_b()}nu(c[h>>2]|0);c[g>>2]=-1;q=c[g>>2]|0;i=e;return q|0}function qu(){var a=0,b=0,d=0;a=i;i=i+32|0;if((i|0)>=(j|0))$(32);b=a+16|0;d=a+8|0;He(6,0);if(Gd(61673)|0){c[d>>2]=0;Hd(37,d)|0;c[b>>2]=0;Hd(38,b)|0;i=a;return}else{Fv(c[3977]|0,61679,a)|0;Aa()}}function ru(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e;g=e+4|0;c[e+12>>2]=a;c[e+8>>2]=b;c[g>>2]=d;d=c[3977]|0;c[f>>2]=c[g>>2];Fv(d,61707,f)|0;Aa()}function su(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+16|0;k=g;l=g+44|0;m=g+40|0;n=g+36|0;o=g+32|0;p=g+28|0;q=g+24|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[o>>2]=Iv(c[m>>2]|0)|0;m=c[n>>2]|0;f=c[l>>2]|0;c[k>>2]=61774;c[k+4>>2]=21;c[k+8>>2]=0;c[k+12>>2]=0;if(1==(Mc(m,64,o,4,f,64,k)|0)){c[p>>2]=c[n>>2];n=c[p>>2]|0;a[n>>0]=(d[n>>0]|0)&127;n=c[p>>2]|0;a[n>>0]=d[n>>0]|0|64;n=(c[p>>2]|0)+31|0;a[n>>0]=(d[n>>0]|0)&248;i=g;return}c[q>>2]=197;if((c[3947]|0)==-1)c[3947]=$b(1,0,61737,61796,c[q>>2]|0)|0;if((ac()|0)>0){bc(-1,0);_b()}if(!(c[3947]|0))_b();c[h>>2]=61737;c[h+4>>2]=197;cc(1,61746,h);_b()}function tu(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=c[a+60>>2];a=wu(hb(6,d|0)|0)|0;i=b;return a|0}function uu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+80|0;if((i|0)>=(j|0))$(80);g=f;c[b+36>>2]=25;if((c[b>>2]&64|0)==0?(c[g>>2]=c[b+60>>2],c[g+4>>2]=21505,c[g+8>>2]=f+12,bb(54,g|0)|0):0)a[b+75>>0]=-1;g=yu(b,d,e)|0;i=f;return g|0}function vu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e;g=e+20|0;c[f>>2]=c[a+60>>2];c[f+4>>2]=0;c[f+8>>2]=b;c[f+12>>2]=g;c[f+16>>2]=d;if((wu(ob(140,f|0)|0)|0)<0){c[g>>2]=-1;h=-1}else h=c[g>>2]|0;i=e;return h|0}function wu(a){a=a|0;var b=0;if(a>>>0>4294963200){c[(xu()|0)>>2]=0-a;b=-1}else b=a;return b|0}function xu(){var a=0;if(!(c[17812]|0))a=71292;else a=c[(ix()|0)+64>>2]|0;return a|0}function yu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+16|0;g=e;h=e+32|0;k=a+28|0;l=c[k>>2]|0;c[h>>2]=l;m=a+20|0;n=(c[m>>2]|0)-l|0;c[h+4>>2]=n;c[h+8>>2]=b;c[h+12>>2]=d;b=a+60|0;l=a+44|0;o=2;p=n+d|0;n=h;while(1){if(!(c[17812]|0)){c[f>>2]=c[b>>2];c[f+4>>2]=n;c[f+8>>2]=o;q=wu(sb(146,f|0)|0)|0}else{Ca(6,a|0);c[g>>2]=c[b>>2];c[g+4>>2]=n;c[g+8>>2]=o;h=wu(sb(146,g|0)|0)|0;wa(0);q=h}if((p|0)==(q|0)){r=6;break}if((q|0)<0){r=8;break}h=p-q|0;s=c[n+4>>2]|0;if(q>>>0<=s>>>0)if((o|0)==2){c[k>>2]=(c[k>>2]|0)+q;t=q;u=2;v=n;w=s}else{t=q;u=o;v=n;w=s}else{x=c[l>>2]|0;c[k>>2]=x;c[m>>2]=x;t=q-s|0;u=o+-1|0;v=n+8|0;w=c[n+12>>2]|0}c[v>>2]=(c[v>>2]|0)+t;c[v+4>>2]=w-t;o=u;p=h;n=v}if((r|0)==6){v=c[l>>2]|0;c[a+16>>2]=v+(c[a+48>>2]|0);l=v;c[k>>2]=l;c[m>>2]=l;y=d}else if((r|0)==8){c[a+16>>2]=0;c[k>>2]=0;c[m>>2]=0;c[a>>2]=c[a>>2]|32;if((o|0)==2)y=0;else y=d-(c[n+4>>2]|0)|0}i=e;return y|0}function zu(a){a=a|0;if(!(c[a+68>>2]|0))Au(a);return}function Au(a){a=a|0;return}function Bu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;f=i;i=i+48|0;if((i|0)>=(j|0))$(48);g=f+16|0;h=f;k=f+32|0;c[k>>2]=d;l=k+4|0;m=b+48|0;n=c[m>>2]|0;c[l>>2]=e-((n|0)!=0&1);o=b+44|0;c[k+8>>2]=c[o>>2];c[k+12>>2]=n;if(!(c[17812]|0)){c[g>>2]=c[b+60>>2];c[g+4>>2]=k;c[g+8>>2]=2;p=wu(rb(145,g|0)|0)|0}else{Ca(7,b|0);c[h>>2]=c[b+60>>2];c[h+4>>2]=k;c[h+8>>2]=2;k=wu(rb(145,h|0)|0)|0;wa(0);p=k}if((p|0)>=1){k=c[l>>2]|0;if(p>>>0>k>>>0){l=c[o>>2]|0;o=b+4|0;c[o>>2]=l;h=l;c[b+8>>2]=h+(p-k);if(!(c[m>>2]|0))q=e;else{c[o>>2]=h+1;a[d+(e+-1)>>0]=a[h>>0]|0;q=e}}else q=p}else{c[b>>2]=c[b>>2]|p&48^16;c[b+8>>2]=0;c[b+4>>2]=0;q=p}i=f;return q|0}function Cu(a){a=a|0;if(!(c[a+68>>2]|0))Au(a);return}function Du(a){a=a|0;return Eu(a)|0}function Eu(a){a=a|0;return ((a|0)==32|(a|0)==9)&1|0}function Fu(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=a[b>>0]|0;e=a[c>>0]|0;if(d<<24>>24==0?1:d<<24>>24!=e<<24>>24){f=e;g=d}else{d=c;c=b;do{c=c+1|0;d=d+1|0;b=a[c>>0]|0;e=a[d>>0]|0}while(!(b<<24>>24==0?1:b<<24>>24!=e<<24>>24));f=e;g=b}return (g&255)-(f&255)|0}function Gu(a){a=a|0;var b=0;b=(Hu(a)|0)==0;return (b?a:a|32)|0}function Hu(a){a=a|0;return (a+-65|0)>>>0<26|0}function Iu(a){a=a|0;return Ku(a,0)|0}function Ju(a){a=a|0;return Ku(a,1)|0}function Ku(c,f){c=c|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=(f<<1)+-1|0;h=f+-1|0;a:do if((c+-43008|0)>>>0<22272|((c+-11776|0)>>>0<30784|((c+-1536|0)>>>0<2560|(Lu(c)|0)==0)))i=c;else{j=(f|0)!=0;if(j&(c+-4256|0)>>>0<46){if((c|0)>4293)switch(c|0){case 4295:case 4301:break;default:{i=c;break a}}i=c+7264|0;break}if((c+-11520|0)>>>0<38&(j^1)){if((c|0)>11557)switch(c|0){case 11559:case 11565:break;default:{i=c;break a}}i=c+-7264|0;break}else k=0;do{l=a[18910+(k<<2)+2>>0]|0;m=l<<24>>24;n=c-(e[18910+(k<<2)>>1]|0)|0;if((n-(m&h)|0)>>>0<(d[18910+(k<<2)+3>>0]|0)>>>0){o=13;break}k=k+1|0}while((k|0)!=61);if((o|0)==13)if(l<<24>>24==1){i=f+c-(n&1)|0;break}else{i=(S(m,g)|0)+c|0;break}j=1-f|0;p=b[18418+(j<<1)>>1]|0;b:do if(p<<16>>16){q=0;r=p;while(1){if((r&65535|0)==(c|0))break;s=q+1|0;r=b[18418+(s<<2)+(j<<1)>>1]|0;if(!(r<<16>>16))break b;else q=s}i=e[18418+(q<<2)+(f<<1)>>1]|0;break a}while(0);return ((c+-66600+(f*40|0)|0)>>>0<40?c+-40+(f*80|0)|0:c)|0}while(0);return i|0}function Lu(a){a=a|0;var b=0;if(a>>>0<131072)b=(d[61819+((d[61819+(a>>>8)>>0]|0)<<5|a>>>3&31)>>0]|0)>>>(a&7)&1;else b=a>>>0<196606&1;return b|0}function Mu(a){a=a|0;return (a+-97|0)>>>0<26|0}function Nu(b){b=b|0;var c=0,e=0,f=0,g=0,h=0,i=0;c=0;while(1){if((d[64795+c>>0]|0)==(b|0)){e=2;break}f=c+1|0;if((f|0)==87){g=64883;h=87;e=5;break}else c=f}if((e|0)==2)if(!c)i=64883;else{g=64883;h=c;e=5}if((e|0)==5)while(1){e=0;c=g;do{b=c;c=c+1|0}while((a[b>>0]|0)!=0);h=h+-1|0;if(!h){i=c;break}else{g=c;e=5}}return i|0}function Ou(a){a=a|0;var b=0;if(!a)b=0;else b=(Pu(16228,a)|0)!=0;return b&1|0}function Pu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(!b)d=a+((Qu(a)|0)<<2)|0;else{e=a;while(1){f=c[e>>2]|0;if((f|0)==0|(f|0)==(b|0))break;else e=e+4|0}d=f|0?e:0}return d|0}function Qu(a){a=a|0;var b=0;b=a;while(1)if(!(c[b>>2]|0))break;else b=b+4|0;return b-a>>2|0}function Ru(a){a=a|0;return ((a+-48|0)>>>0<10|((a|32)+-97|0)>>>0<6)&1|0}function Su(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f;c[g>>2]=e;e=Tu(a,b,d,g)|0;i=f;return e|0}function Tu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;i=i+128|0;if((i|0)>=(j|0))$(128);h=g+112|0;k=g;l=k;m=16316;n=l+112|0;do{c[l>>2]=c[m>>2];l=l+4|0;m=m+4|0}while((l|0)<(n|0));if((d+-1|0)>>>0>2147483646)if(!d){o=h;p=1;q=4}else{c[(xu()|0)>>2]=75;r=-1}else{o=b;p=d;q=4}if((q|0)==4){q=-2-o|0;d=p>>>0>q>>>0?q:p;c[k+48>>2]=d;p=k+20|0;c[p>>2]=o;c[k+44>>2]=o;q=o+d|0;o=k+16|0;c[o>>2]=q;c[k+28>>2]=q;q=Uu(k,e,f)|0;if(!d)r=q;else{d=c[p>>2]|0;a[d+(((d|0)==(c[o>>2]|0))<<31>>31)>>0]=0;r=q}}i=g;return r|0}function Uu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;f=i;i=i+224|0;if((i|0)>=(j|0))$(224);g=f+120|0;h=f+80|0;k=f;l=f+136|0;m=h;n=m+40|0;do{c[m>>2]=0;m=m+4|0}while((m|0)<(n|0));c[g>>2]=c[e>>2];if((Vu(0,d,g,k,h)|0)<0)o=-1;else{if((c[b+76>>2]|0)>-1)p=Wu(b)|0;else p=0;e=c[b>>2]|0;m=e&32;if((a[b+74>>0]|0)<1)c[b>>2]=e&-33;e=b+48|0;if(!(c[e>>2]|0)){n=b+44|0;q=c[n>>2]|0;c[n>>2]=l;r=b+28|0;c[r>>2]=l;s=b+20|0;c[s>>2]=l;c[e>>2]=80;t=b+16|0;c[t>>2]=l+80;l=Vu(b,d,g,k,h)|0;if(!q)u=l;else{ub[c[b+36>>2]&63](b,0,0)|0;v=(c[s>>2]|0)==0?-1:l;c[n>>2]=q;c[e>>2]=0;c[t>>2]=0;c[r>>2]=0;c[s>>2]=0;u=v}}else u=Vu(b,d,g,k,h)|0;h=c[b>>2]|0;c[b>>2]=h|m;if(p|0)Au(b);o=(h&32|0)==0?u:-1}i=f;return o|0}function Vu(e,f,g,k,m){e=e|0;f=f|0;g=g|0;k=k|0;m=m|0;var n=0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;r=C;F=r-A|0;G=-2-A|0;H=r+2|0;I=o+288|0;J=q+9|0;K=J;L=q+8|0;M=0;N=0;O=0;P=f;a:while(1){do if((N|0)>-1)if((M|0)>(2147483647-N|0)){c[(xu()|0)>>2]=75;Q=-1;break}else{Q=M+N|0;break}else Q=N;while(0);f=a[P>>0]|0;if(!(f<<24>>24)){R=243;break}else{T=P;U=f}b:while(1){switch(U<<24>>24){case 37:{V=T;W=T;R=9;break b;break}case 0:{X=T;Y=T;break b;break}default:{}}f=T+1|0;T=f;U=a[f>>0]|0}c:do if((R|0)==9)while(1){R=0;if((a[W+1>>0]|0)!=37){X=V;Y=W;break c}f=V+1|0;Z=W+2|0;if((a[Z>>0]|0)==37){V=f;W=Z;R=9}else{X=f;Y=Z;break}}while(0);Z=X-P|0;if(w?(c[e>>2]&32|0)==0:0)Xu(P,Z,e)|0;if(Z|0){M=Z;N=Q;P=Y;continue}Z=Y+1|0;f=a[Z>>0]|0;_=(f<<24>>24)+-48|0;if(_>>>0<10){aa=(a[Y+2>>0]|0)==36;ba=aa?Y+3|0:Z;ca=aa?_:-1;da=aa?1:O;ea=a[ba>>0]|0;fa=ba}else{ca=-1;da=O;ea=f;fa=Z}Z=(ea<<24>>24)+-32|0;d:do if(Z>>>0<32){f=0;ba=Z;aa=ea;_=fa;while(1){if(!(1<<ba&75913)){ga=f;ha=aa;ia=_;break d}ja=1<<(aa<<24>>24)+-32|f;ka=_+1|0;la=a[ka>>0]|0;ba=(la<<24>>24)+-32|0;if(ba>>>0>=32){ga=ja;ha=la;ia=ka;break}else{f=ja;aa=la;_=ka}}}else{ga=0;ha=ea;ia=fa}while(0);do if(ha<<24>>24!=42){Z=(ha<<24>>24)+-48|0;if(Z>>>0<10){_=0;aa=ia;f=Z;do{_=(_*10|0)+f|0;aa=aa+1|0;ma=a[aa>>0]|0;f=(ma<<24>>24)+-48|0}while(f>>>0<10);if((_|0)<0){na=-1;break a}else{oa=_;pa=ga;qa=da;ra=aa;sa=ma}}else{oa=0;pa=ga;qa=da;ra=ia;sa=ha}}else{f=ia+1|0;Z=a[f>>0]|0;ba=(Z<<24>>24)+-48|0;if(ba>>>0<10?(a[ia+2>>0]|0)==36:0){c[m+(ba<<2)>>2]=10;ta=c[k+((a[f>>0]|0)+-48<<3)>>2]|0;ua=1;va=ia+3|0}else{if(da|0){na=-1;break a}if(!w){oa=0;pa=ga;qa=0;ra=f;sa=Z;break}Z=(c[g>>2]|0)+(4-1)&~(4-1);ba=c[Z>>2]|0;c[g>>2]=Z+4;ta=ba;ua=0;va=f}f=(ta|0)<0;oa=f?0-ta|0:ta;pa=f?ga|8192:ga;qa=ua;ra=va;sa=a[va>>0]|0}while(0);e:do if(sa<<24>>24==46){f=ra+1|0;ba=a[f>>0]|0;if(ba<<24>>24!=42){Z=(ba<<24>>24)+-48|0;if(Z>>>0<10){wa=0;xa=f;ya=Z}else{za=0;Aa=f;break}while(1){f=(wa*10|0)+ya|0;Z=xa+1|0;ya=(a[Z>>0]|0)+-48|0;if(ya>>>0>=10){za=f;Aa=Z;break e}else{wa=f;xa=Z}}}aa=ra+2|0;_=(a[aa>>0]|0)+-48|0;if(_>>>0<10?(a[ra+3>>0]|0)==36:0){c[m+(_<<2)>>2]=10;za=c[k+((a[aa>>0]|0)+-48<<3)>>2]|0;Aa=ra+4|0;break}if(qa|0){na=-1;break a}if(w){_=(c[g>>2]|0)+(4-1)&~(4-1);Z=c[_>>2]|0;c[g>>2]=_+4;za=Z;Aa=aa}else{za=0;Aa=aa}}else{za=-1;Aa=ra}while(0);aa=0;Z=Aa;while(1){_=(a[Z>>0]|0)+-65|0;if(_>>>0>57){na=-1;break a}Ba=Z+1|0;Ca=a[66687+(aa*58|0)+_>>0]|0;Da=Ca&255;if((Da+-1|0)>>>0<8){aa=Da;Z=Ba}else break}if(!(Ca<<24>>24)){na=-1;break}_=(ca|0)>-1;do if(Ca<<24>>24==19)if(_){na=-1;break a}else R=51;else{if(_){c[m+(ca<<2)>>2]=Da;f=k+(ca<<3)|0;ba=c[f+4>>2]|0;ka=s;c[ka>>2]=c[f>>2];c[ka+4>>2]=ba;R=51;break}if(!w){na=0;break a}Yu(s,Da,g)}while(0);if((R|0)==51?(R=0,!w):0){M=0;N=Q;O=qa;P=Ba;continue}_=a[Z>>0]|0;ba=(aa|0)!=0&(_&15|0)==3?_&-33:_;_=pa&-65537;ka=(pa&8192|0)==0?pa:_;f:do switch(ba|0){case 110:{switch((aa&255)<<24>>24){case 0:{c[c[s>>2]>>2]=Q;M=0;N=Q;O=qa;P=Ba;continue a;break}case 1:{c[c[s>>2]>>2]=Q;M=0;N=Q;O=qa;P=Ba;continue a;break}case 2:{f=c[s>>2]|0;c[f>>2]=Q;c[f+4>>2]=((Q|0)<0)<<31>>31;M=0;N=Q;O=qa;P=Ba;continue a;break}case 3:{b[c[s>>2]>>1]=Q;M=0;N=Q;O=qa;P=Ba;continue a;break}case 4:{a[c[s>>2]>>0]=Q;M=0;N=Q;O=qa;P=Ba;continue a;break}case 6:{c[c[s>>2]>>2]=Q;M=0;N=Q;O=qa;P=Ba;continue a;break}case 7:{f=c[s>>2]|0;c[f>>2]=Q;c[f+4>>2]=((Q|0)<0)<<31>>31;M=0;N=Q;O=qa;P=Ba;continue a;break}default:{M=0;N=Q;O=qa;P=Ba;continue a}}break}case 112:{Ea=120;Fa=za>>>0>8?za:8;Ga=ka|8;R=63;break}case 88:case 120:{Ea=ba;Fa=za;Ga=ka;R=63;break}case 111:{f=s;la=c[f>>2]|0;ja=c[f+4>>2]|0;if((la|0)==0&(ja|0)==0)Ha=x;else{f=x;Ia=la;la=ja;while(1){ja=f+-1|0;a[ja>>0]=Ia&7|48;Ia=ax(Ia|0,la|0,3)|0;la=D;if((Ia|0)==0&(la|0)==0){Ha=ja;break}else f=ja}}if(!(ka&8)){Ja=Ha;Ka=0;La=67167;Ma=za;Na=ka;R=76}else{f=y-Ha|0;Ja=Ha;Ka=0;La=67167;Ma=(za|0)>(f|0)?za:f+1|0;Na=ka;R=76}break}case 105:case 100:{f=s;la=c[f>>2]|0;Ia=c[f+4>>2]|0;if((Ia|0)<0){f=Rw(0,0,la|0,Ia|0)|0;ja=D;Oa=s;c[Oa>>2]=f;c[Oa+4>>2]=ja;Pa=1;Qa=67167;Ra=f;Sa=ja;R=75;break f}if(!(ka&2048)){ja=ka&1;Pa=ja;Qa=(ja|0)==0?67167:67169;Ra=la;Sa=Ia;R=75}else{Pa=1;Qa=67168;Ra=la;Sa=Ia;R=75}break}case 117:{Ia=s;Pa=0;Qa=67167;Ra=c[Ia>>2]|0;Sa=c[Ia+4>>2]|0;R=75;break}case 99:{a[z>>0]=c[s>>2];Ta=z;Ua=0;Va=67167;Wa=x;Xa=1;Ya=_;break}case 109:{Za=Nu(c[(xu()|0)>>2]|0)|0;R=81;break}case 115:{Ia=c[s>>2]|0;Za=Ia|0?Ia:67177;R=81;break}case 67:{c[u>>2]=c[s>>2];c[t>>2]=0;c[s>>2]=u;_a=-1;$a=u;R=85;break}case 83:{Ia=c[s>>2]|0;if(!za){$u(e,32,oa,0,ka);ab=0;R=96}else{_a=za;$a=Ia;R=85}break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{bb=+h[s>>3];c[p>>2]=0;h[l>>3]=bb;if((c[l+4>>2]|0)>=0){Ia=ka&1;if(!(ka&2048)){cb=bb;db=Ia;eb=(Ia|0)==0?67185:67190}else{cb=bb;db=1;eb=67187}}else{cb=-bb;db=1;eb=67184}h[l>>3]=cb;Ia=c[l+4>>2]&2146435072;do if(Ia>>>0<2146435072|(Ia|0)==2146435072&0<0){bb=+bv(cb,p)*2.0;la=bb!=0.0;if(la)c[p>>2]=(c[p>>2]|0)+-1;ja=ba|32;if((ja|0)==97){f=ba&32;Oa=(f|0)==0?eb:eb+9|0;fb=db|2;gb=12-za|0;do if(!(za>>>0>11|(gb|0)==0)){hb=8.0;ib=gb;do{ib=ib+-1|0;hb=hb*16.0}while((ib|0)!=0);if((a[Oa>>0]|0)==45){jb=-(hb+(-bb-hb));break}else{jb=bb+hb-hb;break}}else jb=bb;while(0);gb=c[p>>2]|0;ib=(gb|0)<0?0-gb|0:gb;kb=Zu(ib,((ib|0)<0)<<31>>31,C)|0;if((kb|0)==(C|0)){a[E>>0]=48;lb=E}else lb=kb;a[lb+-1>>0]=(gb>>31&2)+43;gb=lb+-2|0;a[gb>>0]=ba+15;kb=(za|0)<1;ib=(ka&8|0)==0;mb=q;nb=jb;while(1){ob=~~nb;pb=mb+1|0;a[mb>>0]=d[67151+ob>>0]|f;nb=(nb-+(ob|0))*16.0;do if((pb-A|0)==1){if(ib&(kb&nb==0.0)){qb=pb;break}a[pb>>0]=46;qb=mb+2|0}else qb=pb;while(0);if(!(nb!=0.0))break;else mb=qb}mb=qb;kb=gb;ib=(za|0)!=0&(G+mb|0)<(za|0)?H+za-kb|0:F-kb+mb|0;f=ib+fb|0;$u(e,32,oa,f,ka);if(!(c[e>>2]&32))Xu(Oa,fb,e)|0;$u(e,48,oa,f,ka^65536);pb=mb-A|0;if(!(c[e>>2]&32))Xu(q,pb,e)|0;mb=r-kb|0;$u(e,48,ib-(pb+mb)|0,0,0);if(!(c[e>>2]&32))Xu(gb,mb,e)|0;$u(e,32,oa,f,ka^8192);rb=(f|0)<(oa|0)?oa:f;break}f=(za|0)<0?6:za;if(la){mb=(c[p>>2]|0)+-28|0;c[p>>2]=mb;sb=bb*268435456.0;tb=mb}else{sb=bb;tb=c[p>>2]|0}mb=(tb|0)<0?o:I;pb=mb;nb=sb;do{ib=~~nb>>>0;c[pb>>2]=ib;pb=pb+4|0;nb=(nb-+(ib>>>0))*1.0e9}while(nb!=0.0);if((tb|0)>0){la=mb;gb=pb;fb=tb;while(1){Oa=(fb|0)>29?29:fb;ib=gb+-4|0;do if(ib>>>0<la>>>0)ub=la;else{kb=ib;ob=0;do{vb=gx(c[kb>>2]|0,0,Oa|0)|0;wb=Uw(vb|0,D|0,ob|0,0)|0;vb=D;xb=hx(wb|0,vb|0,1e9,0)|0;c[kb>>2]=xb;ob=cx(wb|0,vb|0,1e9,0)|0;kb=kb+-4|0}while(kb>>>0>=la>>>0);if(!ob){ub=la;break}kb=la+-4|0;c[kb>>2]=ob;ub=kb}while(0);ib=gb;while(1){if(ib>>>0<=ub>>>0)break;kb=ib+-4|0;if(!(c[kb>>2]|0))ib=kb;else break}kb=(c[p>>2]|0)-Oa|0;c[p>>2]=kb;if((kb|0)>0){la=ub;gb=ib;fb=kb}else{yb=ub;zb=ib;Ab=kb;break}}}else{yb=mb;zb=pb;Ab=tb}if((Ab|0)<0){fb=((f+25|0)/9|0)+1|0;gb=(ja|0)==102;la=yb;kb=zb;vb=Ab;while(1){wb=0-vb|0;xb=(wb|0)>9?9:wb;do if(la>>>0<kb>>>0){wb=(1<<xb)+-1|0;Bb=1e9>>>xb;Cb=0;Db=la;do{Eb=c[Db>>2]|0;c[Db>>2]=(Eb>>>xb)+Cb;Cb=S(Eb&wb,Bb)|0;Db=Db+4|0}while(Db>>>0<kb>>>0);Db=(c[la>>2]|0)==0?la+4|0:la;if(!Cb){Fb=Db;Gb=kb;break}c[kb>>2]=Cb;Fb=Db;Gb=kb+4|0}else{Fb=(c[la>>2]|0)==0?la+4|0:la;Gb=kb}while(0);ib=gb?mb:Fb;Oa=(Gb-ib>>2|0)>(fb|0)?ib+(fb<<2)|0:Gb;vb=(c[p>>2]|0)+xb|0;c[p>>2]=vb;if((vb|0)>=0){Hb=Fb;Ib=Oa;break}else{la=Fb;kb=Oa}}}else{Hb=yb;Ib=zb}kb=mb;do if(Hb>>>0<Ib>>>0){la=(kb-Hb>>2)*9|0;vb=c[Hb>>2]|0;if(vb>>>0<10){Jb=la;break}else{Kb=la;Lb=10}while(1){Lb=Lb*10|0;la=Kb+1|0;if(vb>>>0<Lb>>>0){Jb=la;break}else Kb=la}}else Jb=0;while(0);vb=(ja|0)==103;xb=(f|0)!=0;la=f-((ja|0)!=102?Jb:0)+((xb&vb)<<31>>31)|0;if((la|0)<(((Ib-kb>>2)*9|0)+-9|0)){fb=la+9216|0;la=mb+4+(((fb|0)/9|0)+-1024<<2)|0;gb=((fb|0)%9|0)+1|0;if((gb|0)<9){fb=gb;gb=10;while(1){pb=gb*10|0;fb=fb+1|0;if((fb|0)==9){Mb=pb;break}else gb=pb}}else Mb=10;gb=c[la>>2]|0;fb=(gb>>>0)%(Mb>>>0)|0;ja=(la+4|0)==(Ib|0);do if(ja&(fb|0)==0){Nb=la;Ob=Jb;Pb=Hb}else{nb=(((gb>>>0)/(Mb>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;pb=(Mb|0)/2|0;if(fb>>>0<pb>>>0)Qb=.5;else Qb=ja&(fb|0)==(pb|0)?1.0:1.5;do if(!db){Rb=Qb;Sb=nb}else{if((a[eb>>0]|0)!=45){Rb=Qb;Sb=nb;break}Rb=-Qb;Sb=-nb}while(0);pb=gb-fb|0;c[la>>2]=pb;if(!(Sb+Rb!=Sb)){Nb=la;Ob=Jb;Pb=Hb;break}Oa=pb+Mb|0;c[la>>2]=Oa;if(Oa>>>0>999999999){Oa=la;pb=Hb;while(1){ib=Oa+-4|0;c[Oa>>2]=0;if(ib>>>0<pb>>>0){Db=pb+-4|0;c[Db>>2]=0;Tb=Db}else Tb=pb;Db=(c[ib>>2]|0)+1|0;c[ib>>2]=Db;if(Db>>>0>999999999){Oa=ib;pb=Tb}else{Ub=ib;Vb=Tb;break}}}else{Ub=la;Vb=Hb}pb=(kb-Vb>>2)*9|0;Oa=c[Vb>>2]|0;if(Oa>>>0<10){Nb=Ub;Ob=pb;Pb=Vb;break}else{Wb=pb;Xb=10}while(1){Xb=Xb*10|0;pb=Wb+1|0;if(Oa>>>0<Xb>>>0){Nb=Ub;Ob=pb;Pb=Vb;break}else Wb=pb}}while(0);la=Nb+4|0;Yb=Ob;Zb=Ib>>>0>la>>>0?la:Ib;_b=Pb}else{Yb=Jb;Zb=Ib;_b=Hb}la=0-Yb|0;fb=Zb;while(1){if(fb>>>0<=_b>>>0){$b=0;break}gb=fb+-4|0;if(!(c[gb>>2]|0))fb=gb;else{$b=1;break}}do if(vb){gb=(xb&1^1)+f|0;if((gb|0)>(Yb|0)&(Yb|0)>-5){ac=ba+-1|0;bc=gb+-1-Yb|0}else{ac=ba+-2|0;bc=gb+-1|0}gb=ka&8;if(gb|0){cc=ac;dc=bc;ec=gb;break}do if($b){gb=c[fb+-4>>2]|0;if(!gb){fc=9;break}if(!((gb>>>0)%10|0)){gc=0;hc=10}else{fc=0;break}while(1){hc=hc*10|0;ja=gc+1|0;if((gb>>>0)%(hc>>>0)|0|0){fc=ja;break}else gc=ja}}else fc=9;while(0);gb=((fb-kb>>2)*9|0)+-9|0;if((ac|32|0)==102){Cb=gb-fc|0;ja=(Cb|0)<0?0:Cb;cc=ac;dc=(bc|0)<(ja|0)?bc:ja;ec=0;break}else{ja=gb+Yb-fc|0;gb=(ja|0)<0?0:ja;cc=ac;dc=(bc|0)<(gb|0)?bc:gb;ec=0;break}}else{cc=ba;dc=f;ec=ka&8}while(0);f=dc|ec;kb=(f|0)!=0&1;xb=(cc|32|0)==102;if(xb){ic=0;jc=(Yb|0)>0?Yb:0}else{vb=(Yb|0)<0?la:Yb;gb=Zu(vb,((vb|0)<0)<<31>>31,C)|0;if((r-gb|0)<2){vb=gb;while(1){ja=vb+-1|0;a[ja>>0]=48;if((r-ja|0)<2)vb=ja;else{kc=ja;break}}}else kc=gb;a[kc+-1>>0]=(Yb>>31&2)+43;vb=kc+-2|0;a[vb>>0]=cc;ic=vb;jc=r-vb|0}vb=db+1+dc+kb+jc|0;$u(e,32,oa,vb,ka);if(!(c[e>>2]&32))Xu(eb,db,e)|0;$u(e,48,oa,vb,ka^65536);do if(xb){la=_b>>>0>mb>>>0?mb:_b;ja=la;do{Cb=Zu(c[ja>>2]|0,0,J)|0;do if((ja|0)==(la|0)){if((Cb|0)!=(J|0)){lc=Cb;break}a[L>>0]=48;lc=L}else{if(Cb>>>0<=q>>>0){lc=Cb;break}Sw(q|0,48,Cb-A|0)|0;Oa=Cb;while(1){pb=Oa+-1|0;if(pb>>>0>q>>>0)Oa=pb;else{lc=pb;break}}}while(0);if(!(c[e>>2]&32))Xu(lc,K-lc|0,e)|0;ja=ja+4|0}while(ja>>>0<=mb>>>0);do if(f|0){if(c[e>>2]&32|0)break;Xu(67219,1,e)|0}while(0);if((dc|0)>0&ja>>>0<fb>>>0){la=dc;Cb=ja;while(1){Oa=Zu(c[Cb>>2]|0,0,J)|0;if(Oa>>>0>q>>>0){Sw(q|0,48,Oa-A|0)|0;pb=Oa;while(1){ib=pb+-1|0;if(ib>>>0>q>>>0)pb=ib;else{mc=ib;break}}}else mc=Oa;if(!(c[e>>2]&32))Xu(mc,(la|0)>9?9:la,e)|0;Cb=Cb+4|0;pb=la+-9|0;if(!((la|0)>9&Cb>>>0<fb>>>0)){nc=pb;break}else la=pb}}else nc=dc;$u(e,48,nc+9|0,9,0)}else{la=$b?fb:_b+4|0;if((dc|0)>-1){Cb=(ec|0)==0;ja=dc;pb=_b;while(1){ib=Zu(c[pb>>2]|0,0,J)|0;if((ib|0)==(J|0)){a[L>>0]=48;oc=L}else oc=ib;do if((pb|0)==(_b|0)){ib=oc+1|0;if(!(c[e>>2]&32))Xu(oc,1,e)|0;if(Cb&(ja|0)<1){pc=ib;break}if(c[e>>2]&32|0){pc=ib;break}Xu(67219,1,e)|0;pc=ib}else{if(oc>>>0<=q>>>0){pc=oc;break}Sw(q|0,48,oc+B|0)|0;ib=oc;while(1){Db=ib+-1|0;if(Db>>>0>q>>>0)ib=Db;else{pc=Db;break}}}while(0);Oa=K-pc|0;if(!(c[e>>2]&32))Xu(pc,(ja|0)>(Oa|0)?Oa:ja,e)|0;ib=ja-Oa|0;pb=pb+4|0;if(!(pb>>>0<la>>>0&(ib|0)>-1)){qc=ib;break}else ja=ib}}else qc=dc;$u(e,48,qc+18|0,18,0);if(c[e>>2]&32|0)break;Xu(ic,r-ic|0,e)|0}while(0);$u(e,32,oa,vb,ka^8192);rb=(vb|0)<(oa|0)?oa:vb}else{fb=(ba&32|0)!=0;f=cb!=cb|0.0!=0.0;mb=f?0:db;xb=mb+3|0;$u(e,32,oa,xb,_);kb=c[e>>2]|0;if(!(kb&32)){Xu(eb,mb,e)|0;rc=c[e>>2]|0}else rc=kb;if(!(rc&32))Xu(f?(fb?67211:67215):fb?67203:67207,3,e)|0;$u(e,32,oa,xb,ka^8192);rb=(xb|0)<(oa|0)?oa:xb}while(0);M=rb;N=Q;O=qa;P=Ba;continue a;break}default:{Ta=P;Ua=0;Va=67167;Wa=x;Xa=za;Ya=ka}}while(0);g:do if((R|0)==63){R=0;ba=s;aa=c[ba>>2]|0;Z=c[ba+4>>2]|0;ba=Ea&32;if((aa|0)==0&(Z|0)==0){sc=x;tc=0;uc=0}else{Ia=x;xb=aa;aa=Z;do{Ia=Ia+-1|0;a[Ia>>0]=d[67151+(xb&15)>>0]|ba;xb=ax(xb|0,aa|0,4)|0;aa=D}while(!((xb|0)==0&(aa|0)==0));aa=s;sc=Ia;tc=c[aa>>2]|0;uc=c[aa+4>>2]|0}aa=(Ga&8|0)==0|(tc|0)==0&(uc|0)==0;Ja=sc;Ka=aa?0:2;La=aa?67167:67167+(Ea>>4)|0;Ma=Fa;Na=Ga;R=76}else if((R|0)==75){R=0;Ja=Zu(Ra,Sa,x)|0;Ka=Pa;La=Qa;Ma=za;Na=ka;R=76}else if((R|0)==81){R=0;aa=_u(Za,0,za)|0;xb=(aa|0)==0;Ta=Za;Ua=0;Va=67167;Wa=xb?Za+za|0:aa;Xa=xb?za:aa-Za|0;Ya=_}else if((R|0)==85){R=0;aa=$a;xb=0;ba=0;while(1){Z=c[aa>>2]|0;if(!Z){vc=xb;wc=ba;break}fb=av(v,Z)|0;if((fb|0)<0|fb>>>0>(_a-xb|0)>>>0){vc=xb;wc=fb;break}Z=fb+xb|0;if(_a>>>0>Z>>>0){aa=aa+4|0;xb=Z;ba=fb}else{vc=Z;wc=fb;break}}if((wc|0)<0){na=-1;break a}$u(e,32,oa,vc,ka);if(!vc){ab=0;R=96}else{ba=$a;xb=0;while(1){aa=c[ba>>2]|0;if(!aa){ab=vc;R=96;break g}Ia=av(v,aa)|0;xb=Ia+xb|0;if((xb|0)>(vc|0)){ab=vc;R=96;break g}if(!(c[e>>2]&32))Xu(v,Ia,e)|0;if(xb>>>0>=vc>>>0){ab=vc;R=96;break}else ba=ba+4|0}}}while(0);if((R|0)==96){R=0;$u(e,32,oa,ab,ka^8192);M=(oa|0)>(ab|0)?oa:ab;N=Q;O=qa;P=Ba;continue}if((R|0)==76){R=0;_=(Ma|0)>-1?Na&-65537:Na;ba=s;xb=(c[ba>>2]|0)!=0|(c[ba+4>>2]|0)!=0;if((Ma|0)!=0|xb){ba=(xb&1^1)+(y-Ja)|0;Ta=Ja;Ua=Ka;Va=La;Wa=x;Xa=(Ma|0)>(ba|0)?Ma:ba;Ya=_}else{Ta=x;Ua=Ka;Va=La;Wa=x;Xa=0;Ya=_}}_=Wa-Ta|0;ba=(Xa|0)<(_|0)?_:Xa;xb=ba+Ua|0;Ia=(oa|0)<(xb|0)?xb:oa;$u(e,32,Ia,xb,Ya);if(!(c[e>>2]&32))Xu(Va,Ua,e)|0;$u(e,48,Ia,xb,Ya^65536);$u(e,48,ba,_,0);if(!(c[e>>2]&32))Xu(Ta,_,e)|0;$u(e,32,Ia,xb,Ya^8192);M=Ia;N=Q;O=qa;P=Ba}h:do if((R|0)==243)if(!e)if(!O)na=0;else{Ba=1;while(1){P=c[m+(Ba<<2)>>2]|0;if(!P){xc=Ba;break}Yu(k+(Ba<<3)|0,P,g);Ba=Ba+1|0;if((Ba|0)>=10){na=1;break h}}while(1){if(c[m+(xc<<2)>>2]|0){na=-1;break h}xc=xc+1|0;if((xc|0)>=10){na=1;break}}}else na=Q;while(0);i=n;return na|0}function Wu(a){a=a|0;return 0}function Xu(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=e+16|0;g=c[f>>2]|0;if(!g)if(!(ev(e)|0)){h=c[f>>2]|0;i=5}else j=0;else{h=g;i=5}a:do if((i|0)==5){g=e+20|0;f=c[g>>2]|0;k=f;if((h-f|0)>>>0<d>>>0){j=ub[c[e+36>>2]&63](e,b,d)|0;break}b:do if((a[e+75>>0]|0)>-1){f=d;while(1){if(!f){l=d;m=b;n=0;o=k;break b}p=f+-1|0;if((a[b+p>>0]|0)==10)break;else f=p}if((ub[c[e+36>>2]&63](e,b,f)|0)>>>0<f>>>0){j=f;break a}l=d-f|0;m=b+f|0;n=f;o=c[g>>2]|0}else{l=d;m=b;n=0;o=k}while(0);Yw(o|0,m|0,l|0)|0;c[g>>2]=(c[g>>2]|0)+l;j=n+l|0}while(0);return j|0}function Yu(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,i=0,j=0.0;a:do if(b>>>0<=20)do switch(b|0){case 9:{e=(c[d>>2]|0)+(4-1)&~(4-1);f=c[e>>2]|0;c[d>>2]=e+4;c[a>>2]=f;break a;break}case 10:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;f=a;c[f>>2]=e;c[f+4>>2]=((e|0)<0)<<31>>31;break a;break}case 11:{e=(c[d>>2]|0)+(4-1)&~(4-1);f=c[e>>2]|0;c[d>>2]=e+4;e=a;c[e>>2]=f;c[e+4>>2]=0;break a;break}case 12:{e=(c[d>>2]|0)+(8-1)&~(8-1);f=e;g=c[f>>2]|0;i=c[f+4>>2]|0;c[d>>2]=e+8;e=a;c[e>>2]=g;c[e+4>>2]=i;break a;break}case 13:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=(e&65535)<<16>>16;e=a;c[e>>2]=i;c[e+4>>2]=((i|0)<0)<<31>>31;break a;break}case 14:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=a;c[i>>2]=e&65535;c[i+4>>2]=0;break a;break}case 15:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=(e&255)<<24>>24;e=a;c[e>>2]=i;c[e+4>>2]=((i|0)<0)<<31>>31;break a;break}case 16:{i=(c[d>>2]|0)+(4-1)&~(4-1);e=c[i>>2]|0;c[d>>2]=i+4;i=a;c[i>>2]=e&255;c[i+4>>2]=0;break a;break}case 17:{i=(c[d>>2]|0)+(8-1)&~(8-1);j=+h[i>>3];c[d>>2]=i+8;h[a>>3]=j;break a;break}case 18:{i=(c[d>>2]|0)+(8-1)&~(8-1);j=+h[i>>3];c[d>>2]=i+8;h[a>>3]=j;break a;break}default:break a}while(0);while(0);return}function Zu(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;if(c>>>0>0|(c|0)==0&b>>>0>4294967295){e=d;f=b;g=c;while(1){c=hx(f|0,g|0,10,0)|0;e=e+-1|0;a[e>>0]=c|48;c=f;f=cx(f|0,g|0,10,0)|0;if(!(g>>>0>9|(g|0)==9&c>>>0>4294967295))break;else g=D}h=f;i=e}else{h=b;i=d}if(!h)j=i;else{d=h;h=i;while(1){i=h+-1|0;a[i>>0]=(d>>>0)%10|0|48;if(d>>>0<10){j=i;break}else{d=(d>>>0)/10|0;h=i}}}return j|0}function _u(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=d&255;g=(e|0)!=0;a:do if(g&(b&3|0)!=0){h=d&255;i=b;j=e;while(1){if((a[i>>0]|0)==h<<24>>24){k=i;l=j;m=6;break a}n=i+1|0;o=j+-1|0;p=(o|0)!=0;if(p&(n&3|0)!=0){i=n;j=o}else{q=n;r=o;s=p;m=5;break}}}else{q=b;r=e;s=g;m=5}while(0);if((m|0)==5)if(s){k=q;l=r;m=6}else{t=q;u=0}b:do if((m|0)==6){q=d&255;if((a[k>>0]|0)==q<<24>>24){t=k;u=l}else{r=S(f,16843009)|0;c:do if(l>>>0>3){s=k;g=l;while(1){e=c[s>>2]^r;if((e&-2139062144^-2139062144)&e+-16843009|0)break;e=s+4|0;b=g+-4|0;if(b>>>0>3){s=e;g=b}else{v=e;w=b;m=11;break c}}x=s;y=g}else{v=k;w=l;m=11}while(0);if((m|0)==11)if(!w){t=v;u=0;break}else{x=v;y=w}while(1){if((a[x>>0]|0)==q<<24>>24){t=x;u=y;break b}r=x+1|0;y=y+-1|0;if(!y){t=r;u=0;break}else x=r}}}while(0);return (u|0?t:0)|0}function $u(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;i=i+256|0;if((i|0)>=(j|0))$(256);h=g;do if((d|0)>(e|0)&(f&73728|0)==0){k=d-e|0;Sw(h|0,b|0,(k>>>0>256?256:k)|0)|0;l=c[a>>2]|0;m=(l&32|0)==0;if(k>>>0>255){n=d-e|0;o=k;p=l;l=m;while(1){if(l){Xu(h,256,a)|0;q=c[a>>2]|0}else q=p;o=o+-256|0;l=(q&32|0)==0;if(o>>>0<=255)break;else p=q}if(l)r=n&255;else break}else if(m)r=k;else break;Xu(h,r,a)|0}while(0);i=g;return}function av(a,b){a=a|0;b=b|0;var c=0;if(!a)c=0;else c=dv(a,b,0)|0;return c|0}function bv(a,b){a=+a;b=b|0;return +(+cv(a,b))}function cv(a,b){a=+a;b=b|0;var d=0,e=0,f=0,g=0.0,i=0.0,j=0,k=0.0;h[l>>3]=a;d=c[l>>2]|0;e=c[l+4>>2]|0;f=ax(d|0,e|0,52)|0;switch(f&2047){case 0:{if(a!=0.0){g=+cv(a*18446744073709551616.0,b);i=g;j=(c[b>>2]|0)+-64|0}else{i=a;j=0}c[b>>2]=j;k=i;break}case 2047:{k=a;break}default:{c[b>>2]=(f&2047)+-1022;c[l>>2]=d;c[l+4>>2]=e&-2146435073|1071644672;k=+h[l>>3]}}return +k}function dv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if(b){if(d>>>0<128){a[b>>0]=d;f=1;break}if(d>>>0<2048){a[b>>0]=d>>>6|192;a[b+1>>0]=d&63|128;f=2;break}if(d>>>0<55296|(d&-8192|0)==57344){a[b>>0]=d>>>12|224;a[b+1>>0]=d>>>6&63|128;a[b+2>>0]=d&63|128;f=3;break}if((d+-65536|0)>>>0<1048576){a[b>>0]=d>>>18|240;a[b+1>>0]=d>>>12&63|128;a[b+2>>0]=d>>>6&63|128;a[b+3>>0]=d&63|128;f=4;break}else{c[(xu()|0)>>2]=84;f=-1;break}}else f=1;while(0);return f|0}function ev(b){b=b|0;var d=0,e=0,f=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;e=c[b>>2]|0;if(!(e&8)){c[b+8>>2]=0;c[b+4>>2]=0;d=c[b+44>>2]|0;c[b+28>>2]=d;c[b+20>>2]=d;c[b+16>>2]=d+(c[b+48>>2]|0);f=0}else{c[b>>2]=e|32;f=-1}return f|0}function fv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=a+20|0;f=c[e>>2]|0;g=(c[a+16>>2]|0)-f|0;a=g>>>0>d>>>0?d:g;Yw(f|0,b|0,a|0)|0;c[e>>2]=(c[e>>2]|0)+a;return d|0}function gv(a){a=a|0;var b=0;b=(Mu(a)|0)==0;return (b?a:a&95)|0}function hv(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=b;a:do if(!(d&3)){e=b;f=4}else{g=b;h=d;while(1){if(!(a[g>>0]|0)){i=h;break a}j=g+1|0;h=j;if(!(h&3)){e=j;f=4;break}else g=j}}while(0);if((f|0)==4){f=e;while(1){k=c[f>>2]|0;if(!((k&-2139062144^-2139062144)&k+-16843009))f=f+4|0;else break}if(!((k&255)<<24>>24))l=f;else{k=f;while(1){f=k+1|0;if(!(a[f>>0]|0)){l=f;break}else k=f}}i=l}return i-d|0}function iv(a){a=a|0;return ((a|0)==223|(Iu(a)|0)!=(a|0))&1|0}function jv(a){a=a|0;var b=0;if(a>>>0>=255)if((a+-57344|0)>>>0<8185|(a>>>0<8232|(a+-8234|0)>>>0<47062))b=1;else return ((a+-65532|0)>>>0>1048579|(a&65534|0)==65534)&1^1|0;else b=(a+1&127)>>>0>32&1;return b|0}function kv(a,b){a=a|0;b=b|0;var c=0;do switch(b|0){case 1:{c=lv(a)|0;break}case 2:{c=Lu(a)|0;break}case 3:{c=Du(a)|0;break}case 4:{c=mv(a)|0;break}case 5:{c=nv(a)|0;break}case 6:{c=ov(a)|0;break}case 7:{c=iv(a)|0;break}case 8:{c=jv(a)|0;break}case 9:{c=pv(a)|0;break}case 10:{c=Ou(a)|0;break}case 11:{c=qv(a)|0;break}case 12:{c=rv(a)|0;break}default:c=0}while(0);return c|0}function lv(a){a=a|0;var b=0;if(!(nv(a)|0))b=(Lu(a)|0)!=0;else b=1;return b&1|0}function mv(a){a=a|0;var b=0;if((a&-2|0)==8232|(a>>>0<32|(a+-127|0)>>>0<33))b=1;else b=(a+-65529|0)>>>0<3;return b&1|0}function nv(a){a=a|0;return (a+-48|0)>>>0<10|0}function ov(a){a=a|0;var b=0;if(!(Ou(a)|0))b=(jv(a)|0)!=0;else b=0;return b&1|0}function pv(a){a=a|0;var b=0;if(a>>>0<131072)b=(d[67221+((d[67221+(a>>>8)>>0]|0)<<5|a>>>3&31)>>0]|0)>>>(a&7)&1;else b=0;return b|0}function qv(a){a=a|0;return (Ju(a)|0)!=(a|0)|0}function rv(a){a=a|0;return ((a+-48|0)>>>0<10|((a|32)+-97|0)>>>0<6)&1|0}function sv(b,c){b=b|0;c=c|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=a[b>>0]|0;a:do if(!(e<<24>>24)){f=c;g=0}else{h=b;i=c;j=e&255;k=e;while(1){l=a[i>>0]|0;if(!(l<<24>>24)){f=i;g=k;break a}if(k<<24>>24!=l<<24>>24?(m=Gu(j)|0,(m|0)!=(Gu(l&255)|0)):0){f=i;g=k;break a}h=h+1|0;l=i+1|0;m=a[h>>0]|0;if(!(m<<24>>24)){f=l;g=0;break}else{i=l;j=m&255;k=m}}}while(0);e=Gu(g&255)|0;return e-(Gu(d[f>>0]|0)|0)|0}function tv(a,b){a=a|0;b=b|0;uv(a,b)|0;return a|0}function uv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;e=d;a:do if(!((e^b)&3)){if(!(e&3)){f=d;g=b}else{h=d;i=b;while(1){j=a[h>>0]|0;a[i>>0]=j;if(!(j<<24>>24)){k=i;break a}j=h+1|0;l=i+1|0;if(!(j&3)){f=j;g=l;break}else{h=j;i=l}}}i=c[f>>2]|0;if(!((i&-2139062144^-2139062144)&i+-16843009)){h=g;l=f;j=i;while(1){i=l+4|0;m=h+4|0;c[h>>2]=j;j=c[i>>2]|0;if((j&-2139062144^-2139062144)&j+-16843009|0){n=i;o=m;break}else{h=m;l=i}}}else{n=f;o=g}p=n;q=o;r=8}else{p=d;q=b;r=8}while(0);if((r|0)==8){r=a[p>>0]|0;a[q>>0]=r;if(!(r<<24>>24))k=q;else{r=q;q=p;while(1){q=q+1|0;p=r+1|0;b=a[q>>0]|0;a[p>>0]=b;if(!(b<<24>>24)){k=p;break}else r=p}}}return k|0}function vv(a){a=a|0;return ((a|0)==32|(a+-9|0)>>>0<5)&1|0}function wv(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=xv(a,b,c,-1,0)|0;return d|0}function xv(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;g=i;i=i+112|0;if((i|0)>=(j|0))$(112);h=g;c[h>>2]=0;k=h+4|0;c[k>>2]=a;c[h+44>>2]=a;l=h+8|0;c[l>>2]=(a|0)<0?-1:a+2147483647|0;c[h+76>>2]=-1;yv(h,0);m=zv(h,d,1,e,f)|0;if(b|0)c[b>>2]=a+((c[k>>2]|0)+(c[h+108>>2]|0)-(c[l>>2]|0));i=g;return m|0}function yv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;c[a+104>>2]=b;d=c[a+8>>2]|0;e=c[a+4>>2]|0;f=d-e|0;c[a+108>>2]=f;if((b|0)!=0&(f|0)>(b|0))c[a+100>>2]=e+b;else c[a+100>>2]=d;return}function zv(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0;a:do if(e>>>0>36){c[(xu()|0)>>2]=22;i=0;j=0}else{k=b+4|0;l=b+100|0;do{m=c[k>>2]|0;if(m>>>0<(c[l>>2]|0)>>>0){c[k>>2]=m+1;n=d[m>>0]|0}else n=Av(b)|0}while((vv(n)|0)!=0);b:do switch(n|0){case 43:case 45:{m=((n|0)==45)<<31>>31;o=c[k>>2]|0;if(o>>>0<(c[l>>2]|0)>>>0){c[k>>2]=o+1;p=m;q=d[o>>0]|0;break b}else{p=m;q=Av(b)|0;break b}break}default:{p=0;q=n}}while(0);m=(e|0)==0;do if((e|16|0)==16&(q|0)==48){o=c[k>>2]|0;if(o>>>0<(c[l>>2]|0)>>>0){c[k>>2]=o+1;r=d[o>>0]|0}else r=Av(b)|0;if((r|32|0)!=120)if(m){s=r;t=8;u=46;break}else{v=r;w=e;u=32;break}o=c[k>>2]|0;if(o>>>0<(c[l>>2]|0)>>>0){c[k>>2]=o+1;x=d[o>>0]|0}else x=Av(b)|0;if((d[70390+x>>0]|0)>15){o=(c[l>>2]|0)==0;if(!o)c[k>>2]=(c[k>>2]|0)+-1;if(!f){yv(b,0);i=0;j=0;break a}if(o){i=0;j=0;break a}c[k>>2]=(c[k>>2]|0)+-1;i=0;j=0;break a}else{s=x;t=16;u=46}}else{o=m?10:e;if((d[70390+q>>0]|0)>>>0<o>>>0){v=q;w=o;u=32}else{if(c[l>>2]|0)c[k>>2]=(c[k>>2]|0)+-1;yv(b,0);c[(xu()|0)>>2]=22;i=0;j=0;break a}}while(0);if((u|0)==32)if((w|0)==10){m=v+-48|0;if(m>>>0<10){o=0;y=m;do{o=(o*10|0)+y|0;m=c[k>>2]|0;if(m>>>0<(c[l>>2]|0)>>>0){c[k>>2]=m+1;z=d[m>>0]|0}else z=Av(b)|0;y=z+-48|0}while(y>>>0<10&o>>>0<429496729);A=z;B=o;C=0}else{A=v;B=0;C=0}y=A+-48|0;if(y>>>0<10){m=A;E=B;F=C;G=y;while(1){y=ex(E|0,F|0,10,0)|0;H=D;I=((G|0)<0)<<31>>31;J=~I;if(H>>>0>J>>>0|(H|0)==(J|0)&y>>>0>~G>>>0){K=m;L=G;M=E;N=F;break}J=Uw(y|0,H|0,G|0,I|0)|0;I=D;H=c[k>>2]|0;if(H>>>0<(c[l>>2]|0)>>>0){c[k>>2]=H+1;O=d[H>>0]|0}else O=Av(b)|0;H=O+-48|0;if(H>>>0<10&(I>>>0<429496729|(I|0)==429496729&J>>>0<2576980378)){m=O;E=J;F=I;G=H}else{K=O;L=H;M=J;N=I;break}}if(L>>>0>9){P=p;Q=N;R=M}else{T=10;U=K;V=M;W=N;u=72}}else{P=p;Q=C;R=B}}else{s=v;t=w;u=46}c:do if((u|0)==46){if(!(t+-1&t)){G=a[70646+((t*23|0)>>>5&7)>>0]|0;F=a[70390+s>>0]|0;E=F&255;if(E>>>0<t>>>0){m=0;o=E;do{m=o|m<<G;E=c[k>>2]|0;if(E>>>0<(c[l>>2]|0)>>>0){c[k>>2]=E+1;X=d[E>>0]|0}else X=Av(b)|0;Y=a[70390+X>>0]|0;o=Y&255}while(m>>>0<134217728&o>>>0<t>>>0);Z=X;_=Y;$=0;aa=m}else{Z=s;_=F;$=0;aa=0}o=ax(-1,-1,G|0)|0;E=D;if((_&255)>>>0>=t>>>0|($>>>0>E>>>0|($|0)==(E|0)&aa>>>0>o>>>0)){T=t;U=Z;V=aa;W=$;u=72;break}else{ba=aa;ca=$;da=_}while(1){I=gx(ba|0,ca|0,G|0)|0;J=D;H=da&255|I;I=c[k>>2]|0;if(I>>>0<(c[l>>2]|0)>>>0){c[k>>2]=I+1;ea=d[I>>0]|0}else ea=Av(b)|0;da=a[70390+ea>>0]|0;if((da&255)>>>0>=t>>>0|(J>>>0>E>>>0|(J|0)==(E|0)&H>>>0>o>>>0)){T=t;U=ea;V=H;W=J;u=72;break c}else{ba=H;ca=J}}}o=a[70390+s>>0]|0;E=o&255;if(E>>>0<t>>>0){G=0;F=E;do{G=F+(S(G,t)|0)|0;E=c[k>>2]|0;if(E>>>0<(c[l>>2]|0)>>>0){c[k>>2]=E+1;fa=d[E>>0]|0}else fa=Av(b)|0;ga=a[70390+fa>>0]|0;F=ga&255}while(G>>>0<119304647&F>>>0<t>>>0);ha=fa;ia=ga;ja=G;ka=0}else{ha=s;ia=o;ja=0;ka=0}if((ia&255)>>>0<t>>>0){F=cx(-1,-1,t|0,0)|0;E=D;m=ha;J=ka;H=ja;I=ia;while(1){if(J>>>0>E>>>0|(J|0)==(E|0)&H>>>0>F>>>0){T=t;U=m;V=H;W=J;u=72;break c}y=ex(H|0,J|0,t|0,0)|0;la=D;ma=I&255;if(la>>>0>4294967295|(la|0)==-1&y>>>0>~ma>>>0){T=t;U=m;V=H;W=J;u=72;break c}na=Uw(ma|0,0,y|0,la|0)|0;la=D;y=c[k>>2]|0;if(y>>>0<(c[l>>2]|0)>>>0){c[k>>2]=y+1;oa=d[y>>0]|0}else oa=Av(b)|0;I=a[70390+oa>>0]|0;if((I&255)>>>0>=t>>>0){T=t;U=oa;V=na;W=la;u=72;break}else{m=oa;J=la;H=na}}}else{T=t;U=ha;V=ja;W=ka;u=72}}while(0);if((u|0)==72)if((d[70390+U>>0]|0)>>>0<T>>>0){do{H=c[k>>2]|0;if(H>>>0<(c[l>>2]|0)>>>0){c[k>>2]=H+1;pa=d[H>>0]|0}else pa=Av(b)|0}while((d[70390+pa>>0]|0)>>>0<T>>>0);c[(xu()|0)>>2]=34;P=(g&1|0)==0&0==0?p:0;Q=h;R=g}else{P=p;Q=W;R=V}if(c[l>>2]|0)c[k>>2]=(c[k>>2]|0)+-1;if(!(Q>>>0<h>>>0|(Q|0)==(h|0)&R>>>0<g>>>0)){if(!((g&1|0)!=0|0!=0|(P|0)!=0)){c[(xu()|0)>>2]=34;H=Uw(g|0,h|0,-1,-1)|0;i=D;j=H;break}if(Q>>>0>h>>>0|(Q|0)==(h|0)&R>>>0>g>>>0){c[(xu()|0)>>2]=34;i=h;j=g;break}}H=((P|0)<0)<<31>>31;J=Rw(R^P|0,Q^H|0,P|0,H|0)|0;i=D;j=J}while(0);D=i;return j|0}function Av(b){b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;e=b+104|0;f=c[e>>2]|0;if((f|0)!=0?(c[b+108>>2]|0)>=(f|0):0)g=4;else{f=Bv(b)|0;if((f|0)>=0){h=c[e>>2]|0;e=c[b+8>>2]|0;if(h){i=c[b+4>>2]|0;j=h-(c[b+108>>2]|0)|0;h=e;if((e-i|0)<(j|0)){k=h;g=9}else{c[b+100>>2]=i+(j+-1);l=h}}else{k=e;g=9}if((g|0)==9){c[b+100>>2]=e;l=k}k=b+4|0;if(!l)m=c[k>>2]|0;else{e=c[k>>2]|0;k=b+108|0;c[k>>2]=l+1-e+(c[k>>2]|0);m=e}e=m+-1|0;if((d[e>>0]|0|0)==(f|0))n=f;else{a[e>>0]=f;n=f}}else g=4}if((g|0)==4){c[b+100>>2]=0;n=-1}return n|0}function Bv(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b;if((c[a+8>>2]|0)==0?(Cv(a)|0)!=0:0)f=-1;else if((ub[c[a+32>>2]&63](a,e,1)|0)==1)f=d[e>>0]|0;else f=-1;i=b;return f|0}function Cv(b){b=b|0;var d=0,e=0,f=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;e=b+20|0;d=b+44|0;if((c[e>>2]|0)>>>0>(c[d>>2]|0)>>>0)ub[c[b+36>>2]&63](b,0,0)|0;c[b+16>>2]=0;c[b+28>>2]=0;c[e>>2]=0;e=c[b>>2]|0;if(e&20)if(!(e&4))f=-1;else{c[b>>2]=e|32;f=-1}else{e=c[d>>2]|0;c[b+8>>2]=e;c[b+4>>2]=e;f=0}return f|0}function Dv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e;c[f>>2]=d;d=Ev(a,b,f)|0;i=e;return d|0}function Ev(a,b,c){a=a|0;b=b|0;c=c|0;return Tu(a,2147483647,b,c)|0}function Fv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e;c[f>>2]=d;d=Uu(a,b,f)|0;i=e;return d|0}function Gv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;if((c[f+76>>2]|0)>-1)g=Wu(f)|0;else g=0;h=e+-1|0;if((e|0)<2){e=f+74|0;i=a[e>>0]|0;a[e>>0]=i+255|i;if(g|0)Au(f);if(!h){a[b>>0]=0;j=b}else j=0}else{a:do if(h){i=f+4|0;e=f+8|0;k=h;l=b;while(1){m=c[i>>2]|0;n=m;o=(c[e>>2]|0)-n|0;p=_u(m,10,o)|0;q=(p|0)==0;r=q?o:1-n+p|0;p=r>>>0<k>>>0?r:k;Yw(l|0,m|0,p|0)|0;m=(c[i>>2]|0)+p|0;c[i>>2]=m;s=l+p|0;r=k-p|0;if(!(q&(r|0)!=0)){t=s;u=17;break a}if(m>>>0>=(c[e>>2]|0)>>>0){q=Bv(f)|0;if((q|0)<0)break;else v=q}else{c[i>>2]=m+1;v=d[m>>0]|0}k=r+-1|0;r=s+1|0;a[s>>0]=v;if(!((k|0)!=0&(v&255|0)!=10)){t=r;u=17;break a}else l=r}if((s|0)!=(b|0)?(c[f>>2]&16|0)!=0:0){t=s;u=17}else w=0}else{t=b;u=17}while(0);if((u|0)==17)if(!b)w=0;else{a[t>>0]=0;w=b}if(!g)j=w;else{Au(f);j=w}}return j|0}function Hv(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(!e)f=0;else{g=a[b>>0]|0;a:do if(!(g<<24>>24)){h=c;i=0}else{j=b;k=e;l=c;m=g;while(1){k=k+-1|0;n=a[l>>0]|0;if(!(m<<24>>24==n<<24>>24&((k|0)!=0&n<<24>>24!=0))){h=l;i=m;break a}j=j+1|0;n=l+1|0;m=a[j>>0]|0;if(!(m<<24>>24)){h=n;i=0;break}else l=n}}while(0);f=(i&255)-(d[h>>0]|0)|0}return f|0}function Iv(a){a=a|0;return _w(a|0)|0}function Jv(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;a:do if(!d)e=0;else{f=b;g=d;h=c;while(1){i=a[f>>0]|0;j=a[h>>0]|0;if(i<<24>>24!=j<<24>>24)break;g=g+-1|0;if(!g){e=0;break a}else{f=f+1|0;h=h+1|0}}e=(i&255)-(j&255)|0}while(0);return e|0}function Kv(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=hb(6,d|0)|0;d=wu((a|0)==-4?-115:a)|0;i=b;return d|0}function Lv(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;e=i;i=i+192|0;if((i|0)>=(j|0))$(192);f=e+152|0;g=e+136|0;h=e+120|0;k=e+104|0;l=e+96|0;m=e+80|0;n=e+64|0;o=e+48|0;p=e+32|0;q=e+16|0;r=e;s=e+176|0;t=e+168|0;c[s>>2]=d;d=(c[s>>2]|0)+(4-1)&~(4-1);u=c[d>>2]|0;c[s>>2]=d+4;d=(b|0)==4?u|32768:u;a:do switch(b|0){case 14:{c[r>>2]=a;c[r+4>>2]=14;c[r+8>>2]=d;v=wu(xa(221,r|0)|0)|0;break}case 9:{c[q>>2]=a;c[q+4>>2]=16;c[q+8>>2]=t;u=xa(221,q|0)|0;switch(u|0){case -22:{c[p>>2]=a;c[p+4>>2]=9;c[p+8>>2]=d;w=xa(221,p|0)|0;break}case 0:{s=c[t+4>>2]|0;w=(c[t>>2]|0)==2?0-s|0:s;break}default:w=wu(u)|0}v=w;break}case 1030:{c[o>>2]=a;c[o+4>>2]=1030;c[o+8>>2]=d;u=xa(221,o|0)|0;if((u|0)!=-22){if((u|0)>-1){c[n>>2]=u;c[n+4>>2]=2;c[n+8>>2]=1;xa(221,n|0)|0}v=wu(u)|0;break a}c[m>>2]=a;c[m+4>>2]=1030;c[m+8>>2]=0;u=xa(221,m|0)|0;if((u|0)==-22){c[k>>2]=a;c[k+4>>2]=0;c[k+8>>2]=d;s=xa(221,k|0)|0;if((s|0)>-1){c[h>>2]=s;c[h+4>>2]=2;c[h+8>>2]=1;xa(221,h|0)|0}v=wu(s)|0;break a}else{if((u|0)>-1){c[l>>2]=u;hb(6,l|0)|0}v=wu(-22)|0;break a}break}default:if((b+-12|0)>>>0<5){c[g>>2]=a;c[g+4>>2]=b;c[g+8>>2]=d;v=wu(xa(221,g|0)|0)|0;break a}else{c[f>>2]=a;c[f+4>>2]=b;c[f+8>>2]=d;v=wu(xa(221,f|0)|0)|0;break a}}while(0);i=e;return v|0}function Mv(a){a=a|0;return _w(a|0)|0}function Nv(a,b,c){a=a|0;b=b|0;c=c|0;Ov(a,b,c)|0;return a|0}function Ov(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;f=d;do if(!((f^b)&3)){g=(e|0)!=0;a:do if(g&(f&3|0)!=0){h=e;i=d;j=b;while(1){k=a[i>>0]|0;a[j>>0]=k;if(!(k<<24>>24)){l=h;m=i;n=j;break a}k=h+-1|0;o=i+1|0;p=j+1|0;q=(k|0)!=0;if(q&(o&3|0)!=0){h=k;i=o;j=p}else{r=k;s=o;t=p;u=q;v=5;break}}}else{r=e;s=d;t=b;u=g;v=5}while(0);if((v|0)==5)if(u){l=r;m=s;n=t}else{w=t;x=0;break}if(!(a[m>>0]|0)){w=n;x=l}else{b:do if(l>>>0>3){g=n;j=m;i=l;while(1){h=c[j>>2]|0;if((h&-2139062144^-2139062144)&h+-16843009|0){y=j;z=g;A=i;break b}c[g>>2]=h;h=i+-4|0;q=j+4|0;p=g+4|0;if(h>>>0>3){g=p;j=q;i=h}else{y=q;z=p;A=h;break}}}else{y=m;z=n;A=l}while(0);B=y;C=z;D=A;v=11}}else{B=d;C=b;D=e;v=11}while(0);c:do if((v|0)==11)if(!D){w=C;x=0}else{e=B;b=C;d=D;while(1){A=a[e>>0]|0;a[b>>0]=A;if(!(A<<24>>24)){w=b;x=d;break c}d=d+-1|0;A=b+1|0;if(!d){w=A;x=0;break}else{e=e+1|0;b=A}}}while(0);Sw(w|0,0,x|0)|0;return w|0}function Pv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e;if(_u(70655,a[d>>0]|0,4)|0){h=Tv(d)|0|32768;c[g>>2]=b;c[g+4>>2]=h;c[g+8>>2]=438;h=wu(ib(5,g|0)|0)|0;if((h|0)>=0){g=Uv(h,d)|0;if(!g){c[f>>2]=h;hb(6,f|0)|0;k=0}else k=g}else k=0}else{c[(xu()|0)>>2]=22;k=0}i=e;return k|0}function Qv(a){a=a|0;var b=0,d=0,e=0,f=0;b=(c[a>>2]&1|0)!=0;if(!b){gb(71276);d=c[a+52>>2]|0;e=a+56|0;if(d|0)c[d+56>>2]=c[e>>2];f=c[e>>2]|0;if(f|0)c[f+52>>2]=d;if((c[17818]|0)==(a|0))c[17818]=f;cb(71276)}f=Rv(a)|0;d=yb[c[a+12>>2]&15](a)|0|f;f=c[a+92>>2]|0;if(f|0)Lw(f);if(!b)Lw(a);return d|0}function Rv(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;do if(a){if((c[a+76>>2]|0)<=-1){b=Sv(a)|0;break}d=(Wu(a)|0)==0;e=Sv(a)|0;if(d)b=e;else{Au(a);b=e}}else{if(!(c[3976]|0))f=0;else f=Rv(c[3976]|0)|0;gb(71276);e=c[17818]|0;if(!e)g=f;else{d=e;e=f;while(1){if((c[d+76>>2]|0)>-1)h=Wu(d)|0;else h=0;if((c[d+20>>2]|0)>>>0>(c[d+28>>2]|0)>>>0)i=Sv(d)|0|e;else i=e;if(h|0)Au(d);d=c[d+56>>2]|0;if(!d){g=i;break}else e=i}}cb(71276);b=g}while(0);return b|0}function Sv(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;b=a+20|0;d=a+28|0;if((c[b>>2]|0)>>>0>(c[d>>2]|0)>>>0?(ub[c[a+36>>2]&63](a,0,0)|0,(c[b>>2]|0)==0):0)e=-1;else{f=a+4|0;g=c[f>>2]|0;h=a+8|0;i=c[h>>2]|0;if(g>>>0<i>>>0)ub[c[a+40>>2]&63](a,g-i|0,1)|0;c[a+16>>2]=0;c[d>>2]=0;c[b>>2]=0;c[h>>2]=0;c[f>>2]=0;e=0}return e|0}function Tv(b){b=b|0;var c=0,d=0,e=0,f=0;c=(Vv(b,43)|0)==0;d=a[b>>0]|0;e=c?d<<24>>24!=114&1:2;c=(Vv(b,120)|0)==0;f=c?e:e|128;e=(Vv(b,101)|0)==0;b=e?f:f|524288;f=d<<24>>24==114?b:b|64;b=d<<24>>24==119?f|512:f;return (d<<24>>24==97?b|1024:b)|0}function Uv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=i;i=i+112|0;if((i|0)>=(j|0))$(112);f=e+40|0;g=e+24|0;h=e+16|0;k=e;l=e+52|0;m=a[d>>0]|0;if(_u(70655,m<<24>>24,4)|0){n=Kw(1144)|0;if(!n)o=0;else{p=n;q=p+112|0;do{c[p>>2]=0;p=p+4|0}while((p|0)<(q|0));if(!(Vv(d,43)|0))c[n>>2]=m<<24>>24==114?8:4;if(!(Vv(d,101)|0))r=m;else{c[k>>2]=b;c[k+4>>2]=2;c[k+8>>2]=1;xa(221,k|0)|0;r=a[d>>0]|0}if(r<<24>>24==97){c[h>>2]=b;c[h+4>>2]=3;r=xa(221,h|0)|0;if(!(r&1024)){c[g>>2]=b;c[g+4>>2]=4;c[g+8>>2]=r|1024;xa(221,g|0)|0}g=c[n>>2]|128;c[n>>2]=g;s=g}else s=c[n>>2]|0;c[n+60>>2]=b;c[n+44>>2]=n+120;c[n+48>>2]=1024;g=n+75|0;a[g>>0]=-1;if((s&8|0)==0?(c[f>>2]=b,c[f+4>>2]=21505,c[f+8>>2]=l,(bb(54,f|0)|0)==0):0)a[g>>0]=10;c[n+32>>2]=35;c[n+36>>2]=25;c[n+40>>2]=24;c[n+12>>2]=10;if(!(c[17813]|0))c[n+76>>2]=-1;gb(71276);g=c[17818]|0;c[n+56>>2]=g;if(g|0)c[g+52>>2]=n;c[17818]=n;cb(71276);o=n}}else{c[(xu()|0)>>2]=22;o=0}i=e;return o|0}function Vv(b,c){b=b|0;c=c|0;var d=0;d=Wv(b,c)|0;return ((a[d>>0]|0)==(c&255)<<24>>24?d:0)|0}function Wv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;e=d&255;a:do if(!e)f=b+(hv(b)|0)|0;else{if(!(b&3))g=b;else{h=d&255;i=b;while(1){j=a[i>>0]|0;if(j<<24>>24==0?1:j<<24>>24==h<<24>>24){f=i;break a}j=i+1|0;if(!(j&3)){g=j;break}else i=j}}i=S(e,16843009)|0;h=c[g>>2]|0;b:do if(!((h&-2139062144^-2139062144)&h+-16843009)){j=g;k=h;while(1){l=k^i;if((l&-2139062144^-2139062144)&l+-16843009|0){m=j;break b}l=j+4|0;k=c[l>>2]|0;if((k&-2139062144^-2139062144)&k+-16843009|0){m=l;break}else j=l}}else m=g;while(0);i=d&255;h=m;while(1){j=a[h>>0]|0;if(j<<24>>24==0?1:j<<24>>24==i<<24>>24){f=h;break}else h=h+1|0}}while(0);return f|0}function Xv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+16|0;if((i|0)>=(j|0))$(16);h=g;a:do if(!e)k=0;else{do if(f|0){l=(b|0)==0?h:b;m=a[e>>0]|0;n=m&255;if(m<<24>>24>-1){c[l>>2]=n;k=m<<24>>24!=0&1;break a}m=n+-194|0;if(m>>>0<=50){n=e+1|0;o=c[16024+(m<<2)>>2]|0;if(f>>>0<4?o&-2147483648>>>((f*6|0)+-6|0)|0:0)break;m=d[n>>0]|0;n=m>>>3;if((n+-16|n+(o>>26))>>>0<=7){n=m+-128|o<<6;if((n|0)>=0){c[l>>2]=n;k=2;break a}o=(d[e+2>>0]|0)+-128|0;if(o>>>0<=63){m=o|n<<6;if((m|0)>=0){c[l>>2]=m;k=3;break a}n=(d[e+3>>0]|0)+-128|0;if(n>>>0<=63){c[l>>2]=n|m<<6;k=4;break a}}}}}while(0);c[(xu()|0)>>2]=84;k=-1}while(0);i=g;return k|0}function Yv(a,b){a=a|0;b=b|0;return (Zv(a,hv(a)|0,1,b)|0)+-1|0}function Zv(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=S(d,b)|0;if((c[e+76>>2]|0)>-1){g=(Wu(e)|0)==0;h=Xu(a,f,e)|0;if(g)i=h;else{Au(e);i=h}}else i=Xu(a,f,e)|0;if((i|0)==(f|0))j=d;else j=(i>>>0)/(b>>>0)|0;return j|0}function _v(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=Da(20,a|0)|0;i=a;return b|0}function $v(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=a;c[e+4>>2]=b;b=wu(ab(33,e|0)|0)|0;i=d;return b|0}function aw(a){a=a|0;var b=0,d=0,e=0;if((c[a+76>>2]|0)>-1){b=(Wu(a)|0)==0;d=(c[a>>2]|0)>>>4&1;if(b)e=d;else e=d}else e=(c[a>>2]|0)>>>4&1;return e|0}function bw(b,c){b=b|0;c=c|0;var d=0,e=0,f=0;d=b;e=70659;f=d+15|0;do{a[d>>0]=a[e>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));if(!c){a[b+14>>0]=48;a[b+15>>0]=0}else{e=c;d=14;while(1){d=d+1|0;if(e>>>0<10)break;else e=(e>>>0)/10|0}a[b+d>>0]=0;e=c;c=d;while(1){c=c+-1|0;a[b+c>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}}return}function cw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+40|0;f=d+8|0;g=d;c[g>>2]=a;c[g+4>>2]=b;h=Na(197,g|0)|0;if((h|0)==-9?(c[f>>2]=a,c[f+4>>2]=1,(xa(221,f|0)|0)>=0):0){bw(f,a);c[e>>2]=f;c[e+4>>2]=b;k=wu(Oa(195,e|0)|0)|0}else k=wu(h)|0;i=d;return k|0}function dw(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=i;i=i+32|0;if((i|0)>=(j|0))$(32);h=g;c[h>>2]=a;c[h+4>>2]=b;c[h+8>>2]=d;c[h+12>>2]=e;c[h+16>>2]=f;f=wu(qb(142,h|0)|0)|0;i=g;return f|0}function ew(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e;c[f>>2]=a;c[f+4>>2]=b;c[f+8>>2]=d;d=wu(jb(4,f|0)|0)|0;i=e;return d|0}function fw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e;c[f>>2]=a;c[f+4>>2]=b;c[f+8>>2]=d;d=wu(eb(3,f|0)|0)|0;i=e;return d|0}function gw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e;g=e+16|0;c[g>>2]=d;d=(c[g>>2]|0)+(4-1)&~(4-1);h=c[d>>2]|0;c[g>>2]=d+4;c[f>>2]=a;c[f+4>>2]=b|32768;c[f+8>>2]=h;h=wu(ib(5,f|0)|0)|0;i=e;return h|0}function hw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;c[g>>2]=b;c[g+4>>2]=d;c[g+8>>2]=e;c[g+12>>2]=a;e=g+16|0;c[e>>2]=0;d=g+20|0;c[d>>2]=0;switch(a|0){case 208:case 203:case 213:{c[e>>2]=1;break}default:{}}jw(8,g);g=c[d>>2]|0;if(!g)h=0;else{c[(xu()|0)>>2]=g;h=-1}i=f;return h|0}function iw(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+32|0;if((i|0)>=(j|0))$(32);d=b+16|0;e=b;f=a+20|0;do if(!(c[f>>2]|0)){if((c[a+16>>2]|0?(g=c[a>>2]|0,(g|0)>-1):0)?(g|0)!=(kw()|0):0){c[d>>2]=c[178];c[d+4>>2]=c[179];c[d+8>>2]=c[180];c[d+12>>2]=c[181];lw(6,e)|0;g=mw(6,d)|0;c[f>>2]=0-g;if(!((g|0)!=0?(c[17816]|0)!=0:0)){c[f>>2]=1;mw(6,e)|0}break}c[f>>2]=1}while(0);i=b;return}function jw(a,b){a=a|0;b=b|0;wb[a&15](b);return}function kw(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=Qa(199,a|0)|0;i=a;return b|0}function lw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;g=d+24|0;c[f>>2]=0;c[f+4>>2]=a;c[f+8>>2]=0;c[f+12>>2]=b;h=wu(fb(340,f|0)|0)|0;if(!h){f=b;if((c[f>>2]|0)==-1?(c[f+4>>2]|0)==-1:0){f=b;c[f>>2]=-1;c[f+4>>2]=-1}f=b+8|0;k=f;if((c[k>>2]|0)==-1?(c[k+4>>2]|0)==-1:0){k=f;c[k>>2]=-1;c[k+4>>2]=-1;l=0}else l=0}else if((c[(xu()|0)>>2]|0)==38){c[e>>2]=a;c[e+4>>2]=g;if((wu(Ma(191,e|0)|0)|0)>=0){e=c[g>>2]|0;a=(e|0)==-1;k=b;c[k>>2]=a?-1:e;c[k+4>>2]=a?-1:0;k=c[g+4>>2]|0;g=(k|0)==-1;e=b+8|0;f=e;c[f>>2]=g?-1:k;c[f+4>>2]=g?-1:0;if(a){a=b;c[a>>2]=-1;c[a+4>>2]=-1}if(g){g=e;c[g>>2]=-1;c[g+4>>2]=-1;l=0}else l=0}else l=-1}else l=h;i=d;return l|0}function mw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d;g=d+24|0;c[f>>2]=0;c[f+4>>2]=a;c[f+8>>2]=b;c[f+12>>2]=0;h=fb(340,f|0)|0;if((h|0)==-38){f=b;k=c[f>>2]|0;l=c[f+4>>2]|0;f=l>>>0<0|(l|0)==0&k>>>0<4294967295;l=f?k:-1;c[g>>2]=l;l=b+8|0;b=c[l>>2]|0;k=c[l+4>>2]|0;l=k>>>0<0|(k|0)==0&b>>>0<4294967295;k=l?b:-1;c[g+4>>2]=k;c[e>>2]=a;c[e+4>>2]=g;m=Xa(75,e|0)|0}else m=h;i=d;return m|0}function nw(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=mb(201,a|0)|0;i=a;return b|0}function ow(a){a=a|0;return hw(213,a,0,0)|0}function pw(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=a;c[e+4>>2]=0;c[e+8>>2]=b;c[e+12>>2]=((b|0)<0)<<31>>31;b=wu(Pa(194,e|0)|0)|0;i=d;return b|0}function qw(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=za(64,a|0)|0;i=a;return b|0}function rw(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;if((i|0)>=(j|0))$(32);k=h;do if((g&4095|0)==0&(((g|0)<0)<<31>>31&-4096|0)==0){if(b>>>0>2147483646){c[(xu()|0)>>2]=12;l=-1;break}m=(e&16|0)!=0;if(m)tw(-1);c[k>>2]=a;c[k+4>>2]=b;c[k+8>>2]=d;c[k+12>>2]=e;c[k+16>>2]=f;c[k+20>>2]=g>>12;n=wu(La(192,k|0)|0)|0;if(m){sw();l=n}else l=n}else{c[(xu()|0)>>2]=22;l=-1}while(0);i=h;return l|0}function sw(){return}function tw(a){a=a|0;return}function uw(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;tw(-1);c[e>>2]=a;c[e+4>>2]=b;b=wu(Wa(91,e|0)|0)|0;sw();i=d;return b|0}function vw(a){a=a|0;var b=0;b=70712;c[b>>2]=a+-1;c[b+4>>2]=0;return}function ww(){var a=0,b=0,d=0;a=70712;b=ex(c[a>>2]|0,c[a+4>>2]|0,1284865837,1481765933)|0;a=Uw(b|0,D|0,1,0)|0;b=D;d=70712;c[d>>2]=a;c[d+4>>2]=b;d=ax(a|0,b|0,33)|0;return d|0}function xw(a){a=a|0;gb(71296);yw(a);cb(71296);return}function yw(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=c[4107]|0;if(!b)c[c[4108]>>2]=a;else{c[4109]=(b|0)==31|(b|0)==7?3:1;c[17826]=0;if((b|0)>0){d=c[4108]|0;e=0;f=a;a=0;do{g=ex(f|0,a|0,1284865837,1481765933)|0;f=Uw(g|0,D|0,1,0)|0;a=D;c[d+(e<<2)>>2]=a;e=e+1|0}while((e|0)<(b|0));h=d}else h=c[4108]|0;c[h>>2]=c[h>>2]|1}return}function zw(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0;gb(71296);a=c[4107]|0;if(!a){b=c[4108]|0;d=(S(c[b>>2]|0,1103515245)|0)+12345&2147483647;c[b>>2]=d;e=d}else{d=c[17826]|0;b=c[4108]|0;f=c[4109]|0;g=b+(f<<2)|0;h=(c[g>>2]|0)+(c[b+(d<<2)>>2]|0)|0;c[g>>2]=h;g=f+1|0;c[4109]=(g|0)==(a|0)?0:g;g=d+1|0;c[17826]=(g|0)==(a|0)?0:g;e=h>>>1}cb(71296);return e|0}function Aw(b){b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=b;while(1){d=a[c>>0]|0;e=d<<24>>24;f=c+1|0;if(!(vv(e)|0))break;else c=f}switch(e|0){case 45:{g=1;h=5;break}case 43:{g=0;h=5;break}default:{i=0;j=c;k=d}}if((h|0)==5){i=g;j=f;k=a[f>>0]|0}f=(k<<24>>24)+-48|0;if(f>>>0<10){k=0;g=j;j=f;while(1){g=g+1|0;f=(k*10|0)-j|0;j=(a[g>>0]|0)+-48|0;if(j>>>0>=10){l=f;break}else k=f}}else l=0;return (i|0?l:0-l|0)|0}function Bw(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=a;c[e+4>>2]=b;b=wu(_a(77,e|0)|0)|0;i=d;return b|0}function Cw(a){a=a|0;return (a+-48|0)>>>0<10|0}function Dw(a,b){a=a|0;b=b|0;var d=0;if(!a)d=Mw(1,24)|0;else{c[b>>2]=0;c[b+4>>2]=0;c[b+8>>2]=0;c[b+12>>2]=0;c[b+16>>2]=0;c[b+20>>2]=0;d=b}return d|0}function Ew(a){a=a|0;var b=0,d=0;b=c[a>>2]|0;if(b|0){d=b;do{Lw(c[d>>2]|0);b=d;d=c[d+4>>2]|0;Lw(b)}while((d|0)!=0)}Lw(a);return}function Fw(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;g=a+16|0;a:do if(!(c[g>>2]|0)){h=a+12|0;i=c[h>>2]|0;do if(i>>>0<f>>>0){if(b|0)if(!d){c[g>>2]=1;j=0;break a}else{k=a+8|0;c[k>>2]=d;c[h>>2]=1024;l=k;m=d;n=d;o=1024;break}k=f<<3;p=k>>>0>1024?k:1024;k=Kw(8)|0;if(!k){c[g>>2]=1;j=0;break a}q=Kw(p)|0;c[k>>2]=q;r=q;if(!q){Lw(k);c[g>>2]=1;j=0;break a}c[k+4>>2]=0;s=a+4|0;t=c[s>>2]|0;if(t|0)c[t+4>>2]=k;if(!(c[a>>2]|0))c[a>>2]=k;c[s>>2]=k;k=a+8|0;c[k>>2]=r;c[h>>2]=p;l=k;m=r;n=q;o=p}else{p=a+8|0;q=c[p>>2]|0;l=p;m=q;n=q;o=i}while(0);i=m+f&3;q=((i|0)==0?0:4-i|0)+f|0;c[l>>2]=n+q;c[h>>2]=o-q;if(!e)j=n;else{Sw(n|0,0,q|0)|0;j=n}}else j=0;while(0);return j|0}function Gw(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e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))$(16);h=g;k=c[a+4>>2]|0;a=k+56|0;l=(c[a>>2]&8|0)==0?d:0;d=k+40|0;m=c[d>>2]|0;if((m|0)>0&(l|0)!=0){n=Kw(m<<2)|0;if(!n)o=12;else{p=n;q=3}}else{p=0;q=3}if((q|0)==3){if(!(c[k+60>>2]|0)){c[h>>2]=0;n=f&1;m=f&2;r=c[a>>2]&4;if(!p)s=0;else s=c[d>>2]|0;t=s<<2;u=c[k+52>>2]|0;v=u<<3;w=v+8|0;x=t+12+v+(w+(S(t,u)|0)<<1)|0;y=Kw(x)|0;if(!y){z=12;A=0}else{Sw(y|0,0,x|0)|0;x=y+t|0;B=x&3;C=x+((B|0)==0?0:4-B|0)|0;B=C+w|0;x=B&3;D=B+((x|0)==0?0:4-x|0)|0;x=D+w|0;w=x&3;B=x+((w|0)==0?0:4-w|0)|0;w=B+v|0;v=w&3;if((u|0)>0){x=w+((v|0)==0?0:4-v|0)|0;v=0;while(1){c[D+(v<<3)+4>>2]=x;w=x+t|0;c[C+(v<<3)+4>>2]=w;v=v+1|0;if((v|0)==(u|0)){E=0;break}else x=w+t|0}do{c[B+(E<<3)>>2]=-1;E=E+1|0}while((E|0)!=(u|0))}u=Xv(h,b,4)|0;if((u|0)<1)if((u|0)<0){F=1;G=0}else{H=1;q=201}else{H=u;q=201}a:do if((q|0)==201){u=k+8|0;E=(r|0)!=0;x=(s|0)>0;v=k+12|0;w=k+44|0;I=k+32|0;J=k+36|0;K=(s|0)==0;L=(n|0)==0;M=(s|0)<1;N=0;O=b+H|0;P=0;Q=0;R=-1;T=C;U=H;V=y;W=C;X=D;while(1){if((R|0)<0){Y=c[u>>2]|0;Z=Y+8|0;b:do if(!(c[Z>>2]|0)){_=Q;aa=R;ba=T}else{ca=(P|0)!=0;da=(N|0)==95;ea=(P|0)==0;fa=E&(N|0)==10;ga=L&(P|0)<1;ha=Y;ia=Q;ja=R;ka=T;la=Z;while(1){ma=ha;na=la;c:while(1){oa=ma+12|0;if((c[B+(c[oa>>2]<<3)>>2]|0)>=(P|0)){pa=ka;qa=ia;ra=ja;break}sa=ma+20|0;ta=c[sa>>2]|0;if(!ta){q=236;break}d:do if(fa|(ga|(ta&1|0)==0)){if(ta&2|0?(ua=c[h>>2]|0,!((ua|m|0)==0|E&(ua|0)==10)):0)break;do if(ta&16|0){if(da)break d;if(lv(N)|0)break d;ua=c[h>>2]|0;if((ua|0)==95)break;if(!(lv(ua)|0))break d}while(0);ua=c[sa>>2]|0;if(!(ua&32))va=ua;else{if(da){ua=c[h>>2]|0;if((ua|0)==95)break;else wa=ua}else{ua=(lv(N)|0)==0;xa=c[h>>2]|0;if(ua|(xa|0)==95)break;else wa=xa}if(lv(wa)|0)break;va=c[sa>>2]|0}xa=c[h>>2]|0;do if((xa|0)!=0&(ca&(va&64|0)!=0)){if(da){ya=xa;za=1}else{ua=(lv(N)|0)!=0;ya=c[h>>2]|0;za=ua}if((ya|0)==95)if(za)break d;else break;else if(za^(lv(ya)|0)!=0)break;else break d}while(0);if(!(c[sa>>2]&128)){q=236;break c}xa=c[h>>2]|0;if(ea|(xa|0)==0)break;if(da){Aa=xa;Ba=1}else{xa=(lv(N)|0)!=0;Aa=c[h>>2]|0;Ba=xa}if((Aa|0)==95)if(Ba){q=236;break c}else break;else if(Ba^(lv(Aa)|0)!=0)break;else{q=236;break c}}while(0);sa=ma+40|0;if(!(c[sa>>2]|0)){_=ia;aa=ja;ba=ka;break b}else{ma=ma+32|0;na=sa}}if((q|0)==236){q=0;c[ka>>2]=c[na>>2];if(x)Sw(c[ka+4>>2]|0,-1,t|0)|0;sa=c[ma+16>>2]|0;do if(sa|0){ta=c[sa>>2]|0;if((ta|0)<=-1)break;xa=ka+4|0;ua=sa;Ca=ta;do{if((Ca|0)<(s|0))c[(c[xa>>2]|0)+(Ca<<2)>>2]=P;ua=ua+4|0;Ca=c[ua>>2]|0}while((Ca|0)>-1)}while(0);sa=(c[ka>>2]|0)!=(c[v>>2]|0);if(M|sa){Da=sa?ia:1;Ea=sa?ja:P;Fa=ka+4|0}else{sa=ka+4|0;na=c[sa>>2]|0;Ca=0;do{c[p+(Ca<<2)>>2]=c[na+(Ca<<2)>>2];Ca=Ca+1|0}while((Ca|0)!=(s|0));Da=1;Ea=P;Fa=sa}sa=c[oa>>2]|0;c[B+(sa<<3)>>2]=P;c[B+(sa<<3)+4>>2]=Fa;pa=ka+8|0;qa=Da;ra=Ea}la=ma+40|0;if(!(c[la>>2]|0)){_=qa;aa=ra;ba=pa;break}else{ha=ma+32|0;ia=qa;ja=ra;ka=pa}}}while(0);c[ba>>2]=0;Z=c[h>>2]|0;if(!Z){Ga=aa;break}else{Ha=_;Ia=aa;Ja=Z}}else{if(K){Ga=R;break}Z=c[h>>2]|0;if((T|0)!=(W|0)&(Z|0)!=0){Ha=Q;Ia=R;Ja=Z}else{Ga=R;break}}Z=P+U|0;Y=Xv(h,O,4)|0;if((Y|0)<1)if((Y|0)<0){F=1;G=0;break a}else Ka=1;else Ka=Y;Y=O+Ka|0;if((Ha|0)!=0&(c[w>>2]|0)!=0){if(!(c[W>>2]|0))La=X;else{ka=c[J>>2]|0;ja=c[ka>>2]|0;ia=(ja|0)>-1;ha=W;la=X;while(1){da=ha+4|0;e:do if(ia){ea=0;ca=ja;do{ga=c[ka+((ea|1)<<2)>>2]|0;if((ca|0)>=(s|0)){Ma=la;break e}Na=c[da>>2]|0;if((c[Na+(ga<<2)>>2]|0)==(c[p+(ga<<2)>>2]|0)?(c[Na+(ca<<2)>>2]|0)<(c[p+(ca<<2)>>2]|0):0){Ma=la;break e}ea=ea+2|0;ca=c[ka+(ea<<2)>>2]|0}while((ca|0)>-1);Oa=da;Pa=Na;q=265}else{Oa=da;Pa=c[da>>2]|0;q=265}while(0);if((q|0)==265){q=0;c[la>>2]=c[ha>>2];da=la+4|0;ca=c[da>>2]|0;c[da>>2]=Pa;c[Oa>>2]=ca;Ma=la+8|0}ha=ha+8|0;if(!(c[ha>>2]|0)){La=Ma;break}else la=Ma}}c[La>>2]=0;Qa=W;Ra=X;Sa=0}else{Qa=X;Ra=W;Sa=Ha}la=c[Ra>>2]|0;if(!la){Ta=V;Ua=Ia;Va=Qa;Wa=Sa}else{ha=(Z|0)!=0;ka=(Ja|0)==95;ja=(Z|0)==0;ia=E&(Ja|0)==10;ca=L&(Z|0)<1;da=Ra;ea=V;ma=Ia;ga=Qa;fa=Sa;sa=la;while(1){la=sa+8|0;if(!(c[la>>2]|0)){Xa=ea;Ya=ma;Za=ga;_a=fa}else{Ca=da+4|0;na=sa;ua=ma;xa=ga;ta=fa;$a=ea;ab=la;while(1){f:do if((c[na>>2]|0)>>>0>Ja>>>0){bb=ta;cb=$a;db=xa;eb=ua}else{if((c[na+4>>2]|0)>>>0<Ja>>>0){bb=ta;cb=$a;db=xa;eb=ua;break}la=na+20|0;fb=c[la>>2]|0;do if(fb|0){if(!(ia|(ca|(fb&1|0)==0))){bb=ta;cb=$a;db=xa;eb=ua;break f}if(fb&2|0?(gb=c[h>>2]|0,!((gb|m|0)==0|E&(gb|0)==10)):0){bb=ta;cb=$a;db=xa;eb=ua;break f}do if(fb&16|0){if(ka){bb=ta;cb=$a;db=xa;eb=ua;break f}if(lv(Ja)|0){bb=ta;cb=$a;db=xa;eb=ua;break f}gb=c[h>>2]|0;if((gb|0)==95)break;if(!(lv(gb)|0)){bb=ta;cb=$a;db=xa;eb=ua;break f}}while(0);gb=c[la>>2]|0;if(!(gb&32))hb=gb;else{if(ka){gb=c[h>>2]|0;if((gb|0)==95){bb=ta;cb=$a;db=xa;eb=ua;break f}else ib=gb}else{gb=(lv(Ja)|0)==0;jb=c[h>>2]|0;if(gb|(jb|0)==95){bb=ta;cb=$a;db=xa;eb=ua;break f}else ib=jb}if(lv(ib)|0){bb=ta;cb=$a;db=xa;eb=ua;break f}hb=c[la>>2]|0}jb=c[h>>2]|0;do if((jb|0)!=0&(ha&(hb&64|0)!=0)){if(ka){kb=jb;lb=1}else{gb=(lv(Ja)|0)!=0;kb=c[h>>2]|0;lb=gb}if((kb|0)==95)if(lb){bb=ta;cb=$a;db=xa;eb=ua;break f}else break;else if(lb^(lv(kb)|0)!=0)break;else{bb=ta;cb=$a;db=xa;eb=ua;break f}}while(0);do if(c[la>>2]&128|0){jb=c[h>>2]|0;if(ja|(jb|0)==0){bb=ta;cb=$a;db=xa;eb=ua;break f}if(ka){mb=jb;nb=1}else{jb=(lv(Ja)|0)!=0;mb=c[h>>2]|0;nb=jb}if((mb|0)==95)if(nb)break;else{bb=ta;cb=$a;db=xa;eb=ua;break f}else if(nb^(lv(mb)|0)!=0){bb=ta;cb=$a;db=xa;eb=ua;break f}else break}while(0);jb=c[la>>2]|0;do if(!(jb&4))ob=jb;else{if(c[a>>2]&2|0){ob=jb;break}if(!(kv(Ja,c[na+24>>2]|0)|0)){bb=ta;cb=$a;db=xa;eb=ua;break f}ob=c[la>>2]|0}while(0);do if(ob&4|0){if(!(c[a>>2]&2))break;jb=Ju(Ja)|0;gb=na+24|0;if(kv(jb,c[gb>>2]|0)|0)break;jb=Iu(Ja)|0;if(!(kv(jb,c[gb>>2]|0)|0)){bb=ta;cb=$a;db=xa;eb=ua;break f}}while(0);if(!(c[la>>2]&8))break;if(Jw(c[na+28>>2]|0,Ja,c[a>>2]&2)|0){bb=ta;cb=$a;db=xa;eb=ua;break f}}while(0);if(x){la=c[Ca>>2]|0;fb=0;do{c[$a+(fb<<2)>>2]=c[la+(fb<<2)>>2];fb=fb+1|0}while((fb|0)!=(s|0))}fb=c[na+16>>2]|0;do if(fb|0){la=c[fb>>2]|0;if((la|0)>-1){pb=fb;qb=la}else break;do{if((qb|0)<(s|0))c[$a+(qb<<2)>>2]=Z;pb=pb+4|0;qb=c[pb>>2]|0}while((qb|0)>-1)}while(0);fb=c[na+12>>2]|0;la=B+(fb<<3)|0;if((c[la>>2]|0)>=(Z|0)){gb=c[B+(fb<<3)+4>>2]|0;jb=c[gb>>2]|0;if(!(Hw(s,c[I>>2]|0,$a,jb)|0)){bb=ta;cb=$a;db=xa;eb=ua;break}c[gb>>2]=$a;if((c[ab>>2]|0)!=(c[v>>2]|0)){bb=ta;cb=jb;db=xa;eb=ua;break}if(x)rb=0;else{bb=1;cb=jb;db=xa;eb=Z;break}while(1){c[p+(rb<<2)>>2]=c[$a+(rb<<2)>>2];rb=rb+1|0;if((rb|0)==(s|0)){bb=1;cb=jb;db=xa;eb=Z;break f}}}jb=c[ab>>2]|0;c[xa>>2]=jb;gb=xa+4|0;sb=c[gb>>2]|0;c[gb>>2]=$a;c[la>>2]=Z;c[B+(fb<<3)+4>>2]=gb;do if((jb|0)==(c[v>>2]|0)){if((ua|0)==-1)if(x)tb=0;else{ub=Z;vb=1;break}else{if(!x){ub=ua;vb=ta;break}if((c[$a>>2]|0)>(c[p>>2]|0)){ub=ua;vb=ta;break}else tb=0}do{c[p+(tb<<2)>>2]=c[$a+(tb<<2)>>2];tb=tb+1|0}while((tb|0)<(s|0));ub=Z;vb=1}else{ub=ua;vb=ta}while(0);bb=vb;cb=sb;db=xa+8|0;eb=ub}while(0);ab=na+40|0;if(!(c[ab>>2]|0)){Xa=cb;Ya=eb;Za=db;_a=bb;break}else{na=na+32|0;ua=eb;xa=db;ta=bb;$a=cb}}}da=da+8|0;sa=c[da>>2]|0;if(!sa){Ta=Xa;Ua=Ya;Va=Za;Wa=_a;break}else{ea=Xa;ma=Ya;ga=Za;fa=_a}}}c[Va>>2]=0;N=Ja;O=Y;P=Z;Q=Wa;R=Ua;T=Va;U=Ka;V=Ta;W=Qa;X=Ra}F=Ga>>>31;G=Ga}while(0);Lw(y);z=F;A=G}wb=z;xb=A}else{c[h>>2]=0;A=f&1;z=f&2;f=c[a>>2]&4;G=Dw(0,0)|0;g:do if(G){F=Fw(G,0,0,0,32)|0;if(!F){Ew(G);yb=0;zb=12;break}c[F+24>>2]=0;c[F+28>>2]=0;y=c[d>>2]|0;if(y){Ga=Kw(y<<2)|0;if(!Ga){Ab=0;Bb=0;Cb=0;Db=Ga;Eb=12}else{Fb=Ga;q=9}}else{Fb=0;q=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0){Kb=B;Lb=lb;Mb=hb;break j}Sa=c[h>>2]|0;if((Sa|0)==95)break;if(!(lv(Sa)|0)){Kb=B;Lb=lb;Mb=hb;break j}}while(0);sb=c[rb>>2]|0;if(!(sb&32))Nb=sb;else{if(pb){sb=c[h>>2]|0;if((sb|0)==95){Kb=B;Lb=lb;Mb=hb;break}else Ob=sb}else{sb=(lv(vb)|0)==0;Sa=c[h>>2]|0;if(sb|(Sa|0)==95){Kb=B;Lb=lb;Mb=hb;break}else Ob=Sa}if(lv(Ob)|0){Kb=B;Lb=lb;Mb=hb;break}Nb=c[rb>>2]|0}Sa=c[h>>2]|0;do if((Sa|0)!=0&(qb&(Nb&64|0)!=0)){if(pb){Pb=Sa;Qb=1}else{sb=(lv(vb)|0)!=0;Pb=c[h>>2]|0;Qb=sb}if((Pb|0)==95)if(Qb){Kb=B;Lb=lb;Mb=hb;break j}else break;else if(Qb^(lv(Pb)|0)!=0)break;else{Kb=B;Lb=lb;Mb=hb;break j}}while(0);if(!(c[rb>>2]&128)){q=52;break}Sa=c[h>>2]|0;if(ob|(Sa|0)==0){Kb=B;Lb=lb;Mb=hb;break}if(pb){Rb=Sa;Sb=1}else{Sa=(lv(vb)|0)!=0;Rb=c[h>>2]|0;Sb=Sa}if((Rb|0)==95)if(Sb){q=52;break}else{Kb=B;Lb=lb;Mb=hb;break}else if(Sb^(lv(Rb)|0)!=0){Kb=B;Lb=lb;Mb=hb;break}else{q=52;break}}else q=52;while(0);do if((q|0)==52){q=0;if(!lb){Kb=c[kb+16>>2]|0;Lb=c[ib>>2]|0;Mb=hb;break}rb=hb+28|0;m=c[rb>>2]|0;if(!m){Sa=Fw(G,0,0,0,32)|0;if(!Sa){q=56;break i}c[Sa+24>>2]=hb;c[Sa+28>>2]=0;sb=Fw(G,0,0,0,c[d>>2]<<2)|0;c[Sa+20>>2]=sb;if(!sb){q=63;break i}c[rb>>2]=Sa;Tb=Sa}else Tb=m;c[Tb>>2]=ub;c[Tb+4>>2]=s;c[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cc;Zb=gc;_b=dc;$b=fc;ac=hc;q=174;continue k}if((c[d>>2]|0)>0)jc=0;else{Vb=ic;Wb=cc;Xb=bc;Yb=cc;Zb=gc;_b=dc;$b=fc;ac=hc;q=174;continue k}while(1){c[p+(jc<<2)>>2]=c[Fb+(jc<<2)>>2];lb=jc+1|0;if((lb|0)<(c[d>>2]|0))jc=lb;else{Vb=ic;Wb=cc;Xb=bc;Yb=cc;Zb=gc;_b=dc;$b=fc;ac=hc;q=174;continue k}}}lb=gc+8|0;do if(!(c[lb>>2]|0))q=98;else{if(!(c[gc+20>>2]&256)){q=98;break}B=c[gc+24>>2]|0;Iw(B+1|0,Gb,c[a>>2]&-9,k,Fb,cc);hb=c[Gb+(B<<3)>>2]|0;kb=(c[Gb+(B<<3)+4>>2]|0)-hb|0;do if(!(Hv(b+hb|0,dc+-1|0,kb)|0)){B=(kb|0)==0;ib=B&1;pb=Hb+(c[gc+12>>2]<<2)|0;if(B?c[pb>>2]|0:0){kc=bc;lc=cc;mc=dc;nc=25;oc=fc;break}c[pb>>2]=ib;ib=kb+-1|0;pb=dc+ib|0;B=c[h>>2]|0;ob=cc+fc+ib|0;ib=Xv(h,pb,4)|0;if((ib|0)<1)if((ib|0)<0){kc=B;lc=ob;mc=pb;nc=2;oc=ib;break}else pc=1;else pc=ib;kc=B;lc=ob;mc=pb+pc|0;nc=0;oc=pc}else{kc=bc;lc=cc;mc=dc;nc=25;oc=fc}while(0);switch(nc&31){case 25:{Vb=ic;Wb=ec;Xb=kc;Yb=lc;Zb=gc;_b=mc;$b=oc;ac=hc;q=174;continue k;break}case 0:{qc=kc;rc=lc;sc=mc;tc=oc;break}default:{uc=hc;vc=ic;wc=ec;xc=kc;yc=lc;zc=nc;Ac=gc;Bc=mc;Cc=oc;break l}}}while(0);if((q|0)==98){q=0;kb=c[h>>2]|0;if(!kb){Vb=ic;Wb=ec;Xb=bc;Yb=cc;Zb=gc;_b=dc;$b=fc;ac=hc;q=174;continue k}hb=cc+fc|0;pb=Xv(h,dc,4)|0;if((pb|0)<1)if((pb|0)<0){uc=hc;vc=ic;wc=ec;xc=kb;yc=hb;zc=2;Ac=gc;Bc=dc;Cc=pb;break}else Dc=1;else Dc=pb;qc=kb;rc=hb;sc=dc+Dc|0;tc=Dc}if(!(c[lb>>2]|0)){Vb=ic;Wb=ec;Xb=qc;Yb=rc;Zb=gc;_b=sc;$b=tc;ac=hc;q=174;continue k}hb=(rc|0)!=0;kb=(qc|0)==95;pb=(rc|0)==0;ob=Ua&(qc|0)==10;B=Za&(rc|0)<1;ib=0;qb=gc;nb=hc;mb=ic;Sa=lb;m:while(1){n:do if((c[qb>>2]|0)>>>0>qc>>>0){Ec=mb;Fc=ib;Gc=nb}else{if((c[qb+4>>2]|0)>>>0<qc>>>0){Ec=mb;Fc=ib;Gc=nb;break}sb=qb+20|0;rb=c[sb>>2]|0;do if(rb|0){if(!(ob|(B|(rb&1|0)==0))){Ec=mb;Fc=ib;Gc=nb;break n}if(rb&2|0?(m=c[h>>2]|0,!((m|z|0)==0|Ua&(m|0)==10)):0){Ec=mb;Fc=ib;Gc=nb;break n}do if(rb&16|0){if(kb){Ec=mb;Fc=ib;Gc=nb;break n}if(lv(qc)|0){Ec=mb;Fc=ib;Gc=nb;break n}m=c[h>>2]|0;if((m|0)==95)break;if(!(lv(m)|0)){Ec=mb;Fc=ib;Gc=nb;break n}}while(0);m=c[sb>>2]|0;if(!(m&32))Hc=m;else{if(kb){m=c[h>>2]|0;if((m|0)==95){Ec=mb;Fc=ib;Gc=nb;break n}else Ic=m}else{m=(lv(qc)|0)==0;Ia=c[h>>2]|0;if(m|(Ia|0)==95){Ec=mb;Fc=ib;Gc=nb;break n}else Ic=Ia}if(lv(Ic)|0){Ec=mb;Fc=ib;Gc=nb;break n}Hc=c[sb>>2]|0}Ia=c[h>>2]|0;do if((Ia|0)!=0&(hb&(Hc&64|0)!=0)){if(kb){Jc=Ia;Kc=1}else{m=(lv(qc)|0)!=0;Jc=c[h>>2]|0;Kc=m}if((Jc|0)==95)if(Kc){Ec=mb;Fc=ib;Gc=nb;break n}else break;else if(Kc^(lv(Jc)|0)!=0)break;else{Ec=mb;Fc=ib;Gc=nb;break n}}while(0);do if(c[sb>>2]&128|0){Ia=c[h>>2]|0;if(pb|(Ia|0)==0){Ec=mb;Fc=ib;Gc=nb;break n}if(kb){Lc=Ia;Mc=1}else{Ia=(lv(qc)|0)!=0;Lc=c[h>>2]|0;Mc=Ia}if((Lc|0)==95)if(Mc)break;else{Ec=mb;Fc=ib;Gc=nb;break n}else if(Mc^(lv(Lc)|0)!=0){Ec=mb;Fc=ib;Gc=nb;break n}else break}while(0);Ia=c[sb>>2]|0;do if(!(Ia&4))Nc=Ia;else{if(c[a>>2]&2|0){Nc=Ia;break}if(!(kv(qc,c[qb+24>>2]|0)|0)){Ec=mb;Fc=ib;Gc=nb;break n}Nc=c[sb>>2]|0}while(0);do if(Nc&4|0){if(!(c[a>>2]&2))break;Ia=Ju(qc)|0;m=qb+24|0;if(kv(Ia,c[m>>2]|0)|0)break;Ia=Iu(qc)|0;if(!(kv(Ia,c[m>>2]|0)|0)){Ec=mb;Fc=ib;Gc=nb;break n}}while(0);if(!(c[sb>>2]&8))break;if(Jw(c[qb+28>>2]|0,qc,c[a>>2]&2)|0){Ec=mb;Fc=ib;Gc=nb;break n}}while(0);if(!ib){Ec=mb;Fc=c[Sa>>2]|0;Gc=c[qb+16>>2]|0;break}sb=mb+28|0;rb=c[sb>>2]|0;if(!rb){m=Fw(G,0,0,0,32)|0;if(!m){q=148;break m}c[m+24>>2]=mb;c[m+28>>2]=0;Ia=Fw(G,0,0,0,c[d>>2]<<2)|0;c[m+20>>2]=Ia;if(!Ia){q=155;break m}c[sb>>2]=m;Oc=m}else Oc=rb;c[Oc>>2]=rc;c[Oc+4>>2]=sc;c[Oc+8>>2]=c[Sa>>2];c[Oc+12>>2]=c[qb+12>>2];c[Oc+16>>2]=c[h>>2];if((c[d>>2]|0)>0){rb=c[Oc+20>>2]|0;m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;wc=ec;xc=qc;yc=rc;zc=0;Ac=Fc;Bc=sc;Cc=tc;break}else Pc=qb}}}else if((q|0)==174){q=0;mb=c[Vb+24>>2]|0;if(!mb){if((Wb|0)>-1|(c[h>>2]|0)==0){uc=ac;vc=Vb;wc=Wb;xc=Xb;yc=Yb;zc=27;Ac=Zb;Bc=_b;Cc=$b;break}c[h>>2]=tb;uc=ac;vc=Vb;wc=Wb;xc=Xb;yc=Yb;zc=3;Ac=Zb;Bc=s;Cc=$b;break}nb=c[Vb+8>>2]|0;if(c[nb+20>>2]&256|0)c[Hb+(c[Vb+12>>2]<<2)>>2]=0;qb=c[Vb>>2]|0;ib=c[Vb+4>>2]|0;c[h>>2]=c[Vb+16>>2];Sa=c[d>>2]|0;if((Sa|0)<=0){uc=ac;vc=mb;wc=Wb;xc=Xb;yc=qb;zc=0;Ac=nb;Bc=ib;Cc=$b;break}kb=c[Vb+20>>2]|0;pb=0;do{c[Fb+(pb<<2)>>2]=c[kb+(pb<<2)>>2];pb=pb+1|0}while((pb|0)!=(Sa|0));uc=ac;vc=mb;wc=Wb;xc=Xb;yc=qb;zc=0;Ac=nb;Bc=ib;Cc=$b}while(0);switch(zc|0){case 2:{Ab=0;Bb=Gb;Cb=Hb;Db=Fb;Eb=1;break h;break}case 27:{q=184;break i;break}case 0:{bc=xc;cc=yc;dc=Bc;ec=wc;fc=Cc;gc=Ac;hc=uc;ic=vc;q=82;break}case 3:{break k;break}default:{yb=0;zb=12;break g}}}Ya=Bc;Xa=Cc;cb=ub;bb=wc;db=vc;eb=c[d>>2]|0}if((q|0)==56){Ew(G);if(!Wa)Lw(Fb);if(!Ja)Lw(Gb);if(_a){yb=0;zb=12;break g}Lw(Hb);yb=0;zb=12;break g}else if((q|0)==63){Ew(G);if(!Wa)Lw(Fb);if(!Ja)Lw(Gb);if(_a){yb=0;zb=12;break g}Lw(Hb);yb=0;zb=12;break g}else if((q|0)==184){Ab=wc;Bb=Gb;Cb=Hb;Db=Fb;Eb=wc>>>31;break}}while(0);Ew(G);if(Db|0)Lw(Db);if(Bb|0)Lw(Bb);if(!Cb){yb=Ab;zb=Eb}else{Lw(Cb);yb=Ab;zb=Eb}}else{yb=0;zb=12}while(0);wb=zb;xb=yb}if(!wb)Iw(l,e,c[a>>2]|0,k,p,xb);if(!p)o=wb;else{Lw(p);o=wb}}i=g;return o|0}function Hw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;a:do if((a|0)>0){f=0;while(1){g=c[d+(f<<2)>>2]|0;h=c[e+(f<<2)>>2]|0;if(!(c[b+(f<<2)>>2]|0)){if((g|0)<(h|0)){i=1;break a}if((g|0)>(h|0)){i=0;break a}}else{if((g|0)>(h|0)){i=1;break a}if((g|0)<(h|0)){i=0;break a}}f=f+1|0;if((f|0)>=(a|0)){i=0;break}}}else i=0;while(0);return i|0}function Iw(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;if((d&8|0)==0&(g|0)>-1){d=c[e+16>>2]|0;h=e+28|0;i=c[h>>2]|0;j=(a|0)!=0;if(j&(i|0)!=0){k=e+48|0;e=0;do{l=c[d+(e*12|0)>>2]|0;if((l|0)==(c[k>>2]|0))m=g;else m=c[f+(l<<2)>>2]|0;l=b+(e<<3)|0;c[l>>2]=m;n=c[d+(e*12|0)+4>>2]|0;if((n|0)==(c[k>>2]|0))o=g;else o=c[f+(n<<2)>>2]|0;n=b+(e<<3)+4|0;c[n>>2]=o;if((m|0)==-1|(o|0)==-1){c[n>>2]=-1;c[l>>2]=-1}e=e+1|0;l=c[h>>2]|0}while(e>>>0<a>>>0&e>>>0<l>>>0);p=l}else p=i;if(j&(p|0)!=0){j=0;while(1){i=b+(j<<3)+4|0;e=c[d+(j*12|0)+8>>2]|0;if(e|0?(h=c[e>>2]|0,(h|0)>-1):0){o=b+(j<<3)|0;m=0;f=h;h=c[o>>2]|0;while(1){if((h|0)>=(c[b+(f<<3)>>2]|0)?(c[i>>2]|0)<=(c[b+(f<<3)+4>>2]|0):0)q=h;else{c[i>>2]=-1;c[o>>2]=-1;q=-1}m=m+1|0;f=c[e+(m<<2)>>2]|0;if((f|0)<=-1)break;else h=q}}h=j+1|0;if(h>>>0<a>>>0&h>>>0<p>>>0)j=h;else{r=h;break}}}else r=0}else r=0;if(r>>>0<a>>>0)Sw(b+(r<<3)|0,-1,a-r<<3|0)|0;return}function Jw(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=c[a>>2]|0;a:do if(!e)f=0;else{g=(d|0)==0;h=a;i=e;while(1){if(g){if(kv(b,i)|0){f=1;break a}}else{j=Iu(b)|0;if(kv(j,c[h>>2]|0)|0){f=1;break a}j=Ju(b)|0;if(kv(j,c[h>>2]|0)|0){f=1;break a}}h=h+4|0;i=c[h>>2]|0;if(!i){f=0;break}}}while(0);return f|0}
-function Ol(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+28|0;f=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;l=d+8|0;m=d+4|0;n=d;c[e>>2]=b;c[f>>2]=c[e>>2];Nr(c[f>>2]|0,0,0);c[g>>2]=c[(c[f>>2]|0)+128>>2];c[h>>2]=c[(c[f>>2]|0)+128+4>>2];c[l>>2]=c[g>>2]<<6;c[k>>2]=c[h>>2]<<6|(c[g>>2]|0)>>>26;c[g>>2]=c[l>>2];h=(c[l>>2]|0)+(c[(c[f>>2]|0)+144>>2]|0)|0;c[l>>2]=h;if(h>>>0<(c[g>>2]|0)>>>0)c[k>>2]=(c[k>>2]|0)+1;c[g>>2]=c[l>>2];c[l>>2]=c[l>>2]<<3;c[k>>2]=c[k>>2]<<3;c[k>>2]=c[k>>2]|(c[g>>2]|0)>>>29;g=(c[(c[f>>2]|0)+144>>2]|0)<56;h=(c[f>>2]|0)+144|0;e=c[h>>2]|0;c[h>>2]=e+1;a[(c[f>>2]|0)+e>>0]=-128;a:do if(g)while(1){if((c[(c[f>>2]|0)+144>>2]|0)>=56)break a;e=(c[f>>2]|0)+144|0;h=c[e>>2]|0;c[e>>2]=h+1;a[(c[f>>2]|0)+h>>0]=0}else{while(1){o=c[f>>2]|0;if((c[(c[f>>2]|0)+144>>2]|0)>=64)break;h=o+144|0;e=c[h>>2]|0;c[h>>2]=e+1;a[(c[f>>2]|0)+e>>0]=0}Nr(o,0,0);e=c[f>>2]|0;h=e+56|0;do{c[e>>2]=0;e=e+4|0}while((e|0)<(h|0))}while(0);Sl((c[f>>2]|0)+56|0,c[k>>2]|0);Sl((c[f>>2]|0)+60|0,c[l>>2]|0);c[n>>2]=Tl(c[f>>2]|0,c[f>>2]|0,1)|0;bf(c[n>>2]|0);cf();c[m>>2]=c[f>>2];Sl(c[m>>2]|0,c[(c[f>>2]|0)+160>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Sl(c[m>>2]|0,c[(c[f>>2]|0)+164>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Sl(c[m>>2]|0,c[(c[f>>2]|0)+168>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Sl(c[m>>2]|0,c[(c[f>>2]|0)+172>>2]|0);c[m>>2]=(c[m>>2]|0)+4;Sl(c[m>>2]|0,c[(c[f>>2]|0)+176>>2]|0);c[m>>2]=(c[m>>2]|0)+4;i=d;return}function Pl(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];i=b;return c[e>>2]|0}function Ql(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if((c[f>>2]|0)==2){c[k>>2]=Rl(c[g>>2]|0,c[h>>2]|0)|0;l=c[k>>2]|0;i=e;return l|0}else{c[k>>2]=5;l=c[k>>2]|0;i=e;return l|0}return 0}function Rl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=42861;c[k>>2]=Mr(2,0,42874,3,42324,20)|0;do if(!(c[k>>2]|0)){if(c[f>>2]|0){c[h>>2]=42943;c[k>>2]=Mr(2,0,42531,56,42345,20)|0;if(c[k>>2]|0)break;c[h>>2]=43133;c[k>>2]=Mr(2,1,0,0,42366,20)|0;if(c[k>>2]|0)break}c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}while(0);if(c[g>>2]|0)Eb[c[g>>2]&1](43214,2,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;l=c[e>>2]|0;i=d;return l|0}function Sl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=d;c[h>>2]=c[f>>2];a[c[h>>2]>>0]=(c[g>>2]|0)>>>24;a[(c[h>>2]|0)+1>>0]=(c[g>>2]|0)>>>16;a[(c[h>>2]|0)+2>>0]=(c[g>>2]|0)>>>8;a[(c[h>>2]|0)+3>>0]=c[g>>2];i=e;return}function Tl(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];do{c[l>>2]=Ul(c[k>>2]|0,c[g>>2]|0)|0;c[g>>2]=(c[g>>2]|0)+64;f=(c[h>>2]|0)+-1|0;c[h>>2]=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0;c[f>>2]=(c[f>>2]|0)+(c[k>>2]|0);k=(c[g>>2]|0)+164|0;c[k>>2]=(c[k>>2]|0)+(c[l>>2]|0);l=(c[g>>2]|0)+168|0;c[l>>2]=(c[l>>2]|0)+(c[m>>2]|0);m=(c[g>>2]|0)+172|0;c[m>>2]=(c[m>>2]|0)+(c[n>>2]|0);n=(c[g>>2]|0)+176|0;c[n>>2]=(c[n>>2]|0)+(c[o>>2]|0);i=d;return 104}function Vl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;i=d;return c[e>>2]<<(c[f>>2]&31)|(c[e>>2]|0)>>>(32-(c[f>>2]|0)&31)|0}function Wl(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b+4|0;f=b;c[e>>2]=a;c[f>>2]=c[e>>2];i=b;return (d[c[f>>2]>>0]|0)<<24|(d[(c[f>>2]|0)+1>>0]|0)<<16|(d[(c[f>>2]|0)+2>>0]|0)<<8|(d[(c[f>>2]|0)+3>>0]|0)|0}function Xl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+208|0;if((i|0)>=(j|0))$(208);g=f+192|0;h=f+188|0;k=f+184|0;l=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;Nl(l,0);Nr(l,c[h>>2]|0,c[k>>2]|0);Ol(l);k=c[g>>2]|0;g=l;l=k+20|0;do{a[k>>0]=a[g>>0]|0;k=k+1|0;g=g+1|0}while((k|0)<(l|0));i=f;return}function Yl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+208|0;if((i|0)>=(j|0))$(208);g=f+192|0;h=f+188|0;k=f+184|0;l=f;c[g>>2]=b;c[h>>2]=d;c[k>>2]=e;Nl(l,0);while(1){if((c[k>>2]|0)<=0)break;Nr(l,(c[(c[h>>2]|0)+12>>2]|0)+(c[(c[h>>2]|0)+4>>2]|0)|0,c[(c[h>>2]|0)+8>>2]|0);c[h>>2]=(c[h>>2]|0)+16;c[k>>2]=(c[k>>2]|0)+-1}Ol(l);k=c[g>>2]|0;g=l;l=k+20|0;do{a[k>>0]=a[g>>0]|0;k=k+1|0;g=g+1|0}while((k|0)<(l|0));i=f;return}function Zl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+4|0;c[e>>2]=a;c[d+8>>2]=b;c[f>>2]=c[e>>2];c[d>>2]=pg()|0;c[(c[f>>2]|0)+160>>2]=-1056596264;c[(c[f>>2]|0)+164>>2]=914150663;c[(c[f>>2]|0)+168>>2]=812702999;c[(c[f>>2]|0)+172>>2]=-150054599;c[(c[f>>2]|0)+176>>2]=-4191439;c[(c[f>>2]|0)+180>>2]=1750603025;c[(c[f>>2]|0)+184>>2]=1694076839;c[(c[f>>2]|0)+188>>2]=-1090891868;e=(c[f>>2]|0)+128|0;c[e>>2]=0;c[e+4>>2]=0;e=(c[f>>2]|0)+136|0;c[e>>2]=0;c[e+4>>2]=0;c[(c[f>>2]|0)+144>>2]=0;c[(c[f>>2]|0)+148>>2]=64;c[(c[f>>2]|0)+152>>2]=33;i=d;return}function _l(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+28|0;f=d+24|0;g=d+20|0;h=d+16|0;k=d+12|0;l=d+8|0;m=d+4|0;n=d;c[e>>2]=b;c[f>>2]=c[e>>2];Nr(c[f>>2]|0,0,0);c[g>>2]=c[(c[f>>2]|0)+128>>2];c[h>>2]=c[(c[f>>2]|0)+128+4>>2];c[l>>2]=c[g>>2]<<6;c[k>>2]=c[h>>2]<<6|(c[g>>2]|0)>>>26;c[g>>2]=c[l>>2];h=(c[l>>2]|0)+(c[(c[f>>2]|0)+144>>2]|0)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>2]|0)+4;dm(c[m>>2]|0,c[(c[f>>2]|0)+188>>2]|0);c[m>>2]=(c[m>>2]|0)+4;i=d;return}function $l(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];i=b;return c[e>>2]|0}function am(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;switch(c[f>>2]|0){case 11:{c[k>>2]=bm(c[g>>2]|0,c[h>>2]|0)|0;break}case 8:{c[k>>2]=cm(c[g>>2]|0,c[h>>2]|0)|0;break}default:c[k>>2]=5}i=e;return c[k>>2]|0}function bm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=42861;c[k>>2]=Mr(11,0,42874,3,42654,28)|0;do if(!(c[k>>2]|0)){if(c[f>>2]|0){c[h>>2]=42943;c[k>>2]=Mr(11,0,42531,56,42683,28)|0;if(c[k>>2]|0)break;c[h>>2]=43133;c[k>>2]=Mr(11,1,0,0,42712,28)|0;if(c[k>>2]|0)break}c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}while(0);if(c[g>>2]|0)Eb[c[g>>2]&1](43214,11,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;l=c[e>>2]|0;i=d;return l|0}function cm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=42861;c[k>>2]=Mr(8,0,42874,3,42498,32)|0;do if(!(c[k>>2]|0)){if(c[f>>2]|0){c[h>>2]=42943;c[k>>2]=Mr(8,0,42531,56,42588,32)|0;if(c[k>>2]|0)break;c[h>>2]=43133;c[k>>2]=Mr(8,1,0,0,42621,32)|0;if(c[k>>2]|0)break}c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}while(0);if(c[g>>2]|0)Eb[c[g>>2]&1](43214,8,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;l=c[e>>2]|0;i=d;return l|0}function dm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=d;c[h>>2]=c[f>>2];a[c[h>>2]>>0]=(c[g>>2]|0)>>>24;a[(c[h>>2]|0)+1>>0]=(c[g>>2]|0)>>>16;a[(c[h>>2]|0)+2>>0]=(c[g>>2]|0)>>>8;a[(c[h>>2]|0)+3>>0]=c[g>>2];i=e;return}function em(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];do{c[l>>2]=fm(c[k>>2]|0,c[g>>2]|0)|0;c[g>>2]=(c[g>>2]|0)+64;f=(c[h>>2]|0)+-1|0;c[h>>2]=f}while((f|0)!=0);i=e;return c[l>>2]|0}function fm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;d=i;i=i+320|0;if((i|0)>=(j|0))$(320);e=d+312|0;f=d+308|0;g=d+304|0;h=d+300|0;k=d+296|0;l=d+292|0;m=d+288|0;n=d+284|0;o=d+280|0;p=d+276|0;q=d+272|0;r=d+268|0;s=d+264|0;t=d+8|0;u=d;c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g>>2]|0)+168|0;c[k>>2]=(c[k>>2]|0)+(c[l>>2]|0);l=(c[g>>2]|0)+172|0;c[l>>2]=(c[l>>2]|0)+(c[m>>2]|0);m=(c[g>>2]|0)+176|0;c[m>>2]=(c[m>>2]|0)+(c[n>>2]|0);n=(c[g>>2]|0)+180|0;c[n>>2]=(c[n>>2]|0)+(c[o>>2]|0);o=(c[g>>2]|0)+184|0;c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);p=(c[g>>2]|0)+188|0;c[p>>2]=(c[p>>2]|0)+(c[q>>2]|0);i=d;return 328}function gm(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b+4|0;f=b;c[e>>2]=a;c[f>>2]=c[e>>2];i=b;return (d[c[f>>2]>>0]|0)<<24|(d[(c[f>>2]|0)+1>>0]|0)<<16|(d[(c[f>>2]|0)+2>>0]|0)<<8|(d[(c[f>>2]|0)+3>>0]|0)|0}function hm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;i=d;return (c[e>>2]|0)>>>(c[f>>2]&31)|c[e>>2]<<(32-(c[f>>2]|0)&31)|0}function im(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=hm(c[d>>2]|0,6)|0;e=a^(hm(c[d>>2]|0,11)|0);a=e^(hm(c[d>>2]|0,25)|0);i=b;return a|0}function jm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;i=e;return c[h>>2]^c[f>>2]&(c[g>>2]^c[h>>2])|0}function km(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=hm(c[d>>2]|0,2)|0;e=a^(hm(c[d>>2]|0,13)|0);a=e^(hm(c[d>>2]|0,22)|0);i=b;return a|0}function lm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;i=e;return c[f>>2]&c[g>>2]|c[h>>2]&(c[f>>2]|c[g>>2])|0}function mm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+12|0;f=d+4|0;c[e>>2]=a;c[d+8>>2]=b;c[f>>2]=c[e>>2];c[d>>2]=pg()|0;c[(c[f>>2]|0)+160>>2]=1779033703;c[(c[f>>2]|0)+164>>2]=-1150833019;c[(c[f>>2]|0)+168>>2]=1013904242;c[(c[f>>2]|0)+172>>2]=-1521486534;c[(c[f>>2]|0)+176>>2]=1359893119;c[(c[f>>2]|0)+180>>2]=-1694144372;c[(c[f>>2]|0)+184>>2]=528734635;c[(c[f>>2]|0)+188>>2]=1541459225;e=(c[f>>2]|0)+128|0;c[e>>2]=0;c[e+4>>2]=0;e=(c[f>>2]|0)+136|0;c[e>>2]=0;c[e+4>>2]=0;c[(c[f>>2]|0)+144>>2]=0;c[(c[f>>2]|0)+148>>2]=64;c[(c[f>>2]|0)+152>>2]=33;i=d;return}function nm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+8|0;g=d+4|0;c[e>>2]=a;c[d+12>>2]=b;c[f>>2]=c[e>>2];c[g>>2]=(c[f>>2]|0)+160;c[d>>2]=pg()|0;e=c[g>>2]|0;c[e>>2]=-205731576;c[e+4>>2]=1779033703;e=(c[g>>2]|0)+8|0;c[e>>2]=-2067093701;c[e+4>>2]=-1150833019;e=(c[g>>2]|0)+16|0;c[e>>2]=-23791573;c[e+4>>2]=1013904242;e=(c[g>>2]|0)+24|0;c[e>>2]=1595750129;c[e+4>>2]=-1521486534;e=(c[g>>2]|0)+32|0;c[e>>2]=-1377402159;c[e+4>>2]=1359893119;e=(c[g>>2]|0)+40|0;c[e>>2]=725511199;c[e+4>>2]=-1694144372;e=(c[g>>2]|0)+48|0;c[e>>2]=-79577749;c[e+4>>2]=528734635;e=(c[g>>2]|0)+56|0;c[e>>2]=327033209;c[e+4>>2]=1541459225;e=(c[f>>2]|0)+128|0;c[e>>2]=0;c[e+4>>2]=0;e=(c[f>>2]|0)+136|0;c[e>>2]=0;c[e+4>>2]=0;c[(c[f>>2]|0)+144>>2]=0;c[(c[f>>2]|0)+148>>2]=128;c[(c[f>>2]|0)+152>>2]=34;i=d;return}function om(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;d=i;i=i+48|0;if((i|0)>=(j|0))$(48);e=d+44|0;f=d+40|0;g=d+36|0;h=d+24|0;k=d+16|0;l=d+8|0;m=d;n=d+32|0;c[e>>2]=b;c[f>>2]=c[e>>2];Nr(c[e>>2]|0,0,0);b=(c[f>>2]|0)+128|0;o=c[b+4>>2]|0;p=h;c[p>>2]=c[b>>2];c[p+4>>2]=o;o=(c[f>>2]|0)+136|0;p=c[o+4>>2]|0;b=k;c[b>>2]=c[o>>2];c[b+4>>2]=p;p=h;b=gx(c[p>>2]|0,c[p+4>>2]|0,7)|0;p=m;c[p>>2]=b;c[p+4>>2]=D;p=k;k=gx(c[p>>2]|0,c[p+4>>2]|0,7)|0;p=D;b=h;o=ax(c[b>>2]|0,c[b+4>>2]|0,57)|0;b=l;c[b>>2]=k|o;c[b+4>>2]=p|D;p=m;b=c[p+4>>2]|0;o=h;c[o>>2]=c[p>>2];c[o+4>>2]=b;b=c[(c[f>>2]|0)+144>>2]|0;o=m;p=Uw(c[o>>2]|0,c[o+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;b=D;o=m;c[o>>2]=p;c[o+4>>2]=b;o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>2]|0,c[g>>2]|0,c[g+4>>2]|0);c[n>>2]=(c[n>>2]|0)+8;g=(c[f>>2]|0)+160+16|0;tm(c[n>>2]|0,c[g>>2]|0,c[g+4>>2]|0);c[n>>2]=(c[n>>2]|0)+8;g=(c[f>>2]|0)+160+24|0;tm(c[n>>2]|0,c[g>>2]|0,c[g+4>>2]|0);c[n>>2]=(c[n>>2]|0)+8;g=(c[f>>2]|0)+160+32|0;tm(c[n>>2]|0,c[g>>2]|0,c[g+4>>2]|0);c[n>>2]=(c[n>>2]|0)+8;g=(c[f>>2]|0)+160+40|0;tm(c[n>>2]|0,c[g>>2]|0,c[g+4>>2]|0);c[n>>2]=(c[n>>2]|0)+8;g=(c[f>>2]|0)+160+48|0;tm(c[n>>2]|0,c[g>>2]|0,c[g+4>>2]|0);c[n>>2]=(c[n>>2]|0)+8;g=(c[f>>2]|0)+160+56|0;tm(c[n>>2]|0,c[g>>2]|0,c[g+4>>2]|0);c[n>>2]=(c[n>>2]|0)+8;i=d;return}function pm(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[d>>2]=a;c[e>>2]=c[d>>2];i=b;return c[e>>2]|0}function qm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;switch(c[f>>2]|0){case 9:{c[k>>2]=rm(c[g>>2]|0,c[h>>2]|0)|0;break}case 10:{c[k>>2]=sm(c[g>>2]|0,c[h>>2]|0)|0;break}default:c[k>>2]=5}i=e;return c[k>>2]|0}function rm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=42861;c[k>>2]=Mr(9,0,42874,3,43221,48)|0;do if(!(c[k>>2]|0)){if(c[f>>2]|0){c[h>>2]=42943;c[k>>2]=Mr(9,0,42955,112,43270,48)|0;if(c[k>>2]|0)break;c[h>>2]=43133;c[k>>2]=Mr(9,1,0,0,43319,48)|0;if(c[k>>2]|0)break}c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}while(0);if(c[g>>2]|0)Eb[c[g>>2]&1](43214,9,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;l=c[e>>2]|0;i=d;return l|0}function sm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;k=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=42861;c[k>>2]=Mr(10,0,42874,3,42878,64)|0;do if(!(c[k>>2]|0)){if(c[f>>2]|0){c[h>>2]=42943;c[k>>2]=Mr(10,0,42955,112,43068,64)|0;if(c[k>>2]|0)break;c[h>>2]=43133;c[k>>2]=Mr(10,1,0,0,43149,64)|0;if(c[k>>2]|0)break}c[e>>2]=0;l=c[e>>2]|0;i=d;return l|0}while(0);if(c[g>>2]|0)Eb[c[g>>2]&1](43214,10,c[h>>2]|0,c[k>>2]|0);c[e>>2]=50;l=c[e>>2]|0;i=d;return l|0}function tm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f;k=f+8|0;c[g>>2]=b;b=h;c[b>>2]=d;c[b+4>>2]=e;c[k>>2]=c[g>>2];g=h;e=ax(c[g>>2]|0,c[g+4>>2]|0,56)|0;a[c[k>>2]>>0]=e;e=h;g=ax(c[e>>2]|0,c[e+4>>2]|0,48)|0;a[(c[k>>2]|0)+1>>0]=g;g=h;e=ax(c[g>>2]|0,c[g+4>>2]|0,40)|0;a[(c[k>>2]|0)+2>>0]=e;a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b>>2]|0,c[b+4>>2]|0,39,0)|0;D=a^D;i=d;return f^g^e|0}function Bm(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0;h=i;i=i+32|0;if((i|0)>=(j|0))$(32);k=h+16|0;l=h+8|0;m=h;n=k;c[n>>2]=a;c[n+4>>2]=b;b=l;c[b>>2]=d;c[b+4>>2]=e;e=m;c[e>>2]=f;c[e+4>>2]=g;g=k;e=l;f=k;k=m;b=l;l=m;D=c[g+4>>2]&c[e+4>>2]^c[f+4>>2]&c[k+4>>2]^c[b+4>>2]&c[l+4>>2];i=h;return c[g>>2]&c[e>>2]^c[f>>2]&c[k>>2]^c[b>>2]&c[l>>2]|0}function Cm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;if((i|0)>=(j|0))$(32);e=d+16|0;f=d+8|0;g=d+4|0;c[e>>2]=a;c[d+12>>2]=b;c[f>>2]=c[e>>2];c[g>>2]=(c[f>>2]|0)+160;c[d>>2]=pg()|0;e=c[g>>2]|0;c[e>>2]=-1056596264;c[e+4>>2]=-876896931;e=(c[g>>2]|0)+8|0;c[e>>2]=914150663;c[e+4>>2]=1654270250;e=(c[g>>2]|0)+16|0;c[e>>2]=812702999;c[e+4>>2]=-1856437926;e=(c[g>>2]|0)+24|0;c[e>>2]=-150054599;c[e+4>>2]=355462360;e=(c[g>>2]|0)+32|0;c[e>>2]=-4191439;c[e+4>>2]=1731405415;e=(c[g>>2]|0)+40|0;c[e>>2]=1750603025;c[e+4>>2]=-1900787065;e=(c[g>>2]|0)+48|0;c[e>>2]=1694076839;c[e+4>>2]=-619958771;e=(c[g>>2]|0)+56|0;c[e>>2]=-1090891868;c[e+4>>2]=1203062813;e=(c[f>>2]|0)+128|0;c[e>>2]=0;c[e+4>>2]=0;e=(c[f>>2]|0)+136|0;c[e>>2]=0;c[e+4>>2]=0;c[(c[f>>2]|0)+144>>2]=0;c[(c[f>>2]|0)+148>>2]=128;c[(c[f>>2]|0)+152>>2]=34;i=d;return}function Dm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))$(32);f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];c[l>>2]=Km(c[k>>2]|0,c[g>>2]|0,c[h>>2]|0)|0;bf(47);cf();i=e;return c[l>>2]|0}function Em(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];Jm(c[k>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return 36}function Fm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];Gm(c[k>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return 36}function Gm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+32|0;g=e+28|0;h=e+24|0;k=e+20|0;l=e+16|0;m=e+12|0;n=e+8|0;o=e+4|0;p=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[m>>2]=Hm(c[h>>2]|0)|0;c[m>>2]=c[m>>2]^c[(c[f>>2]|0)+4096+16>>2];c[n>>2]=Hm((c[h>>2]|0)+4|0)|0;c[n>>2]=c[n>>2]^c[(c[f>>2]|0)+4096+20>>2];c[k>>2]=Hm((c[h>>2]|0)+8|0)|0;c[k>>2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255)<<2)>>2]^c[(c[f>>2]|0)+((c[l>>2]|0)>>>24<<2)>>2];c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);c[p>>2]=(c[p>>2]|0)+(c[o>>2]|0);c[n>>2]=c[n>>2]^(c[p>>2]|0)+(c[(c[f>>2]|0)+4128+4>>2]|0);c[n>>2]=((c[n>>2]|0)>>>1)+(c[n>>2]<<31);c[m>>2]=(c[m>>2]<<1)+((c[m>>2]|0)>>>31);c[m>>2]=c[m>>2]^(c[o>>2]|0)+(c[(c[f>>2]|0)+4128>>2]|0);c[k>>2]=c[k>>2]^c[(c[f>>2]|0)+4096>>2];Im(c[g>>2]|0,c[k>>2]|0);c[l>>2]=c[l>>2]^c[(c[f>>2]|0)+4096+4>>2];Im((c[g>>2]|0)+4|0,c[l>>2]|0);c[m>>2]=c[m>>2]^c[(c[f>>2]|0)+4096+8>>2];Im((c[g>>2]|0)+8|0,c[m>>2]|0);c[n>>2]=c[n>>2]^c[(c[f>>2]|0)+4096+12>>2];Im((c[g>>2]|0)+12|0,c[n>>2]|0);i=e;return}function Hm(a){a=a|0;var b=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=b+4|0;f=b;c[e>>2]=a;c[f>>2]=c[e>>2];i=b;return (d[(c[f>>2]|0)+3>>0]|0)<<24|(d[(c[f>>2]|0)+2>>0]|0)<<16|(d[(c[f>>2]|0)+1>>0]|0)<<8|(d[c[f>>2]>>0]|0)|0}function Im(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=d;c[h>>2]=c[f>>2];a[(c[h>>2]|0)+3>>0]=(c[g>>2]|0)>>>24;a[(c[h>>2]|0)+2>>0]=(c[g>>2]|0)>>>16;a[(c[h>>2]|0)+1>>0]=(c[g>>2]|0)>>>8;a[c[h>>2]>>0]=c[g>>2];i=e;return}function Jm(a,b,d){a=a|0;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f>>2]|0)+4128+16>>2]|0);c[m>>2]=((c[m>>2]|0)>>>1)+(c[m>>2]<<31);c[n>>2]=(c[n>>2]<<1)+((c[n>>2]|0)>>>31)^c[p>>2];c[o>>2]=c[(c[f>>2]|0)+((c[m>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+1024+(((c[m>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[m>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+3072+((c[m>>2]|0)>>>24<<2)>>2];c[p>>2]=c[(c[f>>2]|0)+1024+((c[n>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[n>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+3072+(((c[n>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+((c[n>>2]|0)>>>24<<2)>>2];c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);c[p>>2]=(c[p>>2]|0)+((c[o>>2]|0)+(c[(c[f>>2]|0)+4128+28>>2]|0));c[k>>2]=c[k>>2]^(c[o>>2]|0)+(c[(c[f>>2]|0)+4128+24>>2]|0);c[k>>2]=((c[k>>2]|0)>>>1)+(c[k>>2]<<31);c[l>>2]=(c[l>>2]<<1)+((c[l>>2]|0)>>>31)^c[p>>2];c[o>>2]=c[(c[f>>2]|0)+((c[k>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+1024+(((c[k>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[k>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+3072+((c[k>>2]|0)>>>24<<2)>>2];c[p>>2]=c[(c[f>>2]|0)+1024+((c[l>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[l>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+3072+(((c[l>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+((c[l>>2]|0)>>>24<<2)>>2];c[o>>2]=(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[f>>2]|0)+4128+88>>2]|0);c[k>>2]=((c[k>>2]|0)>>>1)+(c[k>>2]<<31);c[l>>2]=(c[l>>2]<<1)+((c[l>>2]|0)>>>31)^c[p>>2];c[o>>2]=c[(c[f>>2]|0)+((c[k>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+1024+(((c[k>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[k>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+3072+((c[k>>2]|0)>>>24<<2)>>2];c[p>>2]=c[(c[f>>2]|0)+1024+((c[l>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[l>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+3072+(((c[l>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+((c[l>>2]|0)>>>24<<2)>>2];c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);c[p>>2]=(c[p>>2]|0)+((c[o>>2]|0)+(c[(c[f>>2]|0)+4128+100>>2]|0));c[m>>2]=c[m>>2]^(c[o>>2]|0)+(c[(c[f>>2]|0)+4128+96>>2]|0);c[m>>2]=((c[m>>2]|0)>>>1)+(c[m>>2]<<31);c[n>>2]=(c[n>>2]<<1)+((c[n>>2]|0)>>>31)^c[p>>2];c[o>>2]=c[(c[f>>2]|0)+((c[m>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+1024+(((c[m>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[m>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+3072+((c[m>>2]|0)>>>24<<2)>>2];c[p>>2]=c[(c[f>>2]|0)+1024+((c[n>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[n>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+3072+(((c[n>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+((c[n>>2]|0)>>>24<<2)>>2];c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);c[p>>2]=(c[p>>2]|0)+((c[o>>2]|0)+(c[(c[f>>2]|0)+4128+108>>2]|0));c[k>>2]=c[k>>2]^(c[o>>2]|0)+(c[(c[f>>2]|0)+4128+104>>2]|0);c[k>>2]=((c[k>>2]|0)>>>1)+(c[k>>2]<<31);c[l>>2]=(c[l>>2]<<1)+((c[l>>2]|0)>>>31)^c[p>>2];c[o>>2]=c[(c[f>>2]|0)+((c[k>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+1024+(((c[k>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[k>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+3072+((c[k>>2]|0)>>>24<<2)>>2];c[p>>2]=c[(c[f>>2]|0)+1024+((c[l>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[l>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+3072+(((c[l>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+((c[l>>2]|0)>>>24<<2)>>2];c[o>>2]=(c[o>>2]|0)+(c[p>>2]|0);c[p>>2]=(c[p>>2]|0)+((c[o>>2]|0)+(c[(c[f>>2]|0)+4128+116>>2]|0));c[m>>2]=c[m>>2]^(c[o>>2]|0)+(c[(c[f>>2]|0)+4128+112>>2]|0);c[m>>2]=((c[m>>2]|0)>>>1)+(c[m>>2]<<31);c[n>>2]=(c[n>>2]<<1)+((c[n>>2]|0)>>>31)^c[p>>2];c[o>>2]=c[(c[f>>2]|0)+((c[m>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+1024+(((c[m>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[m>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+3072+((c[m>>2]|0)>>>24<<2)>>2];c[p>>2]=c[(c[f>>2]|0)+1024+((c[n>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[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a[u>>0]=0;a[v>>0]=0;a[w>>0]=0;a[x>>0]=0;a[y>>0]=0;a[z>>0]=0;a[A>>0]=0;a[B>>0]=0;a[C>>0]=0;a[D>>0]=0;a[E>>0]=0;a[F>>0]=0;a[G>>0]=0;a[H>>0]=0;a[I>>0]=0;if(((c[n>>2]|0)-16|16|0)!=16){c[k>>2]=44;K=c[k>>2]|0;i=g;return K|0}if((c[17740]|0)==0?(c[17740]=1,c[17741]=Lm()|0,c[17741]|0):0){c[h>>2]=c[17741];Ve(43492,h)}if(c[17741]|0){c[k>>2]=50;K=c[k>>2]|0;i=g;return K|0}if(a[c[m>>2]>>0]|0){a[J>>0]=a[43496+((d[c[m>>2]>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+0)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+1)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+45)>>0]}if(a[(c[m>>2]|0)+1>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+1>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+164)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+68)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+138)>>0]}if(a[(c[m>>2]|0)+2>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+2>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+138)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+213)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+191)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+209)>>0]}if(a[(c[m>>2]|0)+3>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+3>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+209)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+127)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+61)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+153)>>0]}if(a[(c[m>>2]|0)+4>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+4>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+153)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+70)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+102)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+150)>>0]}if(a[(c[m>>2]|0)+5>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+5>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+150)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+60)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+91)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+237)>>0]}if(a[(c[m>>2]|0)+6>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+6>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+237)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+55)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+79)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+224)>>0]}if(a[(c[m>>2]|0)+7>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+7>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43751+((d[J>>0]|0)+224)>>0];a[u>>0]=d[u>>0]^d[43751+((d[J>>0]|0)+208)>>0];a[v>>0]=d[v>>0]^d[43751+((d[J>>0]|0)+140)>>0];a[w>>0]=d[w>>0]^d[43751+((d[J>>0]|0)+23)>>0]}if(a[(c[m>>2]|0)+8>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+8>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+0)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+1)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+45)>>0]}if(a[(c[m>>2]|0)+9>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+9>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+164)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+68)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+138)>>0]}if(a[(c[m>>2]|0)+10>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+10>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+138)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+213)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+191)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+209)>>0]}if(a[(c[m>>2]|0)+11>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+11>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+209)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+127)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+61)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+153)>>0]}if(a[(c[m>>2]|0)+12>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+12>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+153)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+70)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+102)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+150)>>0]}if(a[(c[m>>2]|0)+13>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+13>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+150)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+60)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+91)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+237)>>0]}if(a[(c[m>>2]|0)+14>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+14>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+237)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+55)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+79)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+224)>>0]}if(a[(c[m>>2]|0)+15>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+15>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43751+((d[J>>0]|0)+224)>>0];a[y>>0]=d[y>>0]^d[43751+((d[J>>0]|0)+208)>>0];a[z>>0]=d[z>>0]^d[43751+((d[J>>0]|0)+140)>>0];a[A>>0]=d[A>>0]^d[43751+((d[J>>0]|0)+23)>>0]}if((c[n>>2]|0)==32){if(a[(c[m>>2]|0)+16>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+16>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+0)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+1)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+45)>>0]}if(a[(c[m>>2]|0)+17>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+17>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+164)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+68)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+138)>>0]}if(a[(c[m>>2]|0)+18>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+18>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+138)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+213)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+191)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+209)>>0]}if(a[(c[m>>2]|0)+19>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+19>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+209)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+127)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+61)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+153)>>0]}if(a[(c[m>>2]|0)+20>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+20>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+153)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+70)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+102)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+150)>>0]}if(a[(c[m>>2]|0)+21>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+21>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+150)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+60)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+91)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+237)>>0]}if(a[(c[m>>2]|0)+22>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+22>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+237)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+55)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+79)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+224)>>0]}if(a[(c[m>>2]|0)+23>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+23>>0]|0)-1)>>0]|0;a[B>>0]=d[B>>0]^d[43751+((d[J>>0]|0)+224)>>0];a[C>>0]=d[C>>0]^d[43751+((d[J>>0]|0)+208)>>0];a[D>>0]=d[D>>0]^d[43751+((d[J>>0]|0)+140)>>0];a[E>>0]=d[E>>0]^d[43751+((d[J>>0]|0)+23)>>0]}if(a[(c[m>>2]|0)+24>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+24>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+0)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+1)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+45)>>0]}if(a[(c[m>>2]|0)+25>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+25>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+45)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+164)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+68)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+138)>>0]}if(a[(c[m>>2]|0)+26>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+26>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+138)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+213)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+191)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+209)>>0]}if(a[(c[m>>2]|0)+27>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+27>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+209)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+127)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+61)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+153)>>0]}if(a[(c[m>>2]|0)+28>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+28>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+153)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+70)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+102)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+150)>>0]}if(a[(c[m>>2]|0)+29>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+29>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+150)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+60)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+91)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+237)>>0]}if(a[(c[m>>2]|0)+30>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+30>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+237)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+55)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+79)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+224)>>0]}if(a[(c[m>>2]|0)+31>>0]|0){a[J>>0]=a[43496+((d[(c[m>>2]|0)+31>>0]|0)-1)>>0]|0;a[F>>0]=d[F>>0]^d[43751+((d[J>>0]|0)+224)>>0];a[G>>0]=d[G>>0]^d[43751+((d[J>>0]|0)+208)>>0];a[H>>0]=d[H>>0]^d[43751+((d[J>>0]|0)+140)>>0];a[I>>0]=d[I>>0]^d[43751+((d[J>>0]|0)+23)>>0]}c[p>>2]=0;c[o>>2]=0;c[q>>2]=1;while(1){if((c[o>>2]|0)>=256)break;c[(c[l>>2]|0)+(c[o>>2]<<2)>>2]=c[8432+((d[45011+(d[45011+(d[44755+(d[44243+(c[q>>2]|0)>>0]^d[t>>0])>>0]^d[x>>0])>>0]^d[B>>0])>>0]^d[F>>0])<<2)>>2];c[(c[l>>2]|0)+1024+(c[o>>2]<<2)>>2]=c[9456+((d[45011+(d[44755+(d[44755+(d[44243+(c[p>>2]|0)>>0]^d[u>>0])>>0]^d[y>>0])>>0]^d[C>>0])>>0]^d[G>>0])<<2)>>2];c[(c[l>>2]|0)+2048+(c[o>>2]<<2)>>2]=c[10480+((d[44755+(d[45011+(d[45011+(d[44243+(c[p>>2]|0)>>0]^d[v>>0])>>0]^d[z>>0])>>0]^d[D>>0])>>0]^d[H>>0])<<2)>>2];c[(c[l>>2]|0)+3072+(c[o>>2]<<2)>>2]=c[11504+((d[44755+(d[44755+(d[45011+(d[44243+(c[q>>2]|0)>>0]^d[w>>0])>>0]^d[A>>0])>>0]^d[E>>0])>>0]^d[I>>0])<<2)>>2];c[o>>2]=(c[o>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+2;c[q>>2]=(c[q>>2]|0)+2}c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(117^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(169^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(169^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(117^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(243^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(103^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(103^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(243^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096>>2]=c[r>>2];c[(c[l>>2]|0)+4096+4>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(198^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(179^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(179^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(198^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(244^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(232^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(232^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(244^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096+8>>2]=c[r>>2];c[(c[l>>2]|0)+4096+12>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(219^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(4^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(4^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(219^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(123^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(253^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(253^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(123^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096+16>>2]=c[r>>2];c[(c[l>>2]|0)+4096+20>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(251^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(163^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(163^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(251^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(200^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(118^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(118^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(200^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096+24>>2]=c[r>>2];c[(c[l>>2]|0)+4096+28>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(74^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(154^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(154^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(74^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(211^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(146^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(146^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(211^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128>>2]=c[r>>2];c[(c[l>>2]|0)+4128+4>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(230^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(128^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(128^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(230^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(107^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(120^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(120^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(107^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+8>>2]=c[r>>2];c[(c[l>>2]|0)+4128+12>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(69^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(228^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(228^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(69^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(125^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(221^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(221^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(125^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+16>>2]=c[r>>2];c[(c[l>>2]|0)+4128+20>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(232^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(209^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(209^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(232^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(75^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(56^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(56^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(75^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+24>>2]=c[r>>2];c[(c[l>>2]|0)+4128+28>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(214^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(13^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(13^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(214^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(50^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(198^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(198^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(50^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+32>>2]=c[r>>2];c[(c[l>>2]|0)+4128+36>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(216^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(53^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(53^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(216^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(253^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(152^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(152^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(253^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+40>>2]=c[r>>2];c[(c[l>>2]|0)+4128+44>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(55^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(24^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(24^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(55^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(113^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(247^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(247^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(113^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+48>>2]=c[r>>2];c[(c[l>>2]|0)+4128+52>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(241^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(236^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(236^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(241^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(225^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(108^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(108^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(225^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+56>>2]=c[r>>2];c[(c[l>>2]|0)+4128+60>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(48^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(67^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(67^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(48^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(15^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(117^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(117^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(15^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+64>>2]=c[r>>2];c[(c[l>>2]|0)+4128+68>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(248^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(55^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(55^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(248^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(27^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(38^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(38^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(27^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+72>>2]=c[r>>2];c[(c[l>>2]|0)+4128+76>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(135^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(250^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(250^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(135^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(250^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(19^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(19^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(250^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+80>>2]=c[r>>2];c[(c[l>>2]|0)+4128+84>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(6^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(148^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(148^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(6^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(63^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(72^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(72^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(63^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+88>>2]=c[r>>2];c[(c[l>>2]|0)+4128+92>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(94^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(242^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(242^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(94^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(186^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(208^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(208^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(186^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+96>>2]=c[r>>2];c[(c[l>>2]|0)+4128+100>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(174^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(139^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(139^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(174^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(91^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(48^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(48^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(91^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+104>>2]=c[r>>2];c[(c[l>>2]|0)+4128+108>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(138^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(132^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(132^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(138^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(0^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(84^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(84^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(0^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+112>>2]=c[r>>2];c[(c[l>>2]|0)+4128+116>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(d[45011+(d[44755+(188^d[(c[m>>2]|0)+24>>0])>>0]^d[(c[m>>2]|0)+16>>0])>>0]^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(223^d[(c[m>>2]|0)+25>>0])>>0]^d[(c[m>>2]|0)+17>>0])>>0]^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(223^d[(c[m>>2]|0)+26>>0])>>0]^d[(c[m>>2]|0)+18>>0])>>0]^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(188^d[(c[m>>2]|0)+27>>0])>>0]^d[(c[m>>2]|0)+19>>0])>>0]^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(d[45011+(d[44755+(157^d[(c[m>>2]|0)+28>>0])>>0]^d[(c[m>>2]|0)+20>>0])>>0]^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(d[44755+(d[44755+(35^d[(c[m>>2]|0)+29>>0])>>0]^d[(c[m>>2]|0)+21>>0])>>0]^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(d[45011+(d[45011+(35^d[(c[m>>2]|0)+30>>0])>>0]^d[(c[m>>2]|0)+22>>0])>>0]^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(d[44755+(d[45011+(157^d[(c[m>>2]|0)+31>>0])>>0]^d[(c[m>>2]|0)+23>>0])>>0]^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+120>>2]=c[r>>2];c[(c[l>>2]|0)+4128+124>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23)}else{c[p>>2]=0;c[o>>2]=0;c[q>>2]=1;while(1){if((c[o>>2]|0)>=256)break;c[(c[l>>2]|0)+(c[o>>2]<<2)>>2]=c[8432+((d[45011+(d[44243+(c[p>>2]|0)>>0]^d[t>>0])>>0]^d[x>>0])<<2)>>2];c[(c[l>>2]|0)+1024+(c[o>>2]<<2)>>2]=c[9456+((d[45011+(d[44243+(c[q>>2]|0)>>0]^d[u>>0])>>0]^d[y>>0])<<2)>>2];c[(c[l>>2]|0)+2048+(c[o>>2]<<2)>>2]=c[10480+((d[44755+(d[44243+(c[p>>2]|0)>>0]^d[v>>0])>>0]^d[z>>0])<<2)>>2];c[(c[l>>2]|0)+3072+(c[o>>2]<<2)>>2]=c[11504+((d[44755+(d[44243+(c[q>>2]|0)>>0]^d[w>>0])>>0]^d[A>>0])<<2)>>2];c[o>>2]=(c[o>>2]|0)+1;c[p>>2]=(c[p>>2]|0)+2;c[q>>2]=(c[q>>2]|0)+2}c[r>>2]=c[8432+((d[45011+(169^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(117^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(169^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(117^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(103^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(243^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(103^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(243^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096>>2]=c[r>>2];c[(c[l>>2]|0)+4096+4>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(179^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(198^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(179^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(198^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(232^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(244^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(232^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(244^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096+8>>2]=c[r>>2];c[(c[l>>2]|0)+4096+12>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(4^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(219^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(4^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(219^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(253^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(123^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(253^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(123^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096+16>>2]=c[r>>2];c[(c[l>>2]|0)+4096+20>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(163^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(251^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(163^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(251^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(118^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(200^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(118^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(200^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4096+24>>2]=c[r>>2];c[(c[l>>2]|0)+4096+28>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(154^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(74^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(154^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(74^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(146^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(211^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(146^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(211^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128>>2]=c[r>>2];c[(c[l>>2]|0)+4128+4>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(128^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(230^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(128^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(230^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(120^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(107^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(120^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(107^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+8>>2]=c[r>>2];c[(c[l>>2]|0)+4128+12>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(228^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(69^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(228^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(69^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(221^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(125^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(221^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(125^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+16>>2]=c[r>>2];c[(c[l>>2]|0)+4128+20>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(209^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(232^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(209^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(232^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(56^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(75^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(56^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(75^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+24>>2]=c[r>>2];c[(c[l>>2]|0)+4128+28>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(13^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(214^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(13^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(214^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(198^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(50^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(198^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(50^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+32>>2]=c[r>>2];c[(c[l>>2]|0)+4128+36>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(53^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(216^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(53^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(216^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(152^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(253^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(152^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(253^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+40>>2]=c[r>>2];c[(c[l>>2]|0)+4128+44>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(24^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(55^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(24^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(55^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(247^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(113^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(247^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(113^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+48>>2]=c[r>>2];c[(c[l>>2]|0)+4128+52>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(236^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(241^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(236^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(241^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(108^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(225^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(108^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(225^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+56>>2]=c[r>>2];c[(c[l>>2]|0)+4128+60>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(67^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(48^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(67^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(48^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(117^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(15^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(117^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(15^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+64>>2]=c[r>>2];c[(c[l>>2]|0)+4128+68>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(55^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(248^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(55^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(248^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(38^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(27^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(38^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(27^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+72>>2]=c[r>>2];c[(c[l>>2]|0)+4128+76>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(250^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(135^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(250^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(135^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(19^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(250^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(19^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(250^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+80>>2]=c[r>>2];c[(c[l>>2]|0)+4128+84>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(148^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(6^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(148^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(6^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(72^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(63^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(72^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(63^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+88>>2]=c[r>>2];c[(c[l>>2]|0)+4128+92>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(242^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(94^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(242^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(94^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(208^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(186^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(208^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(186^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+96>>2]=c[r>>2];c[(c[l>>2]|0)+4128+100>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(139^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(174^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(139^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(174^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(48^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(91^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(48^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(91^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+104>>2]=c[r>>2];c[(c[l>>2]|0)+4128+108>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(132^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(138^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(132^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(138^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(84^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(0^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(84^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(0^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+112>>2]=c[r>>2];c[(c[l>>2]|0)+4128+116>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23);c[r>>2]=c[8432+((d[45011+(223^d[(c[m>>2]|0)+8>>0])>>0]^d[c[m>>2]>>0])<<2)>>2]^c[9456+((d[45011+(188^d[(c[m>>2]|0)+9>>0])>>0]^d[(c[m>>2]|0)+1>>0])<<2)>>2]^c[10480+((d[44755+(223^d[(c[m>>2]|0)+10>>0])>>0]^d[(c[m>>2]|0)+2>>0])<<2)>>2]^c[11504+((d[44755+(188^d[(c[m>>2]|0)+11>>0])>>0]^d[(c[m>>2]|0)+3>>0])<<2)>>2];c[s>>2]=c[8432+((d[45011+(35^d[(c[m>>2]|0)+12>>0])>>0]^d[(c[m>>2]|0)+4>>0])<<2)>>2]^c[9456+((d[45011+(157^d[(c[m>>2]|0)+13>>0])>>0]^d[(c[m>>2]|0)+5>>0])<<2)>>2]^c[10480+((d[44755+(35^d[(c[m>>2]|0)+14>>0])>>0]^d[(c[m>>2]|0)+6>>0])<<2)>>2]^c[11504+((d[44755+(157^d[(c[m>>2]|0)+15>>0])>>0]^d[(c[m>>2]|0)+7>>0])<<2)>>2];c[s>>2]=(c[s>>2]<<8)+((c[s>>2]|0)>>>24);c[r>>2]=(c[r>>2]|0)+(c[s>>2]|0);c[s>>2]=(c[s>>2]|0)+(c[r>>2]|0);c[(c[l>>2]|0)+4128+120>>2]=c[r>>2];c[(c[l>>2]|0)+4128+124>>2]=(c[s>>2]<<9)+((c[s>>2]|0)>>>23)}c[k>>2]=0;K=c[k>>2]|0;i=g;return K|0}function Lm(){var a=0,b=0,d=0,e=0,f=0,g=0;a=i;i=i+4288|0;if((i|0)>=(j|0))$(4288);b=a+4264|0;d=a+8|0;e=a+4272|0;f=a;Dm(d,45267,16)|0;Em(d,e,45283)|0;do if(!(Jv(e,45299,16)|0)){Fm(d,e,e)|0;if(Jv(e,45283,16)|0){c[b>>2]=45351;break}Dm(d,45387,32)|0;Em(d,e,45419)|0;if(Jv(e,45435,16)|0){c[b>>2]=45451;break}Fm(d,e,e)|0;if(Jv(e,45419,16)|0){c[b>>2]=45487;break}g=Mm()|0;c[f>>2]=g;if(g|0){c[b>>2]=c[f>>2];break}g=Nm()|0;c[f>>2]=g;if(g|0){c[b>>2]=c[f>>2];break}g=Om()|0;c[f>>2]=g;if(g|0){c[b>>2]=c[f>>2];break}else{c[b>>2]=0;break}}else c[b>>2]=45315;while(0);i=a;return c[b>>2]|0}function Mm(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[a+8>>2]=4;c[a+4>>2]=16;c[a>>2]=4256;b=wr(43484,13,14,8,4,16,4256)|0;i=a;return b|0}function Nm(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[a+8>>2]=5;c[a+4>>2]=16;c[a>>2]=4256;b=sr(43484,13,14,6,5,16,4256)|0;i=a;return b|0}function Om(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);c[a+8>>2]=5;c[a+4>>2]=16;c[a>>2]=4256;b=ur(43484,13,14,7,5,16,4256)|0;i=a;return b|0}function Pm(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+48|0;if((i|0)>=(j|0))$(48);h=g+36|0;k=g+32|0;l=g+28|0;m=g+24|0;n=g+20|0;o=g+16|0;p=g+12|0;q=g+8|0;r=g+4|0;s=g;c[h>>2]=a;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=c[h>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[s>>2]=0;while(1){if(!(c[n>>2]|0))break;c[r>>2]=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4>>2]=0;while(1){if(!(c[w>>2]&7|0?(c[x>>2]|0)!=0:0))break;a[c[w>>2]>>0]=a[y>>0]|0;c[w>>2]=(c[w>>2]|0)+1;c[x>>2]=(c[x>>2]|0)+-1}if((c[x>>2]|0)>>>0>=8){t=z;p=ex(c[t>>2]|0,c[t+4>>2]|0,16843009,16843009)|0;t=z;c[t>>2]=p;c[t+4>>2]=D;do{c[A>>2]=c[w>>2];t=z;p=c[t+4>>2]|0;r=c[A>>2]|0;c[r>>2]=c[t>>2];c[r+4>>2]=p;c[x>>2]=(c[x>>2]|0)-8;c[w>>2]=(c[w>>2]|0)+8}while((c[x>>2]|0)>>>0>=8)}while(1){if(!(c[x>>2]|0))break;a[c[w>>2]>>0]=a[y>>0]|0;c[w>>2]=(c[w>>2]|0)+1;c[x>>2]=(c[x>>2]|0)+-1}bf(c[v>>2]|0);cf();i=k;return}function Tm(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;k=i;i=i+96|0;if((i|0)>=(j|0))$(96);l=k+60|0;m=k+56|0;n=k+52|0;o=k+48|0;p=k+44|0;q=k+40|0;r=k+36|0;s=k+32|0;t=k+72|0;u=k+28|0;v=k+24|0;w=k+20|0;x=k+16|0;y=k+12|0;z=k+64|0;A=k;B=k+8|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;c[o>>2]=g;c[p>>2]=h;c[q>>2]=c[l>>2];c[r>>2]=c[n>>2];c[s>>2]=c[o>>2];c[v>>2]=0;while(1){if(!(c[p>>2]|0))break;c[u>>2]=Em(c[q>>2]|0,t,c[m>>2]|0)|0;if((c[u>>2]|0)>>>0>(c[v>>2]|0)>>>0)c[v>>2]=c[u>>2];Um(c[r>>2]|0,t,c[s>>2]|0,16);c[r>>2]=(c[r>>2]|0)+16;c[s>>2]=(c[s>>2]|0)+16;c[w>>2]=16;while(1){if((c[w>>2]|0)<=0)break;o=(c[m>>2]|0)+((c[w>>2]|0)-1)|0;a[o>>0]=(a[o>>0]|0)+1<<24>>24;if(a[(c[m>>2]|0)+((c[w>>2]|0)-1)>>0]|0)break;c[w>>2]=(c[w>>2]|0)+-1}c[p>>2]=(c[p>>2]|0)+-1}c[x>>2]=t;c[y>>2]=16;a[z>>0]=0;t=A;c[t>>2]=d[z>>0];c[t+4>>2]=0;while(1){if(!(c[x>>2]&7|0?(c[y>>2]|0)!=0:0))break;a[c[x>>2]>>0]=a[z>>0]|0;c[x>>2]=(c[x>>2]|0)+1;c[y>>2]=(c[y>>2]|0)+-1}if((c[y>>2]|0)>>>0>=8){t=A;p=ex(c[t>>2]|0,c[t+4>>2]|0,16843009,16843009)|0;t=A;c[t>>2]=p;c[t+4>>2]=D;do{c[B>>2]=c[x>>2];t=A;p=c[t+4>>2]|0;w=c[B>>2]|0;c[w>>2]=c[t>>2];c[w+4>>2]=p;c[y>>2]=(c[y>>2]|0)-8;c[x>>2]=(c[x>>2]|0)+8}while((c[y>>2]|0)>>>0>=8)}while(1){if(!(c[y>>2]|0))break;a[c[x>>2]>>0]=a[z>>0]|0;c[x>>2]=(c[x>>2]|0)+1;c[y>>2]=(c[y>>2]|0)+-1}bf(c[v>>2]|0);cf();i=k;return}function Um(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;h=i;i=i+48|0;if((i|0)>=(j|0))$(48);k=h+40|0;l=h+36|0;m=h+32|0;n=h+28|0;o=h+24|0;p=h+20|0;q=h+16|0;r=h+12|0;s=h+8|0;t=h+4|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;c[n>>2]=g;c[o>>2]=c[k>>2];c[p>>2]=c[l>>2];c[q>>2]=c[m>>2];c[h>>2]=3;if(!((c[o>>2]|c[p>>2]|c[q>>2])&3)){c[r>>2]=c[o>>2];c[s>>2]=c[p>>2];c[t>>2]=c[q>>2];while(1){if((c[n>>2]|0)>>>0<4)break;m=c[s>>2]|0;c[s>>2]=m+4;l=c[m>>2]|0;m=c[t>>2]|0;c[t>>2]=m+4;k=l^c[m>>2];m=c[r>>2]|0;c[r>>2]=m+4;c[m>>2]=k;c[n>>2]=(c[n>>2]|0)-4}c[o>>2]=c[r>>2];c[p>>2]=c[s>>2];c[q>>2]=c[t>>2]}while(1){if(!(c[n>>2]|0))break;t=c[p>>2]|0;c[p>>2]=t+1;s=d[t>>0]|0;t=c[q>>2]|0;c[q>>2]=t+1;r=(s^(d[t>>0]|0))&255;t=c[o>>2]|0;c[o>>2]=t+1;a[t>>0]=r;c[n>>2]=(c[n>>2]|0)+-1}i=h;return}function Vm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;c[17742]=c[e>>2];c[17743]=c[f>>2];i=d;return}function Wm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(c[17742]|0)){i=f;return}vb[c[17742]&15](c[17743]|0,c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}function Xm(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;do if(c[d>>2]|0){if((c[d>>2]|0)==1){c[17745]=1;break}if(!(c[17744]|0)){if((c[d>>2]|0)==2){c[17746]=1;break}if((c[d>>2]|0)==3)c[17747]=1}}else c[17744]=1;while(0);i=b;return}function Ym(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(Wg()|0){As(c[d>>2]|0);i=b;return}if(c[17745]|0){$r(c[d>>2]|0);i=b;return}if(c[17746]|0){As(c[d>>2]|0);i=b;return}a=c[d>>2]|0;if(c[17747]|0){ct(a);i=b;return}else{$r(a);i=b;return}}function Zm(){if(Wg()|0){Gs();return}if(c[17745]|0){js();return}if(c[17746]|0){Gs();return}if(c[17747]|0){et();return}else{js();return}}function _m(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;if(!(c[e>>2]|0)?Wg()|0:0)c[d>>2]=2;else f=4;do if((f|0)==4){if(c[17745]|0){c[d>>2]=1;break}if(c[17746]|0){c[d>>2]=2;break}if(c[17747]|0){c[d>>2]=3;break}else{c[d>>2]=1;break}}while(0);i=b;return c[d>>2]|0}function $m(){if(Wg()|0){Hs();return}else{ks();return}}function an(){if(Wg()|0)return;ls();return}function bn(){if(Wg()|0)return;ms();return}function cn(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(Wg()|0){i=b;return}ns(c[d>>2]|0);i=b;return}function dn(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;if(Wg()|0)c[d>>2]=0;else c[d>>2]=os(c[e>>2]|0)|0;i=b;return c[d>>2]|0}function en(){var a=0,b=0;a=i;i=i+16|0;if((i|0)>=(j|0))$(16);b=a;if(Wg()|0)c[b>>2]=Is()|0;else c[b>>2]=ps()|0;i=a;return c[b>>2]|0}function fn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=zf(c[e>>2]|0)|0;gn(c[g>>2]|0,c[e>>2]|0,c[f>>2]|0);i=d;return c[g>>2]|0}function gn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(Wg()|0){Js(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}if(c[17745]|0){qs(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}if(c[17746]|0){Js(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}d=c[f>>2]|0;f=c[g>>2]|0;g=c[h>>2]|0;if(c[17747]|0){ht(d,f,g);i=e;return}else{qs(d,f,g);i=e;return}}function hn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+8|0;f=d+4|0;g=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=Bf(c[e>>2]|0)|0;gn(c[g>>2]|0,c[e>>2]|0,c[f>>2]|0);i=d;return c[g>>2]|0}function jn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;gn(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function kn(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(Wg()|0){i=b;return}if(c[17745]|0){xs(c[d>>2]|0);i=b;return}if((c[17746]|0)!=0|(c[17747]|0)!=0){i=b;return}xs(c[d>>2]|0);i=b;return}function ln(){if(Wg()|0)return;if(c[17745]|0){ys();return}if((c[17746]|0)!=0|(c[17747]|0)!=0)return;ys();return}function mn(){if(Wg()|0)return;if(c[17745]|0){zs();return}if((c[17746]|0)!=0|(c[17747]|0)!=0)return;zs();return}function nn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=i;i=i+48|0;if((i|0)>=(j|0))$(48);f=e+8|0;g=e;h=e+40|0;k=e+36|0;l=e+32|0;m=e+28|0;n=e+24|0;o=e+20|0;p=e+16|0;q=e+12|0;c[h>>2]=b;c[k>>2]=d;if(Wg()|0){Ws(c[h>>2]|0,c[k>>2]|0);i=e;return}Ym(1);c[o>>2]=Ht(12592)|0;if(c[o>>2]|0){c[g>>2]=Bt(c[o>>2]|0)|0;We(45534,g)}c[l>>2]=_v()|0;if(c[17748]|0){if((c[17749]|0)!=(c[l>>2]|0)){gn(72243,8,0);c[17749]=c[l>>2]}}else{c[p>>2]=kb(0)|0;c[q>>2]=c[l>>2];c[17749]=c[l>>2];c[m>>2]=72223;l=c[m>>2]|0;a[l>>0]=a[q>>0]|0;a[l+1>>0]=a[q+1>>0]|0;a[l+2>>0]=a[q+2>>0]|0;a[l+3>>0]=a[q+3>>0]|0;c[m>>2]=(c[m>>2]|0)+4;q=c[m>>2]|0;a[q>>0]=a[p>>0]|0;a[q+1>>0]=a[p+1>>0]|0;a[q+2>>0]=a[p+2>>0]|0;a[q+3>>0]=a[p+3>>0]|0;jn(72243,8,0);c[17748]=1}c[m>>2]=c[h>>2];while(1){if((c[k>>2]|0)>>>0<=0)break;Xl(72223,72223,28);c[n>>2]=(c[k>>2]|0)>>>0>20?20:c[k>>2]|0;Yw(c[m>>2]|0,72223,c[n>>2]|0)|0;c[k>>2]=(c[k>>2]|0)-(c[n>>2]|0);c[m>>2]=(c[m>>2]|0)+(c[n>>2]|0)}c[o>>2]=It(12592)|0;if(c[o>>2]|0){c[f>>2]=Bt(c[o>>2]|0)|0;We(45579,f)}else{i=e;return}}function on(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+4|0;e=b;c[e>>2]=a;if(Wg()|0)c[d>>2]=Xs(c[e>>2]|0)|0;else c[d>>2]=0;i=b;return c[d>>2]|0}function pn(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;l=i;i=i+48|0;if((i|0)>=(j|0))$(48);m=l+32|0;n=l+28|0;o=l+24|0;p=l+20|0;q=l+16|0;r=l+12|0;s=l+8|0;t=l+4|0;u=l;c[n>>2]=a;c[o>>2]=b;c[p>>2]=d;c[q>>2]=e;c[r>>2]=f;c[s>>2]=g;c[t>>2]=h;c[u>>2]=k;if(Wg()|0){c[m>>2]=$s(c[n>>2]|0,c[o>>2]|0,c[p>>2]|0,c[q>>2]|0,c[r>>2]|0,c[s>>2]|0,c[t>>2]|0,c[u>>2]|0)|0;v=c[m>>2]|0;i=l;return v|0}else{c[m>>2]=60;v=c[m>>2]|0;i=l;return v|0}return 0}function qn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;if(Wg()|0){c[f>>2]=at(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0)|0;l=c[f>>2]|0;i=e;return l|0}else{c[f>>2]=60;l=c[f>>2]|0;i=e;return l|0}return 0}function rn(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(!(Wg()|0)){i=b;return}bt(c[d>>2]|0);i=b;return}function sn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+144|0;if((i|0)>=(j|0))$(144);g=f+8|0;h=f;k=f+28|0;l=f+24|0;m=f+20|0;n=f+16|0;o=f+12|0;p=f+32|0;c[k>>2]=b;c[l>>2]=d;c[m>>2]=e;e=c[k>>2]|0;if(!(c[l>>2]|0)){c[h>>2]=e;Su(p,99,45624,h)|0;af(p,0);i=f;return}c[g>>2]=e;Su(p,99,45629,g)|0;if(c[m>>2]|0){c[n>>2]=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[h>>2]|0;i=f;return s|0}case 1:{if(c[k>>2]|0)Kp(c[k>>2]|0,c[c[m>>2]>>2]|0)|0;if(c[l>>2]|0){c[g>>2]=45683;c[g+4>>2]=45707;We(45634,g)}c[h>>2]=0;s=c[h>>2]|0;i=f;return s|0}case 2:{c[r>>2]=Rp(0)|0;un(c[r>>2]|0,c[(c[m>>2]|0)+8>>2]|0,c[n>>2]|0);if(c[k>>2]|0)vn(c[k>>2]|0,c[c[m>>2]>>2]|0,c[r>>2]|0,c[n>>2]|0);if(c[l>>2]|0)vn(c[l>>2]|0,c[(c[m>>2]|0)+4>>2]|0,c[r>>2]|0,c[n>>2]|0);Tp(c[r>>2]|0);c[h>>2]=0;s=c[h>>2]|0;i=f;return s|0}default:{c[h>>2]=-1;s=c[h>>2]|0;i=f;return s|0}}return 0}function un(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(Lo(c[f>>2]|0,c[g>>2]|0,c[(c[h>>2]|0)+16>>2]|0)|0){i=e;return}Ve(45718,e);af(45752,c[g>>2]|0);af(45756,c[(c[h>>2]|0)+16>>2]|0);i=e;return}function vn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;Qo(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0);wn(c[g>>2]|0,c[l>>2]|0);i=f;return}function wn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;b=c[e>>2]|0;a=c[e>>2]|0;e=c[f>>2]|0;if(c[(c[f>>2]|0)+48+12>>2]|0){Po(b,a,c[e+48+12>>2]|0);i=d;return}else{Mo(b,a,c[e+16>>2]|0);i=d;return}}function xn(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[b+4>>2]=a;c[d>>2]=zf(12)|0;yn(c[d>>2]|0);i=b;return c[d>>2]|0}function yn(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;a=Rp(0)|0;c[c[d>>2]>>2]=a;a=Rp(0)|0;c[(c[d>>2]|0)+4>>2]=a;a=Rp(0)|0;c[(c[d>>2]|0)+8>>2]=a;i=b;return}function zn(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}An(c[d>>2]|0);vf(c[d>>2]|0);i=b;return}function An(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;Dp(c[c[d>>2]>>2]|0);c[c[d>>2]>>2]=0;Dp(c[(c[d>>2]|0)+4>>2]|0);c[(c[d>>2]|0)+4>>2]=0;Dp(c[(c[d>>2]|0)+8>>2]|0);c[(c[d>>2]|0)+8>>2]=0;i=b;return}function Bn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(c[g>>2]|0))c[g>>2]=xn(0)|0;e=c[c[g>>2]>>2]|0;if(c[h>>2]|0)Kp(e,c[h>>2]|0)|0;else Bp(e);e=c[(c[g>>2]|0)+4>>2]|0;if(c[k>>2]|0)Kp(e,c[k>>2]|0)|0;else Bp(e);e=c[(c[g>>2]|0)+8>>2]|0;if(c[l>>2]|0){Kp(e,c[l>>2]|0)|0;m=c[g>>2]|0;i=f;return m|0}else{Bp(e);m=c[g>>2]|0;i=f;return m|0}return 0}function Cn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(!(c[g>>2]|0))c[g>>2]=xn(0)|0;e=c[c[g>>2]>>2]|0;if(c[h>>2]|0)Mp(e,c[h>>2]|0);else Bp(e);e=c[(c[g>>2]|0)+4>>2]|0;if(c[k>>2]|0)Mp(e,c[k>>2]|0);else Bp(e);e=c[(c[g>>2]|0)+8>>2]|0;if(c[l>>2]|0){Mp(e,c[l>>2]|0);m=c[g>>2]|0;i=f;return m|0}else{Bp(e);m=c[g>>2]|0;i=f;return m|0}return 0}function Dn(b){b=b|0;var d=0,e=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d;c[e>>2]=b;b=(c[e>>2]|0)+48|0;a[b>>0]=a[b>>0]&-2;b=(c[e>>2]|0)+48|0;a[b>>0]=a[b>>0]&-3;i=d;return}function En(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;h=i;i=i+32|0;if((i|0)>=(j|0))$(32);k=h+24|0;l=h+20|0;m=h+16|0;n=h+12|0;o=h+8|0;p=h+4|0;q=h;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=Cf(1,108)|0;Fn(c[q>>2]|0,c[k>>2]|0,c[l>>2]|0,c[m>>2]|0,c[n>>2]|0,c[o>>2]|0,c[p>>2]|0);i=h;return c[q>>2]|0}function Fn(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;k=i;i=i+32|0;if((i|0)>=(j|0))$(32);l=k+28|0;m=k+24|0;n=k+20|0;o=k+16|0;p=k+12|0;q=k+8|0;r=k+4|0;s=k;c[l>>2]=a;c[m>>2]=b;c[n>>2]=d;c[o>>2]=e;c[p>>2]=f;c[q>>2]=g;c[r>>2]=h;do if(!(c[17750]|0))if($a(45760)|0){c[17750]=1;break}else{c[17750]=-1;break}while(0);c[c[l>>2]>>2]=c[m>>2];c[(c[l>>2]|0)+4>>2]=c[n>>2];c[(c[l>>2]|0)+8>>2]=c[o>>2];if((c[n>>2]|0)==1)c[(c[l>>2]|0)+12>>2]=256;else{n=lo(c[p>>2]|0)|0;c[(c[l>>2]|0)+12>>2]=n}n=Ip(c[p>>2]|0)|0;c[(c[l>>2]|0)+16>>2]=n;n=Ip(c[q>>2]|0)|0;c[(c[l>>2]|0)+20>>2]=n;n=Ip(c[r>>2]|0)|0;c[(c[l>>2]|0)+24>>2]=n;if((c[17750]|0)>0)t=No(c[(c[l>>2]|0)+16>>2]|0,0)|0;else t=0;c[(c[l>>2]|0)+48+12>>2]=t;Dn(c[l>>2]|0);c[s>>2]=0;while(1){if((c[s>>2]|0)>>>0>=11)break;t=Lp(c[(c[l>>2]|0)+16>>2]|0)|0;c[(c[l>>2]|0)+48+16+(c[s>>2]<<2)>>2]=t;c[s>>2]=(c[s>>2]|0)+1}i=k;return}function Gn(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;k=i;i=i+48|0;if((i|0)>=(j|0))$(48);l=k+36|0;m=k+32|0;n=k+28|0;o=k+24|0;p=k+20|0;q=k+16|0;r=k+12|0;s=k+8|0;t=k+4|0;u=k;c[m>>2]=a;c[n>>2]=b;c[o>>2]=d;c[p>>2]=e;c[q>>2]=f;c[r>>2]=g;c[s>>2]=h;c[c[m>>2]>>2]=0;if(!((c[q>>2]|0)!=0&(c[r>>2]|0)!=0)){c[l>>2]=32816;v=c[l>>2]|0;i=k;return v|0}c[t>>2]=qh(1,108,5)|0;if(c[t>>2]|0){c[u>>2]=rh(c[t>>2]|0,1)|0;Fn(c[u>>2]|0,c[n>>2]|0,c[o>>2]|0,c[p>>2]|0,c[q>>2]|0,c[r>>2]|0,c[s>>2]|0);c[c[m>>2]>>2]=c[t>>2];c[l>>2]=0;v=c[l>>2]|0;i=k;return v|0}else{c[l>>2]=Et()|0;v=c[l>>2]|0;i=k;return v|0}return 0}function Hn(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=c[d>>2];Oo(c[(c[e>>2]|0)+48+12>>2]|0);Dp(c[(c[e>>2]|0)+16>>2]|0);Dp(c[(c[e>>2]|0)+20>>2]|0);Dp(c[(c[e>>2]|0)+24>>2]|0);zn(c[(c[e>>2]|0)+28>>2]|0);Dp(c[(c[e>>2]|0)+32>>2]|0);Dp(c[(c[e>>2]|0)+36>>2]|0);zn(c[(c[e>>2]|0)+40>>2]|0);Dp(c[(c[e>>2]|0)+44>>2]|0);Dp(c[(c[e>>2]|0)+48+8>>2]|0);c[f>>2]=0;while(1){if((c[f>>2]|0)>>>0>=11)break;Dp(c[(c[e>>2]|0)+48+16+(c[f>>2]<<2)>>2]|0);c[f>>2]=(c[f>>2]|0)+1}i=b;return}function In(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;c[d>>2]=a;if(!(c[d>>2]|0)){i=b;return}Hn(c[d>>2]|0);vf(c[d>>2]|0);i=b;return}function Jn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=rh(c[g>>2]|0,1)|0;g=_h(c[f>>2]|0,c[k>>2]|0,c[h>>2]|0)|0;i=e;return g|0}function Kn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+12|0;g=e+8|0;h=e;c[f>>2]=a;c[g>>2]=b;c[e+4>>2]=d;c[h>>2]=rh(c[g>>2]|0,1)|0;g=$h(c[f>>2]|0,c[h>>2]|0)|0;i=e;return g|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;switch(c[c[h>>2]>>2]|0){case 0:{Mn(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}case 1:{Nn(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}case 2:{On(c[f>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}default:{i=e;return}}}function Mn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;if(vo(c[(c[g>>2]|0)+4>>2]|0,0)|0?vo(c[(c[g>>2]|0)+8>>2]|0,0)|0:0){d=(Tn(c[h>>2]|0)|0)!=0;b=(c[h>>2]|0)+48+16|0;if(d){Qn(c[b>>2]|0,c[(c[g>>2]|0)+8>>2]|0,c[h>>2]|0);Sn(c[(c[h>>2]|0)+48+16+12>>2]|0,c[c[g>>2]>>2]|0,c[(c[h>>2]|0)+48+16>>2]|0,c[h>>2]|0);d=c[(c[h>>2]|0)+48+16+12>>2]|0;a=c[(c[h>>2]|0)+48+16+12>>2]|0;k=Wp(3)|0;vn(d,a,k,c[h>>2]|0);Pn(c[(c[h>>2]|0)+48+16+4>>2]|0,c[c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]|0,c[h>>2]|0);i=e;return}function Pn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;fo(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0);wn(c[g>>2]|0,c[l>>2]|0);i=f;return}function Qn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;vn(c[f>>2]|0,c[g>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function Rn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;if((i|0)>=(j|0))$(16);f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;uo(c[f>>2]|0,c[g>>2]|0,1);wn(c[f>>2]|0,c[h>>2]|0);i=e;return}function Sn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[f>>2]=e;ho(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0);i=f;return}function Tn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;d=i;i=i+16|0;if((i|0)>=(j|0))$(16);e=d+4|0;f=d;c[e>>2]=b;if(a[(c[e>>2]|0)+48>>0]&1|0){g=c[e>>2]|0;h=g+48|0;k=h+4|0;l=c[k>>2]|0;i=d;return l|0}b=(c[e>>2]|0)+48|0;a[b>>0]=a[b>>0]&-2|1;c[f>>2]=Lp(c[(c[e>>2]|0)+16>>2]|0)|0;go(c[f>>2]|0,c[(c[e>>2]|0)+16>>2]|0,3);b=((wo(c[(c[e>>2]|0)+20>>2]|0,c[f>>2]|0)|0)!=0^1)&1;c[(c[e>>2]|0)+48+4>>2]=b;Dp(c[f>>2]|0);g=c[e>>2]|0;h=g+48|0;k=h+4|0;l=c[k>>2]|0;i=d;return l|0}function Un(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;So(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[(c[l>>2]|0)+16>>2]|0);i=f;return}function Vn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;f=i;i=i+16|0;if((i|0)>=(j|0))$(16);g=f+12|0;h=f+8|0;k=f+4|0;l=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;switch(c[c[l>>2]>>2]|0){case 0:{Wn(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}case 1:{Xn(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}case 2:{Yn(c[g>>2]|0,c[h>>2]|0,c[k>>2]|0,c[l>>2]|0);i=f;return}default:{i=f;return}}}function Wn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f+20|0;h=f+16|0;k=f+12|0;l=f+8|0;m=f+4|0;n=f;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=e;if(((wo(c[c[h>>2]>>2]|0,c[c[k>>2]>>2]|0)|0)==0?(wo(c[(c[h>>2]|0)+4>>2]|0,c[(c[k>>2]|0)+4>>2]|0)|0)==0:0)?(wo(c[(c[h>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|0);Sn(c[c[g>>2]>>2]|0,c[(c[l>>2]|0)+48+16+36>>2]|0,c[(c[l>>2]|0)+48+16+40>>2]|0,c[l>>2]|0);Rn(c[(c[l>>2]|0)+48+16+36>>2]|0,c[c[g>>2]>>2]|0,c[l>>2]|0);Sn(c[(c[l>>2]|0)+48+16+32>>2]|0,c[(c[l>>2]|0)+48+16+40>>2]|0,c[(c[l>>2]|0)+48+16+36>>2]|0,c[l>>2]|0);vn(c[(c[l>>2]|0)+48+16+32>>2]|0,c[(c[l>>2]|0)+48+16+32>>2]|0,c[(c[l>>2]|0)+48+16+20>>2]|0,c[l>>2]|0);k=c[(c[l>>2]|0)+48+16+36>>2]|0;e=c[(c[l>>2]|0)+48+16+8>>2]|0;n=Wp(3)|0;Un(k,e,n,c[l>>2]|0);vn(c[(c[l>>2]|0)+48+16+36>>2]|0,c[(c[l>>2]|0)+48+16+36>>2]|0,c[(c[l>>2]|0)+48+16+28>>2]|0,c[l>>2]|0);Sn(c[(c[g>>2]|0)+4>>2]|0,c[(c[l>>2]|0)+48+16+32>>2]|0,c[(c[l>>2]|0)+48+16+36>>2]|0,c[l>>2]|0);n=c[(c[g>>2]|0)+4>>2]|0;e=c[(c[g>>2]|0)+4>>2]|0;k=Zn(c[l>>2]|0)|0;vn(n,e,k,c[l>>2]|0);i=f;return}k=(vo(c[m+20>>2]|0,0)|0)!=0;m=c[g>>2]|0;if(k){Op(c[m>>2]|0,1)|0;Op(c[(c[g>>2]|0)+4>>2]|0,1)|0;Op(c[(c[g>>2]|0)+8>>2]|0,0)|0;i=f;return}else{Ln(m,c[h>>2]|0,c[l>>2]|0);i=f;return}}function Xn(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+32|0;if((i|0)>=(j|0))$(32);g=f;c[f+20>>2]=a;c[f+16>>2]=b;c[f+12>>2]=d;c[f+8>>2]=e;c[g>>2]=45824;c[g+4>>2]=45707;We(45775,g)}
-function Kw(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Ba=0,Ca=0,Da=0;b=i;i=i+16|0;if((i|0)>=(j|0))$(16);d=b;do if(a>>>0<245){e=a>>>0<11?16:a+11&-8;f=e>>>3;g=c[17827]|0;h=g>>>f;if(h&3|0){k=(h&1^1)+f|0;l=71348+(k<<1<<2)|0;m=l+8|0;n=c[m>>2]|0;o=n+8|0;p=c[o>>2]|0;do if((l|0)!=(p|0)){if(p>>>0<(c[17831]|0)>>>0)Aa();q=p+12|0;if((c[q>>2]|0)==(n|0)){c[q>>2]=l;c[m>>2]=p;break}else Aa()}else c[17827]=g&~(1<<k);while(0);p=k<<3;c[n+4>>2]=p|3;m=n+p+4|0;c[m>>2]=c[m>>2]|1;r=o;i=b;return r|0}m=c[17829]|0;if(e>>>0>m>>>0){if(h|0){p=2<<f;l=h<<f&(p|0-p);p=(l&0-l)+-1|0;l=p>>>12&16;q=p>>>l;p=q>>>5&8;s=q>>>p;q=s>>>2&4;t=s>>>q;s=t>>>1&2;u=t>>>s;t=u>>>1&1;v=(p|l|q|s|t)+(u>>>t)|0;t=71348+(v<<1<<2)|0;u=t+8|0;s=c[u>>2]|0;q=s+8|0;l=c[q>>2]|0;do if((t|0)!=(l|0)){if(l>>>0<(c[17831]|0)>>>0)Aa();p=l+12|0;if((c[p>>2]|0)==(s|0)){c[p>>2]=t;c[u>>2]=l;w=g;break}else Aa()}else{p=g&~(1<<v);c[17827]=p;w=p}while(0);l=(v<<3)-e|0;c[s+4>>2]=e|3;u=s+e|0;c[u+4>>2]=l|1;c[u+l>>2]=l;if(m|0){t=c[17832]|0;f=m>>>3;h=71348+(f<<1<<2)|0;o=1<<f;if(w&o){f=h+8|0;n=c[f>>2]|0;if(n>>>0<(c[17831]|0)>>>0)Aa();else{x=n;y=f}}else{c[17827]=w|o;x=h;y=h+8|0}c[y>>2]=t;c[x+12>>2]=t;c[t+8>>2]=x;c[t+12>>2]=h}c[17829]=l;c[17832]=u;r=q;i=b;return r|0}u=c[17828]|0;if(u){l=(u&0-u)+-1|0;h=l>>>12&16;t=l>>>h;l=t>>>5&8;o=t>>>l;t=o>>>2&4;f=o>>>t;o=f>>>1&2;n=f>>>o;f=n>>>1&1;k=c[71612+((l|h|t|o|f)+(n>>>f)<<2)>>2]|0;f=k;n=k;o=(c[k+4>>2]&-8)-e|0;while(1){k=c[f+16>>2]|0;if(!k){t=c[f+20>>2]|0;if(!t)break;else z=t}else z=k;k=(c[z+4>>2]&-8)-e|0;t=k>>>0<o>>>0;f=z;n=t?z:n;o=t?k:o}f=c[17831]|0;if(n>>>0<f>>>0)Aa();q=n+e|0;if(n>>>0>=q>>>0)Aa();s=c[n+24>>2]|0;v=c[n+12>>2]|0;do if((v|0)==(n|0)){k=n+20|0;t=c[k>>2]|0;if(!t){h=n+16|0;l=c[h>>2]|0;if(!l){A=0;break}else{B=l;C=h}}else{B=t;C=k}while(1){k=B+20|0;t=c[k>>2]|0;if(t|0){B=t;C=k;continue}k=B+16|0;t=c[k>>2]|0;if(!t)break;else{B=t;C=k}}if(C>>>0<f>>>0)Aa();else{c[C>>2]=0;A=B;break}}else{k=c[n+8>>2]|0;if(k>>>0<f>>>0)Aa();t=k+12|0;if((c[t>>2]|0)!=(n|0))Aa();h=v+8|0;if((c[h>>2]|0)==(n|0)){c[t>>2]=v;c[h>>2]=k;A=v;break}else Aa()}while(0);do if(s|0){v=c[n+28>>2]|0;f=71612+(v<<2)|0;if((n|0)==(c[f>>2]|0)){c[f>>2]=A;if(!A){c[17828]=u&~(1<<v);break}}else{if(s>>>0<(c[17831]|0)>>>0)Aa();v=s+16|0;if((c[v>>2]|0)==(n|0))c[v>>2]=A;else c[s+20>>2]=A;if(!A)break}v=c[17831]|0;if(A>>>0<v>>>0)Aa();c[A+24>>2]=s;f=c[n+16>>2]|0;do if(f|0)if(f>>>0<v>>>0)Aa();else{c[A+16>>2]=f;c[f+24>>2]=A;break}while(0);f=c[n+20>>2]|0;if(f|0)if(f>>>0<(c[17831]|0)>>>0)Aa();else{c[A+20>>2]=f;c[f+24>>2]=A;break}}while(0);if(o>>>0<16){s=o+e|0;c[n+4>>2]=s|3;u=n+s+4|0;c[u>>2]=c[u>>2]|1}else{c[n+4>>2]=e|3;c[q+4>>2]=o|1;c[q+o>>2]=o;if(m|0){u=c[17832]|0;s=m>>>3;f=71348+(s<<1<<2)|0;v=1<<s;if(g&v){s=f+8|0;k=c[s>>2]|0;if(k>>>0<(c[17831]|0)>>>0)Aa();else{D=k;E=s}}else{c[17827]=g|v;D=f;E=f+8|0}c[E>>2]=u;c[D+12>>2]=u;c[u+8>>2]=D;c[u+12>>2]=f}c[17829]=o;c[17832]=q}r=n+8|0;i=b;return r|0}else F=e}else F=e}else if(a>>>0<=4294967231){f=a+11|0;u=f&-8;v=c[17828]|0;if(v){s=0-u|0;k=f>>>8;if(k)if(u>>>0>16777215)G=31;else{f=(k+1048320|0)>>>16&8;h=k<<f;k=(h+520192|0)>>>16&4;t=h<<k;h=(t+245760|0)>>>16&2;l=14-(k|f|h)+(t<<h>>>15)|0;G=u>>>(l+7|0)&1|l<<1}else G=0;l=c[71612+(G<<2)>>2]|0;a:do if(!l){H=0;I=0;J=s;K=86}else{h=0;t=s;f=l;k=u<<((G|0)==31?0:25-(G>>>1)|0);p=0;while(1){L=(c[f+4>>2]&-8)-u|0;if(L>>>0<t>>>0)if(!L){M=f;N=0;O=f;K=90;break a}else{P=f;Q=L}else{P=h;Q=t}L=c[f+20>>2]|0;f=c[f+16+(k>>>31<<2)>>2]|0;R=(L|0)==0|(L|0)==(f|0)?p:L;L=(f|0)==0;if(L){H=R;I=P;J=Q;K=86;break}else{h=P;t=Q;k=k<<(L&1^1);p=R}}}while(0);if((K|0)==86){if((H|0)==0&(I|0)==0){l=2<<G;s=v&(l|0-l);if(!s){F=u;break}l=(s&0-s)+-1|0;s=l>>>12&16;e=l>>>s;l=e>>>5&8;n=e>>>l;e=n>>>2&4;q=n>>>e;n=q>>>1&2;o=q>>>n;q=o>>>1&1;S=c[71612+((l|s|e|n|q)+(o>>>q)<<2)>>2]|0}else S=H;if(!S){T=I;U=J}else{M=I;N=J;O=S;K=90}}if((K|0)==90)while(1){K=0;q=(c[O+4>>2]&-8)-u|0;o=q>>>0<N>>>0;n=o?q:N;q=o?O:M;o=c[O+16>>2]|0;if(o|0){M=q;N=n;O=o;K=90;continue}O=c[O+20>>2]|0;if(!O){T=q;U=n;break}else{M=q;N=n;K=90}}if((T|0)!=0?U>>>0<((c[17829]|0)-u|0)>>>0:0){n=c[17831]|0;if(T>>>0<n>>>0)Aa();q=T+u|0;if(T>>>0>=q>>>0)Aa();o=c[T+24>>2]|0;e=c[T+12>>2]|0;do if((e|0)==(T|0)){s=T+20|0;l=c[s>>2]|0;if(!l){g=T+16|0;m=c[g>>2]|0;if(!m){V=0;break}else{W=m;X=g}}else{W=l;X=s}while(1){s=W+20|0;l=c[s>>2]|0;if(l|0){W=l;X=s;continue}s=W+16|0;l=c[s>>2]|0;if(!l)break;else{W=l;X=s}}if(X>>>0<n>>>0)Aa();else{c[X>>2]=0;V=W;break}}else{s=c[T+8>>2]|0;if(s>>>0<n>>>0)Aa();l=s+12|0;if((c[l>>2]|0)!=(T|0))Aa();g=e+8|0;if((c[g>>2]|0)==(T|0)){c[l>>2]=e;c[g>>2]=s;V=e;break}else Aa()}while(0);do if(o){e=c[T+28>>2]|0;n=71612+(e<<2)|0;if((T|0)==(c[n>>2]|0)){c[n>>2]=V;if(!V){n=v&~(1<<e);c[17828]=n;Y=n;break}}else{if(o>>>0<(c[17831]|0)>>>0)Aa();n=o+16|0;if((c[n>>2]|0)==(T|0))c[n>>2]=V;else c[o+20>>2]=V;if(!V){Y=v;break}}n=c[17831]|0;if(V>>>0<n>>>0)Aa();c[V+24>>2]=o;e=c[T+16>>2]|0;do if(e|0)if(e>>>0<n>>>0)Aa();else{c[V+16>>2]=e;c[e+24>>2]=V;break}while(0);e=c[T+20>>2]|0;if(e)if(e>>>0<(c[17831]|0)>>>0)Aa();else{c[V+20>>2]=e;c[e+24>>2]=V;Y=v;break}else Y=v}else Y=v;while(0);do if(U>>>0>=16){c[T+4>>2]=u|3;c[q+4>>2]=U|1;c[q+U>>2]=U;v=U>>>3;if(U>>>0<256){o=71348+(v<<1<<2)|0;e=c[17827]|0;n=1<<v;if(e&n){v=o+8|0;s=c[v>>2]|0;if(s>>>0<(c[17831]|0)>>>0)Aa();else{Z=s;_=v}}else{c[17827]=e|n;Z=o;_=o+8|0}c[_>>2]=q;c[Z+12>>2]=q;c[q+8>>2]=Z;c[q+12>>2]=o;break}o=U>>>8;if(o)if(U>>>0>16777215)aa=31;else{n=(o+1048320|0)>>>16&8;e=o<<n;o=(e+520192|0)>>>16&4;v=e<<o;e=(v+245760|0)>>>16&2;s=14-(o|n|e)+(v<<e>>>15)|0;aa=U>>>(s+7|0)&1|s<<1}else aa=0;s=71612+(aa<<2)|0;c[q+28>>2]=aa;e=q+16|0;c[e+4>>2]=0;c[e>>2]=0;e=1<<aa;if(!(Y&e)){c[17828]=Y|e;c[s>>2]=q;c[q+24>>2]=s;c[q+12>>2]=q;c[q+8>>2]=q;break}e=U<<((aa|0)==31?0:25-(aa>>>1)|0);v=c[s>>2]|0;while(1){if((c[v+4>>2]&-8|0)==(U|0)){K=148;break}ba=v+16+(e>>>31<<2)|0;s=c[ba>>2]|0;if(!s){K=145;break}else{e=e<<1;v=s}}if((K|0)==145)if(ba>>>0<(c[17831]|0)>>>0)Aa();else{c[ba>>2]=q;c[q+24>>2]=v;c[q+12>>2]=q;c[q+8>>2]=q;break}else if((K|0)==148){e=v+8|0;s=c[e>>2]|0;n=c[17831]|0;if(s>>>0>=n>>>0&v>>>0>=n>>>0){c[s+12>>2]=q;c[e>>2]=q;c[q+8>>2]=s;c[q+12>>2]=v;c[q+24>>2]=0;break}else Aa()}}else{s=U+u|0;c[T+4>>2]=s|3;e=T+s+4|0;c[e>>2]=c[e>>2]|1}while(0);r=T+8|0;i=b;return r|0}else F=u}else F=u}else F=-1;while(0);T=c[17829]|0;if(T>>>0>=F>>>0){U=T-F|0;ba=c[17832]|0;if(U>>>0>15){aa=ba+F|0;c[17832]=aa;c[17829]=U;c[aa+4>>2]=U|1;c[aa+U>>2]=U;c[ba+4>>2]=F|3}else{c[17829]=0;c[17832]=0;c[ba+4>>2]=T|3;U=ba+T+4|0;c[U>>2]=c[U>>2]|1}r=ba+8|0;i=b;return r|0}ba=c[17830]|0;if(ba>>>0>F>>>0){U=ba-F|0;c[17830]=U;T=c[17833]|0;aa=T+F|0;c[17833]=aa;c[aa+4>>2]=U|1;c[T+4>>2]=F|3;r=T+8|0;i=b;return r|0}if(!(c[17945]|0)){c[17947]=4096;c[17946]=4096;c[17948]=-1;c[17949]=-1;c[17950]=0;c[17938]=0;T=d&-16^1431655768;c[d>>2]=T;c[17945]=T;ca=4096}else ca=c[17947]|0;T=F+48|0;d=F+47|0;U=ca+d|0;aa=0-ca|0;ca=U&aa;if(ca>>>0<=F>>>0){r=0;i=b;return r|0}Y=c[17937]|0;if(Y|0?(Z=c[17935]|0,_=Z+ca|0,_>>>0<=Z>>>0|_>>>0>Y>>>0):0){r=0;i=b;return r|0}b:do if(!(c[17938]&4)){Y=c[17833]|0;c:do if(Y){_=71756;while(1){Z=c[_>>2]|0;if(Z>>>0<=Y>>>0?(da=_+4|0,(Z+(c[da>>2]|0)|0)>>>0>Y>>>0):0)break;Z=c[_+8>>2]|0;if(!Z){K=172;break c}else _=Z}v=U-ba&aa;if(v>>>0<2147483647){Z=fx(v|0)|0;if((Z|0)==((c[_>>2]|0)+(c[da>>2]|0)|0)){if((Z|0)!=(-1|0)){ea=v;fa=Z;K=190;break b}}else{ga=Z;ha=v;K=180}}}else K=172;while(0);do if(((K|0)==172?(Y=fx(0)|0,(Y|0)!=(-1|0)):0)?(u=Y,v=c[17946]|0,Z=v+-1|0,V=((Z&u|0)==0?0:(Z+u&0-v)-u|0)+ca|0,u=c[17935]|0,v=V+u|0,V>>>0>F>>>0&V>>>0<2147483647):0){Z=c[17937]|0;if(Z|0?v>>>0<=u>>>0|v>>>0>Z>>>0:0)break;Z=fx(V|0)|0;if((Z|0)==(Y|0)){ea=V;fa=Y;K=190;break b}else{ga=Z;ha=V;K=180}}while(0);d:do if((K|0)==180){V=0-ha|0;do if(T>>>0>ha>>>0&(ha>>>0<2147483647&(ga|0)!=(-1|0))?(Z=c[17947]|0,Y=d-ha+Z&0-Z,Y>>>0<2147483647):0)if((fx(Y|0)|0)==(-1|0)){fx(V|0)|0;break d}else{ia=Y+ha|0;break}else ia=ha;while(0);if((ga|0)!=(-1|0)){ea=ia;fa=ga;K=190;break b}}while(0);c[17938]=c[17938]|4;K=187}else K=187;while(0);if((((K|0)==187?ca>>>0<2147483647:0)?(ga=fx(ca|0)|0,ca=fx(0)|0,ga>>>0<ca>>>0&((ga|0)!=(-1|0)&(ca|0)!=(-1|0))):0)?(ia=ca-ga|0,ia>>>0>(F+40|0)>>>0):0){ea=ia;fa=ga;K=190}if((K|0)==190){ga=(c[17935]|0)+ea|0;c[17935]=ga;if(ga>>>0>(c[17936]|0)>>>0)c[17936]=ga;ga=c[17833]|0;do if(ga){ia=71756;while(1){ja=c[ia>>2]|0;ka=ia+4|0;la=c[ka>>2]|0;if((fa|0)==(ja+la|0)){K=200;break}ca=c[ia+8>>2]|0;if(!ca)break;else ia=ca}if(((K|0)==200?(c[ia+12>>2]&8|0)==0:0)?ga>>>0<fa>>>0&ga>>>0>=ja>>>0:0){c[ka>>2]=la+ea;ca=ga+8|0;ha=(ca&7|0)==0?0:0-ca&7;ca=ga+ha|0;d=ea-ha+(c[17830]|0)|0;c[17833]=ca;c[17830]=d;c[ca+4>>2]=d|1;c[ca+d+4>>2]=40;c[17834]=c[17949];break}d=c[17831]|0;if(fa>>>0<d>>>0){c[17831]=fa;ma=fa}else ma=d;d=fa+ea|0;ca=71756;while(1){if((c[ca>>2]|0)==(d|0)){K=208;break}ha=c[ca+8>>2]|0;if(!ha){na=71756;break}else ca=ha}if((K|0)==208)if(!(c[ca+12>>2]&8)){c[ca>>2]=fa;ia=ca+4|0;c[ia>>2]=(c[ia>>2]|0)+ea;ia=fa+8|0;ha=fa+((ia&7|0)==0?0:0-ia&7)|0;ia=d+8|0;T=d+((ia&7|0)==0?0:0-ia&7)|0;ia=ha+F|0;da=T-ha-F|0;c[ha+4>>2]=F|3;do if((T|0)!=(ga|0)){if((T|0)==(c[17832]|0)){aa=(c[17829]|0)+da|0;c[17829]=aa;c[17832]=ia;c[ia+4>>2]=aa|1;c[ia+aa>>2]=aa;break}aa=c[T+4>>2]|0;if((aa&3|0)==1){ba=aa&-8;U=aa>>>3;e:do if(aa>>>0>=256){V=c[T+24>>2]|0;_=c[T+12>>2]|0;do if((_|0)==(T|0)){Y=T+16|0;Z=Y+4|0;v=c[Z>>2]|0;if(!v){u=c[Y>>2]|0;if(!u){oa=0;break}else{pa=u;qa=Y}}else{pa=v;qa=Z}while(1){Z=pa+20|0;v=c[Z>>2]|0;if(v|0){pa=v;qa=Z;continue}Z=pa+16|0;v=c[Z>>2]|0;if(!v)break;else{pa=v;qa=Z}}if(qa>>>0<ma>>>0)Aa();else{c[qa>>2]=0;oa=pa;break}}else{Z=c[T+8>>2]|0;if(Z>>>0<ma>>>0)Aa();v=Z+12|0;if((c[v>>2]|0)!=(T|0))Aa();Y=_+8|0;if((c[Y>>2]|0)==(T|0)){c[v>>2]=_;c[Y>>2]=Z;oa=_;break}else Aa()}while(0);if(!V)break;_=c[T+28>>2]|0;Z=71612+(_<<2)|0;do if((T|0)!=(c[Z>>2]|0)){if(V>>>0<(c[17831]|0)>>>0)Aa();Y=V+16|0;if((c[Y>>2]|0)==(T|0))c[Y>>2]=oa;else c[V+20>>2]=oa;if(!oa)break e}else{c[Z>>2]=oa;if(oa|0)break;c[17828]=c[17828]&~(1<<_);break e}while(0);_=c[17831]|0;if(oa>>>0<_>>>0)Aa();c[oa+24>>2]=V;Z=T+16|0;Y=c[Z>>2]|0;do if(Y|0)if(Y>>>0<_>>>0)Aa();else{c[oa+16>>2]=Y;c[Y+24>>2]=oa;break}while(0);Y=c[Z+4>>2]|0;if(!Y)break;if(Y>>>0<(c[17831]|0)>>>0)Aa();else{c[oa+20>>2]=Y;c[Y+24>>2]=oa;break}}else{Y=c[T+8>>2]|0;_=c[T+12>>2]|0;V=71348+(U<<1<<2)|0;do if((Y|0)!=(V|0)){if(Y>>>0<ma>>>0)Aa();if((c[Y+12>>2]|0)==(T|0))break;Aa()}while(0);if((_|0)==(Y|0)){c[17827]=c[17827]&~(1<<U);break}do if((_|0)==(V|0))ra=_+8|0;else{if(_>>>0<ma>>>0)Aa();Z=_+8|0;if((c[Z>>2]|0)==(T|0)){ra=Z;break}Aa()}while(0);c[Y+12>>2]=_;c[ra>>2]=Y}while(0);sa=T+ba|0;ta=ba+da|0}else{sa=T;ta=da}U=sa+4|0;c[U>>2]=c[U>>2]&-2;c[ia+4>>2]=ta|1;c[ia+ta>>2]=ta;U=ta>>>3;if(ta>>>0<256){aa=71348+(U<<1<<2)|0;V=c[17827]|0;Z=1<<U;do if(!(V&Z)){c[17827]=V|Z;ua=aa;va=aa+8|0}else{U=aa+8|0;v=c[U>>2]|0;if(v>>>0>=(c[17831]|0)>>>0){ua=v;va=U;break}Aa()}while(0);c[va>>2]=ia;c[ua+12>>2]=ia;c[ia+8>>2]=ua;c[ia+12>>2]=aa;break}Z=ta>>>8;do if(!Z)wa=0;else{if(ta>>>0>16777215){wa=31;break}V=(Z+1048320|0)>>>16&8;ba=Z<<V;U=(ba+520192|0)>>>16&4;v=ba<<U;ba=(v+245760|0)>>>16&2;u=14-(U|V|ba)+(v<<ba>>>15)|0;wa=ta>>>(u+7|0)&1|u<<1}while(0);Z=71612+(wa<<2)|0;c[ia+28>>2]=wa;aa=ia+16|0;c[aa+4>>2]=0;c[aa>>2]=0;aa=c[17828]|0;u=1<<wa;if(!(aa&u)){c[17828]=aa|u;c[Z>>2]=ia;c[ia+24>>2]=Z;c[ia+12>>2]=ia;c[ia+8>>2]=ia;break}u=ta<<((wa|0)==31?0:25-(wa>>>1)|0);aa=c[Z>>2]|0;while(1){if((c[aa+4>>2]&-8|0)==(ta|0)){K=278;break}xa=aa+16+(u>>>31<<2)|0;Z=c[xa>>2]|0;if(!Z){K=275;break}else{u=u<<1;aa=Z}}if((K|0)==275)if(xa>>>0<(c[17831]|0)>>>0)Aa();else{c[xa>>2]=ia;c[ia+24>>2]=aa;c[ia+12>>2]=ia;c[ia+8>>2]=ia;break}else if((K|0)==278){u=aa+8|0;Z=c[u>>2]|0;ba=c[17831]|0;if(Z>>>0>=ba>>>0&aa>>>0>=ba>>>0){c[Z+12>>2]=ia;c[u>>2]=ia;c[ia+8>>2]=Z;c[ia+12>>2]=aa;c[ia+24>>2]=0;break}else Aa()}}else{Z=(c[17830]|0)+da|0;c[17830]=Z;c[17833]=ia;c[ia+4>>2]=Z|1}while(0);r=ha+8|0;i=b;return r|0}else na=71756;while(1){ia=c[na>>2]|0;if(ia>>>0<=ga>>>0?(ya=ia+(c[na+4>>2]|0)|0,ya>>>0>ga>>>0):0)break;na=c[na+8>>2]|0}ha=ya+-47|0;ia=ha+8|0;da=ha+((ia&7|0)==0?0:0-ia&7)|0;ia=ga+16|0;ha=da>>>0<ia>>>0?ga:da;da=ha+8|0;T=fa+8|0;d=(T&7|0)==0?0:0-T&7;T=fa+d|0;ca=ea+-40-d|0;c[17833]=T;c[17830]=ca;c[T+4>>2]=ca|1;c[T+ca+4>>2]=40;c[17834]=c[17949];ca=ha+4|0;c[ca>>2]=27;c[da>>2]=c[17939];c[da+4>>2]=c[17940];c[da+8>>2]=c[17941];c[da+12>>2]=c[17942];c[17939]=fa;c[17940]=ea;c[17942]=0;c[17941]=da;da=ha+24|0;do{da=da+4|0;c[da>>2]=7}while((da+4|0)>>>0<ya>>>0);if((ha|0)!=(ga|0)){da=ha-ga|0;c[ca>>2]=c[ca>>2]&-2;c[ga+4>>2]=da|1;c[ha>>2]=da;T=da>>>3;if(da>>>0<256){d=71348+(T<<1<<2)|0;Z=c[17827]|0;u=1<<T;if(Z&u){T=d+8|0;ba=c[T>>2]|0;if(ba>>>0<(c[17831]|0)>>>0)Aa();else{za=ba;Ba=T}}else{c[17827]=Z|u;za=d;Ba=d+8|0}c[Ba>>2]=ga;c[za+12>>2]=ga;c[ga+8>>2]=za;c[ga+12>>2]=d;break}d=da>>>8;if(d)if(da>>>0>16777215)Ca=31;else{u=(d+1048320|0)>>>16&8;Z=d<<u;d=(Z+520192|0)>>>16&4;T=Z<<d;Z=(T+245760|0)>>>16&2;ba=14-(d|u|Z)+(T<<Z>>>15)|0;Ca=da>>>(ba+7|0)&1|ba<<1}else Ca=0;ba=71612+(Ca<<2)|0;c[ga+28>>2]=Ca;c[ga+20>>2]=0;c[ia>>2]=0;Z=c[17828]|0;T=1<<Ca;if(!(Z&T)){c[17828]=Z|T;c[ba>>2]=ga;c[ga+24>>2]=ba;c[ga+12>>2]=ga;c[ga+8>>2]=ga;break}T=da<<((Ca|0)==31?0:25-(Ca>>>1)|0);Z=c[ba>>2]|0;while(1){if((c[Z+4>>2]&-8|0)==(da|0)){K=304;break}Da=Z+16+(T>>>31<<2)|0;ba=c[Da>>2]|0;if(!ba){K=301;break}else{T=T<<1;Z=ba}}if((K|0)==301)if(Da>>>0<(c[17831]|0)>>>0)Aa();else{c[Da>>2]=ga;c[ga+24>>2]=Z;c[ga+12>>2]=ga;c[ga+8>>2]=ga;break}else if((K|0)==304){T=Z+8|0;da=c[T>>2]|0;ia=c[17831]|0;if(da>>>0>=ia>>>0&Z>>>0>=ia>>>0){c[da+12>>2]=ga;c[T>>2]=ga;c[ga+8>>2]=da;c[ga+12>>2]=Z;c[ga+24>>2]=0;break}else Aa()}}}else{da=c[17831]|0;if((da|0)==0|fa>>>0<da>>>0)c[17831]=fa;c[17939]=fa;c[17940]=ea;c[17942]=0;c[17836]=c[17945];c[17835]=-1;da=0;do{T=71348+(da<<1<<2)|0;c[T+12>>2]=T;c[T+8>>2]=T;da=da+1|0}while((da|0)!=32);da=fa+8|0;Z=(da&7|0)==0?0:0-da&7;da=fa+Z|0;T=ea+-40-Z|0;c[17833]=da;c[17830]=T;c[da+4>>2]=T|1;c[da+T+4>>2]=40;c[17834]=c[17949]}while(0);ea=c[17830]|0;if(ea>>>0>F>>>0){fa=ea-F|0;c[17830]=fa;ea=c[17833]|0;ga=ea+F|0;c[17833]=ga;c[ga+4>>2]=fa|1;c[ea+4>>2]=F|3;r=ea+8|0;i=b;return r|0}}c[(xu()|0)>>2]=12;r=0;i=b;return r|0}function Lw(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0;if(!a)return;b=a+-8|0;d=c[17831]|0;if(b>>>0<d>>>0)Aa();e=c[a+-4>>2]|0;a=e&3;if((a|0)==1)Aa();f=e&-8;g=b+f|0;do if(!(e&1)){h=c[b>>2]|0;if(!a)return;i=b+(0-h)|0;j=h+f|0;if(i>>>0<d>>>0)Aa();if((i|0)==(c[17832]|0)){k=g+4|0;l=c[k>>2]|0;if((l&3|0)!=3){m=i;n=j;break}c[17829]=j;c[k>>2]=l&-2;c[i+4>>2]=j|1;c[i+j>>2]=j;return}l=h>>>3;if(h>>>0<256){h=c[i+8>>2]|0;k=c[i+12>>2]|0;o=71348+(l<<1<<2)|0;if((h|0)!=(o|0)){if(h>>>0<d>>>0)Aa();if((c[h+12>>2]|0)!=(i|0))Aa()}if((k|0)==(h|0)){c[17827]=c[17827]&~(1<<l);m=i;n=j;break}if((k|0)!=(o|0)){if(k>>>0<d>>>0)Aa();o=k+8|0;if((c[o>>2]|0)==(i|0))p=o;else Aa()}else p=k+8|0;c[h+12>>2]=k;c[p>>2]=h;m=i;n=j;break}h=c[i+24>>2]|0;k=c[i+12>>2]|0;do if((k|0)==(i|0)){o=i+16|0;l=o+4|0;q=c[l>>2]|0;if(!q){r=c[o>>2]|0;if(!r){s=0;break}else{t=r;u=o}}else{t=q;u=l}while(1){l=t+20|0;q=c[l>>2]|0;if(q|0){t=q;u=l;continue}l=t+16|0;q=c[l>>2]|0;if(!q)break;else{t=q;u=l}}if(u>>>0<d>>>0)Aa();else{c[u>>2]=0;s=t;break}}else{l=c[i+8>>2]|0;if(l>>>0<d>>>0)Aa();q=l+12|0;if((c[q>>2]|0)!=(i|0))Aa();o=k+8|0;if((c[o>>2]|0)==(i|0)){c[q>>2]=k;c[o>>2]=l;s=k;break}else Aa()}while(0);if(h){k=c[i+28>>2]|0;l=71612+(k<<2)|0;if((i|0)==(c[l>>2]|0)){c[l>>2]=s;if(!s){c[17828]=c[17828]&~(1<<k);m=i;n=j;break}}else{if(h>>>0<(c[17831]|0)>>>0)Aa();k=h+16|0;if((c[k>>2]|0)==(i|0))c[k>>2]=s;else c[h+20>>2]=s;if(!s){m=i;n=j;break}}k=c[17831]|0;if(s>>>0<k>>>0)Aa();c[s+24>>2]=h;l=i+16|0;o=c[l>>2]|0;do if(o|0)if(o>>>0<k>>>0)Aa();else{c[s+16>>2]=o;c[o+24>>2]=s;break}while(0);o=c[l+4>>2]|0;if(o)if(o>>>0<(c[17831]|0)>>>0)Aa();else{c[s+20>>2]=o;c[o+24>>2]=s;m=i;n=j;break}else{m=i;n=j}}else{m=i;n=j}}else{m=b;n=f}while(0);if(m>>>0>=g>>>0)Aa();f=g+4|0;b=c[f>>2]|0;if(!(b&1))Aa();if(!(b&2)){if((g|0)==(c[17833]|0)){s=(c[17830]|0)+n|0;c[17830]=s;c[17833]=m;c[m+4>>2]=s|1;if((m|0)!=(c[17832]|0))return;c[17832]=0;c[17829]=0;return}if((g|0)==(c[17832]|0)){s=(c[17829]|0)+n|0;c[17829]=s;c[17832]=m;c[m+4>>2]=s|1;c[m+s>>2]=s;return}s=(b&-8)+n|0;d=b>>>3;do if(b>>>0>=256){t=c[g+24>>2]|0;u=c[g+12>>2]|0;do if((u|0)==(g|0)){p=g+16|0;a=p+4|0;e=c[a>>2]|0;if(!e){o=c[p>>2]|0;if(!o){v=0;break}else{w=o;x=p}}else{w=e;x=a}while(1){a=w+20|0;e=c[a>>2]|0;if(e|0){w=e;x=a;continue}a=w+16|0;e=c[a>>2]|0;if(!e)break;else{w=e;x=a}}if(x>>>0<(c[17831]|0)>>>0)Aa();else{c[x>>2]=0;v=w;break}}else{a=c[g+8>>2]|0;if(a>>>0<(c[17831]|0)>>>0)Aa();e=a+12|0;if((c[e>>2]|0)!=(g|0))Aa();p=u+8|0;if((c[p>>2]|0)==(g|0)){c[e>>2]=u;c[p>>2]=a;v=u;break}else Aa()}while(0);if(t|0){u=c[g+28>>2]|0;j=71612+(u<<2)|0;if((g|0)==(c[j>>2]|0)){c[j>>2]=v;if(!v){c[17828]=c[17828]&~(1<<u);break}}else{if(t>>>0<(c[17831]|0)>>>0)Aa();u=t+16|0;if((c[u>>2]|0)==(g|0))c[u>>2]=v;else c[t+20>>2]=v;if(!v)break}u=c[17831]|0;if(v>>>0<u>>>0)Aa();c[v+24>>2]=t;j=g+16|0;i=c[j>>2]|0;do if(i|0)if(i>>>0<u>>>0)Aa();else{c[v+16>>2]=i;c[i+24>>2]=v;break}while(0);i=c[j+4>>2]|0;if(i|0)if(i>>>0<(c[17831]|0)>>>0)Aa();else{c[v+20>>2]=i;c[i+24>>2]=v;break}}}else{i=c[g+8>>2]|0;u=c[g+12>>2]|0;t=71348+(d<<1<<2)|0;if((i|0)!=(t|0)){if(i>>>0<(c[17831]|0)>>>0)Aa();if((c[i+12>>2]|0)!=(g|0))Aa()}if((u|0)==(i|0)){c[17827]=c[17827]&~(1<<d);break}if((u|0)!=(t|0)){if(u>>>0<(c[17831]|0)>>>0)Aa();t=u+8|0;if((c[t>>2]|0)==(g|0))y=t;else Aa()}else y=u+8|0;c[i+12>>2]=u;c[y>>2]=i}while(0);c[m+4>>2]=s|1;c[m+s>>2]=s;if((m|0)==(c[17832]|0)){c[17829]=s;return}else z=s}else{c[f>>2]=b&-2;c[m+4>>2]=n|1;c[m+n>>2]=n;z=n}n=z>>>3;if(z>>>0<256){b=71348+(n<<1<<2)|0;f=c[17827]|0;s=1<<n;if(f&s){n=b+8|0;y=c[n>>2]|0;if(y>>>0<(c[17831]|0)>>>0)Aa();else{A=y;B=n}}else{c[17827]=f|s;A=b;B=b+8|0}c[B>>2]=m;c[A+12>>2]=m;c[m+8>>2]=A;c[m+12>>2]=b;return}b=z>>>8;if(b)if(z>>>0>16777215)C=31;else{A=(b+1048320|0)>>>16&8;B=b<<A;b=(B+520192|0)>>>16&4;s=B<<b;B=(s+245760|0)>>>16&2;f=14-(b|A|B)+(s<<B>>>15)|0;C=z>>>(f+7|0)&1|f<<1}else C=0;f=71612+(C<<2)|0;c[m+28>>2]=C;c[m+20>>2]=0;c[m+16>>2]=0;B=c[17828]|0;s=1<<C;do if(B&s){A=z<<((C|0)==31?0:25-(C>>>1)|0);b=c[f>>2]|0;while(1){if((c[b+4>>2]&-8|0)==(z|0)){D=130;break}E=b+16+(A>>>31<<2)|0;n=c[E>>2]|0;if(!n){D=127;break}else{A=A<<1;b=n}}if((D|0)==127)if(E>>>0<(c[17831]|0)>>>0)Aa();else{c[E>>2]=m;c[m+24>>2]=b;c[m+12>>2]=m;c[m+8>>2]=m;break}else if((D|0)==130){A=b+8|0;j=c[A>>2]|0;n=c[17831]|0;if(j>>>0>=n>>>0&b>>>0>=n>>>0){c[j+12>>2]=m;c[A>>2]=m;c[m+8>>2]=j;c[m+12>>2]=b;c[m+24>>2]=0;break}else Aa()}}else{c[17828]=B|s;c[f>>2]=m;c[m+24>>2]=f;c[m+12>>2]=m;c[m+8>>2]=m}while(0);m=(c[17835]|0)+-1|0;c[17835]=m;if(!m)F=71764;else return;while(1){m=c[F>>2]|0;if(!m)break;else F=m+8|0}c[17835]=-1;return}function Mw(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=S(b,a)|0;if((b|a)>>>0>65535)e=((d>>>0)/(a>>>0)|0|0)==(b|0)?d:-1;else e=d}else e=0;d=Kw(e)|0;if(!d)return d|0;if(!(c[d+-4>>2]&3))return d|0;Sw(d|0,0,e|0)|0;return d|0}function Nw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(!a){d=Kw(b)|0;return d|0}if(b>>>0>4294967231){c[(xu()|0)>>2]=12;d=0;return d|0}e=Ow(a+-8|0,b>>>0<11?16:b+11&-8)|0;if(e|0){d=e+8|0;return d|0}e=Kw(b)|0;if(!e){d=0;return d|0}f=c[a+-4>>2]|0;g=(f&-8)-((f&3|0)==0?8:4)|0;Yw(e|0,a|0,(g>>>0<b>>>0?g:b)|0)|0;Lw(a);d=e;return d|0}function Ow(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;d=a+4|0;e=c[d>>2]|0;f=e&-8;g=a+f|0;h=c[17831]|0;i=e&3;if(!((i|0)!=1&a>>>0>=h>>>0&a>>>0<g>>>0))Aa();j=c[g+4>>2]|0;if(!(j&1))Aa();if(!i){if(b>>>0<256){k=0;return k|0}if(f>>>0>=(b+4|0)>>>0?(f-b|0)>>>0<=c[17947]<<1>>>0:0){k=a;return k|0}k=0;return k|0}if(f>>>0>=b>>>0){i=f-b|0;if(i>>>0<=15){k=a;return k|0}l=a+b|0;c[d>>2]=e&1|b|2;c[l+4>>2]=i|3;m=l+i+4|0;c[m>>2]=c[m>>2]|1;Pw(l,i);k=a;return k|0}if((g|0)==(c[17833]|0)){i=(c[17830]|0)+f|0;if(i>>>0<=b>>>0){k=0;return k|0}l=i-b|0;i=a+b|0;c[d>>2]=e&1|b|2;c[i+4>>2]=l|1;c[17833]=i;c[17830]=l;k=a;return k|0}if((g|0)==(c[17832]|0)){l=(c[17829]|0)+f|0;if(l>>>0<b>>>0){k=0;return k|0}i=l-b|0;if(i>>>0>15){m=a+b|0;n=m+i|0;c[d>>2]=e&1|b|2;c[m+4>>2]=i|1;c[n>>2]=i;o=n+4|0;c[o>>2]=c[o>>2]&-2;p=m;q=i}else{c[d>>2]=e&1|l|2;i=a+l+4|0;c[i>>2]=c[i>>2]|1;p=0;q=0}c[17829]=q;c[17832]=p;k=a;return k|0}if(j&2|0){k=0;return k|0}p=(j&-8)+f|0;if(p>>>0<b>>>0){k=0;return k|0}f=p-b|0;q=j>>>3;do if(j>>>0>=256){i=c[g+24>>2]|0;l=c[g+12>>2]|0;do if((l|0)==(g|0)){m=g+16|0;o=m+4|0;n=c[o>>2]|0;if(!n){r=c[m>>2]|0;if(!r){s=0;break}else{t=r;u=m}}else{t=n;u=o}while(1){o=t+20|0;n=c[o>>2]|0;if(n|0){t=n;u=o;continue}o=t+16|0;n=c[o>>2]|0;if(!n)break;else{t=n;u=o}}if(u>>>0<h>>>0)Aa();else{c[u>>2]=0;s=t;break}}else{o=c[g+8>>2]|0;if(o>>>0<h>>>0)Aa();n=o+12|0;if((c[n>>2]|0)!=(g|0))Aa();m=l+8|0;if((c[m>>2]|0)==(g|0)){c[n>>2]=l;c[m>>2]=o;s=l;break}else Aa()}while(0);if(i|0){l=c[g+28>>2]|0;o=71612+(l<<2)|0;if((g|0)==(c[o>>2]|0)){c[o>>2]=s;if(!s){c[17828]=c[17828]&~(1<<l);break}}else{if(i>>>0<(c[17831]|0)>>>0)Aa();l=i+16|0;if((c[l>>2]|0)==(g|0))c[l>>2]=s;else c[i+20>>2]=s;if(!s)break}l=c[17831]|0;if(s>>>0<l>>>0)Aa();c[s+24>>2]=i;o=g+16|0;m=c[o>>2]|0;do if(m|0)if(m>>>0<l>>>0)Aa();else{c[s+16>>2]=m;c[m+24>>2]=s;break}while(0);m=c[o+4>>2]|0;if(m|0)if(m>>>0<(c[17831]|0)>>>0)Aa();else{c[s+20>>2]=m;c[m+24>>2]=s;break}}}else{m=c[g+8>>2]|0;l=c[g+12>>2]|0;i=71348+(q<<1<<2)|0;if((m|0)!=(i|0)){if(m>>>0<h>>>0)Aa();if((c[m+12>>2]|0)!=(g|0))Aa()}if((l|0)==(m|0)){c[17827]=c[17827]&~(1<<q);break}if((l|0)!=(i|0)){if(l>>>0<h>>>0)Aa();i=l+8|0;if((c[i>>2]|0)==(g|0))v=i;else Aa()}else v=l+8|0;c[m+12>>2]=l;c[v>>2]=m}while(0);if(f>>>0<16){c[d>>2]=p|e&1|2;v=a+p+4|0;c[v>>2]=c[v>>2]|1;k=a;return k|0}else{v=a+b|0;c[d>>2]=e&1|b|2;c[v+4>>2]=f|3;b=v+f+4|0;c[b>>2]=c[b>>2]|1;Pw(v,f);k=a;return k|0}return 0}function Pw(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;d=a+b|0;e=c[a+4>>2]|0;do if(!(e&1)){f=c[a>>2]|0;if(!(e&3))return;g=a+(0-f)|0;h=f+b|0;i=c[17831]|0;if(g>>>0<i>>>0)Aa();if((g|0)==(c[17832]|0)){j=d+4|0;k=c[j>>2]|0;if((k&3|0)!=3){l=g;m=h;break}c[17829]=h;c[j>>2]=k&-2;c[g+4>>2]=h|1;c[g+h>>2]=h;return}k=f>>>3;if(f>>>0<256){f=c[g+8>>2]|0;j=c[g+12>>2]|0;n=71348+(k<<1<<2)|0;if((f|0)!=(n|0)){if(f>>>0<i>>>0)Aa();if((c[f+12>>2]|0)!=(g|0))Aa()}if((j|0)==(f|0)){c[17827]=c[17827]&~(1<<k);l=g;m=h;break}if((j|0)!=(n|0)){if(j>>>0<i>>>0)Aa();n=j+8|0;if((c[n>>2]|0)==(g|0))o=n;else Aa()}else o=j+8|0;c[f+12>>2]=j;c[o>>2]=f;l=g;m=h;break}f=c[g+24>>2]|0;j=c[g+12>>2]|0;do if((j|0)==(g|0)){n=g+16|0;k=n+4|0;p=c[k>>2]|0;if(!p){q=c[n>>2]|0;if(!q){r=0;break}else{s=q;t=n}}else{s=p;t=k}while(1){k=s+20|0;p=c[k>>2]|0;if(p|0){s=p;t=k;continue}k=s+16|0;p=c[k>>2]|0;if(!p)break;else{s=p;t=k}}if(t>>>0<i>>>0)Aa();else{c[t>>2]=0;r=s;break}}else{k=c[g+8>>2]|0;if(k>>>0<i>>>0)Aa();p=k+12|0;if((c[p>>2]|0)!=(g|0))Aa();n=j+8|0;if((c[n>>2]|0)==(g|0)){c[p>>2]=j;c[n>>2]=k;r=j;break}else Aa()}while(0);if(f){j=c[g+28>>2]|0;i=71612+(j<<2)|0;if((g|0)==(c[i>>2]|0)){c[i>>2]=r;if(!r){c[17828]=c[17828]&~(1<<j);l=g;m=h;break}}else{if(f>>>0<(c[17831]|0)>>>0)Aa();j=f+16|0;if((c[j>>2]|0)==(g|0))c[j>>2]=r;else c[f+20>>2]=r;if(!r){l=g;m=h;break}}j=c[17831]|0;if(r>>>0<j>>>0)Aa();c[r+24>>2]=f;i=g+16|0;k=c[i>>2]|0;do if(k|0)if(k>>>0<j>>>0)Aa();else{c[r+16>>2]=k;c[k+24>>2]=r;break}while(0);k=c[i+4>>2]|0;if(k)if(k>>>0<(c[17831]|0)>>>0)Aa();else{c[r+20>>2]=k;c[k+24>>2]=r;l=g;m=h;break}else{l=g;m=h}}else{l=g;m=h}}else{l=a;m=b}while(0);b=c[17831]|0;if(d>>>0<b>>>0)Aa();a=d+4|0;r=c[a>>2]|0;if(!(r&2)){if((d|0)==(c[17833]|0)){s=(c[17830]|0)+m|0;c[17830]=s;c[17833]=l;c[l+4>>2]=s|1;if((l|0)!=(c[17832]|0))return;c[17832]=0;c[17829]=0;return}if((d|0)==(c[17832]|0)){s=(c[17829]|0)+m|0;c[17829]=s;c[17832]=l;c[l+4>>2]=s|1;c[l+s>>2]=s;return}s=(r&-8)+m|0;t=r>>>3;do if(r>>>0>=256){o=c[d+24>>2]|0;e=c[d+12>>2]|0;do if((e|0)==(d|0)){k=d+16|0;j=k+4|0;f=c[j>>2]|0;if(!f){n=c[k>>2]|0;if(!n){u=0;break}else{v=n;w=k}}else{v=f;w=j}while(1){j=v+20|0;f=c[j>>2]|0;if(f|0){v=f;w=j;continue}j=v+16|0;f=c[j>>2]|0;if(!f)break;else{v=f;w=j}}if(w>>>0<b>>>0)Aa();else{c[w>>2]=0;u=v;break}}else{j=c[d+8>>2]|0;if(j>>>0<b>>>0)Aa();f=j+12|0;if((c[f>>2]|0)!=(d|0))Aa();k=e+8|0;if((c[k>>2]|0)==(d|0)){c[f>>2]=e;c[k>>2]=j;u=e;break}else Aa()}while(0);if(o|0){e=c[d+28>>2]|0;h=71612+(e<<2)|0;if((d|0)==(c[h>>2]|0)){c[h>>2]=u;if(!u){c[17828]=c[17828]&~(1<<e);break}}else{if(o>>>0<(c[17831]|0)>>>0)Aa();e=o+16|0;if((c[e>>2]|0)==(d|0))c[e>>2]=u;else c[o+20>>2]=u;if(!u)break}e=c[17831]|0;if(u>>>0<e>>>0)Aa();c[u+24>>2]=o;h=d+16|0;g=c[h>>2]|0;do if(g|0)if(g>>>0<e>>>0)Aa();else{c[u+16>>2]=g;c[g+24>>2]=u;break}while(0);g=c[h+4>>2]|0;if(g|0)if(g>>>0<(c[17831]|0)>>>0)Aa();else{c[u+20>>2]=g;c[g+24>>2]=u;break}}}else{g=c[d+8>>2]|0;e=c[d+12>>2]|0;o=71348+(t<<1<<2)|0;if((g|0)!=(o|0)){if(g>>>0<b>>>0)Aa();if((c[g+12>>2]|0)!=(d|0))Aa()}if((e|0)==(g|0)){c[17827]=c[17827]&~(1<<t);break}if((e|0)!=(o|0)){if(e>>>0<b>>>0)Aa();o=e+8|0;if((c[o>>2]|0)==(d|0))x=o;else Aa()}else x=e+8|0;c[g+12>>2]=e;c[x>>2]=g}while(0);c[l+4>>2]=s|1;c[l+s>>2]=s;if((l|0)==(c[17832]|0)){c[17829]=s;return}else y=s}else{c[a>>2]=r&-2;c[l+4>>2]=m|1;c[l+m>>2]=m;y=m}m=y>>>3;if(y>>>0<256){r=71348+(m<<1<<2)|0;a=c[17827]|0;s=1<<m;if(a&s){m=r+8|0;x=c[m>>2]|0;if(x>>>0<(c[17831]|0)>>>0)Aa();else{z=x;A=m}}else{c[17827]=a|s;z=r;A=r+8|0}c[A>>2]=l;c[z+12>>2]=l;c[l+8>>2]=z;c[l+12>>2]=r;return}r=y>>>8;if(r)if(y>>>0>16777215)B=31;else{z=(r+1048320|0)>>>16&8;A=r<<z;r=(A+520192|0)>>>16&4;s=A<<r;A=(s+245760|0)>>>16&2;a=14-(r|z|A)+(s<<A>>>15)|0;B=y>>>(a+7|0)&1|a<<1}else B=0;a=71612+(B<<2)|0;c[l+28>>2]=B;c[l+20>>2]=0;c[l+16>>2]=0;A=c[17828]|0;s=1<<B;if(!(A&s)){c[17828]=A|s;c[a>>2]=l;c[l+24>>2]=a;c[l+12>>2]=l;c[l+8>>2]=l;return}s=y<<((B|0)==31?0:25-(B>>>1)|0);B=c[a>>2]|0;while(1){if((c[B+4>>2]&-8|0)==(y|0)){C=127;break}D=B+16+(s>>>31<<2)|0;a=c[D>>2]|0;if(!a){C=124;break}else{s=s<<1;B=a}}if((C|0)==124){if(D>>>0<(c[17831]|0)>>>0)Aa();c[D>>2]=l;c[l+24>>2]=B;c[l+12>>2]=l;c[l+8>>2]=l;return}else if((C|0)==127){C=B+8|0;D=c[C>>2]|0;s=c[17831]|0;if(!(D>>>0>=s>>>0&B>>>0>=s>>>0))Aa();c[D+12>>2]=l;c[C>>2]=l;c[l+8>>2]=D;c[l+12>>2]=B;c[l+24>>2]=0;return}}function Qw(){}function Rw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=b-d>>>0;e=b-d-(c>>>0>a>>>0|0)>>>0;return (D=e,a-c>>>0|0)|0}function Sw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;g=b&3;h=d|d<<8|d<<16|d<<24;i=f&~3;if(g){g=b+4-g|0;while((b|0)<(g|0)){a[b>>0]=d;b=b+1|0}}while((b|0)<(i|0)){c[b>>2]=h;b=b+4|0}}while((b|0)<(f|0)){a[b>>0]=d;b=b+1|0}return b-e|0}function Tw(a){a=a|0;return 0}function Uw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=a+c>>>0;return (D=b+d+(e>>>0<a>>>0|0)>>>0,e|0)|0}function Vw(b){b=b|0;var c=0;c=a[n+(b&255)>>0]|0;if((c|0)<8)return c|0;c=a[n+(b>>8&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[n+(b>>16&255)>>0]|0;if((c|0)<8)return c+16|0;return (a[n+(b>>>24)>>0]|0)+24|0}function Ww(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0;g=a;h=b;i=h;j=d;k=e;l=k;if(!i){m=(f|0)!=0;if(!l){if(m){c[f>>2]=(g>>>0)%(j>>>0);c[f+4>>2]=0}n=0;o=(g>>>0)/(j>>>0)>>>0;return (D=n,o)|0}else{if(!m){n=0;o=0;return (D=n,o)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;n=0;o=0;return (D=n,o)|0}}m=(l|0)==0;do if(j){if(!m){p=(V(l|0)|0)-(V(i|0)|0)|0;if(p>>>0<=31){q=p+1|0;r=31-p|0;s=p-31>>31;t=q;u=g>>>(q>>>0)&s|i<<r;v=i>>>(q>>>0)&s;w=0;x=g<<r;break}if(!f){n=0;o=0;return (D=n,o)|0}c[f>>2]=a|0;c[f+4>>2]=h|b&0;n=0;o=0;return (D=n,o)|0}r=j-1|0;if(r&j|0){s=(V(j|0)|0)+33-(V(i|0)|0)|0;q=64-s|0;p=32-s|0;y=p>>31;z=s-32|0;A=z>>31;t=s;u=p-1>>31&i>>>(z>>>0)|(i<<p|g>>>(s>>>0))&A;v=A&i>>>(s>>>0);w=g<<q&y;x=(i<<q|g>>>(z>>>0))&y|g<<p&s-33>>31;break}if(f|0){c[f>>2]=r&g;c[f+4>>2]=0}if((j|0)==1){n=h|b&0;o=a|0|0;return (D=n,o)|0}else{r=Vw(j|0)|0;n=i>>>(r>>>0)|0;o=i<<32-r|g>>>(r>>>0)|0;return (D=n,o)|0}}else{if(m){if(f|0){c[f>>2]=(i>>>0)%(j>>>0);c[f+4>>2]=0}n=0;o=(i>>>0)/(j>>>0)>>>0;return (D=n,o)|0}if(!g){if(f|0){c[f>>2]=0;c[f+4>>2]=(i>>>0)%(l>>>0)}n=0;o=(i>>>0)/(l>>>0)>>>0;return (D=n,o)|0}r=l-1|0;if(!(r&l)){if(f|0){c[f>>2]=a|0;c[f+4>>2]=r&i|b&0}n=0;o=i>>>((Vw(l|0)|0)>>>0);return (D=n,o)|0}r=(V(l|0)|0)-(V(i|0)|0)|0;if(r>>>0<=30){s=r+1|0;p=31-r|0;t=s;u=i<<p|g>>>(s>>>0);v=i>>>(s>>>0);w=0;x=g<<p;break}if(!f){n=0;o=0;return (D=n,o)|0}c[f>>2]=a|0;c[f+4>>2]=h|b&0;n=0;o=0;return (D=n,o)|0}while(0);if(!t){B=x;C=w;E=v;F=u;G=0;H=0}else{b=d|0|0;d=k|e&0;e=Uw(b|0,d|0,-1,-1)|0;k=D;h=x;x=w;w=v;v=u;u=t;t=0;do{a=h;h=x>>>31|h<<1;x=t|x<<1;g=v<<1|a>>>31|0;a=v>>>31|w<<1|0;Rw(e|0,k|0,g|0,a|0)|0;i=D;l=i>>31|((i|0)<0?-1:0)<<1;t=l&1;v=Rw(g|0,a|0,l&b|0,(((i|0)<0?-1:0)>>31|((i|0)<0?-1:0)<<1)&d|0)|0;w=D;u=u-1|0}while((u|0)!=0);B=h;C=x;E=w;F=v;G=0;H=t}t=C;C=0;if(f|0){c[f>>2]=F;c[f+4>>2]=E}n=(t|0)>>>31|(B|C)<<1|(C<<1|t>>>31)&0|G;o=(t<<1|0>>>31)&-2|H;return (D=n,o)|0}function Xw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=b>>31|((b|0)<0?-1:0)<<1;f=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;g=d>>31|((d|0)<0?-1:0)<<1;h=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;i=Rw(e^a|0,f^b|0,e|0,f|0)|0;b=D;a=g^e;e=h^f;return Rw((Ww(i,b,Rw(g^c|0,h^d|0,g|0,h|0)|0,D,0)|0)^a|0,D^e|0,a|0,e|0)|0}function Yw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return Va(b|0,d|0,e|0)|0;f=b|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function Zw(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b>>0]=a[c>>0]|0}b=e}else Yw(b,c,d)|0;return b|0}function _w(a){a=a|0;return (a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function $w(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=(b|0)<0?-1:0;return b>>c-32|0}function ax(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=0;return b>>>c-32|0}function bx(a){a=a|0;return 0}function cx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Ww(a,b,c,d,0)|0}function dx(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=a&65535;d=b&65535;e=S(d,c)|0;f=a>>>16;a=(e>>>16)+(S(d,f)|0)|0;d=b>>>16;b=S(d,c)|0;return (D=(a>>>16)+(S(d,f)|0)+(((a&65535)+b|0)>>>16)|0,a+b<<16|e&65535|0)|0}function ex(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;a=c;c=dx(e,a)|0;f=D;return (D=(S(b,a)|0)+(S(d,e)|0)+f|f&0,c|0|0)|0}function fx(a){a=a|0;var b=0,d=0;a=a+15&-16|0;b=c[k>>2]|0;d=b+a|0;if((a|0)>0&(d|0)<(b|0)|(d|0)<0){_()|0;Ka(12);return -1}c[k>>2]=d;if((d|0)>(Z()|0)?(Y()|0)==0:0){Ka(12);c[k>>2]=b;return -1}return b|0}function gx(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}D=a<<c-32;return 0}function hx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;g=f|0;Ww(a,b,d,e,g)|0;i=f;return (D=c[g+4>>2]|0,c[g>>2]|0)|0}function ix(){return 0}function jx(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+16|0;g=f|0;h=b>>31|((b|0)<0?-1:0)<<1;j=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;k=e>>31|((e|0)<0?-1:0)<<1;l=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;m=Rw(h^a|0,j^b|0,h|0,j|0)|0;b=D;Ww(m,b,Rw(k^d|0,l^e|0,k|0,l|0)|0,D,g)|0;l=Rw(c[g>>2]^h|0,c[g+4>>2]^j|0,h|0,j|0)|0;j=D;i=f;return (D=j,l)|0}function kx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ub[a&63](b|0,c|0,d|0)|0}function lx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;vb[a&15](b|0,c|0,d|0,e|0,f|0)}function mx(a,b){a=a|0;b=b|0;wb[a&15](b|0)}function nx(a,b,c){a=a|0;b=b|0;c=c|0;xb[a&7](b|0,c|0)}function ox(a,b){a=a|0;b=b|0;return yb[a&15](b|0)|0}function px(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;zb[a&7](b|0,c|0,d|0)}function qx(a){a=a|0;Ab[a&3]()}function rx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Bb[a&7](b|0,c|0,d|0,e|0)|0}function sx(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;Cb[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function tx(a,b,c){a=a|0;b=b|0;c=c|0;return Db[a&7](b|0,c|0)|0}function ux(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Eb[a&1](b|0,c|0,d|0,e|0)}function vx(a,b,c){a=a|0;b=b|0;c=c|0;aa(0);return 0}function wx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;ba(1)}function xx(a){a=a|0;ca(2)}function yx(a,b){a=a|0;b=b|0;da(3)}function zx(a){a=a|0;ea(4);return 0}function Ax(a,b,c){a=a|0;b=b|0;c=c|0;fa(5)}function Bx(){ga(6)}function Cx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ha(7);return 0}function Dx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ia(8)}function Ex(a,b){a=a|0;b=b|0;ja(9);return 0}function Fx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ka(10)}
-
-// EMSCRIPTEN_END_FUNCS
-var ub=[vx,ck,dk,ek,fk,ql,rl,sl,tl,vl,Ql,am,qm,Dm,Em,Fm,zr,Ar,Br,Cr,Er,Uh,Wr,uu,vu,yu,fv,Ue,Fv,vk,wk,Xk,Tl,em,um,Bu,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx,vx];var vb=[wx,Kk,Ek,Hk,Ik,Ok,Sm,Pm,Tm,wx,wx,wx,wx,wx,wx,wx];var wb=[xx,Uk,Ol,_l,om,Hn,zu,Cu,iw,xx,xx,xx,xx,xx,xx,xx];var xb=[yx,Tk,Nl,Zl,mm,nm,Cm,Vr];var yb=[zx,Vk,pl,ul,Pl,$l,pm,yr,Dr,Zh,tu,zx,zx,zx,zx,zx];var zb=[Ax,Nr,Sk,hs,Vs,jt,ru,Ax];var Ab=[Bx,pk,qk,Tt];var Bb=[Cx,Xr,Nq,es,nt,Cx,Cx,Cx];var Cb=[Dx,Mk];var Db=[Ex,ol,wl,xr,Fr,Oj,Jl,Ex];var Eb=[Fx,nh];return{_GNUNET_CRYPTO_rsa_signature_encode:ed,_GNUNET_CRYPTO_rsa_private_key_free:Yc,_GNUNET_CRYPTO_rsa_verify:pd,_bitshift64Shl:gx,_GNUNET_CRYPTO_hash_context_start:Dc,_bitshift64Lshr:ax,_TALER_setup_fresh_coin:su,_GNUNET_STRINGS_string_to_data:td,_GNUNET_CRYPTO_rsa_private_key_get_public:$c,_memset:Sw,_GNUNET_CRYPTO_eddsa_verify:yc,_TALER_amount_normalize:mu,_GNUNET_CRYPTO_hash_context_finish:Fc,_GNUNET_CRYPTO_symmetric_encrypt:ic,_TALER_WR_get_fraction:Sb,_GNUNET_CRYPTO_hash_context_read:Ec,_TALER_amount_cmp:lu,_GNUNET_CRYPTO_rsa_blind:fd,_TALER_WR_get_currency:Tb,_GNUNET_CRYPTO_random_block:Wc,_fflush:Rv,_GNUNET_CRYPTO_hash_create_random:Cc,_GNUNET_CRYPTO_rsa_unblind:od,_bitshift64Ashr:$w,_TALER_WRALL_get_amount:Qb,_sbrk:fx,_GNUNET_CRYPTO_eddsa_key_create:vc,_TALER_WRALL_eddsa_public_key_from_private:Mb,_llvm_bswap_i32:_w,___muldi3:ex,_GNUNET_CRYPTO_ecc_ecdh:zc,_GNUNET_CRYPTO_rsa_private_key_decode:_c,_GNUNET_CRYPTO_symmetric_decrypt:lc,_GNUNET_CRYPTO_rsa_signature_free:md,___divdi3:Xw,_TALER_amount_ntoh:hu,_pthread_self:ix,_GNUNET_CRYPTO_ecdhe_key_create:sc,_TALER_amount_subtract:ou,___udivmoddi4:Ww,_GNUNET_CRYPTO_rsa_private_key_create:Xc,_i64Add:Uw,_GNUNET_CRYPTO_ecdhe_key_get_public:qc,_TALER_WRALL_purpose_create:Pb,_GNUNET_CRYPTO_ecdh_eddsa:Ac,_pthread_mutex_unlock:bx,_GNUNET_CRYPTO_rsa_public_key_free:bd,_GNUNET_CRYPTO_kdf:Mc,_GNUNET_CRYPTO_eddsa_sign:wc,_TALER_amount_hton:gu,_i64Subtract:Rw,_pthread_mutex_lock:Tw,_GNUNET_CRYPTO_rsa_private_key_encode:Zc,_GNUNET_CRYPTO_eddsa_key_get_public:oc,___udivdi3:cx,_TALER_amount_add:pu,___errno_location:xu,___muldsi3:dx,_TALER_WR_get_value:Rb,_TALER_WRALL_ecdhe_public_key_from_private:Nb,_free:Lw,_GNUNET_STRINGS_data_to_string_alloc:sd,_GNUNET_CRYPTO_hash_context_abort:Gc,_memmove:Zw,_llvm_cttz_i32:Vw,_malloc:Kw,_memcpy:Yw,_TALER_amount_get_zero:iu,_GNUNET_CRYPTO_hkdf:Kc,_GNUNET_CRYPTO_rsa_public_key_decode:dd,_GNUNET_CRYPTO_ecdsa_key_create:uc,_TALER_WRALL_ecdsa_public_key_from_private:Ob,_GNUNET_CRYPTO_rsa_public_key_encode:cd,___remdi3:jx,_GNUNET_CRYPTO_hash:Bc,_GNUNET_CRYPTO_rsa_signature_decode:nd,___uremdi3:hx,_GNUNET_util_cl_init:Yb,_GNUNET_CRYPTO_random_init:Rc,_gpg_err_init:At,_TALER_gcrypt_init:qu,runPostSets:Qw,stackAlloc:Fb,stackSave:Gb,stackRestore:Hb,establishStackSpace:Ib,setThrew:Jb,setTempRet0:Kb,getTempRet0:Lb,dynCall_iiii:kx,dynCall_viiiii:lx,dynCall_vi:mx,dynCall_vii:nx,dynCall_ii:ox,dynCall_viii:px,dynCall_v:qx,dynCall_iiiii:rx,dynCall_viiiiii:sx,dynCall_iii:tx,dynCall_viiii:ux}})
-
-
-// EMSCRIPTEN_END_ASM
-(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var real__GNUNET_CRYPTO_rsa_signature_encode=asm["_GNUNET_CRYPTO_rsa_signature_encode"];asm["_GNUNET_CRYPTO_rsa_signature_encode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_signature_encode.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_verify=asm["_GNUNET_CRYPTO_rsa_verify"];asm["_GNUNET_CRYPTO_rsa_verify"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_verify.apply(null,arguments)});var real__GNUNET_CRYPTO_hash_context_start=asm["_GNUNET_CRYPTO_hash_context_start"];asm["_GNUNET_CRYPTO_hash_context_start"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_hash_context_start.apply(null,arguments)});var real____uremdi3=asm["___uremdi3"];asm["___uremdi3"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____uremdi3.apply(null,arguments)});var real__TALER_setup_fresh_coin=asm["_TALER_setup_fresh_coin"];asm["_TALER_setup_fresh_coin"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_setup_fresh_coin.apply(null,arguments)});var real__GNUNET_STRINGS_string_to_data=asm["_GNUNET_STRINGS_string_to_data"];asm["_GNUNET_STRINGS_string_to_data"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_STRINGS_string_to_data.apply(null,arguments)});var real__i64Subtract=asm["_i64Subtract"];asm["_i64Subtract"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__i64Subtract.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_private_key_get_public=asm["_GNUNET_CRYPTO_rsa_private_key_get_public"];asm["_GNUNET_CRYPTO_rsa_private_key_get_public"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_private_key_get_public.apply(null,arguments)});var real__TALER_WRALL_get_amount=asm["_TALER_WRALL_get_amount"];asm["_TALER_WRALL_get_amount"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_get_amount.apply(null,arguments)});var real__GNUNET_CRYPTO_eddsa_verify=asm["_GNUNET_CRYPTO_eddsa_verify"];asm["_GNUNET_CRYPTO_eddsa_verify"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_eddsa_verify.apply(null,arguments)});var real__GNUNET_util_cl_init=asm["_GNUNET_util_cl_init"];asm["_GNUNET_util_cl_init"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_util_cl_init.apply(null,arguments)});var real__TALER_amount_normalize=asm["_TALER_amount_normalize"];asm["_TALER_amount_normalize"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_amount_normalize.apply(null,arguments)});var real__GNUNET_CRYPTO_hash_context_finish=asm["_GNUNET_CRYPTO_hash_context_finish"];asm["_GNUNET_CRYPTO_hash_context_finish"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_hash_context_finish.apply(null,arguments)});var real__bitshift64Lshr=asm["_bitshift64Lshr"];asm["_bitshift64Lshr"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Lshr.apply(null,arguments)});var real__TALER_WR_get_fraction=asm["_TALER_WR_get_fraction"];asm["_TALER_WR_get_fraction"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WR_get_fraction.apply(null,arguments)});var real__GNUNET_CRYPTO_hash_context_read=asm["_GNUNET_CRYPTO_hash_context_read"];asm["_GNUNET_CRYPTO_hash_context_read"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_hash_context_read.apply(null,arguments)});var real__TALER_amount_cmp=asm["_TALER_amount_cmp"];asm["_TALER_amount_cmp"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_amount_cmp.apply(null,arguments)});var real__bitshift64Shl=asm["_bitshift64Shl"];asm["_bitshift64Shl"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Shl.apply(null,arguments)});var real__TALER_WR_get_currency=asm["_TALER_WR_get_currency"];asm["_TALER_WR_get_currency"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WR_get_currency.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_private_key_free=asm["_GNUNET_CRYPTO_rsa_private_key_free"];asm["_GNUNET_CRYPTO_rsa_private_key_free"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_private_key_free.apply(null,arguments)});var real__fflush=asm["_fflush"];asm["_fflush"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__fflush.apply(null,arguments)});var real__GNUNET_CRYPTO_hash_create_random=asm["_GNUNET_CRYPTO_hash_create_random"];asm["_GNUNET_CRYPTO_hash_create_random"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_hash_create_random.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_unblind=asm["_GNUNET_CRYPTO_rsa_unblind"];asm["_GNUNET_CRYPTO_rsa_unblind"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_unblind.apply(null,arguments)});var real__bitshift64Ashr=asm["_bitshift64Ashr"];asm["_bitshift64Ashr"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Ashr.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_private_key_create=asm["_GNUNET_CRYPTO_rsa_private_key_create"];asm["_GNUNET_CRYPTO_rsa_private_key_create"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_private_key_create.apply(null,arguments)});var real__sbrk=asm["_sbrk"];asm["_sbrk"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__sbrk.apply(null,arguments)});var real__GNUNET_CRYPTO_eddsa_key_create=asm["_GNUNET_CRYPTO_eddsa_key_create"];asm["_GNUNET_CRYPTO_eddsa_key_create"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_eddsa_key_create.apply(null,arguments)});var real__TALER_WRALL_eddsa_public_key_from_private=asm["_TALER_WRALL_eddsa_public_key_from_private"];asm["_TALER_WRALL_eddsa_public_key_from_private"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_eddsa_public_key_from_private.apply(null,arguments)});var real____errno_location=asm["___errno_location"];asm["___errno_location"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____errno_location.apply(null,arguments)});var real____muldi3=asm["___muldi3"];asm["___muldi3"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____muldi3.apply(null,arguments)});var real__GNUNET_CRYPTO_ecc_ecdh=asm["_GNUNET_CRYPTO_ecc_ecdh"];asm["_GNUNET_CRYPTO_ecc_ecdh"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_ecc_ecdh.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_private_key_decode=asm["_GNUNET_CRYPTO_rsa_private_key_decode"];asm["_GNUNET_CRYPTO_rsa_private_key_decode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_private_key_decode.apply(null,arguments)});var real__GNUNET_CRYPTO_symmetric_encrypt=asm["_GNUNET_CRYPTO_symmetric_encrypt"];asm["_GNUNET_CRYPTO_symmetric_encrypt"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_symmetric_encrypt.apply(null,arguments)});var real__GNUNET_CRYPTO_ecdhe_key_get_public=asm["_GNUNET_CRYPTO_ecdhe_key_get_public"];asm["_GNUNET_CRYPTO_ecdhe_key_get_public"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_ecdhe_key_get_public.apply(null,arguments)});var real____divdi3=asm["___divdi3"];asm["___divdi3"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____divdi3.apply(null,arguments)});var real__TALER_amount_ntoh=asm["_TALER_amount_ntoh"];asm["_TALER_amount_ntoh"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_amount_ntoh.apply(null,arguments)});var real__llvm_cttz_i32=asm["_llvm_cttz_i32"];asm["_llvm_cttz_i32"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__llvm_cttz_i32.apply(null,arguments)});var real__GNUNET_CRYPTO_ecdhe_key_create=asm["_GNUNET_CRYPTO_ecdhe_key_create"];asm["_GNUNET_CRYPTO_ecdhe_key_create"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_ecdhe_key_create.apply(null,arguments)});var real__TALER_amount_subtract=asm["_TALER_amount_subtract"];asm["_TALER_amount_subtract"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_amount_subtract.apply(null,arguments)});var real____udivmoddi4=asm["___udivmoddi4"];asm["___udivmoddi4"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____udivmoddi4.apply(null,arguments)});var real__GNUNET_CRYPTO_random_block=asm["_GNUNET_CRYPTO_random_block"];asm["_GNUNET_CRYPTO_random_block"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_random_block.apply(null,arguments)});var real__i64Add=asm["_i64Add"];asm["_i64Add"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__i64Add.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_signature_free=asm["_GNUNET_CRYPTO_rsa_signature_free"];asm["_GNUNET_CRYPTO_rsa_signature_free"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_signature_free.apply(null,arguments)});var real__pthread_self=asm["_pthread_self"];asm["_pthread_self"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__pthread_self.apply(null,arguments)});var real__GNUNET_CRYPTO_ecdh_eddsa=asm["_GNUNET_CRYPTO_ecdh_eddsa"];asm["_GNUNET_CRYPTO_ecdh_eddsa"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_ecdh_eddsa.apply(null,arguments)});var real__pthread_mutex_unlock=asm["_pthread_mutex_unlock"];asm["_pthread_mutex_unlock"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__pthread_mutex_unlock.apply(null,arguments)});var real__TALER_WRALL_purpose_create=asm["_TALER_WRALL_purpose_create"];asm["_TALER_WRALL_purpose_create"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_purpose_create.apply(null,arguments)});var real__gpg_err_init=asm["_gpg_err_init"];asm["_gpg_err_init"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__gpg_err_init.apply(null,arguments)});var real__GNUNET_CRYPTO_kdf=asm["_GNUNET_CRYPTO_kdf"];asm["_GNUNET_CRYPTO_kdf"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_kdf.apply(null,arguments)});var real__GNUNET_CRYPTO_eddsa_sign=asm["_GNUNET_CRYPTO_eddsa_sign"];asm["_GNUNET_CRYPTO_eddsa_sign"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_eddsa_sign.apply(null,arguments)});var real__TALER_amount_hton=asm["_TALER_amount_hton"];asm["_TALER_amount_hton"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_amount_hton.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_public_key_free=asm["_GNUNET_CRYPTO_rsa_public_key_free"];asm["_GNUNET_CRYPTO_rsa_public_key_free"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_public_key_free.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_private_key_encode=asm["_GNUNET_CRYPTO_rsa_private_key_encode"];asm["_GNUNET_CRYPTO_rsa_private_key_encode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_private_key_encode.apply(null,arguments)});var real__GNUNET_CRYPTO_eddsa_key_get_public=asm["_GNUNET_CRYPTO_eddsa_key_get_public"];asm["_GNUNET_CRYPTO_eddsa_key_get_public"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_eddsa_key_get_public.apply(null,arguments)});var real____udivdi3=asm["___udivdi3"];asm["___udivdi3"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____udivdi3.apply(null,arguments)});var real__llvm_bswap_i32=asm["_llvm_bswap_i32"];asm["_llvm_bswap_i32"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__llvm_bswap_i32.apply(null,arguments)});var real____muldsi3=asm["___muldsi3"];asm["___muldsi3"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____muldsi3.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_blind=asm["_GNUNET_CRYPTO_rsa_blind"];asm["_GNUNET_CRYPTO_rsa_blind"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_blind.apply(null,arguments)});var real__TALER_amount_add=asm["_TALER_amount_add"];asm["_TALER_amount_add"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_amount_add.apply(null,arguments)});var real__free=asm["_free"];asm["_free"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__free.apply(null,arguments)});var real__TALER_gcrypt_init=asm["_TALER_gcrypt_init"];asm["_TALER_gcrypt_init"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_gcrypt_init.apply(null,arguments)});var real__GNUNET_STRINGS_data_to_string_alloc=asm["_GNUNET_STRINGS_data_to_string_alloc"];asm["_GNUNET_STRINGS_data_to_string_alloc"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_STRINGS_data_to_string_alloc.apply(null,arguments)});var real__GNUNET_CRYPTO_hash_context_abort=asm["_GNUNET_CRYPTO_hash_context_abort"];asm["_GNUNET_CRYPTO_hash_context_abort"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_hash_context_abort.apply(null,arguments)});var real__GNUNET_CRYPTO_symmetric_decrypt=asm["_GNUNET_CRYPTO_symmetric_decrypt"];asm["_GNUNET_CRYPTO_symmetric_decrypt"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_symmetric_decrypt.apply(null,arguments)});var real__GNUNET_CRYPTO_random_init=asm["_GNUNET_CRYPTO_random_init"];asm["_GNUNET_CRYPTO_random_init"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_random_init.apply(null,arguments)});var real__TALER_amount_get_zero=asm["_TALER_amount_get_zero"];asm["_TALER_amount_get_zero"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_amount_get_zero.apply(null,arguments)});var real__malloc=asm["_malloc"];asm["_malloc"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__malloc.apply(null,arguments)});var real__pthread_mutex_lock=asm["_pthread_mutex_lock"];asm["_pthread_mutex_lock"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__pthread_mutex_lock.apply(null,arguments)});var real__GNUNET_CRYPTO_hkdf=asm["_GNUNET_CRYPTO_hkdf"];asm["_GNUNET_CRYPTO_hkdf"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_hkdf.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_public_key_decode=asm["_GNUNET_CRYPTO_rsa_public_key_decode"];asm["_GNUNET_CRYPTO_rsa_public_key_decode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_public_key_decode.apply(null,arguments)});var real__GNUNET_CRYPTO_ecdsa_key_create=asm["_GNUNET_CRYPTO_ecdsa_key_create"];asm["_GNUNET_CRYPTO_ecdsa_key_create"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_ecdsa_key_create.apply(null,arguments)});var real__TALER_WRALL_ecdsa_public_key_from_private=asm["_TALER_WRALL_ecdsa_public_key_from_private"];asm["_TALER_WRALL_ecdsa_public_key_from_private"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_ecdsa_public_key_from_private.apply(null,arguments)});var real__memmove=asm["_memmove"];asm["_memmove"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__memmove.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_public_key_encode=asm["_GNUNET_CRYPTO_rsa_public_key_encode"];asm["_GNUNET_CRYPTO_rsa_public_key_encode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_public_key_encode.apply(null,arguments)});var real____remdi3=asm["___remdi3"];asm["___remdi3"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real____remdi3.apply(null,arguments)});var real__GNUNET_CRYPTO_hash=asm["_GNUNET_CRYPTO_hash"];asm["_GNUNET_CRYPTO_hash"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_hash.apply(null,arguments)});var real__TALER_WR_get_value=asm["_TALER_WR_get_value"];asm["_TALER_WR_get_value"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WR_get_value.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_signature_decode=asm["_GNUNET_CRYPTO_rsa_signature_decode"];asm["_GNUNET_CRYPTO_rsa_signature_decode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_signature_decode.apply(null,arguments)});var real__TALER_WRALL_ecdhe_public_key_from_private=asm["_TALER_WRALL_ecdhe_public_key_from_private"];asm["_TALER_WRALL_ecdhe_public_key_from_private"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_ecdhe_public_key_from_private.apply(null,arguments)});var _GNUNET_CRYPTO_rsa_signature_encode=Module["_GNUNET_CRYPTO_rsa_signature_encode"]=asm["_GNUNET_CRYPTO_rsa_signature_encode"];var _GNUNET_CRYPTO_rsa_verify=Module["_GNUNET_CRYPTO_rsa_verify"]=asm["_GNUNET_CRYPTO_rsa_verify"];var _GNUNET_CRYPTO_hash_context_start=Module["_GNUNET_CRYPTO_hash_context_start"]=asm["_GNUNET_CRYPTO_hash_context_start"];var ___uremdi3=Module["___uremdi3"]=asm["___uremdi3"];var _TALER_setup_fresh_coin=Module["_TALER_setup_fresh_coin"]=asm["_TALER_setup_fresh_coin"];var _GNUNET_STRINGS_string_to_data=Module["_GNUNET_STRINGS_string_to_data"]=asm["_GNUNET_STRINGS_string_to_data"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _GNUNET_CRYPTO_rsa_private_key_get_public=Module["_GNUNET_CRYPTO_rsa_private_key_get_public"]=asm["_GNUNET_CRYPTO_rsa_private_key_get_public"];var _TALER_WRALL_get_amount=Module["_TALER_WRALL_get_amount"]=asm["_TALER_WRALL_get_amount"];var _GNUNET_CRYPTO_eddsa_verify=Module["_GNUNET_CRYPTO_eddsa_verify"]=asm["_GNUNET_CRYPTO_eddsa_verify"];var _GNUNET_util_cl_init=Module["_GNUNET_util_cl_init"]=asm["_GNUNET_util_cl_init"];var _TALER_amount_normalize=Module["_TALER_amount_normalize"]=asm["_TALER_amount_normalize"];var _GNUNET_CRYPTO_hash_context_finish=Module["_GNUNET_CRYPTO_hash_context_finish"]=asm["_GNUNET_CRYPTO_hash_context_finish"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _TALER_WR_get_fraction=Module["_TALER_WR_get_fraction"]=asm["_TALER_WR_get_fraction"];var _GNUNET_CRYPTO_hash_context_read=Module["_GNUNET_CRYPTO_hash_context_read"]=asm["_GNUNET_CRYPTO_hash_context_read"];var _TALER_amount_cmp=Module["_TALER_amount_cmp"]=asm["_TALER_amount_cmp"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _TALER_WR_get_currency=Module["_TALER_WR_get_currency"]=asm["_TALER_WR_get_currency"];var _GNUNET_CRYPTO_rsa_private_key_free=Module["_GNUNET_CRYPTO_rsa_private_key_free"]=asm["_GNUNET_CRYPTO_rsa_private_key_free"];var _fflush=Module["_fflush"]=asm["_fflush"];var _GNUNET_CRYPTO_hash_create_random=Module["_GNUNET_CRYPTO_hash_create_random"]=asm["_GNUNET_CRYPTO_hash_create_random"];var _GNUNET_CRYPTO_rsa_unblind=Module["_GNUNET_CRYPTO_rsa_unblind"]=asm["_GNUNET_CRYPTO_rsa_unblind"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _memset=Module["_memset"]=asm["_memset"];var _GNUNET_CRYPTO_rsa_private_key_create=Module["_GNUNET_CRYPTO_rsa_private_key_create"]=asm["_GNUNET_CRYPTO_rsa_private_key_create"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var _GNUNET_CRYPTO_eddsa_key_create=Module["_GNUNET_CRYPTO_eddsa_key_create"]=asm["_GNUNET_CRYPTO_eddsa_key_create"];var _TALER_WRALL_eddsa_public_key_from_private=Module["_TALER_WRALL_eddsa_public_key_from_private"]=asm["_TALER_WRALL_eddsa_public_key_from_private"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var _GNUNET_CRYPTO_ecc_ecdh=Module["_GNUNET_CRYPTO_ecc_ecdh"]=asm["_GNUNET_CRYPTO_ecc_ecdh"];var _GNUNET_CRYPTO_rsa_private_key_decode=Module["_GNUNET_CRYPTO_rsa_private_key_decode"]=asm["_GNUNET_CRYPTO_rsa_private_key_decode"];var _GNUNET_CRYPTO_symmetric_encrypt=Module["_GNUNET_CRYPTO_symmetric_encrypt"]=asm["_GNUNET_CRYPTO_symmetric_encrypt"];var _GNUNET_CRYPTO_ecdhe_key_get_public=Module["_GNUNET_CRYPTO_ecdhe_key_get_public"]=asm["_GNUNET_CRYPTO_ecdhe_key_get_public"];var ___divdi3=Module["___divdi3"]=asm["___divdi3"];var _TALER_amount_ntoh=Module["_TALER_amount_ntoh"]=asm["_TALER_amount_ntoh"];var _llvm_cttz_i32=Module["_llvm_cttz_i32"]=asm["_llvm_cttz_i32"];var _GNUNET_CRYPTO_ecdhe_key_create=Module["_GNUNET_CRYPTO_ecdhe_key_create"]=asm["_GNUNET_CRYPTO_ecdhe_key_create"];var _TALER_amount_subtract=Module["_TALER_amount_subtract"]=asm["_TALER_amount_subtract"];var ___udivmoddi4=Module["___udivmoddi4"]=asm["___udivmoddi4"];var _GNUNET_CRYPTO_random_block=Module["_GNUNET_CRYPTO_random_block"]=asm["_GNUNET_CRYPTO_random_block"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _GNUNET_CRYPTO_rsa_signature_free=Module["_GNUNET_CRYPTO_rsa_signature_free"]=asm["_GNUNET_CRYPTO_rsa_signature_free"];var _pthread_self=Module["_pthread_self"]=asm["_pthread_self"];var _GNUNET_CRYPTO_ecdh_eddsa=Module["_GNUNET_CRYPTO_ecdh_eddsa"]=asm["_GNUNET_CRYPTO_ecdh_eddsa"];var _pthread_mutex_unlock=Module["_pthread_mutex_unlock"]=asm["_pthread_mutex_unlock"];var _TALER_WRALL_purpose_create=Module["_TALER_WRALL_purpose_create"]=asm["_TALER_WRALL_purpose_create"];var _gpg_err_init=Module["_gpg_err_init"]=asm["_gpg_err_init"];var _GNUNET_CRYPTO_kdf=Module["_GNUNET_CRYPTO_kdf"]=asm["_GNUNET_CRYPTO_kdf"];var _GNUNET_CRYPTO_eddsa_sign=Module["_GNUNET_CRYPTO_eddsa_sign"]=asm["_GNUNET_CRYPTO_eddsa_sign"];var _TALER_amount_hton=Module["_TALER_amount_hton"]=asm["_TALER_amount_hton"];var _GNUNET_CRYPTO_rsa_public_key_free=Module["_GNUNET_CRYPTO_rsa_public_key_free"]=asm["_GNUNET_CRYPTO_rsa_public_key_free"];var _GNUNET_CRYPTO_rsa_private_key_encode=Module["_GNUNET_CRYPTO_rsa_private_key_encode"]=asm["_GNUNET_CRYPTO_rsa_private_key_encode"];var _GNUNET_CRYPTO_eddsa_key_get_public=Module["_GNUNET_CRYPTO_eddsa_key_get_public"]=asm["_GNUNET_CRYPTO_eddsa_key_get_public"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var ___muldsi3=Module["___muldsi3"]=asm["___muldsi3"];var _GNUNET_CRYPTO_rsa_blind=Module["_GNUNET_CRYPTO_rsa_blind"]=asm["_GNUNET_CRYPTO_rsa_blind"];var _TALER_amount_add=Module["_TALER_amount_add"]=asm["_TALER_amount_add"];var _free=Module["_free"]=asm["_free"];var _TALER_gcrypt_init=Module["_TALER_gcrypt_init"]=asm["_TALER_gcrypt_init"];var _GNUNET_STRINGS_data_to_string_alloc=Module["_GNUNET_STRINGS_data_to_string_alloc"]=asm["_GNUNET_STRINGS_data_to_string_alloc"];var _GNUNET_CRYPTO_hash_context_abort=Module["_GNUNET_CRYPTO_hash_context_abort"]=asm["_GNUNET_CRYPTO_hash_context_abort"];var _GNUNET_CRYPTO_symmetric_decrypt=Module["_GNUNET_CRYPTO_symmetric_decrypt"]=asm["_GNUNET_CRYPTO_symmetric_decrypt"];var _GNUNET_CRYPTO_random_init=Module["_GNUNET_CRYPTO_random_init"]=asm["_GNUNET_CRYPTO_random_init"];var _TALER_amount_get_zero=Module["_TALER_amount_get_zero"]=asm["_TALER_amount_get_zero"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _pthread_mutex_lock=Module["_pthread_mutex_lock"]=asm["_pthread_mutex_lock"];var _GNUNET_CRYPTO_hkdf=Module["_GNUNET_CRYPTO_hkdf"]=asm["_GNUNET_CRYPTO_hkdf"];var _GNUNET_CRYPTO_rsa_public_key_decode=Module["_GNUNET_CRYPTO_rsa_public_key_decode"]=asm["_GNUNET_CRYPTO_rsa_public_key_decode"];var _GNUNET_CRYPTO_ecdsa_key_create=Module["_GNUNET_CRYPTO_ecdsa_key_create"]=asm["_GNUNET_CRYPTO_ecdsa_key_create"];var _TALER_WRALL_ecdsa_public_key_from_private=Module["_TALER_WRALL_ecdsa_public_key_from_private"]=asm["_TALER_WRALL_ecdsa_public_key_from_private"];var _memmove=Module["_memmove"]=asm["_memmove"];var _GNUNET_CRYPTO_rsa_public_key_encode=Module["_GNUNET_CRYPTO_rsa_public_key_encode"]=asm["_GNUNET_CRYPTO_rsa_public_key_encode"];var ___remdi3=Module["___remdi3"]=asm["___remdi3"];var _GNUNET_CRYPTO_hash=Module["_GNUNET_CRYPTO_hash"]=asm["_GNUNET_CRYPTO_hash"];var _TALER_WR_get_value=Module["_TALER_WR_get_value"]=asm["_TALER_WR_get_value"];var _GNUNET_CRYPTO_rsa_signature_decode=Module["_GNUNET_CRYPTO_rsa_signature_decode"]=asm["_GNUNET_CRYPTO_rsa_signature_decode"];var _TALER_WRALL_ecdhe_public_key_from_private=Module["_TALER_WRALL_ecdhe_public_key_from_private"]=asm["_TALER_WRALL_ecdhe_public_key_from_private"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.establishStackSpace=asm["establishStackSpace"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){assert(runDependencies==0,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");assert(__ATPRERUN__.length==0,"cannot call main when preRun functions remain to be called");args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);try{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){Module.printErr("run() called, but dependencies remain, so not running");return}writeStackCookie();preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(ENVIRONMENT_IS_WEB&&preloadStartTime!==null){Module.printErr("pre-main prep time: "+(Date.now()-preloadStartTime)+" ms")}if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}checkStackCookie()}Module["run"]=Module.run=run;function exit(status,implicit){if(implicit&&Module["noExitRuntime"]){Module.printErr("exit("+status+") implicitly called by end of main(), but noExitRuntime, so not exiting the runtime (you can use emscripten_force_exit, if you want to force a true shutdown)");return}if(Module["noExitRuntime"]){Module.printErr("exit("+status+") called, but noExitRuntime, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)")}else{ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status)}if(ENVIRONMENT_IS_NODE){process["exit"](status)}else if(ENVIRONMENT_IS_SHELL&&typeof quit==="function"){quit(status)}throw new ExitStatus(status)}Module["exit"]=Module.exit=exit;var abortDecorators=[];function abort(what){if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;var extra="";var output="abort("+what+") at "+stackTrace()+extra;if(abortDecorators){abortDecorators.forEach((function(decorator){output=decorator(output,what)}))}throw output}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}run()
-
-
-
-
diff --git a/lib/refs.d.ts b/lib/refs.d.ts
deleted file mode 100644
index a1012b8d3..000000000
--- a/lib/refs.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-
-// Help the TypeScript compiler find declarations.
-
-/// <reference path="decl/lib.es6.d.ts" />
-/// <reference path="decl/urijs/URIjs.d.ts" />
-/// <reference path="decl/systemjs/systemjs.d.ts" />
-/// <reference path="decl/react-global.d.ts" />
diff --git a/lib/vendor/URI.js b/lib/vendor/URI.js
deleted file mode 100644
index c041b4304..000000000
--- a/lib/vendor/URI.js
+++ /dev/null
@@ -1,2162 +0,0 @@
-/*!
- * URI.js - Mutating URLs
- *
- * Version: 1.17.0
- *
- * Author: Rodney Rehm
- * Web: http://medialize.github.io/URI.js/
- *
- * Licensed under
- * MIT License http://www.opensource.org/licenses/mit-license
- * GPL v3 http://opensource.org/licenses/GPL-3.0
- *
- */
-(function (root, factory) {
- 'use strict';
- // https://github.com/umdjs/umd/blob/master/returnExports.js
- if (typeof exports === 'object') {
- // Node
- module.exports = factory(require('./punycode'), require('./IPv6'), require('./SecondLevelDomains'));
- } else if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define(['./punycode', './IPv6', './SecondLevelDomains'], factory);
- } else {
- // Browser globals (root is window)
- root.URI = factory(root.punycode, root.IPv6, root.SecondLevelDomains, root);
- }
-}(this, function (punycode, IPv6, SLD, root) {
- 'use strict';
- /*global location, escape, unescape */
- // FIXME: v2.0.0 renamce non-camelCase properties to uppercase
- /*jshint camelcase: false */
-
- // save current URI variable, if any
- var _URI = root && root.URI;
-
- function URI(url, base) {
- var _urlSupplied = arguments.length >= 1;
- var _baseSupplied = arguments.length >= 2;
-
- // Allow instantiation without the 'new' keyword
- if (!(this instanceof URI)) {
- if (_urlSupplied) {
- if (_baseSupplied) {
- return new URI(url, base);
- }
-
- return new URI(url);
- }
-
- return new URI();
- }
-
- if (url === undefined) {
- if (_urlSupplied) {
- throw new TypeError('undefined is not a valid argument for URI');
- }
-
- if (typeof location !== 'undefined') {
- url = location.href + '';
- } else {
- url = '';
- }
- }
-
- this.href(url);
-
- // resolve to base according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#constructor
- if (base !== undefined) {
- return this.absoluteTo(base);
- }
-
- return this;
- }
-
- URI.version = '1.17.0';
-
- var p = URI.prototype;
- var hasOwn = Object.prototype.hasOwnProperty;
-
- function escapeRegEx(string) {
- // https://github.com/medialize/URI.js/commit/85ac21783c11f8ccab06106dba9735a31a86924d#commitcomment-821963
- return string.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
- }
-
- function getType(value) {
- // IE8 doesn't return [Object Undefined] but [Object Object] for undefined value
- if (value === undefined) {
- return 'Undefined';
- }
-
- return String(Object.prototype.toString.call(value)).slice(8, -1);
- }
-
- function isArray(obj) {
- return getType(obj) === 'Array';
- }
-
- function filterArrayValues(data, value) {
- var lookup = {};
- var i, length;
-
- if (getType(value) === 'RegExp') {
- lookup = null;
- } else if (isArray(value)) {
- for (i = 0, length = value.length; i < length; i++) {
- lookup[value[i]] = true;
- }
- } else {
- lookup[value] = true;
- }
-
- for (i = 0, length = data.length; i < length; i++) {
- /*jshint laxbreak: true */
- var _match = lookup && lookup[data[i]] !== undefined
- || !lookup && value.test(data[i]);
- /*jshint laxbreak: false */
- if (_match) {
- data.splice(i, 1);
- length--;
- i--;
- }
- }
-
- return data;
- }
-
- function arrayContains(list, value) {
- var i, length;
-
- // value may be string, number, array, regexp
- if (isArray(value)) {
- // Note: this can be optimized to O(n) (instead of current O(m * n))
- for (i = 0, length = value.length; i < length; i++) {
- if (!arrayContains(list, value[i])) {
- return false;
- }
- }
-
- return true;
- }
-
- var _type = getType(value);
- for (i = 0, length = list.length; i < length; i++) {
- if (_type === 'RegExp') {
- if (typeof list[i] === 'string' && list[i].match(value)) {
- return true;
- }
- } else if (list[i] === value) {
- return true;
- }
- }
-
- return false;
- }
-
- function arraysEqual(one, two) {
- if (!isArray(one) || !isArray(two)) {
- return false;
- }
-
- // arrays can't be equal if they have different amount of content
- if (one.length !== two.length) {
- return false;
- }
-
- one.sort();
- two.sort();
-
- for (var i = 0, l = one.length; i < l; i++) {
- if (one[i] !== two[i]) {
- return false;
- }
- }
-
- return true;
- }
-
- function trimSlashes(text) {
- var trim_expression = /^\/+|\/+$/g;
- return text.replace(trim_expression, '');
- }
-
- URI._parts = function() {
- return {
- protocol: null,
- username: null,
- password: null,
- hostname: null,
- urn: null,
- port: null,
- path: null,
- query: null,
- fragment: null,
- // state
- duplicateQueryParameters: URI.duplicateQueryParameters,
- escapeQuerySpace: URI.escapeQuerySpace
- };
- };
- // state: allow duplicate query parameters (a=1&a=1)
- URI.duplicateQueryParameters = false;
- // state: replaces + with %20 (space in query strings)
- URI.escapeQuerySpace = true;
- // static properties
- URI.protocol_expression = /^[a-z][a-z0-9.+-]*$/i;
- URI.idn_expression = /[^a-z0-9\.-]/i;
- URI.punycode_expression = /(xn--)/i;
- // well, 333.444.555.666 matches, but it sure ain't no IPv4 - do we care?
- URI.ip4_expression = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
- // credits to Rich Brown
- // source: http://forums.intermapper.com/viewtopic.php?p=1096#1096
- // specification: http://www.ietf.org/rfc/rfc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)?\s*$/;
- // expression used is "gruber revised" (@gruber v2) determined to be the
- // best solution in a regex-golf we did a couple of ages ago at
- // * http://mathiasbynens.be/demo/url-regex
- // * http://rodneyrehm.de/t/url-regex.html
- URI.find_uri_expression = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig;
- URI.findUri = {
- // valid "scheme://" or "www."
- start: /\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,
- // everything up to the next whitespace
- end: /[\s\r\n]|$/,
- // trim trailing punctuation captured by end RegExp
- trim: /[`!()\[\]{};:'".,<>?«»“”„‘’]+$/
- };
- // http://www.iana.org/assignments/uri-schemes.html
- // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
- URI.defaultPorts = {
- http: '80',
- https: '443',
- ftp: '21',
- gopher: '70',
- ws: '80',
- wss: '443'
- };
- // allowed hostname characters according to RFC 3986
- // ALPHA DIGIT "-" "." "_" "~" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" %encoded
- // I've never seen a (non-IDN) hostname other than: ALPHA DIGIT . -
- URI.invalid_hostname_characters = /[^a-zA-Z0-9\.-]/;
- // map DOM Elements to their URI attribute
- URI.domAttributes = {
- 'a': 'href',
- 'blockquote': 'cite',
- 'link': 'href',
- 'base': 'href',
- 'script': 'src',
- 'form': 'action',
- 'img': 'src',
- 'area': 'href',
- 'iframe': 'src',
- 'embed': 'src',
- 'source': 'src',
- 'track': 'src',
- 'input': 'src', // but only if type="image"
- 'audio': 'src',
- 'video': 'src'
- };
- URI.getDomAttribute = function(node) {
- if (!node || !node.nodeName) {
- return undefined;
- }
-
- var nodeName = node.nodeName.toLowerCase();
- // <input> should only expose src for type="image"
- if (nodeName === 'input' && node.type !== 'image') {
- return undefined;
- }
-
- return URI.domAttributes[nodeName];
- };
-
- function escapeForDumbFirefox36(value) {
- // https://github.com/medialize/URI.js/issues/91
- return escape(value);
- }
-
- // encoding / decoding according to RFC3986
- function strictEncodeURIComponent(string) {
- // see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent
- return encodeURIComponent(string)
- .replace(/[!'()*]/g, escapeForDumbFirefox36)
- .replace(/\*/g, '%2A');
- }
- URI.encode = strictEncodeURIComponent;
- URI.decode = decodeURIComponent;
- URI.iso8859 = function() {
- URI.encode = escape;
- URI.decode = unescape;
- };
- URI.unicode = function() {
- URI.encode = strictEncodeURIComponent;
- URI.decode = decodeURIComponent;
- };
- URI.characters = {
- pathname: {
- encode: {
- // RFC3986 2.1: For consistency, URI producers and normalizers should
- // use uppercase hexadecimal digits for all percent-encodings.
- expression: /%(24|26|2B|2C|3B|3D|3A|40)/ig,
- map: {
- // -._~!'()*
- '%24': '$',
- '%26': '&',
- '%2B': '+',
- '%2C': ',',
- '%3B': ';',
- '%3D': '=',
- '%3A': ':',
- '%40': '@'
- }
- },
- decode: {
- expression: /[\/\?#]/g,
- map: {
- '/': '%2F',
- '?': '%3F',
- '#': '%23'
- }
- }
- },
- reserved: {
- encode: {
- // RFC3986 2.1: For consistency, URI producers and normalizers should
- // use uppercase hexadecimal digits for all percent-encodings.
- expression: /%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,
- map: {
- // gen-delims
- '%3A': ':',
- '%2F': '/',
- '%3F': '?',
- '%23': '#',
- '%5B': '[',
- '%5D': ']',
- '%40': '@',
- // sub-delims
- '%21': '!',
- '%24': '$',
- '%26': '&',
- '%27': '\'',
- '%28': '(',
- '%29': ')',
- '%2A': '*',
- '%2B': '+',
- '%2C': ',',
- '%3B': ';',
- '%3D': '='
- }
- }
- },
- urnpath: {
- // The characters under `encode` are the characters called out by RFC 2141 as being acceptable
- // for usage in a URN. RFC2141 also calls out "-", ".", and "_" as acceptable characters, but
- // these aren't encoded by encodeURIComponent, so we don't have to call them out here. Also
- // note that the colon character is not featured in the encoding map; this is because URI.js
- // gives the colons in URNs semantic meaning as the delimiters of path segements, and so it
- // should not appear unencoded in a segment itself.
- // See also the note above about RFC3986 and capitalalized hex digits.
- encode: {
- expression: /%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,
- map: {
- '%21': '!',
- '%24': '$',
- '%27': '\'',
- '%28': '(',
- '%29': ')',
- '%2A': '*',
- '%2B': '+',
- '%2C': ',',
- '%3B': ';',
- '%3D': '=',
- '%40': '@'
- }
- },
- // These characters are the characters called out by RFC2141 as "reserved" characters that
- // should never appear in a URN, plus the colon character (see note above).
- decode: {
- expression: /[\/\?#:]/g,
- map: {
- '/': '%2F',
- '?': '%3F',
- '#': '%23',
- ':': '%3A'
- }
- }
- }
- };
- URI.encodeQuery = function(string, escapeQuerySpace) {
- var escaped = URI.encode(string + '');
- if (escapeQuerySpace === undefined) {
- escapeQuerySpace = URI.escapeQuerySpace;
- }
-
- return escapeQuerySpace ? escaped.replace(/%20/g, '+') : escaped;
- };
- URI.decodeQuery = function(string, escapeQuerySpace) {
- string += '';
- if (escapeQuerySpace === undefined) {
- escapeQuerySpace = URI.escapeQuerySpace;
- }
-
- try {
- return URI.decode(escapeQuerySpace ? string.replace(/\+/g, '%20') : string);
- } catch(e) {
- // we're not going to mess with weird encodings,
- // give up and return the undecoded original string
- // see https://github.com/medialize/URI.js/issues/87
- // see https://github.com/medialize/URI.js/issues/92
- return string;
- }
- };
- // generate encode/decode path functions
- var _parts = {'encode':'encode', 'decode':'decode'};
- var _part;
- var generateAccessor = function(_group, _part) {
- return function(string) {
- try {
- return URI[_part](string + '').replace(URI.characters[_group][_part].expression, function(c) {
- return URI.characters[_group][_part].map[c];
- });
- } catch (e) {
- // we're not going to mess with weird encodings,
- // give up and return the undecoded original string
- // see https://github.com/medialize/URI.js/issues/87
- // see https://github.com/medialize/URI.js/issues/92
- return string;
- }
- };
- };
-
- for (_part in _parts) {
- URI[_part + 'PathSegment'] = generateAccessor('pathname', _parts[_part]);
- URI[_part + 'UrnPathSegment'] = generateAccessor('urnpath', _parts[_part]);
- }
-
- var generateSegmentedPathFunction = function(_sep, _codingFuncName, _innerCodingFuncName) {
- return function(string) {
- // Why pass in names of functions, rather than the function objects themselves? The
- // definitions of some functions (but in particular, URI.decode) will occasionally change due
- // to URI.js having ISO8859 and Unicode modes. Passing in the name and getting it will ensure
- // that the functions we use here are "fresh".
- var actualCodingFunc;
- if (!_innerCodingFuncName) {
- actualCodingFunc = URI[_codingFuncName];
- } else {
- actualCodingFunc = function(string) {
- return URI[_codingFuncName](URI[_innerCodingFuncName](string));
- };
- }
-
- var segments = (string + '').split(_sep);
-
- for (var i = 0, length = segments.length; i < length; i++) {
- segments[i] = actualCodingFunc(segments[i]);
- }
-
- return segments.join(_sep);
- };
- };
-
- // This takes place outside the above loop because we don't want, e.g., encodeUrnPath functions.
- URI.decodePath = generateSegmentedPathFunction('/', 'decodePathSegment');
- URI.decodeUrnPath = generateSegmentedPathFunction(':', 'decodeUrnPathSegment');
- URI.recodePath = generateSegmentedPathFunction('/', 'encodePathSegment', 'decode');
- URI.recodeUrnPath = generateSegmentedPathFunction(':', 'encodeUrnPathSegment', 'decode');
-
- URI.encodeReserved = generateAccessor('reserved', 'encode');
-
- URI.parse = function(string, parts) {
- var pos;
- if (!parts) {
- parts = {};
- }
- // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
-
- // extract fragment
- pos = string.indexOf('#');
- if (pos > -1) {
- // escaping?
- parts.fragment = string.substring(pos + 1) || null;
- string = string.substring(0, pos);
- }
-
- // extract query
- pos = string.indexOf('?');
- if (pos > -1) {
- // escaping?
- parts.query = string.substring(pos + 1) || null;
- string = string.substring(0, pos);
- }
-
- // extract protocol
- if (string.substring(0, 2) === '//') {
- // relative-scheme
- parts.protocol = null;
- string = string.substring(2);
- // extract "user:pass@host:port"
- string = URI.parseAuthority(string, parts);
- } else {
- pos = string.indexOf(':');
- if (pos > -1) {
- parts.protocol = string.substring(0, pos) || null;
- if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
- // : may be within the path
- parts.protocol = undefined;
- } else if (string.substring(pos + 1, pos + 3) === '//') {
- string = string.substring(pos + 3);
-
- // extract "user:pass@host:port"
- string = URI.parseAuthority(string, parts);
- } else {
- string = string.substring(pos + 1);
- parts.urn = true;
- }
- }
- }
-
- // what's left must be the path
- parts.path = string;
-
- // and we're done
- return parts;
- };
- URI.parseHost = function(string, parts) {
- // Copy chrome, IE, opera backslash-handling behavior.
- // Back slashes before the query string get converted to forward slashes
- // See: https://github.com/joyent/node/blob/386fd24f49b0e9d1a8a076592a404168faeecc34/lib/url.js#L115-L124
- // See: https://code.google.com/p/chromium/issues/detail?id=25916
- // https://github.com/medialize/URI.js/pull/233
- string = string.replace(/\\/g, '/');
-
- // extract host:port
- var pos = string.indexOf('/');
- var bracketPos;
- var t;
-
- if (pos === -1) {
- pos = string.length;
- }
-
- if (string.charAt(0) === '[') {
- // IPv6 host - http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04#section-6
- // I claim most client software breaks on IPv6 anyways. To simplify things, URI only accepts
- // IPv6+port in the format [2001:db8::1]:80 (for the time being)
- bracketPos = string.indexOf(']');
- parts.hostname = string.substring(1, bracketPos) || null;
- parts.port = string.substring(bracketPos + 2, pos) || null;
- if (parts.port === '/') {
- parts.port = null;
- }
- } else {
- var firstColon = string.indexOf(':');
- var firstSlash = string.indexOf('/');
- var nextColon = string.indexOf(':', firstColon + 1);
- if (nextColon !== -1 && (firstSlash === -1 || nextColon < firstSlash)) {
- // IPv6 host contains multiple colons - but no port
- // this notation is actually not allowed by RFC 3986, but we're a liberal parser
- parts.hostname = string.substring(0, pos) || null;
- parts.port = null;
- } else {
- t = string.substring(0, pos).split(':');
- parts.hostname = t[0] || null;
- parts.port = t[1] || null;
- }
- }
-
- if (parts.hostname && string.substring(pos).charAt(0) !== '/') {
- pos++;
- string = '/' + string;
- }
-
- return string.substring(pos) || '/';
- };
- URI.parseAuthority = function(string, parts) {
- string = URI.parseUserinfo(string, parts);
- return URI.parseHost(string, parts);
- };
- URI.parseUserinfo = function(string, parts) {
- // extract username:password
- var firstSlash = string.indexOf('/');
- var pos = string.lastIndexOf('@', firstSlash > -1 ? firstSlash : string.length - 1);
- var t;
-
- // authority@ must come before /path
- if (pos > -1 && (firstSlash === -1 || pos < firstSlash)) {
- t = string.substring(0, pos).split(':');
- parts.username = t[0] ? URI.decode(t[0]) : null;
- t.shift();
- parts.password = t[0] ? URI.decode(t.join(':')) : null;
- string = string.substring(pos + 1);
- } else {
- parts.username = null;
- parts.password = null;
- }
-
- return string;
- };
- URI.parseQuery = function(string, escapeQuerySpace) {
- if (!string) {
- return {};
- }
-
- // throw out the funky business - "?"[name"="value"&"]+
- string = string.replace(/&+/g, '&').replace(/^\?*&*|&+$/g, '');
-
- if (!string) {
- return {};
- }
-
- var items = {};
- var splits = string.split('&');
- var length = splits.length;
- var v, name, value;
-
- for (var i = 0; i < length; i++) {
- v = splits[i].split('=');
- name = URI.decodeQuery(v.shift(), escapeQuerySpace);
- // no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
- value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
-
- if (hasOwn.call(items, name)) {
- if (typeof items[name] === 'string' || items[name] === null) {
- items[name] = [items[name]];
- }
-
- items[name].push(value);
- } else {
- items[name] = value;
- }
- }
-
- return items;
- };
-
- URI.build = function(parts) {
- var t = '';
-
- if (parts.protocol) {
- t += parts.protocol + ':';
- }
-
- if (!parts.urn && (t || parts.hostname)) {
- t += '//';
- }
-
- t += (URI.buildAuthority(parts) || '');
-
- if (typeof parts.path === 'string') {
- if (parts.path.charAt(0) !== '/' && typeof parts.hostname === 'string') {
- t += '/';
- }
-
- t += parts.path;
- }
-
- if (typeof parts.query === 'string' && parts.query) {
- t += '?' + parts.query;
- }
-
- if (typeof parts.fragment === 'string' && parts.fragment) {
- t += '#' + parts.fragment;
- }
- return t;
- };
- URI.buildHost = function(parts) {
- var t = '';
-
- if (!parts.hostname) {
- return '';
- } else if (URI.ip6_expression.test(parts.hostname)) {
- t += '[' + parts.hostname + ']';
- } else {
- t += parts.hostname;
- }
-
- if (parts.port) {
- t += ':' + parts.port;
- }
-
- return t;
- };
- URI.buildAuthority = function(parts) {
- return URI.buildUserinfo(parts) + URI.buildHost(parts);
- };
- URI.buildUserinfo = function(parts) {
- var t = '';
-
- if (parts.username) {
- t += URI.encode(parts.username);
-
- if (parts.password) {
- t += ':' + URI.encode(parts.password);
- }
-
- t += '@';
- }
-
- return t;
- };
- URI.buildQuery = function(data, duplicateQueryParameters, escapeQuerySpace) {
- // according to http://tools.ietf.org/html/rfc3986 or http://labs.apache.org/webarch/uri/rfc/rfc3986.html
- // being »-._~!$&'()*+,;=:@/?« %HEX and alnum are allowed
- // the RFC explicitly states ?/foo being a valid use case, no mention of parameter syntax!
- // URI.js treats the query string as being application/x-www-form-urlencoded
- // see http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type
-
- var t = '';
- var unique, key, i, length;
- for (key in data) {
- if (hasOwn.call(data, key) && key) {
- if (isArray(data[key])) {
- unique = {};
- for (i = 0, length = data[key].length; i < length; i++) {
- if (data[key][i] !== undefined && unique[data[key][i] + ''] === undefined) {
- t += '&' + URI.buildQueryParameter(key, data[key][i], escapeQuerySpace);
- if (duplicateQueryParameters !== true) {
- unique[data[key][i] + ''] = true;
- }
- }
- }
- } else if (data[key] !== undefined) {
- t += '&' + URI.buildQueryParameter(key, data[key], escapeQuerySpace);
- }
- }
- }
-
- return t.substring(1);
- };
- URI.buildQueryParameter = function(name, value, escapeQuerySpace) {
- // http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type -- application/x-www-form-urlencoded
- // don't append "=" for null values, according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#url-parameter-serialization
- return URI.encodeQuery(name, escapeQuerySpace) + (value !== null ? '=' + URI.encodeQuery(value, escapeQuerySpace) : '');
- };
-
- URI.addQuery = function(data, name, value) {
- if (typeof name === 'object') {
- for (var key in name) {
- if (hasOwn.call(name, key)) {
- URI.addQuery(data, key, name[key]);
- }
- }
- } else if (typeof name === 'string') {
- if (data[name] === undefined) {
- data[name] = value;
- return;
- } else if (typeof data[name] === 'string') {
- data[name] = [data[name]];
- }
-
- if (!isArray(value)) {
- value = [value];
- }
-
- data[name] = (data[name] || []).concat(value);
- } else {
- throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
- }
- };
- URI.removeQuery = function(data, name, value) {
- var i, length, key;
-
- if (isArray(name)) {
- for (i = 0, length = name.length; i < length; i++) {
- data[name[i]] = undefined;
- }
- } else if (getType(name) === 'RegExp') {
- for (key in data) {
- if (name.test(key)) {
- data[key] = undefined;
- }
- }
- } else if (typeof name === 'object') {
- for (key in name) {
- if (hasOwn.call(name, key)) {
- URI.removeQuery(data, key, name[key]);
- }
- }
- } else if (typeof name === 'string') {
- if (value !== undefined) {
- if (getType(value) === 'RegExp') {
- if (!isArray(data[name]) && value.test(data[name])) {
- data[name] = undefined;
- } else {
- data[name] = filterArrayValues(data[name], value);
- }
- } else if (data[name] === String(value) && (!isArray(value) || value.length === 1)) {
- data[name] = undefined;
- } else if (isArray(data[name])) {
- data[name] = filterArrayValues(data[name], value);
- }
- } else {
- data[name] = undefined;
- }
- } else {
- throw new TypeError('URI.removeQuery() accepts an object, string, RegExp as the first parameter');
- }
- };
- URI.hasQuery = function(data, name, value, withinArray) {
- if (typeof name === 'object') {
- for (var key in name) {
- if (hasOwn.call(name, key)) {
- if (!URI.hasQuery(data, key, name[key])) {
- return false;
- }
- }
- }
-
- return true;
- } else if (typeof name !== 'string') {
- throw new TypeError('URI.hasQuery() accepts an object, string as the name parameter');
- }
-
- switch (getType(value)) {
- case 'Undefined':
- // true if exists (but may be empty)
- return name in data; // data[name] !== undefined;
-
- case 'Boolean':
- // true if exists and non-empty
- var _booly = Boolean(isArray(data[name]) ? data[name].length : data[name]);
- return value === _booly;
-
- case 'Function':
- // allow complex comparison
- return !!value(data[name], name, data);
-
- case 'Array':
- if (!isArray(data[name])) {
- return false;
- }
-
- var op = withinArray ? arrayContains : arraysEqual;
- return op(data[name], value);
-
- case 'RegExp':
- if (!isArray(data[name])) {
- return Boolean(data[name] && data[name].match(value));
- }
-
- if (!withinArray) {
- return false;
- }
-
- return arrayContains(data[name], value);
-
- case 'Number':
- value = String(value);
- /* falls through */
- case 'String':
- if (!isArray(data[name])) {
- return data[name] === value;
- }
-
- if (!withinArray) {
- return false;
- }
-
- return arrayContains(data[name], value);
-
- default:
- throw new TypeError('URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter');
- }
- };
-
-
- URI.commonPath = function(one, two) {
- var length = Math.min(one.length, two.length);
- var pos;
-
- // find first non-matching character
- for (pos = 0; pos < length; pos++) {
- if (one.charAt(pos) !== two.charAt(pos)) {
- pos--;
- break;
- }
- }
-
- if (pos < 1) {
- return one.charAt(0) === two.charAt(0) && one.charAt(0) === '/' ? '/' : '';
- }
-
- // revert to last /
- if (one.charAt(pos) !== '/' || two.charAt(pos) !== '/') {
- pos = one.substring(0, pos).lastIndexOf('/');
- }
-
- return one.substring(0, pos + 1);
- };
-
- URI.withinString = function(string, callback, options) {
- options || (options = {});
- var _start = options.start || URI.findUri.start;
- var _end = options.end || URI.findUri.end;
- var _trim = options.trim || URI.findUri.trim;
- var _attributeOpen = /[a-z0-9-]=["']?$/i;
-
- _start.lastIndex = 0;
- while (true) {
- var match = _start.exec(string);
- if (!match) {
- break;
- }
-
- var start = match.index;
- if (options.ignoreHtml) {
- // attribut(e=["']?$)
- var attributeOpen = string.slice(Math.max(start - 3, 0), start);
- if (attributeOpen && _attributeOpen.test(attributeOpen)) {
- continue;
- }
- }
-
- var end = start + string.slice(start).search(_end);
- var slice = string.slice(start, end).replace(_trim, '');
- if (options.ignore && options.ignore.test(slice)) {
- continue;
- }
-
- end = start + slice.length;
- var result = callback(slice, start, end, string);
- string = string.slice(0, start) + result + string.slice(end);
- _start.lastIndex = start + result.length;
- }
-
- _start.lastIndex = 0;
- return string;
- };
-
- URI.ensureValidHostname = function(v) {
- // Theoretically URIs allow percent-encoding in Hostnames (according to RFC 3986)
- // they are not part of DNS and therefore ignored by URI.js
-
- if (v.match(URI.invalid_hostname_characters)) {
- // test punycode
- if (!punycode) {
- throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-] and Punycode.js is not available');
- }
-
- if (punycode.toASCII(v).match(URI.invalid_hostname_characters)) {
- throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
- }
- }
- };
-
- // noConflict
- URI.noConflict = function(removeAll) {
- if (removeAll) {
- var unconflicted = {
- URI: this.noConflict()
- };
-
- if (root.URITemplate && typeof root.URITemplate.noConflict === 'function') {
- unconflicted.URITemplate = root.URITemplate.noConflict();
- }
-
- if (root.IPv6 && typeof root.IPv6.noConflict === 'function') {
- unconflicted.IPv6 = root.IPv6.noConflict();
- }
-
- if (root.SecondLevelDomains && typeof root.SecondLevelDomains.noConflict === 'function') {
- unconflicted.SecondLevelDomains = root.SecondLevelDomains.noConflict();
- }
-
- return unconflicted;
- } else if (root.URI === this) {
- root.URI = _URI;
- }
-
- return this;
- };
-
- p.build = function(deferBuild) {
- if (deferBuild === true) {
- this._deferred_build = true;
- } else if (deferBuild === undefined || this._deferred_build) {
- this._string = URI.build(this._parts);
- this._deferred_build = false;
- }
-
- return this;
- };
-
- p.clone = function() {
- return new URI(this);
- };
-
- p.valueOf = p.toString = function() {
- return this.build(false)._string;
- };
-
-
- function generateSimpleAccessor(_part){
- return function(v, build) {
- if (v === undefined) {
- return this._parts[_part] || '';
- } else {
- this._parts[_part] = v || null;
- this.build(!build);
- return this;
- }
- };
- }
-
- function generatePrefixAccessor(_part, _key){
- return function(v, build) {
- if (v === undefined) {
- return this._parts[_part] || '';
- } else {
- if (v !== null) {
- v = v + '';
- if (v.charAt(0) === _key) {
- v = v.substring(1);
- }
- }
-
- this._parts[_part] = v;
- this.build(!build);
- return this;
- }
- };
- }
-
- p.protocol = generateSimpleAccessor('protocol');
- p.username = generateSimpleAccessor('username');
- p.password = generateSimpleAccessor('password');
- p.hostname = generateSimpleAccessor('hostname');
- p.port = generateSimpleAccessor('port');
- p.query = generatePrefixAccessor('query', '?');
- p.fragment = generatePrefixAccessor('fragment', '#');
-
- p.search = function(v, build) {
- var t = this.query(v, build);
- return typeof t === 'string' && t.length ? ('?' + t) : t;
- };
- p.hash = function(v, build) {
- var t = this.fragment(v, build);
- return typeof t === 'string' && t.length ? ('#' + t) : t;
- };
-
- p.pathname = function(v, build) {
- if (v === undefined || v === true) {
- var res = this._parts.path || (this._parts.hostname ? '/' : '');
- return v ? (this._parts.urn ? URI.decodeUrnPath : URI.decodePath)(res) : res;
- } else {
- if (this._parts.urn) {
- this._parts.path = v ? URI.recodeUrnPath(v) : '';
- } else {
- this._parts.path = v ? URI.recodePath(v) : '/';
- }
- this.build(!build);
- return this;
- }
- };
- p.path = p.pathname;
- p.href = function(href, build) {
- var key;
-
- if (href === undefined) {
- return this.toString();
- }
-
- this._string = '';
- this._parts = URI._parts();
-
- var _URI = href instanceof URI;
- var _object = typeof href === 'object' && (href.hostname || href.path || href.pathname);
- if (href.nodeName) {
- var attribute = URI.getDomAttribute(href);
- href = href[attribute] || '';
- _object = false;
- }
-
- // window.location is reported to be an object, but it's not the sort
- // of object we're looking for:
- // * location.protocol ends with a colon
- // * location.query != object.search
- // * location.hash != object.fragment
- // simply serializing the unknown object should do the trick
- // (for location, not for everything...)
- if (!_URI && _object && href.pathname !== undefined) {
- href = href.toString();
- }
-
- if (typeof href === 'string' || href instanceof String) {
- this._parts = URI.parse(String(href), this._parts);
- } else if (_URI || _object) {
- var src = _URI ? href._parts : href;
- for (key in src) {
- if (hasOwn.call(this._parts, key)) {
- this._parts[key] = src[key];
- }
- }
- } else {
- throw new TypeError('invalid input');
- }
-
- this.build(!build);
- return this;
- };
-
- // identification accessors
- p.is = function(what) {
- var ip = false;
- var ip4 = false;
- var ip6 = false;
- var name = false;
- var sld = false;
- var idn = false;
- var punycode = false;
- var relative = !this._parts.urn;
-
- if (this._parts.hostname) {
- relative = false;
- ip4 = URI.ip4_expression.test(this._parts.hostname);
- ip6 = URI.ip6_expression.test(this._parts.hostname);
- ip = ip4 || ip6;
- name = !ip;
- sld = name && SLD && SLD.has(this._parts.hostname);
- idn = name && URI.idn_expression.test(this._parts.hostname);
- punycode = name && URI.punycode_expression.test(this._parts.hostname);
- }
-
- switch (what.toLowerCase()) {
- case 'relative':
- return relative;
-
- case 'absolute':
- return !relative;
-
- // hostname identification
- case 'domain':
- case 'name':
- return name;
-
- case 'sld':
- return sld;
-
- case 'ip':
- return ip;
-
- case 'ip4':
- case 'ipv4':
- case 'inet4':
- return ip4;
-
- case 'ip6':
- case 'ipv6':
- case 'inet6':
- return ip6;
-
- case 'idn':
- return idn;
-
- case 'url':
- return !this._parts.urn;
-
- case 'urn':
- return !!this._parts.urn;
-
- case 'punycode':
- return punycode;
- }
-
- return null;
- };
-
- // component specific input validation
- var _protocol = p.protocol;
- var _port = p.port;
- var _hostname = p.hostname;
-
- p.protocol = function(v, build) {
- if (v !== undefined) {
- if (v) {
- // accept trailing ://
- v = v.replace(/:(\/\/)?$/, '');
-
- if (!v.match(URI.protocol_expression)) {
- throw new TypeError('Protocol "' + v + '" contains characters other than [A-Z0-9.+-] or doesn\'t start with [A-Z]');
- }
- }
- }
- return _protocol.call(this, v, build);
- };
- p.scheme = p.protocol;
- p.port = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v !== undefined) {
- if (v === 0) {
- v = null;
- }
-
- if (v) {
- v += '';
- if (v.charAt(0) === ':') {
- v = v.substring(1);
- }
-
- if (v.match(/[^0-9]/)) {
- throw new TypeError('Port "' + v + '" contains characters other than [0-9]');
- }
- }
- }
- return _port.call(this, v, build);
- };
- p.hostname = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v !== undefined) {
- var x = {};
- var res = URI.parseHost(v, x);
- if (res !== '/') {
- throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
- }
-
- v = x.hostname;
- }
- return _hostname.call(this, v, build);
- };
-
- // compound accessors
- p.origin = function(v, build) {
- var parts;
-
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v === undefined) {
- var protocol = this.protocol();
- var authority = this.authority();
- if (!authority) return '';
- return (protocol ? protocol + '://' : '') + this.authority();
- } else {
- var origin = URI(v);
- this
- .protocol(origin.protocol())
- .authority(origin.authority())
- .build(!build);
- return this;
- }
- };
- p.host = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v === undefined) {
- return this._parts.hostname ? URI.buildHost(this._parts) : '';
- } else {
- var res = URI.parseHost(v, this._parts);
- if (res !== '/') {
- throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
- }
-
- this.build(!build);
- return this;
- }
- };
- p.authority = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v === undefined) {
- return this._parts.hostname ? URI.buildAuthority(this._parts) : '';
- } else {
- var res = URI.parseAuthority(v, this._parts);
- if (res !== '/') {
- throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
- }
-
- this.build(!build);
- return this;
- }
- };
- p.userinfo = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v === undefined) {
- if (!this._parts.username) {
- return '';
- }
-
- var t = URI.buildUserinfo(this._parts);
- return t.substring(0, t.length -1);
- } else {
- if (v[v.length-1] !== '@') {
- v += '@';
- }
-
- URI.parseUserinfo(v, this._parts);
- this.build(!build);
- return this;
- }
- };
- p.resource = function(v, build) {
- var parts;
-
- if (v === undefined) {
- return this.path() + this.search() + this.hash();
- }
-
- parts = URI.parse(v);
- this._parts.path = parts.path;
- this._parts.query = parts.query;
- this._parts.fragment = parts.fragment;
- this.build(!build);
- return this;
- };
-
- // fraction accessors
- p.subdomain = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- // convenience, return "www" from "www.example.org"
- if (v === undefined) {
- if (!this._parts.hostname || this.is('IP')) {
- return '';
- }
-
- // grab domain and add another segment
- var end = this._parts.hostname.length - this.domain().length - 1;
- return this._parts.hostname.substring(0, end) || '';
- } else {
- var e = this._parts.hostname.length - this.domain().length;
- var sub = this._parts.hostname.substring(0, e);
- var replace = new RegExp('^' + escapeRegEx(sub));
-
- if (v && v.charAt(v.length - 1) !== '.') {
- v += '.';
- }
-
- if (v) {
- URI.ensureValidHostname(v);
- }
-
- this._parts.hostname = this._parts.hostname.replace(replace, v);
- this.build(!build);
- return this;
- }
- };
- p.domain = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (typeof v === 'boolean') {
- build = v;
- v = undefined;
- }
-
- // convenience, return "example.org" from "www.example.org"
- if (v === undefined) {
- if (!this._parts.hostname || this.is('IP')) {
- return '';
- }
-
- // if hostname consists of 1 or 2 segments, it must be the domain
- var t = this._parts.hostname.match(/\./g);
- if (t && t.length < 2) {
- return this._parts.hostname;
- }
-
- // grab tld and add another segment
- var end = this._parts.hostname.length - this.tld(build).length - 1;
- end = this._parts.hostname.lastIndexOf('.', end -1) + 1;
- return this._parts.hostname.substring(end) || '';
- } else {
- if (!v) {
- throw new TypeError('cannot set domain empty');
- }
-
- URI.ensureValidHostname(v);
-
- if (!this._parts.hostname || this.is('IP')) {
- this._parts.hostname = v;
- } else {
- var replace = new RegExp(escapeRegEx(this.domain()) + '$');
- this._parts.hostname = this._parts.hostname.replace(replace, v);
- }
-
- this.build(!build);
- return this;
- }
- };
- p.tld = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (typeof v === 'boolean') {
- build = v;
- v = undefined;
- }
-
- // return "org" from "www.example.org"
- if (v === undefined) {
- if (!this._parts.hostname || this.is('IP')) {
- return '';
- }
-
- var pos = this._parts.hostname.lastIndexOf('.');
- var tld = this._parts.hostname.substring(pos + 1);
-
- if (build !== true && SLD && SLD.list[tld.toLowerCase()]) {
- return SLD.get(this._parts.hostname) || tld;
- }
-
- return tld;
- } else {
- var replace;
-
- if (!v) {
- throw new TypeError('cannot set TLD empty');
- } else if (v.match(/[^a-zA-Z0-9-]/)) {
- if (SLD && SLD.is(v)) {
- replace = new RegExp(escapeRegEx(this.tld()) + '$');
- this._parts.hostname = this._parts.hostname.replace(replace, v);
- } else {
- throw new TypeError('TLD "' + v + '" contains characters other than [A-Z0-9]');
- }
- } else if (!this._parts.hostname || this.is('IP')) {
- throw new ReferenceError('cannot set TLD on non-domain host');
- } else {
- replace = new RegExp(escapeRegEx(this.tld()) + '$');
- this._parts.hostname = this._parts.hostname.replace(replace, v);
- }
-
- this.build(!build);
- return this;
- }
- };
- p.directory = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v === undefined || v === true) {
- if (!this._parts.path && !this._parts.hostname) {
- return '';
- }
-
- if (this._parts.path === '/') {
- return '/';
- }
-
- var end = this._parts.path.length - this.filename().length - 1;
- var res = this._parts.path.substring(0, end) || (this._parts.hostname ? '/' : '');
-
- return v ? URI.decodePath(res) : res;
-
- } else {
- var e = this._parts.path.length - this.filename().length;
- var directory = this._parts.path.substring(0, e);
- var replace = new RegExp('^' + escapeRegEx(directory));
-
- // fully qualifier directories begin with a slash
- if (!this.is('relative')) {
- if (!v) {
- v = '/';
- }
-
- if (v.charAt(0) !== '/') {
- v = '/' + v;
- }
- }
-
- // directories always end with a slash
- if (v && v.charAt(v.length - 1) !== '/') {
- v += '/';
- }
-
- v = URI.recodePath(v);
- this._parts.path = this._parts.path.replace(replace, v);
- this.build(!build);
- return this;
- }
- };
- p.filename = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v === undefined || v === true) {
- if (!this._parts.path || this._parts.path === '/') {
- return '';
- }
-
- var pos = this._parts.path.lastIndexOf('/');
- var res = this._parts.path.substring(pos+1);
-
- return v ? URI.decodePathSegment(res) : res;
- } else {
- var mutatedDirectory = false;
-
- if (v.charAt(0) === '/') {
- v = v.substring(1);
- }
-
- if (v.match(/\.?\//)) {
- mutatedDirectory = true;
- }
-
- var replace = new RegExp(escapeRegEx(this.filename()) + '$');
- v = URI.recodePath(v);
- this._parts.path = this._parts.path.replace(replace, v);
-
- if (mutatedDirectory) {
- this.normalizePath(build);
- } else {
- this.build(!build);
- }
-
- return this;
- }
- };
- p.suffix = function(v, build) {
- if (this._parts.urn) {
- return v === undefined ? '' : this;
- }
-
- if (v === undefined || v === true) {
- if (!this._parts.path || this._parts.path === '/') {
- return '';
- }
-
- var filename = this.filename();
- var pos = filename.lastIndexOf('.');
- var s, res;
-
- if (pos === -1) {
- return '';
- }
-
- // suffix may only contain alnum characters (yup, I made this up.)
- s = filename.substring(pos+1);
- res = (/^[a-z0-9%]+$/i).test(s) ? s : '';
- return v ? URI.decodePathSegment(res) : res;
- } else {
- if (v.charAt(0) === '.') {
- v = v.substring(1);
- }
-
- var suffix = this.suffix();
- var replace;
-
- if (!suffix) {
- if (!v) {
- return this;
- }
-
- this._parts.path += '.' + URI.recodePath(v);
- } else if (!v) {
- replace = new RegExp(escapeRegEx('.' + suffix) + '$');
- } else {
- replace = new RegExp(escapeRegEx(suffix) + '$');
- }
-
- if (replace) {
- v = URI.recodePath(v);
- this._parts.path = this._parts.path.replace(replace, v);
- }
-
- this.build(!build);
- return this;
- }
- };
- p.segment = function(segment, v, build) {
- var separator = this._parts.urn ? ':' : '/';
- var path = this.path();
- var absolute = path.substring(0, 1) === '/';
- var segments = path.split(separator);
-
- if (segment !== undefined && typeof segment !== 'number') {
- build = v;
- v = segment;
- segment = undefined;
- }
-
- if (segment !== undefined && typeof segment !== 'number') {
- throw new Error('Bad segment "' + segment + '", must be 0-based integer');
- }
-
- if (absolute) {
- segments.shift();
- }
-
- if (segment < 0) {
- // allow negative indexes to address from the end
- segment = Math.max(segments.length + segment, 0);
- }
-
- if (v === undefined) {
- /*jshint laxbreak: true */
- return segment === undefined
- ? segments
- : segments[segment];
- /*jshint laxbreak: false */
- } else if (segment === null || segments[segment] === undefined) {
- if (isArray(v)) {
- segments = [];
- // collapse empty elements within array
- for (var i=0, l=v.length; i < l; i++) {
- if (!v[i].length && (!segments.length || !segments[segments.length -1].length)) {
- continue;
- }
-
- if (segments.length && !segments[segments.length -1].length) {
- segments.pop();
- }
-
- segments.push(trimSlashes(v[i]));
- }
- } else if (v || typeof v === 'string') {
- v = trimSlashes(v);
- if (segments[segments.length -1] === '') {
- // empty trailing elements have to be overwritten
- // to prevent results such as /foo//bar
- segments[segments.length -1] = v;
- } else {
- segments.push(v);
- }
- }
- } else {
- if (v) {
- segments[segment] = trimSlashes(v);
- } else {
- segments.splice(segment, 1);
- }
- }
-
- if (absolute) {
- segments.unshift('');
- }
-
- return this.path(segments.join(separator), build);
- };
- p.segmentCoded = function(segment, v, build) {
- var segments, i, l;
-
- if (typeof segment !== 'number') {
- build = v;
- v = segment;
- segment = undefined;
- }
-
- if (v === undefined) {
- segments = this.segment(segment, v, build);
- if (!isArray(segments)) {
- segments = segments !== undefined ? URI.decode(segments) : undefined;
- } else {
- for (i = 0, l = segments.length; i < l; i++) {
- segments[i] = URI.decode(segments[i]);
- }
- }
-
- return segments;
- }
-
- if (!isArray(v)) {
- v = (typeof v === 'string' || v instanceof String) ? URI.encode(v) : v;
- } else {
- for (i = 0, l = v.length; i < l; i++) {
- v[i] = URI.encode(v[i]);
- }
- }
-
- return this.segment(segment, v, build);
- };
-
- // mutating query string
- var q = p.query;
- p.query = function(v, build) {
- if (v === true) {
- return URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
- } else if (typeof v === 'function') {
- var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
- var result = v.call(this, data);
- this._parts.query = URI.buildQuery(result || data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
- this.build(!build);
- return this;
- } else if (v !== undefined && typeof v !== 'string') {
- this._parts.query = URI.buildQuery(v, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
- this.build(!build);
- return this;
- } else {
- return q.call(this, v, build);
- }
- };
- p.setQuery = function(name, value, build) {
- var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
-
- if (typeof name === 'string' || name instanceof String) {
- data[name] = value !== undefined ? value : null;
- } else if (typeof name === 'object') {
- for (var key in name) {
- if (hasOwn.call(name, key)) {
- data[key] = name[key];
- }
- }
- } else {
- throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
- }
-
- this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
- if (typeof name !== 'string') {
- build = value;
- }
-
- this.build(!build);
- return this;
- };
- p.addQuery = function(name, value, build) {
- var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
- URI.addQuery(data, name, value === undefined ? null : value);
- this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
- if (typeof name !== 'string') {
- build = value;
- }
-
- this.build(!build);
- return this;
- };
- p.removeQuery = function(name, value, build) {
- var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
- URI.removeQuery(data, name, value);
- this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
- if (typeof name !== 'string') {
- build = value;
- }
-
- this.build(!build);
- return this;
- };
- p.hasQuery = function(name, value, withinArray) {
- var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
- return URI.hasQuery(data, name, value, withinArray);
- };
- p.setSearch = p.setQuery;
- p.addSearch = p.addQuery;
- p.removeSearch = p.removeQuery;
- p.hasSearch = p.hasQuery;
-
- // sanitizing URLs
- p.normalize = function() {
- if (this._parts.urn) {
- return this
- .normalizeProtocol(false)
- .normalizePath(false)
- .normalizeQuery(false)
- .normalizeFragment(false)
- .build();
- }
-
- return this
- .normalizeProtocol(false)
- .normalizeHostname(false)
- .normalizePort(false)
- .normalizePath(false)
- .normalizeQuery(false)
- .normalizeFragment(false)
- .build();
- };
- p.normalizeProtocol = function(build) {
- if (typeof this._parts.protocol === 'string') {
- this._parts.protocol = this._parts.protocol.toLowerCase();
- this.build(!build);
- }
-
- return this;
- };
- p.normalizeHostname = function(build) {
- if (this._parts.hostname) {
- if (this.is('IDN') && punycode) {
- this._parts.hostname = punycode.toASCII(this._parts.hostname);
- } else if (this.is('IPv6') && IPv6) {
- this._parts.hostname = IPv6.best(this._parts.hostname);
- }
-
- this._parts.hostname = this._parts.hostname.toLowerCase();
- this.build(!build);
- }
-
- return this;
- };
- p.normalizePort = function(build) {
- // remove port of it's the protocol's default
- if (typeof this._parts.protocol === 'string' && this._parts.port === URI.defaultPorts[this._parts.protocol]) {
- this._parts.port = null;
- this.build(!build);
- }
-
- return this;
- };
- p.normalizePath = function(build) {
- var _path = this._parts.path;
- if (!_path) {
- return this;
- }
-
- if (this._parts.urn) {
- this._parts.path = URI.recodeUrnPath(this._parts.path);
- this.build(!build);
- return this;
- }
-
- if (this._parts.path === '/') {
- return this;
- }
-
- _path = URI.recodePath(_path);
-
- var _was_relative;
- var _leadingParents = '';
- var _parent, _pos;
-
- // handle relative paths
- if (_path.charAt(0) !== '/') {
- _was_relative = true;
- _path = '/' + _path;
- }
-
- // handle relative files (as opposed to directories)
- if (_path.slice(-3) === '/..' || _path.slice(-2) === '/.') {
- _path += '/';
- }
-
- // resolve simples
- _path = _path
- .replace(/(\/(\.\/)+)|(\/\.$)/g, '/')
- .replace(/\/{2,}/g, '/');
-
- // remember leading parents
- if (_was_relative) {
- _leadingParents = _path.substring(1).match(/^(\.\.\/)+/) || '';
- if (_leadingParents) {
- _leadingParents = _leadingParents[0];
- }
- }
-
- // resolve parents
- while (true) {
- _parent = _path.search(/\/\.\.(\/|$)/);
- if (_parent === -1) {
- // no more ../ to resolve
- break;
- } else if (_parent === 0) {
- // top level cannot be relative, skip it
- _path = _path.substring(3);
- continue;
- }
-
- _pos = _path.substring(0, _parent).lastIndexOf('/');
- if (_pos === -1) {
- _pos = _parent;
- }
- _path = _path.substring(0, _pos) + _path.substring(_parent + 3);
- }
-
- // revert to relative
- if (_was_relative && this.is('relative')) {
- _path = _leadingParents + _path.substring(1);
- }
-
- this._parts.path = _path;
- this.build(!build);
- return this;
- };
- p.normalizePathname = p.normalizePath;
- p.normalizeQuery = function(build) {
- if (typeof this._parts.query === 'string') {
- if (!this._parts.query.length) {
- this._parts.query = null;
- } else {
- this.query(URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace));
- }
-
- this.build(!build);
- }
-
- return this;
- };
- p.normalizeFragment = function(build) {
- if (!this._parts.fragment) {
- this._parts.fragment = null;
- this.build(!build);
- }
-
- return this;
- };
- p.normalizeSearch = p.normalizeQuery;
- p.normalizeHash = p.normalizeFragment;
-
- p.iso8859 = function() {
- // expect unicode input, iso8859 output
- var e = URI.encode;
- var d = URI.decode;
-
- URI.encode = escape;
- URI.decode = decodeURIComponent;
- try {
- this.normalize();
- } finally {
- URI.encode = e;
- URI.decode = d;
- }
- return this;
- };
-
- p.unicode = function() {
- // expect iso8859 input, unicode output
- var e = URI.encode;
- var d = URI.decode;
-
- URI.encode = strictEncodeURIComponent;
- URI.decode = unescape;
- try {
- this.normalize();
- } finally {
- URI.encode = e;
- URI.decode = d;
- }
- return this;
- };
-
- p.readable = function() {
- var uri = this.clone();
- // removing username, password, because they shouldn't be displayed according to RFC 3986
- uri.username('').password('').normalize();
- var t = '';
- if (uri._parts.protocol) {
- t += uri._parts.protocol + '://';
- }
-
- if (uri._parts.hostname) {
- if (uri.is('punycode') && punycode) {
- t += punycode.toUnicode(uri._parts.hostname);
- if (uri._parts.port) {
- t += ':' + uri._parts.port;
- }
- } else {
- t += uri.host();
- }
- }
-
- if (uri._parts.hostname && uri._parts.path && uri._parts.path.charAt(0) !== '/') {
- t += '/';
- }
-
- t += uri.path(true);
- if (uri._parts.query) {
- var q = '';
- for (var i = 0, qp = uri._parts.query.split('&'), l = qp.length; i < l; i++) {
- var kv = (qp[i] || '').split('=');
- q += '&' + URI.decodeQuery(kv[0], this._parts.escapeQuerySpace)
- .replace(/&/g, '%26');
-
- if (kv[1] !== undefined) {
- q += '=' + URI.decodeQuery(kv[1], this._parts.escapeQuerySpace)
- .replace(/&/g, '%26');
- }
- }
- t += '?' + q.substring(1);
- }
-
- t += URI.decodeQuery(uri.hash(), true);
- return t;
- };
-
- // resolving relative and absolute URLs
- p.absoluteTo = function(base) {
- var resolved = this.clone();
- var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
- var basedir, i, p;
-
- if (this._parts.urn) {
- throw new Error('URNs do not have any generally defined hierarchical components');
- }
-
- if (!(base instanceof URI)) {
- base = new URI(base);
- }
-
- if (!resolved._parts.protocol) {
- resolved._parts.protocol = base._parts.protocol;
- }
-
- if (this._parts.hostname) {
- return resolved;
- }
-
- for (i = 0; (p = properties[i]); i++) {
- resolved._parts[p] = base._parts[p];
- }
-
- if (!resolved._parts.path) {
- resolved._parts.path = base._parts.path;
- if (!resolved._parts.query) {
- resolved._parts.query = base._parts.query;
- }
- } else if (resolved._parts.path.substring(-2) === '..') {
- resolved._parts.path += '/';
- }
-
- if (resolved.path().charAt(0) !== '/') {
- basedir = base.directory();
- basedir = basedir ? basedir : base.path().indexOf('/') === 0 ? '/' : '';
- resolved._parts.path = (basedir ? (basedir + '/') : '') + resolved._parts.path;
- resolved.normalizePath();
- }
-
- resolved.build();
- return resolved;
- };
- p.relativeTo = function(base) {
- var relative = this.clone().normalize();
- var relativeParts, baseParts, common, relativePath, basePath;
-
- if (relative._parts.urn) {
- throw new Error('URNs do not have any generally defined hierarchical components');
- }
-
- base = new URI(base).normalize();
- relativeParts = relative._parts;
- baseParts = base._parts;
- relativePath = relative.path();
- basePath = base.path();
-
- if (relativePath.charAt(0) !== '/') {
- throw new Error('URI is already relative');
- }
-
- if (basePath.charAt(0) !== '/') {
- throw new Error('Cannot calculate a URI relative to another relative URI');
- }
-
- if (relativeParts.protocol === baseParts.protocol) {
- relativeParts.protocol = null;
- }
-
- if (relativeParts.username !== baseParts.username || relativeParts.password !== baseParts.password) {
- return relative.build();
- }
-
- if (relativeParts.protocol !== null || relativeParts.username !== null || relativeParts.password !== null) {
- return relative.build();
- }
-
- if (relativeParts.hostname === baseParts.hostname && relativeParts.port === baseParts.port) {
- relativeParts.hostname = null;
- relativeParts.port = null;
- } else {
- return relative.build();
- }
-
- if (relativePath === basePath) {
- relativeParts.path = '';
- return relative.build();
- }
-
- // determine common sub path
- common = URI.commonPath(relativePath, basePath);
-
- // If the paths have nothing in common, return a relative URL with the absolute path.
- if (!common) {
- return relative.build();
- }
-
- var parents = baseParts.path
- .substring(common.length)
- .replace(/[^\/]*$/, '')
- .replace(/.*?\//g, '../');
-
- relativeParts.path = (parents + relativeParts.path.substring(common.length)) || './';
-
- return relative.build();
- };
-
- // comparing URIs
- p.equals = function(uri) {
- var one = this.clone();
- var two = new URI(uri);
- var one_map = {};
- var two_map = {};
- var checked = {};
- var one_query, two_query, key;
-
- one.normalize();
- two.normalize();
-
- // exact match
- if (one.toString() === two.toString()) {
- return true;
- }
-
- // extract query string
- one_query = one.query();
- two_query = two.query();
- one.query('');
- two.query('');
-
- // definitely not equal if not even non-query parts match
- if (one.toString() !== two.toString()) {
- return false;
- }
-
- // query parameters have the same length, even if they're permuted
- if (one_query.length !== two_query.length) {
- return false;
- }
-
- one_map = URI.parseQuery(one_query, this._parts.escapeQuerySpace);
- two_map = URI.parseQuery(two_query, this._parts.escapeQuerySpace);
-
- for (key in one_map) {
- if (hasOwn.call(one_map, key)) {
- if (!isArray(one_map[key])) {
- if (one_map[key] !== two_map[key]) {
- return false;
- }
- } else if (!arraysEqual(one_map[key], two_map[key])) {
- return false;
- }
-
- checked[key] = true;
- }
- }
-
- for (key in two_map) {
- if (hasOwn.call(two_map, key)) {
- if (!checked[key]) {
- // two contains a parameter not present in one
- return false;
- }
- }
- }
-
- return true;
- };
-
- // state
- p.duplicateQueryParameters = function(v) {
- this._parts.duplicateQueryParameters = !!v;
- return this;
- };
-
- p.escapeQuerySpace = function(v) {
- this._parts.escapeQuerySpace = !!v;
- return this;
- };
-
- return URI;
-}));
diff --git a/lib/vendor/jed.js b/lib/vendor/jed.js
deleted file mode 120000
index 72ac5c3ec..000000000
--- a/lib/vendor/jed.js
+++ /dev/null
@@ -1 +0,0 @@
-../../thirdparty/jed/jed.js \ No newline at end of file
diff --git a/lib/vendor/react-dom.dev.js b/lib/vendor/react-dom.dev.js
deleted file mode 100644
index 116fbc181..000000000
--- a/lib/vendor/react-dom.dev.js
+++ /dev/null
@@ -1,18525 +0,0 @@
- /**
- * ReactDOM v16.0.0-alpha
- */
-
-;(function(f) {
- // CommonJS
- if (typeof exports === "object" && typeof module !== "undefined") {
- f(require('react'));
-
- // RequireJS
- } else if (typeof define === "function" && define.amd) {
- require(['react'], f);
-
- // <script>
- } else {
- var g;
- if (typeof window !== "undefined") {
- g = window;
- } else if (typeof global !== "undefined") {
- g = global;
- } else if (typeof self !== "undefined") {
- g = self;
- } else {
- // works providing we're not in "use strict";
- // needed for Java 8 Nashorn
- // see https://github.com/facebook/react/issues/3037
- g = this;
- }
- f(g.React)
- }
-})(function(React) {
- (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ReactDOM = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ARIADOMPropertyConfig = {
- Properties: {
- // Global States and Properties
- 'aria-current': 0, // state
- 'aria-details': 0,
- 'aria-disabled': 0, // state
- 'aria-hidden': 0, // state
- 'aria-invalid': 0, // state
- 'aria-keyshortcuts': 0,
- 'aria-label': 0,
- 'aria-roledescription': 0,
- // Widget Attributes
- 'aria-autocomplete': 0,
- 'aria-checked': 0,
- 'aria-expanded': 0,
- 'aria-haspopup': 0,
- 'aria-level': 0,
- 'aria-modal': 0,
- 'aria-multiline': 0,
- 'aria-multiselectable': 0,
- 'aria-orientation': 0,
- 'aria-placeholder': 0,
- 'aria-pressed': 0,
- 'aria-readonly': 0,
- 'aria-required': 0,
- 'aria-selected': 0,
- 'aria-sort': 0,
- 'aria-valuemax': 0,
- 'aria-valuemin': 0,
- 'aria-valuenow': 0,
- 'aria-valuetext': 0,
- // Live Region Attributes
- 'aria-atomic': 0,
- 'aria-busy': 0,
- 'aria-live': 0,
- 'aria-relevant': 0,
- // Drag-and-Drop Attributes
- 'aria-dropeffect': 0,
- 'aria-grabbed': 0,
- // Relationship Attributes
- 'aria-activedescendant': 0,
- 'aria-colcount': 0,
- 'aria-colindex': 0,
- 'aria-colspan': 0,
- 'aria-controls': 0,
- 'aria-describedby': 0,
- 'aria-errormessage': 0,
- 'aria-flowto': 0,
- 'aria-labelledby': 0,
- 'aria-owns': 0,
- 'aria-posinset': 0,
- 'aria-rowcount': 0,
- 'aria-rowindex': 0,
- 'aria-rowspan': 0,
- 'aria-setsize': 0
- },
- DOMAttributeNames: {},
- DOMPropertyNames: {}
-};
-
-module.exports = ARIADOMPropertyConfig;
-},{}],2:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactDOMComponentTree = _dereq_(35);
-
-var focusNode = _dereq_(148);
-
-var AutoFocusUtils = {
- focusDOMComponent: function () {
- focusNode(ReactDOMComponentTree.getNodeFromInstance(this));
- }
-};
-
-module.exports = AutoFocusUtils;
-},{"148":148,"35":35}],3:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var EventPropagators = _dereq_(20);
-var ExecutionEnvironment = _dereq_(140);
-var FallbackCompositionState = _dereq_(21);
-var SyntheticCompositionEvent = _dereq_(91);
-var SyntheticInputEvent = _dereq_(95);
-
-var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
-var START_KEYCODE = 229;
-
-var canUseCompositionEvent = ExecutionEnvironment.canUseDOM && 'CompositionEvent' in window;
-
-var documentMode = null;
-if (ExecutionEnvironment.canUseDOM && 'documentMode' in document) {
- documentMode = document.documentMode;
-}
-
-// Webkit offers a very useful `textInput` event that can be used to
-// directly represent `beforeInput`. The IE `textinput` event is not as
-// useful, so we don't use it.
-var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && 'TextEvent' in window && !documentMode && !isPresto();
-
-// In IE9+, we have access to composition events, but the data supplied
-// by the native compositionend event may be incorrect. Japanese ideographic
-// spaces, for instance (\u3000) are not recorded correctly.
-var useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
-
-/**
- * Opera <= 12 includes TextEvent in window, but does not fire
- * text input events. Rely on keypress instead.
- */
-function isPresto() {
- var opera = window.opera;
- return typeof opera === 'object' && typeof opera.version === 'function' && parseInt(opera.version(), 10) <= 12;
-}
-
-var SPACEBAR_CODE = 32;
-var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
-
-// Events and their corresponding property names.
-var eventTypes = {
- beforeInput: {
- phasedRegistrationNames: {
- bubbled: 'onBeforeInput',
- captured: 'onBeforeInputCapture'
- },
- dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste']
- },
- compositionEnd: {
- phasedRegistrationNames: {
- bubbled: 'onCompositionEnd',
- captured: 'onCompositionEndCapture'
- },
- dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
- },
- compositionStart: {
- phasedRegistrationNames: {
- bubbled: 'onCompositionStart',
- captured: 'onCompositionStartCapture'
- },
- dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
- },
- compositionUpdate: {
- phasedRegistrationNames: {
- bubbled: 'onCompositionUpdate',
- captured: 'onCompositionUpdateCapture'
- },
- dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown']
- }
-};
-
-// Track whether we've ever handled a keypress on the space key.
-var hasSpaceKeypress = false;
-
-/**
- * Return whether a native keypress event is assumed to be a command.
- * This is required because Firefox fires `keypress` events for key commands
- * (cut, copy, select-all, etc.) even though no character is inserted.
- */
-function isKeypressCommand(nativeEvent) {
- return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
- // ctrlKey && altKey is equivalent to AltGr, and is not a command.
- !(nativeEvent.ctrlKey && nativeEvent.altKey);
-}
-
-/**
- * Translate native top level events into event types.
- *
- * @param {string} topLevelType
- * @return {object}
- */
-function getCompositionEventType(topLevelType) {
- switch (topLevelType) {
- case 'topCompositionStart':
- return eventTypes.compositionStart;
- case 'topCompositionEnd':
- return eventTypes.compositionEnd;
- case 'topCompositionUpdate':
- return eventTypes.compositionUpdate;
- }
-}
-
-/**
- * Does our fallback best-guess model think this event signifies that
- * composition has begun?
- *
- * @param {string} topLevelType
- * @param {object} nativeEvent
- * @return {boolean}
- */
-function isFallbackCompositionStart(topLevelType, nativeEvent) {
- return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE;
-}
-
-/**
- * Does our fallback mode think that this event is the end of composition?
- *
- * @param {string} topLevelType
- * @param {object} nativeEvent
- * @return {boolean}
- */
-function isFallbackCompositionEnd(topLevelType, nativeEvent) {
- switch (topLevelType) {
- case 'topKeyUp':
- // Command keys insert or clear IME input.
- return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
- case 'topKeyDown':
- // Expect IME keyCode on each keydown. If we get any other
- // code we must have exited earlier.
- return nativeEvent.keyCode !== START_KEYCODE;
- case 'topKeyPress':
- case 'topMouseDown':
- case 'topBlur':
- // Events are not possible without cancelling IME.
- return true;
- default:
- return false;
- }
-}
-
-/**
- * Google Input Tools provides composition data via a CustomEvent,
- * with the `data` property populated in the `detail` object. If this
- * is available on the event object, use it. If not, this is a plain
- * composition event and we have nothing special to extract.
- *
- * @param {object} nativeEvent
- * @return {?string}
- */
-function getDataFromCustomEvent(nativeEvent) {
- var detail = nativeEvent.detail;
- if (typeof detail === 'object' && 'data' in detail) {
- return detail.data;
- }
- return null;
-}
-
-// Track the current IME composition fallback object, if any.
-var currentComposition = null;
-
-/**
- * @return {?object} A SyntheticCompositionEvent.
- */
-function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- var eventType;
- var fallbackData;
-
- if (canUseCompositionEvent) {
- eventType = getCompositionEventType(topLevelType);
- } else if (!currentComposition) {
- if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
- eventType = eventTypes.compositionStart;
- }
- } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
- eventType = eventTypes.compositionEnd;
- }
-
- if (!eventType) {
- return null;
- }
-
- if (useFallbackCompositionData) {
- // The current composition is stored statically and must not be
- // overwritten while composition continues.
- if (!currentComposition && eventType === eventTypes.compositionStart) {
- currentComposition = FallbackCompositionState.getPooled(nativeEventTarget);
- } else if (eventType === eventTypes.compositionEnd) {
- if (currentComposition) {
- fallbackData = currentComposition.getData();
- }
- }
- }
-
- var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
-
- if (fallbackData) {
- // Inject data generated from fallback path into the synthetic event.
- // This matches the property of native CompositionEventInterface.
- event.data = fallbackData;
- } else {
- var customData = getDataFromCustomEvent(nativeEvent);
- if (customData !== null) {
- event.data = customData;
- }
- }
-
- EventPropagators.accumulateTwoPhaseDispatches(event);
- return event;
-}
-
-/**
- * @param {string} topLevelType Record from `EventConstants`.
- * @param {object} nativeEvent Native browser event.
- * @return {?string} The string corresponding to this `beforeInput` event.
- */
-function getNativeBeforeInputChars(topLevelType, nativeEvent) {
- switch (topLevelType) {
- case 'topCompositionEnd':
- return getDataFromCustomEvent(nativeEvent);
- case 'topKeyPress':
- /**
- * If native `textInput` events are available, our goal is to make
- * use of them. However, there is a special case: the spacebar key.
- * In Webkit, preventing default on a spacebar `textInput` event
- * cancels character insertion, but it *also* causes the browser
- * to fall back to its default spacebar behavior of scrolling the
- * page.
- *
- * Tracking at:
- * https://code.google.com/p/chromium/issues/detail?id=355103
- *
- * To avoid this issue, use the keypress event as if no `textInput`
- * event is available.
- */
- var which = nativeEvent.which;
- if (which !== SPACEBAR_CODE) {
- return null;
- }
-
- hasSpaceKeypress = true;
- return SPACEBAR_CHAR;
-
- case 'topTextInput':
- // Record the characters to be added to the DOM.
- var chars = nativeEvent.data;
-
- // If it's a spacebar character, assume that we have already handled
- // it at the keypress level and bail immediately. Android Chrome
- // doesn't give us keycodes, so we need to blacklist it.
- if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
- return null;
- }
-
- return chars;
-
- default:
- // For other native event types, do nothing.
- return null;
- }
-}
-
-/**
- * For browsers that do not provide the `textInput` event, extract the
- * appropriate string to use for SyntheticInputEvent.
- *
- * @param {string} topLevelType Record from `EventConstants`.
- * @param {object} nativeEvent Native browser event.
- * @return {?string} The fallback string for this `beforeInput` event.
- */
-function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
- // If we are currently composing (IME) and using a fallback to do so,
- // try to extract the composed characters from the fallback object.
- // If composition event is available, we extract a string only at
- // compositionevent, otherwise extract it at fallback events.
- if (currentComposition) {
- if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
- var chars = currentComposition.getData();
- FallbackCompositionState.release(currentComposition);
- currentComposition = null;
- return chars;
- }
- return null;
- }
-
- switch (topLevelType) {
- case 'topPaste':
- // If a paste event occurs after a keypress, throw out the input
- // chars. Paste events should not lead to BeforeInput events.
- return null;
- case 'topKeyPress':
- /**
- * As of v27, Firefox may fire keypress events even when no character
- * will be inserted. A few possibilities:
- *
- * - `which` is `0`. Arrow keys, Esc key, etc.
- *
- * - `which` is the pressed key code, but no char is available.
- * Ex: 'AltGr + d` in Polish. There is no modified character for
- * this key combination and no character is inserted into the
- * document, but FF fires the keypress for char code `100` anyway.
- * No `input` event will occur.
- *
- * - `which` is the pressed key code, but a command combination is
- * being used. Ex: `Cmd+C`. No character is inserted, and no
- * `input` event will occur.
- */
- if (nativeEvent.which && !isKeypressCommand(nativeEvent)) {
- return String.fromCharCode(nativeEvent.which);
- }
- return null;
- case 'topCompositionEnd':
- return useFallbackCompositionData ? null : nativeEvent.data;
- default:
- return null;
- }
-}
-
-/**
- * Extract a SyntheticInputEvent for `beforeInput`, based on either native
- * `textInput` or fallback behavior.
- *
- * @return {?object} A SyntheticInputEvent.
- */
-function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- var chars;
-
- if (canUseTextInputEvent) {
- chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
- } else {
- chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
- }
-
- // If no characters are being inserted, no BeforeInput event should
- // be fired.
- if (!chars) {
- return null;
- }
-
- var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
-
- event.data = chars;
- EventPropagators.accumulateTwoPhaseDispatches(event);
- return event;
-}
-
-/**
- * Create an `onBeforeInput` event to match
- * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
- *
- * This event plugin is based on the native `textInput` event
- * available in Chrome, Safari, Opera, and IE. This event fires after
- * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
- *
- * `beforeInput` is spec'd but not implemented in any browsers, and
- * the `input` event does not provide any useful information about what has
- * actually been added, contrary to the spec. Thus, `textInput` is the best
- * available event to identify the characters that have actually been inserted
- * into the target node.
- *
- * This plugin is also responsible for emitting `composition` events, thus
- * allowing us to share composition fallback code for both `beforeInput` and
- * `composition` event types.
- */
-var BeforeInputEventPlugin = {
-
- eventTypes: eventTypes,
-
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- return [extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget)];
- }
-};
-
-module.exports = BeforeInputEventPlugin;
-},{"140":140,"20":20,"21":21,"91":91,"95":95}],4:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * CSS properties which accept numbers but are not in units of "px".
- */
-
-var isUnitlessNumber = {
- animationIterationCount: true,
- borderImageOutset: true,
- borderImageSlice: true,
- borderImageWidth: true,
- boxFlex: true,
- boxFlexGroup: true,
- boxOrdinalGroup: true,
- columnCount: true,
- flex: true,
- flexGrow: true,
- flexPositive: true,
- flexShrink: true,
- flexNegative: true,
- flexOrder: true,
- gridRow: true,
- gridColumn: true,
- fontWeight: true,
- lineClamp: true,
- lineHeight: true,
- opacity: true,
- order: true,
- orphans: true,
- tabSize: true,
- widows: true,
- zIndex: true,
- zoom: true,
-
- // SVG-related properties
- fillOpacity: true,
- floodOpacity: true,
- stopOpacity: true,
- strokeDasharray: true,
- strokeDashoffset: true,
- strokeMiterlimit: true,
- strokeOpacity: true,
- strokeWidth: true
-};
-
-/**
- * @param {string} prefix vendor-specific prefix, eg: Webkit
- * @param {string} key style name, eg: transitionDuration
- * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
- * WebkitTransitionDuration
- */
-function prefixKey(prefix, key) {
- return prefix + key.charAt(0).toUpperCase() + key.substring(1);
-}
-
-/**
- * Support style names that may come passed in prefixed by adding permutations
- * of vendor prefixes.
- */
-var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
-
-// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
-// infinite loop, because it iterates over the newly added props too.
-Object.keys(isUnitlessNumber).forEach(function (prop) {
- prefixes.forEach(function (prefix) {
- isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
- });
-});
-
-/**
- * Most style properties can be unset by doing .style[prop] = '' but IE8
- * doesn't like doing that with shorthand properties so for the properties that
- * IE8 breaks on, which are listed here, we instead unset each of the
- * individual properties. See http://bugs.jquery.com/ticket/12385.
- * The 4-value 'clock' properties like margin, padding, border-width seem to
- * behave without any problems. Curiously, list-style works too without any
- * special prodding.
- */
-var shorthandPropertyExpansions = {
- background: {
- backgroundAttachment: true,
- backgroundColor: true,
- backgroundImage: true,
- backgroundPositionX: true,
- backgroundPositionY: true,
- backgroundRepeat: true
- },
- backgroundPosition: {
- backgroundPositionX: true,
- backgroundPositionY: true
- },
- border: {
- borderWidth: true,
- borderStyle: true,
- borderColor: true
- },
- borderBottom: {
- borderBottomWidth: true,
- borderBottomStyle: true,
- borderBottomColor: true
- },
- borderLeft: {
- borderLeftWidth: true,
- borderLeftStyle: true,
- borderLeftColor: true
- },
- borderRight: {
- borderRightWidth: true,
- borderRightStyle: true,
- borderRightColor: true
- },
- borderTop: {
- borderTopWidth: true,
- borderTopStyle: true,
- borderTopColor: true
- },
- font: {
- fontStyle: true,
- fontVariant: true,
- fontWeight: true,
- fontSize: true,
- lineHeight: true,
- fontFamily: true
- },
- outline: {
- outlineWidth: true,
- outlineStyle: true,
- outlineColor: true
- }
-};
-
-var CSSProperty = {
- isUnitlessNumber: isUnitlessNumber,
- shorthandPropertyExpansions: shorthandPropertyExpansions
-};
-
-module.exports = CSSProperty;
-},{}],5:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var CSSProperty = _dereq_(4);
-var ExecutionEnvironment = _dereq_(140);
-var ReactInstrumentation = _dereq_(65);
-
-var camelizeStyleName = _dereq_(142);
-var dangerousStyleValue = _dereq_(108);
-var getComponentName = _dereq_(113);
-var hyphenateStyleName = _dereq_(153);
-var memoizeStringOnly = _dereq_(157);
-var warning = _dereq_(161);
-
-var processStyleName = memoizeStringOnly(function (styleName) {
- return hyphenateStyleName(styleName);
-});
-
-var hasShorthandPropertyBug = false;
-var styleFloatAccessor = 'cssFloat';
-if (ExecutionEnvironment.canUseDOM) {
- var tempStyle = document.createElement('div').style;
- try {
- // IE8 throws "Invalid argument." if resetting shorthand style properties.
- tempStyle.font = '';
- } catch (e) {
- hasShorthandPropertyBug = true;
- }
- // IE8 only supports accessing cssFloat (standard) as styleFloat
- if (document.documentElement.style.cssFloat === undefined) {
- styleFloatAccessor = 'styleFloat';
- }
-}
-
-if ("development" !== 'production') {
- // 'msTransform' is correct, but the other prefixes should be capitalized
- var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
-
- // style values shouldn't contain a semicolon
- var badStyleValueWithSemicolonPattern = /;\s*$/;
-
- var warnedStyleNames = {};
- var warnedStyleValues = {};
- var warnedForNaNValue = false;
-
- var warnHyphenatedStyleName = function (name, owner) {
- if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
- return;
- }
-
- warnedStyleNames[name] = true;
- "development" !== 'production' ? warning(false, 'Unsupported style property %s. Did you mean %s?%s', name, camelizeStyleName(name), checkRenderMessage(owner)) : void 0;
- };
-
- var warnBadVendoredStyleName = function (name, owner) {
- if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
- return;
- }
-
- warnedStyleNames[name] = true;
- "development" !== 'production' ? warning(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?%s', name, name.charAt(0).toUpperCase() + name.slice(1), checkRenderMessage(owner)) : void 0;
- };
-
- var warnStyleValueWithSemicolon = function (name, value, owner) {
- if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
- return;
- }
-
- warnedStyleValues[value] = true;
- "development" !== 'production' ? warning(false, 'Style property values shouldn\'t contain a semicolon.%s ' + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0;
- };
-
- var warnStyleValueIsNaN = function (name, value, owner) {
- if (warnedForNaNValue) {
- return;
- }
-
- warnedForNaNValue = true;
- "development" !== 'production' ? warning(false, '`NaN` is an invalid value for the `%s` css style property.%s', name, checkRenderMessage(owner)) : void 0;
- };
-
- var checkRenderMessage = function (owner) {
- if (owner) {
- var name = getComponentName(owner);
- if (name) {
- return ' Check the render method of `' + name + '`.';
- }
- }
- return '';
- };
-
- /**
- * @param {string} name
- * @param {*} value
- * @param {ReactDOMComponent} component
- */
- var warnValidStyle = function (name, value, component) {
- var owner;
- if (component) {
- owner = component._currentElement._owner;
- }
- if (name.indexOf('-') > -1) {
- warnHyphenatedStyleName(name, owner);
- } else if (badVendoredStyleNamePattern.test(name)) {
- warnBadVendoredStyleName(name, owner);
- } else if (badStyleValueWithSemicolonPattern.test(value)) {
- warnStyleValueWithSemicolon(name, value, owner);
- }
-
- if (typeof value === 'number' && isNaN(value)) {
- warnStyleValueIsNaN(name, value, owner);
- }
- };
-}
-
-/**
- * Operations for dealing with CSS properties.
- */
-var CSSPropertyOperations = {
-
- /**
- * Serializes a mapping of style properties for use as inline styles:
- *
- * > createMarkupForStyles({width: '200px', height: 0})
- * "width:200px;height:0;"
- *
- * Undefined values are ignored so that declarative programming is easier.
- * The result should be HTML-escaped before insertion into the DOM.
- *
- * @param {object} styles
- * @param {ReactDOMComponent} component
- * @return {?string}
- */
- createMarkupForStyles: function (styles, component) {
- var serialized = '';
- for (var styleName in styles) {
- if (!styles.hasOwnProperty(styleName)) {
- continue;
- }
- var styleValue = styles[styleName];
- if ("development" !== 'production') {
- warnValidStyle(styleName, styleValue, component);
- }
- if (styleValue != null) {
- serialized += processStyleName(styleName) + ':';
- serialized += dangerousStyleValue(styleName, styleValue, component) + ';';
- }
- }
- return serialized || null;
- },
-
- /**
- * Sets the value for multiple styles on a node. If a value is specified as
- * '' (empty string), the corresponding style property will be unset.
- *
- * @param {DOMElement} node
- * @param {object} styles
- * @param {ReactDOMComponent} component
- */
- setValueForStyles: function (node, styles, component) {
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: component._debugID,
- type: 'update styles',
- payload: styles
- });
- }
-
- var style = node.style;
- for (var styleName in styles) {
- if (!styles.hasOwnProperty(styleName)) {
- continue;
- }
- if ("development" !== 'production') {
- warnValidStyle(styleName, styles[styleName], component);
- }
- var styleValue = dangerousStyleValue(styleName, styles[styleName], component);
- if (styleName === 'float' || styleName === 'cssFloat') {
- styleName = styleFloatAccessor;
- }
- if (styleValue) {
- style[styleName] = styleValue;
- } else {
- var expansion = hasShorthandPropertyBug && CSSProperty.shorthandPropertyExpansions[styleName];
- if (expansion) {
- // Shorthand property that IE8 won't like unsetting, so unset each
- // component to placate it
- for (var individualStyleName in expansion) {
- style[individualStyleName] = '';
- }
- } else {
- style[styleName] = '';
- }
- }
- }
- }
-
-};
-
-module.exports = CSSPropertyOperations;
-},{"108":108,"113":113,"140":140,"142":142,"153":153,"157":157,"161":161,"4":4,"65":65}],6:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-var PooledClass = _dereq_(24);
-
-var invariant = _dereq_(154);
-
-/**
- * A specialized pseudo-event module to help keep track of components waiting to
- * be notified when their DOM representations are available for use.
- *
- * This implements `PooledClass`, so you should never need to instantiate this.
- * Instead, use `CallbackQueue.getPooled()`.
- *
- * @class ReactMountReady
- * @implements PooledClass
- * @internal
- */
-
-var CallbackQueue = function () {
- function CallbackQueue(arg) {
- _classCallCheck(this, CallbackQueue);
-
- this._callbacks = null;
- this._contexts = null;
- this._arg = arg;
- }
-
- /**
- * Enqueues a callback to be invoked when `notifyAll` is invoked.
- *
- * @param {function} callback Invoked when `notifyAll` is invoked.
- * @param {?object} context Context to call `callback` with.
- * @internal
- */
-
-
- CallbackQueue.prototype.enqueue = function enqueue(callback, context) {
- this._callbacks = this._callbacks || [];
- this._callbacks.push(callback);
- this._contexts = this._contexts || [];
- this._contexts.push(context);
- };
-
- /**
- * Invokes all enqueued callbacks and clears the queue. This is invoked after
- * the DOM representation of a component has been created or updated.
- *
- * @internal
- */
-
-
- CallbackQueue.prototype.notifyAll = function notifyAll() {
- var callbacks = this._callbacks;
- var contexts = this._contexts;
- var arg = this._arg;
- if (callbacks && contexts) {
- !(callbacks.length === contexts.length) ? "development" !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;
- this._callbacks = null;
- this._contexts = null;
- for (var i = 0; i < callbacks.length; i++) {
- callbacks[i].call(contexts[i], arg);
- }
- callbacks.length = 0;
- contexts.length = 0;
- }
- };
-
- CallbackQueue.prototype.checkpoint = function checkpoint() {
- return this._callbacks ? this._callbacks.length : 0;
- };
-
- CallbackQueue.prototype.rollback = function rollback(len) {
- if (this._callbacks && this._contexts) {
- this._callbacks.length = len;
- this._contexts.length = len;
- }
- };
-
- /**
- * Resets the internal queue.
- *
- * @internal
- */
-
-
- CallbackQueue.prototype.reset = function reset() {
- this._callbacks = null;
- this._contexts = null;
- };
-
- /**
- * `PooledClass` looks for this.
- */
-
-
- CallbackQueue.prototype.destructor = function destructor() {
- this.reset();
- };
-
- return CallbackQueue;
-}();
-
-module.exports = PooledClass.addPoolingTo(CallbackQueue);
-},{"129":129,"154":154,"24":24}],7:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var EventPluginHub = _dereq_(17);
-var EventPropagators = _dereq_(20);
-var ExecutionEnvironment = _dereq_(140);
-var ReactControlledComponent = _dereq_(30);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactGenericBatching = _dereq_(60);
-var SyntheticEvent = _dereq_(93);
-
-var inputValueTracking = _dereq_(124);
-var getEventTarget = _dereq_(117);
-var isEventSupported = _dereq_(126);
-var isTextInputElement = _dereq_(127);
-
-var eventTypes = {
- change: {
- phasedRegistrationNames: {
- bubbled: 'onChange',
- captured: 'onChangeCapture'
- },
- dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange']
- }
-};
-
-function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
- var event = SyntheticEvent.getPooled(eventTypes.change, inst, nativeEvent, target);
- event.type = 'change';
- // Flag this event loop as needing state restore.
- ReactControlledComponent.enqueueStateRestore(inst);
- EventPropagators.accumulateTwoPhaseDispatches(event);
- return event;
-}
-/**
- * For IE shims
- */
-var activeElement = null;
-var activeElementInst = null;
-
-/**
- * SECTION: handle `change` event
- */
-function shouldUseChangeEvent(elem) {
- var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
- return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
-}
-
-var doesChangeEventBubble = false;
-if (ExecutionEnvironment.canUseDOM) {
- // See `handleChange` comment below
- doesChangeEventBubble = isEventSupported('change') && (!document.documentMode || document.documentMode > 8);
-}
-
-function manualDispatchChangeEvent(nativeEvent) {
- var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
-
- // If change and propertychange bubbled, we'd just bind to it like all the
- // other events and have it go through ReactBrowserEventEmitter. Since it
- // doesn't, we manually listen for the events and so we have to enqueue and
- // process the abstract event manually.
- //
- // Batching is necessary here in order to ensure that all event handlers run
- // before the next rerender (including event handlers attached to ancestor
- // elements instead of directly on the input). Without this, controlled
- // components don't work properly in conjunction with event bubbling because
- // the component is rerendered and the value reverted before all the event
- // handlers can run. See https://github.com/facebook/react/issues/708.
- ReactGenericBatching.batchedUpdates(runEventInBatch, event);
-}
-
-function runEventInBatch(event) {
- EventPluginHub.enqueueEvents(event);
- EventPluginHub.processEventQueue(false);
-}
-
-function startWatchingForChangeEventIE8(target, targetInst) {
- activeElement = target;
- activeElementInst = targetInst;
- activeElement.attachEvent('onchange', manualDispatchChangeEvent);
-}
-
-function stopWatchingForChangeEventIE8() {
- if (!activeElement) {
- return;
- }
- activeElement.detachEvent('onchange', manualDispatchChangeEvent);
- activeElement = null;
- activeElementInst = null;
-}
-
-function getInstIfValueChanged(targetInst) {
- if (inputValueTracking.updateValueIfChanged(targetInst)) {
- return targetInst;
- }
-}
-
-function getTargetInstForChangeEvent(topLevelType, targetInst) {
- if (topLevelType === 'topChange') {
- return targetInst;
- }
-}
-
-function handleEventsForChangeEventIE8(topLevelType, target, targetInst) {
- if (topLevelType === 'topFocus') {
- // stopWatching() should be a noop here but we call it just in case we
- // missed a blur event somehow.
- stopWatchingForChangeEventIE8();
- startWatchingForChangeEventIE8(target, targetInst);
- } else if (topLevelType === 'topBlur') {
- stopWatchingForChangeEventIE8();
- }
-}
-
-/**
- * SECTION: handle `input` event
- */
-var isInputEventSupported = false;
-if (ExecutionEnvironment.canUseDOM) {
- // IE9 claims to support the input event but fails to trigger it when
- // deleting text, so we ignore its input events.
- isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
-}
-
-/**
- * (For IE <=9) Starts tracking propertychange events on the passed-in element
- * and override the value property so that we can distinguish user events from
- * value changes in JS.
- */
-function startWatchingForValueChange(target, targetInst) {
- activeElement = target;
- activeElementInst = targetInst;
- activeElement.attachEvent('onpropertychange', handlePropertyChange);
-}
-
-/**
- * (For IE <=9) Removes the event listeners from the currently-tracked element,
- * if any exists.
- */
-function stopWatchingForValueChange() {
- if (!activeElement) {
- return;
- }
- activeElement.detachEvent('onpropertychange', handlePropertyChange);
- activeElement = null;
- activeElementInst = null;
-}
-
-/**
- * (For IE <=9) Handles a propertychange event, sending a `change` event if
- * the value of the active element has changed.
- */
-function handlePropertyChange(nativeEvent) {
- if (nativeEvent.propertyName !== 'value') {
- return;
- }
- if (getInstIfValueChanged(activeElementInst)) {
- manualDispatchChangeEvent(nativeEvent);
- }
-}
-
-function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
- if (topLevelType === 'topFocus') {
- // In IE8, we can capture almost all .value changes by adding a
- // propertychange handler and looking for events with propertyName
- // equal to 'value'
- // In IE9, propertychange fires for most input events but is buggy and
- // doesn't fire when text is deleted, but conveniently, selectionchange
- // appears to fire in all of the remaining cases so we catch those and
- // forward the event if the value has changed
- // In either case, we don't want to call the event handler if the value
- // is changed from JS so we redefine a setter for `.value` that updates
- // our activeElementValue variable, allowing us to ignore those changes
- //
- // stopWatching() should be a noop here but we call it just in case we
- // missed a blur event somehow.
- stopWatchingForValueChange();
- startWatchingForValueChange(target, targetInst);
- } else if (topLevelType === 'topBlur') {
- stopWatchingForValueChange();
- }
-}
-
-// For IE8 and IE9.
-function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
- if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') {
- // On the selectionchange event, the target is just document which isn't
- // helpful for us so just check activeElement instead.
- //
- // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
- // propertychange on the first input event after setting `value` from a
- // script and fires only keydown, keypress, keyup. Catching keyup usually
- // gets it and catching keydown lets us fire an event for the first
- // keystroke if user does a key repeat (it'll be a little delayed: right
- // before the second keystroke). Other input methods (e.g., paste) seem to
- // fire selectionchange normally.
- return getInstIfValueChanged(activeElementInst);
- }
-}
-
-/**
- * SECTION: handle `click` event
- */
-function shouldUseClickEvent(elem) {
- // Use the `click` event to detect changes to checkbox and radio inputs.
- // This approach works across all browsers, whereas `change` does not fire
- // until `blur` in IE8.
- var nodeName = elem.nodeName;
- return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
-}
-
-function getTargetInstForClickEvent(topLevelType, targetInst) {
- if (topLevelType === 'topClick') {
- return getInstIfValueChanged(targetInst);
- }
-}
-
-function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
- if (topLevelType === 'topInput' || topLevelType === 'topChange') {
- return getInstIfValueChanged(targetInst);
- }
-}
-
-/**
- * This plugin creates an `onChange` event that normalizes change events
- * across form elements. This event fires at a time when it's possible to
- * change the element's value without seeing a flicker.
- *
- * Supported elements are:
- * - input (see `isTextInputElement`)
- * - textarea
- * - select
- */
-var ChangeEventPlugin = {
-
- eventTypes: eventTypes,
-
- _isInputEventSupported: isInputEventSupported,
-
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
-
- var getTargetInstFunc, handleEventFunc;
- if (shouldUseChangeEvent(targetNode)) {
- if (doesChangeEventBubble) {
- getTargetInstFunc = getTargetInstForChangeEvent;
- } else {
- handleEventFunc = handleEventsForChangeEventIE8;
- }
- } else if (isTextInputElement(targetNode)) {
- if (isInputEventSupported) {
- getTargetInstFunc = getTargetInstForInputOrChangeEvent;
- } else {
- getTargetInstFunc = getTargetInstForInputEventPolyfill;
- handleEventFunc = handleEventsForInputEventPolyfill;
- }
- } else if (shouldUseClickEvent(targetNode)) {
- getTargetInstFunc = getTargetInstForClickEvent;
- }
-
- if (getTargetInstFunc) {
- var inst = getTargetInstFunc(topLevelType, targetInst);
- if (inst) {
- var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
- return event;
- }
- }
-
- if (handleEventFunc) {
- handleEventFunc(topLevelType, targetNode, targetInst);
- }
- }
-
-};
-
-module.exports = ChangeEventPlugin;
-},{"117":117,"124":124,"126":126,"127":127,"140":140,"17":17,"20":20,"30":30,"35":35,"60":60,"93":93}],8:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMLazyTree = _dereq_(10);
-var Danger = _dereq_(14);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactInstrumentation = _dereq_(65);
-
-var createMicrosoftUnsafeLocalFunction = _dereq_(107);
-var setInnerHTML = _dereq_(131);
-var setTextContent = _dereq_(132);
-
-function getNodeAfter(parentNode, node) {
- // Special case for text components, which return [open, close] comments
- // from getHostNode.
- if (Array.isArray(node)) {
- node = node[1];
- }
- return node ? node.nextSibling : parentNode.firstChild;
-}
-
-/**
- * Inserts `childNode` as a child of `parentNode` at the `index`.
- *
- * @param {DOMElement} parentNode Parent node in which to insert.
- * @param {DOMElement} childNode Child node to insert.
- * @param {number} index Index at which to insert the child.
- * @internal
- */
-var insertChildAt = createMicrosoftUnsafeLocalFunction(function (parentNode, childNode, referenceNode) {
- // We rely exclusively on `insertBefore(node, null)` instead of also using
- // `appendChild(node)`. (Using `undefined` is not allowed by all browsers so
- // we are careful to use `null`.)
- parentNode.insertBefore(childNode, referenceNode);
-});
-
-function insertLazyTreeChildAt(parentNode, childTree, referenceNode) {
- DOMLazyTree.insertTreeBefore(parentNode, childTree, referenceNode);
-}
-
-function moveChild(parentNode, childNode, referenceNode) {
- if (Array.isArray(childNode)) {
- moveDelimitedText(parentNode, childNode[0], childNode[1], referenceNode);
- } else {
- insertChildAt(parentNode, childNode, referenceNode);
- }
-}
-
-function removeChild(parentNode, childNode) {
- if (Array.isArray(childNode)) {
- var closingComment = childNode[1];
- childNode = childNode[0];
- removeDelimitedText(parentNode, childNode, closingComment);
- parentNode.removeChild(closingComment);
- }
- parentNode.removeChild(childNode);
-}
-
-function moveDelimitedText(parentNode, openingComment, closingComment, referenceNode) {
- var node = openingComment;
- while (true) {
- var nextNode = node.nextSibling;
- insertChildAt(parentNode, node, referenceNode);
- if (node === closingComment) {
- break;
- }
- node = nextNode;
- }
-}
-
-function removeDelimitedText(parentNode, startNode, closingComment) {
- while (true) {
- var node = startNode.nextSibling;
- if (node === closingComment) {
- // The closing comment is removed by ReactMultiChild.
- break;
- } else {
- parentNode.removeChild(node);
- }
- }
-}
-
-function replaceDelimitedText(openingComment, closingComment, stringText) {
- var parentNode = openingComment.parentNode;
- var nodeAfterComment = openingComment.nextSibling;
- if (nodeAfterComment === closingComment) {
- // There are no text nodes between the opening and closing comments; insert
- // a new one if stringText isn't empty.
- if (stringText) {
- insertChildAt(parentNode, document.createTextNode(stringText), nodeAfterComment);
- }
- } else {
- if (stringText) {
- // Set the text content of the first node after the opening comment, and
- // remove all following nodes up until the closing comment.
- setTextContent(nodeAfterComment, stringText);
- removeDelimitedText(parentNode, nodeAfterComment, closingComment);
- } else {
- removeDelimitedText(parentNode, openingComment, closingComment);
- }
- }
-
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID,
- type: 'replace text',
- payload: stringText
- });
- }
-}
-
-var dangerouslyReplaceNodeWithMarkup = Danger.dangerouslyReplaceNodeWithMarkup;
-if ("development" !== 'production') {
- dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) {
- Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup);
- if (prevInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: prevInstance._debugID,
- type: 'replace with',
- payload: markup.toString()
- });
- } else {
- var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node);
- if (nextInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: nextInstance._debugID,
- type: 'mount',
- payload: markup.toString()
- });
- }
- }
- };
-}
-
-/**
- * Operations for updating with DOM children.
- */
-var DOMChildrenOperations = {
-
- dangerouslyReplaceNodeWithMarkup: dangerouslyReplaceNodeWithMarkup,
-
- replaceDelimitedText: replaceDelimitedText,
-
- /**
- * Updates a component's children by processing a series of updates. The
- * update configurations are each expected to have a `parentNode` property.
- *
- * @param {array<object>} updates List of update configurations.
- * @internal
- */
- processUpdates: function (parentNode, updates) {
- if ("development" !== 'production') {
- var parentNodeDebugID = ReactDOMComponentTree.getInstanceFromNode(parentNode)._debugID;
- }
-
- for (var k = 0; k < updates.length; k++) {
- var update = updates[k];
- switch (update.type) {
- case 'INSERT_MARKUP':
- insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode));
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: parentNodeDebugID,
- type: 'insert child',
- payload: { toIndex: update.toIndex, content: update.content.toString() }
- });
- }
- break;
- case 'MOVE_EXISTING':
- moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode));
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: parentNodeDebugID,
- type: 'move child',
- payload: { fromIndex: update.fromIndex, toIndex: update.toIndex }
- });
- }
- break;
- case 'SET_MARKUP':
- setInnerHTML(parentNode, update.content);
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: parentNodeDebugID,
- type: 'replace children',
- payload: update.content.toString()
- });
- }
- break;
- case 'TEXT_CONTENT':
- setTextContent(parentNode, update.content);
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: parentNodeDebugID,
- type: 'replace text',
- payload: update.content.toString()
- });
- }
- break;
- case 'REMOVE_NODE':
- removeChild(parentNode, update.fromNode);
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: parentNodeDebugID,
- type: 'remove child',
- payload: { fromIndex: update.fromIndex }
- });
- }
- break;
- }
- }
- }
-
-};
-
-module.exports = DOMChildrenOperations;
-},{"10":10,"107":107,"131":131,"132":132,"14":14,"35":35,"65":65}],9:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Module that is injectable into `EventPluginHub`, that specifies a
- * deterministic ordering of `EventPlugin`s. A convenient way to reason about
- * plugins, without having to package every one of them. This is better than
- * having plugins be ordered in the same order that they are injected because
- * that ordering would be influenced by the packaging order.
- * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
- * preventing default on events is convenient in `SimpleEventPlugin` handlers.
- */
-
-var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
-
-module.exports = DOMEventPluginOrder;
-},{}],10:[function(_dereq_,module,exports){
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMNamespaces = _dereq_(11);
-var setInnerHTML = _dereq_(131);
-
-var createMicrosoftUnsafeLocalFunction = _dereq_(107);
-var setTextContent = _dereq_(132);
-
-var ELEMENT_NODE_TYPE = 1;
-var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
-
-/**
- * In IE (8-11) and Edge, appending nodes with no children is dramatically
- * faster than appending a full subtree, so we essentially queue up the
- * .appendChild calls here and apply them so each node is added to its parent
- * before any children are added.
- *
- * In other browsers, doing so is slower or neutral compared to the other order
- * (in Firefox, twice as slow) so we only do this inversion in IE.
- *
- * See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode.
- */
-var enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\bEdge\/\d/.test(navigator.userAgent);
-
-function insertTreeChildren(tree) {
- if (!enableLazy) {
- return;
- }
- var node = tree.node;
- var children = tree.children;
- if (children.length) {
- for (var i = 0; i < children.length; i++) {
- insertTreeBefore(node, children[i], null);
- }
- } else if (tree.html != null) {
- setInnerHTML(node, tree.html);
- } else if (tree.text != null) {
- setTextContent(node, tree.text);
- }
-}
-
-var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function (parentNode, tree, referenceNode) {
- // DocumentFragments aren't actually part of the DOM after insertion so
- // appending children won't update the DOM. We need to ensure the fragment
- // is properly populated first, breaking out of our lazy approach for just
- // this level. Also, some <object> plugins (like Flash Player) will read
- // <param> nodes immediately upon insertion into the DOM, so <object>
- // must also be populated prior to insertion into the DOM.
- if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) {
- insertTreeChildren(tree);
- parentNode.insertBefore(tree.node, referenceNode);
- } else {
- parentNode.insertBefore(tree.node, referenceNode);
- insertTreeChildren(tree);
- }
-});
-
-function replaceChildWithTree(oldNode, newTree) {
- oldNode.parentNode.replaceChild(newTree.node, oldNode);
- insertTreeChildren(newTree);
-}
-
-function queueChild(parentTree, childTree) {
- if (enableLazy) {
- parentTree.children.push(childTree);
- } else {
- parentTree.node.appendChild(childTree.node);
- }
-}
-
-function queueHTML(tree, html) {
- if (enableLazy) {
- tree.html = html;
- } else {
- setInnerHTML(tree.node, html);
- }
-}
-
-function queueText(tree, text) {
- if (enableLazy) {
- tree.text = text;
- } else {
- setTextContent(tree.node, text);
- }
-}
-
-function toString() {
- return this.node.nodeName;
-}
-
-function DOMLazyTree(node) {
- return {
- node: node,
- children: [],
- html: null,
- text: null,
- toString: toString
- };
-}
-
-DOMLazyTree.insertTreeBefore = insertTreeBefore;
-DOMLazyTree.replaceChildWithTree = replaceChildWithTree;
-DOMLazyTree.queueChild = queueChild;
-DOMLazyTree.queueHTML = queueHTML;
-DOMLazyTree.queueText = queueText;
-
-module.exports = DOMLazyTree;
-},{"107":107,"11":11,"131":131,"132":132}],11:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMNamespaces = {
- html: 'http://www.w3.org/1999/xhtml',
- mathml: 'http://www.w3.org/1998/Math/MathML',
- svg: 'http://www.w3.org/2000/svg'
-};
-
-module.exports = DOMNamespaces;
-},{}],12:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-function checkMask(value, bitmask) {
- return (value & bitmask) === bitmask;
-}
-
-var DOMPropertyInjection = {
- /**
- * Mapping from normalized, camelcased property names to a configuration that
- * specifies how the associated DOM property should be accessed or rendered.
- */
- MUST_USE_PROPERTY: 0x1,
- HAS_BOOLEAN_VALUE: 0x4,
- HAS_NUMERIC_VALUE: 0x8,
- HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,
- HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,
-
- /**
- * Inject some specialized knowledge about the DOM. This takes a config object
- * with the following properties:
- *
- * isCustomAttribute: function that given an attribute name will return true
- * if it can be inserted into the DOM verbatim. Useful for data-* or aria-*
- * attributes where it's impossible to enumerate all of the possible
- * attribute names,
- *
- * Properties: object mapping DOM property name to one of the
- * DOMPropertyInjection constants or null. If your attribute isn't in here,
- * it won't get written to the DOM.
- *
- * DOMAttributeNames: object mapping React attribute name to the DOM
- * attribute name. Attribute names not specified use the **lowercase**
- * normalized name.
- *
- * DOMAttributeNamespaces: object mapping React attribute name to the DOM
- * attribute namespace URL. (Attribute names not specified use no namespace.)
- *
- * DOMPropertyNames: similar to DOMAttributeNames but for DOM properties.
- * Property names not specified use the normalized name.
- *
- * DOMMutationMethods: Properties that require special mutation methods. If
- * `value` is undefined, the mutation method should unset the property.
- *
- * @param {object} domPropertyConfig the config as described above.
- */
- injectDOMPropertyConfig: function (domPropertyConfig) {
- var Injection = DOMPropertyInjection;
- var Properties = domPropertyConfig.Properties || {};
- var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
- var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
- var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {};
- var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};
-
- if (domPropertyConfig.isCustomAttribute) {
- DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);
- }
-
- for (var propName in Properties) {
- !!DOMProperty.properties.hasOwnProperty(propName) ? "development" !== 'production' ? invariant(false, 'injectDOMPropertyConfig(...): You\'re trying to inject DOM property \'%s\' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.', propName) : _prodInvariant('48', propName) : void 0;
-
- var lowerCased = propName.toLowerCase();
- var propConfig = Properties[propName];
-
- var propertyInfo = {
- attributeName: lowerCased,
- attributeNamespace: null,
- propertyName: propName,
- mutationMethod: null,
-
- mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),
- hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
- hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
- hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
- hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
- };
- !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue + propertyInfo.hasOverloadedBooleanValue <= 1) ? "development" !== 'production' ? invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s', propName) : _prodInvariant('50', propName) : void 0;
-
- if ("development" !== 'production') {
- DOMProperty.getPossibleStandardName[lowerCased] = propName;
- }
-
- if (DOMAttributeNames.hasOwnProperty(propName)) {
- var attributeName = DOMAttributeNames[propName];
- propertyInfo.attributeName = attributeName;
- if ("development" !== 'production') {
- DOMProperty.getPossibleStandardName[attributeName] = propName;
- }
- }
-
- if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
- propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
- }
-
- if (DOMPropertyNames.hasOwnProperty(propName)) {
- propertyInfo.propertyName = DOMPropertyNames[propName];
- }
-
- if (DOMMutationMethods.hasOwnProperty(propName)) {
- propertyInfo.mutationMethod = DOMMutationMethods[propName];
- }
-
- DOMProperty.properties[propName] = propertyInfo;
- }
- }
-};
-
-/* eslint-disable max-len */
-var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
-/* eslint-enable max-len */
-
-/**
- * DOMProperty exports lookup objects that can be used like functions:
- *
- * > DOMProperty.isValid['id']
- * true
- * > DOMProperty.isValid['foobar']
- * undefined
- *
- * Although this may be confusing, it performs better in general.
- *
- * @see http://jsperf.com/key-exists
- * @see http://jsperf.com/key-missing
- */
-var DOMProperty = {
-
- ID_ATTRIBUTE_NAME: 'data-reactid',
- ROOT_ATTRIBUTE_NAME: 'data-reactroot',
-
- ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
- ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',
-
- /**
- * Map from property "standard name" to an object with info about how to set
- * the property in the DOM. Each object contains:
- *
- * attributeName:
- * Used when rendering markup or with `*Attribute()`.
- * attributeNamespace
- * propertyName:
- * Used on DOM node instances. (This includes properties that mutate due to
- * external factors.)
- * mutationMethod:
- * If non-null, used instead of the property or `setAttribute()` after
- * initial render.
- * mustUseProperty:
- * Whether the property must be accessed and mutated as an object property.
- * hasBooleanValue:
- * Whether the property should be removed when set to a falsey value.
- * hasNumericValue:
- * Whether the property must be numeric or parse as a numeric and should be
- * removed when set to a falsey value.
- * hasPositiveNumericValue:
- * Whether the property must be positive numeric or parse as a positive
- * numeric and should be removed when set to a falsey value.
- * hasOverloadedBooleanValue:
- * Whether the property can be used as a flag as well as with a value.
- * Removed when strictly equal to false; present without a value when
- * strictly equal to true; present with a value otherwise.
- */
- properties: {},
-
- /**
- * Mapping from lowercase property names to the properly cased version, used
- * to warn in the case of missing properties. Available only in __DEV__.
- *
- * autofocus is predefined, because adding it to the property whitelist
- * causes unintended side effects.
- *
- * @type {Object}
- */
- getPossibleStandardName: "development" !== 'production' ? { autofocus: 'autoFocus' } : null,
-
- /**
- * All of the isCustomAttribute() functions that have been injected.
- */
- _isCustomAttributeFunctions: [],
-
- /**
- * Checks whether a property name is a custom attribute.
- * @method
- */
- isCustomAttribute: function (attributeName) {
- for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {
- var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];
- if (isCustomAttributeFn(attributeName)) {
- return true;
- }
- }
- return false;
- },
-
- injection: DOMPropertyInjection
-};
-
-module.exports = DOMProperty;
-},{"129":129,"154":154}],13:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMProperty = _dereq_(12);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactInstrumentation = _dereq_(65);
-
-var quoteAttributeValueForBrowser = _dereq_(128);
-var warning = _dereq_(161);
-
-var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
-var illegalAttributeNameCache = {};
-var validatedAttributeNameCache = {};
-
-function isAttributeNameSafe(attributeName) {
- if (validatedAttributeNameCache.hasOwnProperty(attributeName)) {
- return true;
- }
- if (illegalAttributeNameCache.hasOwnProperty(attributeName)) {
- return false;
- }
- if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
- validatedAttributeNameCache[attributeName] = true;
- return true;
- }
- illegalAttributeNameCache[attributeName] = true;
- "development" !== 'production' ? warning(false, 'Invalid attribute name: `%s`', attributeName) : void 0;
- return false;
-}
-
-function shouldIgnoreValue(propertyInfo, value) {
- return value == null || propertyInfo.hasBooleanValue && !value || propertyInfo.hasNumericValue && isNaN(value) || propertyInfo.hasPositiveNumericValue && value < 1 || propertyInfo.hasOverloadedBooleanValue && value === false;
-}
-
-/**
- * Operations for dealing with DOM properties.
- */
-var DOMPropertyOperations = {
-
- /**
- * Creates markup for the ID property.
- *
- * @param {string} id Unescaped ID.
- * @return {string} Markup string.
- */
- createMarkupForID: function (id) {
- return DOMProperty.ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id);
- },
-
- setAttributeForID: function (node, id) {
- node.setAttribute(DOMProperty.ID_ATTRIBUTE_NAME, id);
- },
-
- createMarkupForRoot: function () {
- return DOMProperty.ROOT_ATTRIBUTE_NAME + '=""';
- },
-
- setAttributeForRoot: function (node) {
- node.setAttribute(DOMProperty.ROOT_ATTRIBUTE_NAME, '');
- },
-
- /**
- * Creates markup for a property.
- *
- * @param {string} name
- * @param {*} value
- * @return {?string} Markup string, or null if the property was invalid.
- */
- createMarkupForProperty: function (name, value) {
- var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
- if (propertyInfo) {
- if (shouldIgnoreValue(propertyInfo, value)) {
- return '';
- }
- var attributeName = propertyInfo.attributeName;
- if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {
- return attributeName + '=""';
- }
- return attributeName + '=' + quoteAttributeValueForBrowser(value);
- } else if (DOMProperty.isCustomAttribute(name)) {
- if (value == null) {
- return '';
- }
- return name + '=' + quoteAttributeValueForBrowser(value);
- }
- return null;
- },
-
- /**
- * Creates markup for a custom property.
- *
- * @param {string} name
- * @param {*} value
- * @return {string} Markup string, or empty string if the property was invalid.
- */
- createMarkupForCustomAttribute: function (name, value) {
- if (!isAttributeNameSafe(name) || value == null) {
- return '';
- }
- return name + '=' + quoteAttributeValueForBrowser(value);
- },
-
- /**
- * Sets the value for a property on a node.
- *
- * @param {DOMElement} node
- * @param {string} name
- * @param {*} value
- */
- setValueForProperty: function (node, name, value) {
- var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
- if (propertyInfo) {
- var mutationMethod = propertyInfo.mutationMethod;
- if (mutationMethod) {
- mutationMethod(node, value);
- } else if (shouldIgnoreValue(propertyInfo, value)) {
- this.deleteValueForProperty(node, name);
- return;
- } else if (propertyInfo.mustUseProperty) {
- // Contrary to `setAttribute`, object properties are properly
- // `toString`ed by IE8/9.
- node[propertyInfo.propertyName] = value;
- } else {
- var attributeName = propertyInfo.attributeName;
- var namespace = propertyInfo.attributeNamespace;
- // `setAttribute` with objects becomes only `[object]` in IE8/9,
- // ('' + value) makes it output the correct toString()-value.
- if (namespace) {
- node.setAttributeNS(namespace, attributeName, '' + value);
- } else if (propertyInfo.hasBooleanValue || propertyInfo.hasOverloadedBooleanValue && value === true) {
- node.setAttribute(attributeName, '');
- } else {
- node.setAttribute(attributeName, '' + value);
- }
- }
- } else if (DOMProperty.isCustomAttribute(name)) {
- DOMPropertyOperations.setValueForAttribute(node, name, value);
- return;
- }
-
- if ("development" !== 'production') {
- var payload = {};
- payload[name] = value;
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
- type: 'update attribute',
- payload: payload
- });
- }
- },
-
- setValueForAttribute: function (node, name, value) {
- if (!isAttributeNameSafe(name)) {
- return;
- }
- if (value == null) {
- node.removeAttribute(name);
- } else {
- node.setAttribute(name, '' + value);
- }
-
- if ("development" !== 'production') {
- var payload = {};
- payload[name] = value;
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
- type: 'update attribute',
- payload: payload
- });
- }
- },
-
- /**
- * Deletes an attributes from a node.
- *
- * @param {DOMElement} node
- * @param {string} name
- */
- deleteValueForAttribute: function (node, name) {
- node.removeAttribute(name);
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
- type: 'remove attribute',
- payload: name
- });
- }
- },
-
- /**
- * Deletes the value for a property on a node.
- *
- * @param {DOMElement} node
- * @param {string} name
- */
- deleteValueForProperty: function (node, name) {
- var propertyInfo = DOMProperty.properties.hasOwnProperty(name) ? DOMProperty.properties[name] : null;
- if (propertyInfo) {
- var mutationMethod = propertyInfo.mutationMethod;
- if (mutationMethod) {
- mutationMethod(node, undefined);
- } else if (propertyInfo.mustUseProperty) {
- var propName = propertyInfo.propertyName;
- if (propertyInfo.hasBooleanValue) {
- node[propName] = false;
- } else {
- node[propName] = '';
- }
- } else {
- node.removeAttribute(propertyInfo.attributeName);
- }
- } else if (DOMProperty.isCustomAttribute(name)) {
- node.removeAttribute(name);
- }
-
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID,
- type: 'remove attribute',
- payload: name
- });
- }
- }
-
-};
-
-module.exports = DOMPropertyOperations;
-},{"12":12,"128":128,"161":161,"35":35,"65":65}],14:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var DOMLazyTree = _dereq_(10);
-var ExecutionEnvironment = _dereq_(140);
-
-var createNodesFromMarkup = _dereq_(145);
-var emptyFunction = _dereq_(146);
-var invariant = _dereq_(154);
-
-var Danger = {
-
- /**
- * Replaces a node with a string of markup at its current position within its
- * parent. The markup must render into a single root node.
- *
- * @param {DOMElement} oldChild Child node to replace.
- * @param {string} markup Markup to render in place of the child node.
- * @internal
- */
- dangerouslyReplaceNodeWithMarkup: function (oldChild, markup) {
- !ExecutionEnvironment.canUseDOM ? "development" !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('56') : void 0;
- !markup ? "development" !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Missing markup.') : _prodInvariant('57') : void 0;
- !(oldChild.nodeName !== 'HTML') ? "development" !== 'production' ? invariant(false, 'dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString().') : _prodInvariant('58') : void 0;
-
- if (typeof markup === 'string') {
- var newChild = createNodesFromMarkup(markup, emptyFunction)[0];
- oldChild.parentNode.replaceChild(newChild, oldChild);
- } else {
- DOMLazyTree.replaceChildWithTree(oldChild, markup);
- }
- }
-
-};
-
-module.exports = Danger;
-},{"10":10,"129":129,"140":140,"145":145,"146":146,"154":154}],15:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var EventPropagators = _dereq_(20);
-var ReactDOMComponentTree = _dereq_(35);
-var SyntheticMouseEvent = _dereq_(97);
-
-var eventTypes = {
- mouseEnter: {
- registrationName: 'onMouseEnter',
- dependencies: ['topMouseOut', 'topMouseOver']
- },
- mouseLeave: {
- registrationName: 'onMouseLeave',
- dependencies: ['topMouseOut', 'topMouseOver']
- }
-};
-
-var EnterLeaveEventPlugin = {
-
- eventTypes: eventTypes,
-
- /**
- * For almost every interaction we care about, there will be both a top-level
- * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
- * we do not extract duplicate events. However, moving the mouse into the
- * browser from outside will not fire a `mouseout` event. In this case, we use
- * the `mouseover` top-level event.
- */
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
- return null;
- }
- if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') {
- // Must not be a mouse in or mouse out - ignoring.
- return null;
- }
-
- var win;
- if (nativeEventTarget.window === nativeEventTarget) {
- // `nativeEventTarget` is probably a window object.
- win = nativeEventTarget;
- } else {
- // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
- var doc = nativeEventTarget.ownerDocument;
- if (doc) {
- win = doc.defaultView || doc.parentWindow;
- } else {
- win = window;
- }
- }
-
- var from;
- var to;
- if (topLevelType === 'topMouseOut') {
- from = targetInst;
- var related = nativeEvent.relatedTarget || nativeEvent.toElement;
- to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null;
- } else {
- // Moving to a node from outside the window.
- from = null;
- to = targetInst;
- }
-
- if (from === to) {
- // Nothing pertains to our managed components.
- return null;
- }
-
- var fromNode = from == null ? win : ReactDOMComponentTree.getNodeFromInstance(from);
- var toNode = to == null ? win : ReactDOMComponentTree.getNodeFromInstance(to);
-
- var leave = SyntheticMouseEvent.getPooled(eventTypes.mouseLeave, from, nativeEvent, nativeEventTarget);
- leave.type = 'mouseleave';
- leave.target = fromNode;
- leave.relatedTarget = toNode;
-
- var enter = SyntheticMouseEvent.getPooled(eventTypes.mouseEnter, to, nativeEvent, nativeEventTarget);
- enter.type = 'mouseenter';
- enter.target = toNode;
- enter.relatedTarget = fromNode;
-
- EventPropagators.accumulateEnterLeaveDispatches(leave, enter, from, to);
-
- return [leave, enter];
- }
-
-};
-
-module.exports = EnterLeaveEventPlugin;
-},{"20":20,"35":35,"97":97}],16:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Types of raw signals from the browser caught at the top level.
- */
-var topLevelTypes = {
- topAbort: null,
- topAnimationEnd: null,
- topAnimationIteration: null,
- topAnimationStart: null,
- topBlur: null,
- topCanPlay: null,
- topCanPlayThrough: null,
- topChange: null,
- topClick: null,
- topCompositionEnd: null,
- topCompositionStart: null,
- topCompositionUpdate: null,
- topContextMenu: null,
- topCopy: null,
- topCut: null,
- topDoubleClick: null,
- topDrag: null,
- topDragEnd: null,
- topDragEnter: null,
- topDragExit: null,
- topDragLeave: null,
- topDragOver: null,
- topDragStart: null,
- topDrop: null,
- topDurationChange: null,
- topEmptied: null,
- topEncrypted: null,
- topEnded: null,
- topError: null,
- topFocus: null,
- topInput: null,
- topInvalid: null,
- topKeyDown: null,
- topKeyPress: null,
- topKeyUp: null,
- topLoad: null,
- topLoadedData: null,
- topLoadedMetadata: null,
- topLoadStart: null,
- topMouseDown: null,
- topMouseMove: null,
- topMouseOut: null,
- topMouseOver: null,
- topMouseUp: null,
- topPaste: null,
- topPause: null,
- topPlay: null,
- topPlaying: null,
- topProgress: null,
- topRateChange: null,
- topReset: null,
- topScroll: null,
- topSeeked: null,
- topSeeking: null,
- topSelectionChange: null,
- topStalled: null,
- topSubmit: null,
- topSuspend: null,
- topTextInput: null,
- topTimeUpdate: null,
- topTouchCancel: null,
- topTouchEnd: null,
- topTouchMove: null,
- topTouchStart: null,
- topTransitionEnd: null,
- topVolumeChange: null,
- topWaiting: null,
- topWheel: null
-};
-
-var EventConstants = {
- topLevelTypes: topLevelTypes
-};
-
-module.exports = EventConstants;
-},{}],17:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var EventPluginRegistry = _dereq_(18);
-var EventPluginUtils = _dereq_(19);
-var ReactErrorUtils = _dereq_(56);
-
-var accumulateInto = _dereq_(104);
-var forEachAccumulated = _dereq_(112);
-var invariant = _dereq_(154);
-
-/**
- * Internal store for event listeners
- */
-var listenerBank = {};
-
-/**
- * Internal queue of events that have accumulated their dispatches and are
- * waiting to have their dispatches executed.
- */
-var eventQueue = null;
-
-/**
- * Dispatches an event and releases it back into the pool, unless persistent.
- *
- * @param {?object} event Synthetic event to be dispatched.
- * @param {boolean} simulated If the event is simulated (changes exn behavior)
- * @private
- */
-var executeDispatchesAndRelease = function (event, simulated) {
- if (event) {
- EventPluginUtils.executeDispatchesInOrder(event, simulated);
-
- if (!event.isPersistent()) {
- event.constructor.release(event);
- }
- }
-};
-var executeDispatchesAndReleaseSimulated = function (e) {
- return executeDispatchesAndRelease(e, true);
-};
-var executeDispatchesAndReleaseTopLevel = function (e) {
- return executeDispatchesAndRelease(e, false);
-};
-
-var getDictionaryKey = function (inst) {
- // Prevents V8 performance issue:
- // https://github.com/facebook/react/pull/7232
- return '.' + inst._rootNodeID;
-};
-
-/**
- * This is a unified interface for event plugins to be installed and configured.
- *
- * Event plugins can implement the following properties:
- *
- * `extractEvents` {function(string, DOMEventTarget, string, object): *}
- * Required. When a top-level event is fired, this method is expected to
- * extract synthetic events that will in turn be queued and dispatched.
- *
- * `eventTypes` {object}
- * Optional, plugins that fire events must publish a mapping of registration
- * names that are used to register listeners. Values of this mapping must
- * be objects that contain `registrationName` or `phasedRegistrationNames`.
- *
- * `executeDispatch` {function(object, function, string)}
- * Optional, allows plugins to override how an event gets dispatched. By
- * default, the listener is simply invoked.
- *
- * Each plugin that is injected into `EventsPluginHub` is immediately operable.
- *
- * @public
- */
-var EventPluginHub = {
-
- /**
- * Methods for injecting dependencies.
- */
- injection: {
-
- /**
- * @param {array} InjectedEventPluginOrder
- * @public
- */
- injectEventPluginOrder: EventPluginRegistry.injectEventPluginOrder,
-
- /**
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
- */
- injectEventPluginsByName: EventPluginRegistry.injectEventPluginsByName
-
- },
-
- /**
- * Stores `listener` at `listenerBank[registrationName][key]`. Is idempotent.
- *
- * @param {object} inst The instance, which is the source of events.
- * @param {string} registrationName Name of listener (e.g. `onClick`).
- * @param {function} listener The callback to store.
- */
- putListener: function (inst, registrationName, listener) {
- !(typeof listener === 'function') ? "development" !== 'production' ? invariant(false, 'Expected %s listener to be a function, instead got type %s', registrationName, typeof listener) : _prodInvariant('94', registrationName, typeof listener) : void 0;
-
- var key = getDictionaryKey(inst);
- var bankForRegistrationName = listenerBank[registrationName] || (listenerBank[registrationName] = {});
- bankForRegistrationName[key] = listener;
-
- var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
- if (PluginModule && PluginModule.didPutListener) {
- PluginModule.didPutListener(inst, registrationName, listener);
- }
- },
-
- /**
- * @param {object} inst The instance, which is the source of events.
- * @param {string} registrationName Name of listener (e.g. `onClick`).
- * @return {?function} The stored callback.
- */
- getListener: function (inst, registrationName) {
- var bankForRegistrationName = listenerBank[registrationName];
- var key = getDictionaryKey(inst);
- return bankForRegistrationName && bankForRegistrationName[key];
- },
-
- /**
- * Deletes a listener from the registration bank.
- *
- * @param {object} inst The instance, which is the source of events.
- * @param {string} registrationName Name of listener (e.g. `onClick`).
- */
- deleteListener: function (inst, registrationName) {
- var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
- if (PluginModule && PluginModule.willDeleteListener) {
- PluginModule.willDeleteListener(inst, registrationName);
- }
-
- var bankForRegistrationName = listenerBank[registrationName];
- // TODO: This should never be null -- when is it?
- if (bankForRegistrationName) {
- var key = getDictionaryKey(inst);
- delete bankForRegistrationName[key];
- }
- },
-
- /**
- * Deletes all listeners for the DOM element with the supplied ID.
- *
- * @param {object} inst The instance, which is the source of events.
- */
- deleteAllListeners: function (inst) {
- var key = getDictionaryKey(inst);
- for (var registrationName in listenerBank) {
- if (!listenerBank.hasOwnProperty(registrationName)) {
- continue;
- }
-
- if (!listenerBank[registrationName][key]) {
- continue;
- }
-
- var PluginModule = EventPluginRegistry.registrationNameModules[registrationName];
- if (PluginModule && PluginModule.willDeleteListener) {
- PluginModule.willDeleteListener(inst, registrationName);
- }
-
- delete listenerBank[registrationName][key];
- }
- },
-
- /**
- * Allows registered plugins an opportunity to extract events from top-level
- * native browser events.
- *
- * @return {*} An accumulation of synthetic events.
- * @internal
- */
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- var events;
- var plugins = EventPluginRegistry.plugins;
- for (var i = 0; i < plugins.length; i++) {
- // Not every plugin in the ordering may be loaded at runtime.
- var possiblePlugin = plugins[i];
- if (possiblePlugin) {
- var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
- if (extractedEvents) {
- events = accumulateInto(events, extractedEvents);
- }
- }
- }
- return events;
- },
-
- /**
- * Enqueues a synthetic event that should be dispatched when
- * `processEventQueue` is invoked.
- *
- * @param {*} events An accumulation of synthetic events.
- * @internal
- */
- enqueueEvents: function (events) {
- if (events) {
- eventQueue = accumulateInto(eventQueue, events);
- }
- },
-
- /**
- * Dispatches all synthetic events on the event queue.
- *
- * @internal
- */
- processEventQueue: function (simulated) {
- // Set `eventQueue` to null before processing it so that we can tell if more
- // events get enqueued while processing.
- var processingEventQueue = eventQueue;
- eventQueue = null;
- if (simulated) {
- forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated);
- } else {
- forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
- }
- !!eventQueue ? "development" !== 'production' ? invariant(false, 'processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.') : _prodInvariant('95') : void 0;
- // This would be a good time to rethrow if any of the event handlers threw.
- ReactErrorUtils.rethrowCaughtError();
- },
-
- /**
- * These are needed for tests only. Do not use!
- */
- __purge: function () {
- listenerBank = {};
- },
-
- __getListenerBank: function () {
- return listenerBank;
- }
-
-};
-
-module.exports = EventPluginHub;
-},{"104":104,"112":112,"129":129,"154":154,"18":18,"19":19,"56":56}],18:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-/**
- * Injectable ordering of event plugins.
- */
-var eventPluginOrder = null;
-
-/**
- * Injectable mapping from names to event plugin modules.
- */
-var namesToPlugins = {};
-
-/**
- * Recomputes the plugin list using the injected plugins and plugin ordering.
- *
- * @private
- */
-function recomputePluginOrdering() {
- if (!eventPluginOrder) {
- // Wait until an `eventPluginOrder` is injected.
- return;
- }
- for (var pluginName in namesToPlugins) {
- var pluginModule = namesToPlugins[pluginName];
- var pluginIndex = eventPluginOrder.indexOf(pluginName);
- !(pluginIndex > -1) ? "development" !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0;
- if (EventPluginRegistry.plugins[pluginIndex]) {
- continue;
- }
- !pluginModule.extractEvents ? "development" !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0;
- EventPluginRegistry.plugins[pluginIndex] = pluginModule;
- var publishedEvents = pluginModule.eventTypes;
- for (var eventName in publishedEvents) {
- !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? "development" !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0;
- }
- }
-}
-
-/**
- * Publishes an event so that it can be dispatched by the supplied plugin.
- *
- * @param {object} dispatchConfig Dispatch configuration for the event.
- * @param {object} PluginModule Plugin publishing the event.
- * @return {boolean} True if the event was successfully published.
- * @private
- */
-function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
- !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? "development" !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0;
- EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig;
-
- var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
- if (phasedRegistrationNames) {
- for (var phaseName in phasedRegistrationNames) {
- if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
- var phasedRegistrationName = phasedRegistrationNames[phaseName];
- publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
- }
- }
- return true;
- } else if (dispatchConfig.registrationName) {
- publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
- return true;
- }
- return false;
-}
-
-/**
- * Publishes a registration name that is used to identify dispatched events and
- * can be used with `EventPluginHub.putListener` to register listeners.
- *
- * @param {string} registrationName Registration name to add.
- * @param {object} PluginModule Plugin publishing the event.
- * @private
- */
-function publishRegistrationName(registrationName, pluginModule, eventName) {
- !!EventPluginRegistry.registrationNameModules[registrationName] ? "development" !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0;
- EventPluginRegistry.registrationNameModules[registrationName] = pluginModule;
- EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
-
- if ("development" !== 'production') {
- var lowerCasedName = registrationName.toLowerCase();
- EventPluginRegistry.possibleRegistrationNames[lowerCasedName] = registrationName;
-
- if (registrationName === 'onDoubleClick') {
- EventPluginRegistry.possibleRegistrationNames.ondblclick = registrationName;
- }
- }
-}
-
-/**
- * Registers plugins so that they can extract and dispatch events.
- *
- * @see {EventPluginHub}
- */
-var EventPluginRegistry = {
-
- /**
- * Ordered list of injected plugins.
- */
- plugins: [],
-
- /**
- * Mapping from event name to dispatch config
- */
- eventNameDispatchConfigs: {},
-
- /**
- * Mapping from registration name to plugin module
- */
- registrationNameModules: {},
-
- /**
- * Mapping from registration name to event name
- */
- registrationNameDependencies: {},
-
- /**
- * Mapping from lowercase registration names to the properly cased version,
- * used to warn in the case of missing event handlers. Available
- * only in __DEV__.
- * @type {Object}
- */
- possibleRegistrationNames: "development" !== 'production' ? {} : null,
- // Trust the developer to only use possibleRegistrationNames in __DEV__
-
- /**
- * Injects an ordering of plugins (by plugin name). This allows the ordering
- * to be decoupled from injection of the actual plugins so that ordering is
- * always deterministic regardless of packaging, on-the-fly injection, etc.
- *
- * @param {array} InjectedEventPluginOrder
- * @internal
- * @see {EventPluginHub.injection.injectEventPluginOrder}
- */
- injectEventPluginOrder: function (injectedEventPluginOrder) {
- !!eventPluginOrder ? "development" !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0;
- // Clone the ordering so it cannot be dynamically mutated.
- eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
- recomputePluginOrdering();
- },
-
- /**
- * Injects plugins to be used by `EventPluginHub`. The plugin names must be
- * in the ordering injected by `injectEventPluginOrder`.
- *
- * Plugins can be injected as part of page initialization or on-the-fly.
- *
- * @param {object} injectedNamesToPlugins Map from names to plugin modules.
- * @internal
- * @see {EventPluginHub.injection.injectEventPluginsByName}
- */
- injectEventPluginsByName: function (injectedNamesToPlugins) {
- var isOrderingDirty = false;
- for (var pluginName in injectedNamesToPlugins) {
- if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
- continue;
- }
- var pluginModule = injectedNamesToPlugins[pluginName];
- if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
- !!namesToPlugins[pluginName] ? "development" !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0;
- namesToPlugins[pluginName] = pluginModule;
- isOrderingDirty = true;
- }
- }
- if (isOrderingDirty) {
- recomputePluginOrdering();
- }
- },
-
- /**
- * Looks up the plugin for the supplied event.
- *
- * @param {object} event A synthetic event.
- * @return {?object} The plugin that created the supplied event.
- * @internal
- */
- getPluginModuleForEvent: function (event) {
- var dispatchConfig = event.dispatchConfig;
- if (dispatchConfig.registrationName) {
- return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null;
- }
- if (dispatchConfig.phasedRegistrationNames !== undefined) {
- // pulling phasedRegistrationNames out of dispatchConfig helps Flow see
- // that it is not undefined.
- var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
-
- for (var phase in phasedRegistrationNames) {
- if (!phasedRegistrationNames.hasOwnProperty(phase)) {
- continue;
- }
- var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]];
- if (pluginModule) {
- return pluginModule;
- }
- }
- }
- return null;
- },
-
- /**
- * Exposed for unit testing.
- * @private
- */
- _resetEventPlugins: function () {
- eventPluginOrder = null;
- for (var pluginName in namesToPlugins) {
- if (namesToPlugins.hasOwnProperty(pluginName)) {
- delete namesToPlugins[pluginName];
- }
- }
- EventPluginRegistry.plugins.length = 0;
-
- var eventNameDispatchConfigs = EventPluginRegistry.eventNameDispatchConfigs;
- for (var eventName in eventNameDispatchConfigs) {
- if (eventNameDispatchConfigs.hasOwnProperty(eventName)) {
- delete eventNameDispatchConfigs[eventName];
- }
- }
-
- var registrationNameModules = EventPluginRegistry.registrationNameModules;
- for (var registrationName in registrationNameModules) {
- if (registrationNameModules.hasOwnProperty(registrationName)) {
- delete registrationNameModules[registrationName];
- }
- }
-
- if ("development" !== 'production') {
- var possibleRegistrationNames = EventPluginRegistry.possibleRegistrationNames;
- for (var lowerCasedName in possibleRegistrationNames) {
- if (possibleRegistrationNames.hasOwnProperty(lowerCasedName)) {
- delete possibleRegistrationNames[lowerCasedName];
- }
- }
- }
- }
-
-};
-
-module.exports = EventPluginRegistry;
-},{"129":129,"154":154}],19:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var ReactTreeTraversal = _dereq_(81);
-var ReactErrorUtils = _dereq_(56);
-
-var invariant = _dereq_(154);
-var warning = _dereq_(161);
-
-/**
- * Injected dependencies:
- */
-
-/**
- * - `ComponentTree`: [required] Module that can convert between React instances
- * and actual node references.
- */
-var ComponentTree;
-var injection = {
- injectComponentTree: function (Injected) {
- ComponentTree = Injected;
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(Injected && Injected.getNodeFromInstance && Injected.getInstanceFromNode, 'EventPluginUtils.injection.injectComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
- }
- }
-};
-
-function isEndish(topLevelType) {
- return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel';
-}
-
-function isMoveish(topLevelType) {
- return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove';
-}
-function isStartish(topLevelType) {
- return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart';
-}
-
-var validateEventDispatches;
-if ("development" !== 'production') {
- validateEventDispatches = function (event) {
- var dispatchListeners = event._dispatchListeners;
- var dispatchInstances = event._dispatchInstances;
-
- var listenersIsArr = Array.isArray(dispatchListeners);
- var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
-
- var instancesIsArr = Array.isArray(dispatchInstances);
- var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
-
- "development" !== 'production' ? warning(instancesIsArr === listenersIsArr && instancesLen === listenersLen, 'EventPluginUtils: Invalid `event`.') : void 0;
- };
-}
-
-/**
- * Dispatch the event to the listener.
- * @param {SyntheticEvent} event SyntheticEvent to handle
- * @param {boolean} simulated If the event is simulated (changes exn behavior)
- * @param {function} listener Application-level callback
- * @param {*} inst Internal component instance
- */
-function executeDispatch(event, simulated, listener, inst) {
- var type = event.type || 'unknown-event';
- event.currentTarget = EventPluginUtils.getNodeFromInstance(inst);
- if (simulated) {
- ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event);
- } else {
- ReactErrorUtils.invokeGuardedCallback(type, listener, event);
- }
- event.currentTarget = null;
-}
-
-/**
- * Standard/simple iteration through an event's collected dispatches.
- */
-function executeDispatchesInOrder(event, simulated) {
- var dispatchListeners = event._dispatchListeners;
- var dispatchInstances = event._dispatchInstances;
- if ("development" !== 'production') {
- validateEventDispatches(event);
- }
- if (Array.isArray(dispatchListeners)) {
- for (var i = 0; i < dispatchListeners.length; i++) {
- if (event.isPropagationStopped()) {
- break;
- }
- // Listeners and Instances are two parallel arrays that are always in sync.
- executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]);
- }
- } else if (dispatchListeners) {
- executeDispatch(event, simulated, dispatchListeners, dispatchInstances);
- }
- event._dispatchListeners = null;
- event._dispatchInstances = null;
-}
-
-/**
- * Standard/simple iteration through an event's collected dispatches, but stops
- * at the first dispatch execution returning true, and returns that id.
- *
- * @return {?string} id of the first dispatch execution who's listener returns
- * true, or null if no listener returned true.
- */
-function executeDispatchesInOrderStopAtTrueImpl(event) {
- var dispatchListeners = event._dispatchListeners;
- var dispatchInstances = event._dispatchInstances;
- if ("development" !== 'production') {
- validateEventDispatches(event);
- }
- if (Array.isArray(dispatchListeners)) {
- for (var i = 0; i < dispatchListeners.length; i++) {
- if (event.isPropagationStopped()) {
- break;
- }
- // Listeners and Instances are two parallel arrays that are always in sync.
- if (dispatchListeners[i](event, dispatchInstances[i])) {
- return dispatchInstances[i];
- }
- }
- } else if (dispatchListeners) {
- if (dispatchListeners(event, dispatchInstances)) {
- return dispatchInstances;
- }
- }
- return null;
-}
-
-/**
- * @see executeDispatchesInOrderStopAtTrueImpl
- */
-function executeDispatchesInOrderStopAtTrue(event) {
- var ret = executeDispatchesInOrderStopAtTrueImpl(event);
- event._dispatchInstances = null;
- event._dispatchListeners = null;
- return ret;
-}
-
-/**
- * Execution of a "direct" dispatch - there must be at most one dispatch
- * accumulated on the event or it is considered an error. It doesn't really make
- * sense for an event with multiple dispatches (bubbled) to keep track of the
- * return values at each dispatch execution, but it does tend to make sense when
- * dealing with "direct" dispatches.
- *
- * @return {*} The return value of executing the single dispatch.
- */
-function executeDirectDispatch(event) {
- if ("development" !== 'production') {
- validateEventDispatches(event);
- }
- var dispatchListener = event._dispatchListeners;
- var dispatchInstance = event._dispatchInstances;
- !!Array.isArray(dispatchListener) ? "development" !== 'production' ? invariant(false, 'executeDirectDispatch(...): Invalid `event`.') : _prodInvariant('103') : void 0;
- event.currentTarget = dispatchListener ? EventPluginUtils.getNodeFromInstance(dispatchInstance) : null;
- var res = dispatchListener ? dispatchListener(event) : null;
- event.currentTarget = null;
- event._dispatchListeners = null;
- event._dispatchInstances = null;
- return res;
-}
-
-/**
- * @param {SyntheticEvent} event
- * @return {boolean} True iff number of dispatches accumulated is greater than 0.
- */
-function hasDispatches(event) {
- return !!event._dispatchListeners;
-}
-
-/**
- * General utilities that are useful in creating custom Event Plugins.
- */
-var EventPluginUtils = {
- isEndish: isEndish,
- isMoveish: isMoveish,
- isStartish: isStartish,
-
- executeDirectDispatch: executeDirectDispatch,
- executeDispatchesInOrder: executeDispatchesInOrder,
- executeDispatchesInOrderStopAtTrue: executeDispatchesInOrderStopAtTrue,
- hasDispatches: hasDispatches,
-
- getInstanceFromNode: function (node) {
- return ComponentTree.getInstanceFromNode(node);
- },
- getNodeFromInstance: function (node) {
- return ComponentTree.getNodeFromInstance(node);
- },
- isAncestor: function (a, b) {
- return ReactTreeTraversal.isAncestor(a, b);
- },
- getLowestCommonAncestor: function (a, b) {
- return ReactTreeTraversal.getLowestCommonAncestor(a, b);
- },
- getParentInstance: function (inst) {
- return ReactTreeTraversal.getParentInstance(inst);
- },
- traverseTwoPhase: function (target, fn, arg) {
- return ReactTreeTraversal.traverseTwoPhase(target, fn, arg);
- },
- traverseEnterLeave: function (from, to, fn, argFrom, argTo) {
- return ReactTreeTraversal.traverseEnterLeave(from, to, fn, argFrom, argTo);
- },
-
- injection: injection
-};
-
-module.exports = EventPluginUtils;
-},{"129":129,"154":154,"161":161,"56":56,"81":81}],20:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var EventPluginHub = _dereq_(17);
-var EventPluginUtils = _dereq_(19);
-
-var accumulateInto = _dereq_(104);
-var forEachAccumulated = _dereq_(112);
-var warning = _dereq_(161);
-
-var getListener = EventPluginHub.getListener;
-
-/**
- * Some event types have a notion of different registration names for different
- * "phases" of propagation. This finds listeners by a given phase.
- */
-function listenerAtPhase(inst, event, propagationPhase) {
- var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
- return getListener(inst, registrationName);
-}
-
-/**
- * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
- * here, allows us to not have to bind or create functions for each event.
- * Mutating the event's members allows us to not have to create a wrapping
- * "dispatch" object that pairs the event with the listener.
- */
-function accumulateDirectionalDispatches(inst, phase, event) {
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0;
- }
- var listener = listenerAtPhase(inst, event, phase);
- if (listener) {
- event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
- event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
- }
-}
-
-/**
- * Collect dispatches (must be entirely collected before dispatching - see unit
- * tests). Lazily allocate the array to conserve memory. We must loop through
- * each event and perform the traversal for each one. We cannot perform a
- * single traversal for the entire collection of events because each event may
- * have a different target.
- */
-function accumulateTwoPhaseDispatchesSingle(event) {
- if (event && event.dispatchConfig.phasedRegistrationNames) {
- EventPluginUtils.traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
- }
-}
-
-/**
- * Same as `accumulateTwoPhaseDispatchesSingle`, but skips over the targetID.
- */
-function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {
- if (event && event.dispatchConfig.phasedRegistrationNames) {
- var targetInst = event._targetInst;
- var parentInst = targetInst ? EventPluginUtils.getParentInstance(targetInst) : null;
- EventPluginUtils.traverseTwoPhase(parentInst, accumulateDirectionalDispatches, event);
- }
-}
-
-/**
- * Accumulates without regard to direction, does not look for phased
- * registration names. Same as `accumulateDirectDispatchesSingle` but without
- * requiring that the `dispatchMarker` be the same as the dispatched ID.
- */
-function accumulateDispatches(inst, ignoredDirection, event) {
- if (event && event.dispatchConfig.registrationName) {
- var registrationName = event.dispatchConfig.registrationName;
- var listener = getListener(inst, registrationName);
- if (listener) {
- event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
- event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
- }
- }
-}
-
-/**
- * Accumulates dispatches on an `SyntheticEvent`, but only for the
- * `dispatchMarker`.
- * @param {SyntheticEvent} event
- */
-function accumulateDirectDispatchesSingle(event) {
- if (event && event.dispatchConfig.registrationName) {
- accumulateDispatches(event._targetInst, null, event);
- }
-}
-
-function accumulateTwoPhaseDispatches(events) {
- forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
-}
-
-function accumulateTwoPhaseDispatchesSkipTarget(events) {
- forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget);
-}
-
-function accumulateEnterLeaveDispatches(leave, enter, from, to) {
- EventPluginUtils.traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
-}
-
-function accumulateDirectDispatches(events) {
- forEachAccumulated(events, accumulateDirectDispatchesSingle);
-}
-
-/**
- * A small set of propagation patterns, each of which will accept a small amount
- * of information, and generate a set of "dispatch ready event objects" - which
- * are sets of events that have already been annotated with a set of dispatched
- * listener functions/ids. The API is designed this way to discourage these
- * propagation strategies from actually executing the dispatches, since we
- * always want to collect the entire set of dispatches before executing event a
- * single one.
- *
- * @constructor EventPropagators
- */
-var EventPropagators = {
- accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches,
- accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget,
- accumulateDirectDispatches: accumulateDirectDispatches,
- accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches
-};
-
-module.exports = EventPropagators;
-},{"104":104,"112":112,"161":161,"17":17,"19":19}],21:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var PooledClass = _dereq_(24);
-
-var getTextContentAccessor = _dereq_(122);
-
-/**
- * This helper class stores information about text content of a target node,
- * allowing comparison of content before and after a given event.
- *
- * Identify the node where selection currently begins, then observe
- * both its text content and its current position in the DOM. Since the
- * browser may natively replace the target node during composition, we can
- * use its position to find its replacement.
- *
- * @param {DOMEventTarget} root
- */
-function FallbackCompositionState(root) {
- this._root = root;
- this._startText = this.getText();
- this._fallbackText = null;
-}
-
-_assign(FallbackCompositionState.prototype, {
- destructor: function () {
- this._root = null;
- this._startText = null;
- this._fallbackText = null;
- },
-
- /**
- * Get current text of input.
- *
- * @return {string}
- */
- getText: function () {
- if ('value' in this._root) {
- return this._root.value;
- }
- return this._root[getTextContentAccessor()];
- },
-
- /**
- * Determine the differing substring between the initially stored
- * text content and the current content.
- *
- * @return {string}
- */
- getData: function () {
- if (this._fallbackText) {
- return this._fallbackText;
- }
-
- var start;
- var startValue = this._startText;
- var startLength = startValue.length;
- var end;
- var endValue = this.getText();
- var endLength = endValue.length;
-
- for (start = 0; start < startLength; start++) {
- if (startValue[start] !== endValue[start]) {
- break;
- }
- }
-
- var minEnd = startLength - start;
- for (end = 1; end <= minEnd; end++) {
- if (startValue[startLength - end] !== endValue[endLength - end]) {
- break;
- }
- }
-
- var sliceTail = end > 1 ? 1 - end : undefined;
- this._fallbackText = endValue.slice(start, sliceTail);
- return this._fallbackText;
- }
-});
-
-PooledClass.addPoolingTo(FallbackCompositionState);
-
-module.exports = FallbackCompositionState;
-},{"122":122,"162":162,"24":24}],22:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMProperty = _dereq_(12);
-
-var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY;
-var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE;
-var HAS_NUMERIC_VALUE = DOMProperty.injection.HAS_NUMERIC_VALUE;
-var HAS_POSITIVE_NUMERIC_VALUE = DOMProperty.injection.HAS_POSITIVE_NUMERIC_VALUE;
-var HAS_OVERLOADED_BOOLEAN_VALUE = DOMProperty.injection.HAS_OVERLOADED_BOOLEAN_VALUE;
-
-var HTMLDOMPropertyConfig = {
- isCustomAttribute: RegExp.prototype.test.bind(new RegExp('^(data|aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$')),
- Properties: {
- /**
- * Standard Properties
- */
- accept: 0,
- acceptCharset: 0,
- accessKey: 0,
- action: 0,
- allowFullScreen: HAS_BOOLEAN_VALUE,
- allowTransparency: 0,
- alt: 0,
- // specifies target context for links with `preload` type
- as: 0,
- async: HAS_BOOLEAN_VALUE,
- autoComplete: 0,
- // autoFocus is polyfilled/normalized by AutoFocusUtils
- // autoFocus: HAS_BOOLEAN_VALUE,
- autoPlay: HAS_BOOLEAN_VALUE,
- capture: HAS_BOOLEAN_VALUE,
- cellPadding: 0,
- cellSpacing: 0,
- charSet: 0,
- challenge: 0,
- checked: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
- cite: 0,
- classID: 0,
- className: 0,
- cols: HAS_POSITIVE_NUMERIC_VALUE,
- colSpan: 0,
- content: 0,
- contentEditable: 0,
- contextMenu: 0,
- controls: HAS_BOOLEAN_VALUE,
- coords: 0,
- crossOrigin: 0,
- data: 0, // For `<object />` acts as `src`.
- dateTime: 0,
- 'default': HAS_BOOLEAN_VALUE,
- defer: HAS_BOOLEAN_VALUE,
- dir: 0,
- disabled: HAS_BOOLEAN_VALUE,
- download: HAS_OVERLOADED_BOOLEAN_VALUE,
- draggable: 0,
- encType: 0,
- form: 0,
- formAction: 0,
- formEncType: 0,
- formMethod: 0,
- formNoValidate: HAS_BOOLEAN_VALUE,
- formTarget: 0,
- frameBorder: 0,
- headers: 0,
- height: 0,
- hidden: HAS_BOOLEAN_VALUE,
- high: 0,
- href: 0,
- hrefLang: 0,
- htmlFor: 0,
- httpEquiv: 0,
- id: 0,
- inputMode: 0,
- integrity: 0,
- is: 0,
- keyParams: 0,
- keyType: 0,
- kind: 0,
- label: 0,
- lang: 0,
- list: 0,
- loop: HAS_BOOLEAN_VALUE,
- low: 0,
- manifest: 0,
- marginHeight: 0,
- marginWidth: 0,
- max: 0,
- maxLength: 0,
- media: 0,
- mediaGroup: 0,
- method: 0,
- min: 0,
- minLength: 0,
- // Caution; `option.selected` is not updated if `select.multiple` is
- // disabled with `removeAttribute`.
- multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
- muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
- name: 0,
- nonce: 0,
- noValidate: HAS_BOOLEAN_VALUE,
- open: HAS_BOOLEAN_VALUE,
- optimum: 0,
- pattern: 0,
- placeholder: 0,
- playsInline: HAS_BOOLEAN_VALUE,
- poster: 0,
- preload: 0,
- profile: 0,
- radioGroup: 0,
- readOnly: HAS_BOOLEAN_VALUE,
- referrerPolicy: 0,
- rel: 0,
- required: HAS_BOOLEAN_VALUE,
- reversed: HAS_BOOLEAN_VALUE,
- role: 0,
- rows: HAS_POSITIVE_NUMERIC_VALUE,
- rowSpan: HAS_NUMERIC_VALUE,
- sandbox: 0,
- scope: 0,
- scoped: HAS_BOOLEAN_VALUE,
- scrolling: 0,
- seamless: HAS_BOOLEAN_VALUE,
- selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
- shape: 0,
- size: HAS_POSITIVE_NUMERIC_VALUE,
- sizes: 0,
- // support for projecting regular DOM Elements via V1 named slots ( shadow dom )
- slot: 0,
- span: HAS_POSITIVE_NUMERIC_VALUE,
- spellCheck: 0,
- src: 0,
- srcDoc: 0,
- srcLang: 0,
- srcSet: 0,
- start: HAS_NUMERIC_VALUE,
- step: 0,
- style: 0,
- summary: 0,
- tabIndex: 0,
- target: 0,
- title: 0,
- // Setting .type throws on non-<input> tags
- type: 0,
- useMap: 0,
- value: 0,
- width: 0,
- wmode: 0,
- wrap: 0,
-
- /**
- * RDFa Properties
- */
- about: 0,
- datatype: 0,
- inlist: 0,
- prefix: 0,
- // property is also supported for OpenGraph in meta tags.
- property: 0,
- resource: 0,
- 'typeof': 0,
- vocab: 0,
-
- /**
- * Non-standard Properties
- */
- // autoCapitalize and autoCorrect are supported in Mobile Safari for
- // keyboard hints.
- autoCapitalize: 0,
- autoCorrect: 0,
- // autoSave allows WebKit/Blink to persist values of input fields on page reloads
- autoSave: 0,
- // color is for Safari mask-icon link
- color: 0,
- // itemProp, itemScope, itemType are for
- // Microdata support. See http://schema.org/docs/gs.html
- itemProp: 0,
- itemScope: HAS_BOOLEAN_VALUE,
- itemType: 0,
- // itemID and itemRef are for Microdata support as well but
- // only specified in the WHATWG spec document. See
- // https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
- itemID: 0,
- itemRef: 0,
- // results show looking glass icon and recent searches on input
- // search fields in WebKit/Blink
- results: 0,
- // IE-only attribute that specifies security restrictions on an iframe
- // as an alternative to the sandbox attribute on IE<10
- security: 0,
- // IE-only attribute that controls focus behavior
- unselectable: 0
- },
- DOMAttributeNames: {
- acceptCharset: 'accept-charset',
- className: 'class',
- htmlFor: 'for',
- httpEquiv: 'http-equiv'
- },
- DOMPropertyNames: {}
-};
-
-module.exports = HTMLDOMPropertyConfig;
-},{"12":12}],23:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-/**
- * Escape and wrap key so it is safe to use as a reactid
- *
- * @param {string} key to be escaped.
- * @return {string} the escaped key.
- */
-
-function escape(key) {
- var escapeRegex = /[=:]/g;
- var escaperLookup = {
- '=': '=0',
- ':': '=2'
- };
- var escapedString = ('' + key).replace(escapeRegex, function (match) {
- return escaperLookup[match];
- });
-
- return '$' + escapedString;
-}
-
-/**
- * Unescape and unwrap key for human-readable display
- *
- * @param {string} key to unescape.
- * @return {string} the unescaped key.
- */
-function unescape(key) {
- var unescapeRegex = /(=0|=2)/g;
- var unescaperLookup = {
- '=0': '=',
- '=2': ':'
- };
- var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
-
- return ('' + keySubstring).replace(unescapeRegex, function (match) {
- return unescaperLookup[match];
- });
-}
-
-var KeyEscapeUtils = {
- escape: escape,
- unescape: unescape
-};
-
-module.exports = KeyEscapeUtils;
-},{}],24:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-/**
- * Static poolers. Several custom versions for each potential number of
- * arguments. A completely generic pooler is easy to implement, but would
- * require accessing the `arguments` object. In each of these, `this` refers to
- * the Class itself, not an instance. If any others are needed, simply add them
- * here, or in their own files.
- */
-var oneArgumentPooler = function (copyFieldsFrom) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, copyFieldsFrom);
- return instance;
- } else {
- return new Klass(copyFieldsFrom);
- }
-};
-
-var twoArgumentPooler = function (a1, a2) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2);
- return instance;
- } else {
- return new Klass(a1, a2);
- }
-};
-
-var threeArgumentPooler = function (a1, a2, a3) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2, a3);
- return instance;
- } else {
- return new Klass(a1, a2, a3);
- }
-};
-
-var fourArgumentPooler = function (a1, a2, a3, a4) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2, a3, a4);
- return instance;
- } else {
- return new Klass(a1, a2, a3, a4);
- }
-};
-
-var fiveArgumentPooler = function (a1, a2, a3, a4, a5) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2, a3, a4, a5);
- return instance;
- } else {
- return new Klass(a1, a2, a3, a4, a5);
- }
-};
-
-var standardReleaser = function (instance) {
- var Klass = this;
- !(instance instanceof Klass) ? "development" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
- instance.destructor();
- if (Klass.instancePool.length < Klass.poolSize) {
- Klass.instancePool.push(instance);
- }
-};
-
-var DEFAULT_POOL_SIZE = 10;
-var DEFAULT_POOLER = oneArgumentPooler;
-
-/**
- * Augments `CopyConstructor` to be a poolable class, augmenting only the class
- * itself (statically) not adding any prototypical fields. Any CopyConstructor
- * you give this may have a `poolSize` property, and will look for a
- * prototypical `destructor` on instances.
- *
- * @param {Function} CopyConstructor Constructor that can be used to reset.
- * @param {Function} pooler Customizable pooler.
- */
-var addPoolingTo = function (CopyConstructor, pooler) {
- // Casting as any so that flow ignores the actual implementation and trusts
- // it to match the type we declared
- var NewKlass = CopyConstructor;
- NewKlass.instancePool = [];
- NewKlass.getPooled = pooler || DEFAULT_POOLER;
- if (!NewKlass.poolSize) {
- NewKlass.poolSize = DEFAULT_POOL_SIZE;
- }
- NewKlass.release = standardReleaser;
- return NewKlass;
-};
-
-var PooledClass = {
- addPoolingTo: addPoolingTo,
- oneArgumentPooler: oneArgumentPooler,
- twoArgumentPooler: twoArgumentPooler,
- threeArgumentPooler: threeArgumentPooler,
- fourArgumentPooler: fourArgumentPooler,
- fiveArgumentPooler: fiveArgumentPooler
-};
-
-module.exports = PooledClass;
-},{"129":129,"154":154}],25:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var EventPluginRegistry = _dereq_(18);
-var ReactEventEmitterMixin = _dereq_(57);
-var ViewportMetrics = _dereq_(103);
-
-var getVendorPrefixedEventName = _dereq_(123);
-var isEventSupported = _dereq_(126);
-
-/**
- * Summary of `ReactBrowserEventEmitter` event handling:
- *
- * - Top-level delegation is used to trap most native browser events. This
- * may only occur in the main thread and is the responsibility of
- * ReactEventListener, which is injected and can therefore support pluggable
- * event sources. This is the only work that occurs in the main thread.
- *
- * - We normalize and de-duplicate events to account for browser quirks. This
- * may be done in the worker thread.
- *
- * - Forward these native events (with the associated top-level type used to
- * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
- * to extract any synthetic events.
- *
- * - The `EventPluginHub` will then process each event by annotating them with
- * "dispatches", a sequence of listeners and IDs that care about that event.
- *
- * - The `EventPluginHub` then dispatches the events.
- *
- * Overview of React and the event system:
- *
- * +------------+ .
- * | DOM | .
- * +------------+ .
- * | .
- * v .
- * +------------+ .
- * | ReactEvent | .
- * | Listener | .
- * +------------+ . +-----------+
- * | . +--------+|SimpleEvent|
- * | . | |Plugin |
- * +-----|------+ . v +-----------+
- * | | | . +--------------+ +------------+
- * | +-----------.--->|EventPluginHub| | Event |
- * | | . | | +-----------+ | Propagators|
- * | ReactEvent | . | | |TapEvent | |------------|
- * | Emitter | . | |<---+|Plugin | |other plugin|
- * | | . | | +-----------+ | utilities |
- * | +-----------.--->| | +------------+
- * | | | . +--------------+
- * +-----|------+ . ^ +-----------+
- * | . | |Enter/Leave|
- * + . +-------+|Plugin |
- * +-------------+ . +-----------+
- * | application | .
- * |-------------| .
- * | | .
- * | | .
- * +-------------+ .
- * .
- * React Core . General Purpose Event Plugin System
- */
-
-var hasEventPageXY;
-var alreadyListeningTo = {};
-var isMonitoringScrollValue = false;
-var reactTopListenersCounter = 0;
-
-// For events like 'submit' which don't consistently bubble (which we trap at a
-// lower node than `document`), binding at `document` would cause duplicate
-// events so we don't include them here
-var topEventMapping = {
- topAbort: 'abort',
- topAnimationEnd: getVendorPrefixedEventName('animationend') || 'animationend',
- topAnimationIteration: getVendorPrefixedEventName('animationiteration') || 'animationiteration',
- topAnimationStart: getVendorPrefixedEventName('animationstart') || 'animationstart',
- topBlur: 'blur',
- topCanPlay: 'canplay',
- topCanPlayThrough: 'canplaythrough',
- topChange: 'change',
- topClick: 'click',
- topCompositionEnd: 'compositionend',
- topCompositionStart: 'compositionstart',
- topCompositionUpdate: 'compositionupdate',
- topContextMenu: 'contextmenu',
- topCopy: 'copy',
- topCut: 'cut',
- topDoubleClick: 'dblclick',
- topDrag: 'drag',
- topDragEnd: 'dragend',
- topDragEnter: 'dragenter',
- topDragExit: 'dragexit',
- topDragLeave: 'dragleave',
- topDragOver: 'dragover',
- topDragStart: 'dragstart',
- topDrop: 'drop',
- topDurationChange: 'durationchange',
- topEmptied: 'emptied',
- topEncrypted: 'encrypted',
- topEnded: 'ended',
- topError: 'error',
- topFocus: 'focus',
- topInput: 'input',
- topKeyDown: 'keydown',
- topKeyPress: 'keypress',
- topKeyUp: 'keyup',
- topLoadedData: 'loadeddata',
- topLoadedMetadata: 'loadedmetadata',
- topLoadStart: 'loadstart',
- topMouseDown: 'mousedown',
- topMouseMove: 'mousemove',
- topMouseOut: 'mouseout',
- topMouseOver: 'mouseover',
- topMouseUp: 'mouseup',
- topPaste: 'paste',
- topPause: 'pause',
- topPlay: 'play',
- topPlaying: 'playing',
- topProgress: 'progress',
- topRateChange: 'ratechange',
- topScroll: 'scroll',
- topSeeked: 'seeked',
- topSeeking: 'seeking',
- topSelectionChange: 'selectionchange',
- topStalled: 'stalled',
- topSuspend: 'suspend',
- topTextInput: 'textInput',
- topTimeUpdate: 'timeupdate',
- topTouchCancel: 'touchcancel',
- topTouchEnd: 'touchend',
- topTouchMove: 'touchmove',
- topTouchStart: 'touchstart',
- topTransitionEnd: getVendorPrefixedEventName('transitionend') || 'transitionend',
- topVolumeChange: 'volumechange',
- topWaiting: 'waiting',
- topWheel: 'wheel'
-};
-
-/**
- * To ensure no conflicts with other potential React instances on the page
- */
-var topListenersIDKey = '_reactListenersID' + String(Math.random()).slice(2);
-
-function getListeningForDocument(mountAt) {
- // In IE8, `mountAt` is a host object and doesn't have `hasOwnProperty`
- // directly.
- if (!Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey)) {
- mountAt[topListenersIDKey] = reactTopListenersCounter++;
- alreadyListeningTo[mountAt[topListenersIDKey]] = {};
- }
- return alreadyListeningTo[mountAt[topListenersIDKey]];
-}
-
-/**
- * `ReactBrowserEventEmitter` is used to attach top-level event listeners. For
- * example:
- *
- * EventPluginHub.putListener('myID', 'onClick', myFunction);
- *
- * This would allocate a "registration" of `('onClick', myFunction)` on 'myID'.
- *
- * @internal
- */
-var ReactBrowserEventEmitter = _assign({}, ReactEventEmitterMixin, {
-
- /**
- * Injectable event backend
- */
- ReactEventListener: null,
-
- injection: {
- /**
- * @param {object} ReactEventListener
- */
- injectReactEventListener: function (ReactEventListener) {
- ReactEventListener.setHandleTopLevel(ReactBrowserEventEmitter.handleTopLevel);
- ReactBrowserEventEmitter.ReactEventListener = ReactEventListener;
- }
- },
-
- /**
- * Sets whether or not any created callbacks should be enabled.
- *
- * @param {boolean} enabled True if callbacks should be enabled.
- */
- setEnabled: function (enabled) {
- if (ReactBrowserEventEmitter.ReactEventListener) {
- ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled);
- }
- },
-
- /**
- * @return {boolean} True if callbacks are enabled.
- */
- isEnabled: function () {
- return !!(ReactBrowserEventEmitter.ReactEventListener && ReactBrowserEventEmitter.ReactEventListener.isEnabled());
- },
-
- /**
- * We listen for bubbled touch events on the document object.
- *
- * Firefox v8.01 (and possibly others) exhibited strange behavior when
- * mounting `onmousemove` events at some node that was not the document
- * element. The symptoms were that if your mouse is not moving over something
- * contained within that mount point (for example on the background) the
- * top-level listeners for `onmousemove` won't be called. However, if you
- * register the `mousemove` on the document object, then it will of course
- * catch all `mousemove`s. This along with iOS quirks, justifies restricting
- * top-level listeners to the document object only, at least for these
- * movement types of events and possibly all events.
- *
- * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
- *
- * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
- * they bubble to document.
- *
- * @param {string} registrationName Name of listener (e.g. `onClick`).
- * @param {object} contentDocumentHandle Document which owns the container
- */
- listenTo: function (registrationName, contentDocumentHandle) {
- var mountAt = contentDocumentHandle;
- var isListening = getListeningForDocument(mountAt);
- var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName];
-
- for (var i = 0; i < dependencies.length; i++) {
- var dependency = dependencies[i];
- if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
- if (dependency === 'topWheel') {
- if (isEventSupported('wheel')) {
- ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'wheel', mountAt);
- } else if (isEventSupported('mousewheel')) {
- ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'mousewheel', mountAt);
- } else {
- // Firefox needs to capture a different mouse scroll event.
- // @see http://www.quirksmode.org/dom/events/tests/scroll.html
- ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'DOMMouseScroll', mountAt);
- }
- } else if (dependency === 'topScroll') {
-
- if (isEventSupported('scroll', true)) {
- ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topScroll', 'scroll', mountAt);
- } else {
- ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topScroll', 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE);
- }
- } else if (dependency === 'topFocus' || dependency === 'topBlur') {
-
- if (isEventSupported('focus', true)) {
- ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topFocus', 'focus', mountAt);
- ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topBlur', 'blur', mountAt);
- } else if (isEventSupported('focusin')) {
- // IE has `focusin` and `focusout` events which bubble.
- // @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html
- ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topFocus', 'focusin', mountAt);
- ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topBlur', 'focusout', mountAt);
- }
-
- // to make sure blur and focus event listeners are only attached once
- isListening.topBlur = true;
- isListening.topFocus = true;
- } else if (topEventMapping.hasOwnProperty(dependency)) {
- ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt);
- }
-
- isListening[dependency] = true;
- }
- }
- },
-
- isListeningToAllDependencies: function (registrationName, mountAt) {
- var isListening = getListeningForDocument(mountAt);
- var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName];
- for (var i = 0; i < dependencies.length; i++) {
- var dependency = dependencies[i];
- if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) {
- return false;
- }
- }
- return true;
- },
-
- trapBubbledEvent: function (topLevelType, handlerBaseName, handle) {
- return ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType, handlerBaseName, handle);
- },
-
- trapCapturedEvent: function (topLevelType, handlerBaseName, handle) {
- return ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType, handlerBaseName, handle);
- },
-
- /**
- * Protect against document.createEvent() returning null
- * Some popup blocker extensions appear to do this:
- * https://github.com/facebook/react/issues/6887
- */
- supportsEventPageXY: function () {
- if (!document.createEvent) {
- return false;
- }
- var ev = document.createEvent('MouseEvent');
- return ev != null && 'pageX' in ev;
- },
-
- /**
- * Listens to window scroll and resize events. We cache scroll values so that
- * application code can access them without triggering reflows.
- *
- * ViewportMetrics is only used by SyntheticMouse/TouchEvent and only when
- * pageX/pageY isn't supported (legacy browsers).
- *
- * NOTE: Scroll events do not bubble.
- *
- * @see http://www.quirksmode.org/dom/events/scroll.html
- */
- ensureScrollValueMonitoring: function () {
- if (hasEventPageXY === undefined) {
- hasEventPageXY = ReactBrowserEventEmitter.supportsEventPageXY();
- }
- if (!hasEventPageXY && !isMonitoringScrollValue) {
- var refresh = ViewportMetrics.refreshScrollValues;
- ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh);
- isMonitoringScrollValue = true;
- }
- }
-
-});
-
-module.exports = ReactBrowserEventEmitter;
-},{"103":103,"123":123,"126":126,"162":162,"18":18,"57":57}],26:[function(_dereq_,module,exports){
-(function (process){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactReconciler = _dereq_(75);
-
-var instantiateReactComponent = _dereq_(125);
-var KeyEscapeUtils = _dereq_(23);
-var shouldUpdateReactComponent = _dereq_(133);
-var traverseAllChildren = _dereq_(134);
-var warning = _dereq_(161);
-
-var ReactComponentTreeHook;
-
-if (typeof process !== 'undefined' && process.env && "development" === 'test') {
- // Temporary hack.
- // Inline requires don't work well with Jest:
- // https://github.com/facebook/react/issues/7240
- // Remove the inline requires when we don't need them anymore:
- // https://github.com/facebook/react/pull/7178
- ReactComponentTreeHook = _dereq_(136);
-}
-
-function instantiateChild(childInstances, child, name, selfDebugID) {
- // We found a component instance.
- var keyUnique = childInstances[name] === undefined;
- if ("development" !== 'production') {
- if (!ReactComponentTreeHook) {
- ReactComponentTreeHook = _dereq_(136);
- }
- if (!keyUnique) {
- "development" !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
- }
- }
- if (child != null && keyUnique) {
- childInstances[name] = instantiateReactComponent(child, true);
- }
-}
-
-/**
- * ReactChildReconciler provides helpers for initializing or updating a set of
- * children. Its output is suitable for passing it onto ReactMultiChild which
- * does diffed reordering and insertion.
- */
-var ReactChildReconciler = {
- /**
- * Generates a "mount image" for each of the supplied children. In the case
- * of `ReactDOMComponent`, a mount image is a string of markup.
- *
- * @param {?object} nestedChildNodes Nested child maps.
- * @return {?object} A set of child instances.
- * @internal
- */
- instantiateChildren: function (nestedChildNodes, transaction, context, selfDebugID // 0 in production and for roots
- ) {
- if (nestedChildNodes == null) {
- return null;
- }
- var childInstances = {};
-
- if ("development" !== 'production') {
- traverseAllChildren(nestedChildNodes, function (childInsts, child, name) {
- return instantiateChild(childInsts, child, name, selfDebugID);
- }, childInstances);
- } else {
- traverseAllChildren(nestedChildNodes, instantiateChild, childInstances);
- }
- return childInstances;
- },
-
- /**
- * Updates the rendered children and returns a new set of children.
- *
- * @param {?object} prevChildren Previously initialized set of children.
- * @param {?object} nextChildren Flat child element maps.
- * @param {ReactReconcileTransaction} transaction
- * @param {object} context
- * @return {?object} A new set of child instances.
- * @internal
- */
- updateChildren: function (prevChildren, nextChildren, mountImages, removedNodes, transaction, hostParent, hostContainerInfo, context, selfDebugID // 0 in production and for roots
- ) {
- // We currently don't have a way to track moves here but if we use iterators
- // instead of for..in we can zip the iterators and check if an item has
- // moved.
- // TODO: If nothing has changed, return the prevChildren object so that we
- // can quickly bailout if nothing has changed.
- if (!nextChildren && !prevChildren) {
- return;
- }
- var name;
- var prevChild;
- for (name in nextChildren) {
- if (!nextChildren.hasOwnProperty(name)) {
- continue;
- }
- prevChild = prevChildren && prevChildren[name];
- var prevElement = prevChild && prevChild._currentElement;
- var nextElement = nextChildren[name];
- if (prevChild != null && shouldUpdateReactComponent(prevElement, nextElement)) {
- ReactReconciler.receiveComponent(prevChild, nextElement, transaction, context);
- nextChildren[name] = prevChild;
- } else {
- if (prevChild) {
- removedNodes[name] = ReactReconciler.getHostNode(prevChild);
- ReactReconciler.unmountComponent(prevChild, false, /* safely */
- false /* skipLifecycle */
- );
- }
- // The child must be instantiated before it's mounted.
- var nextChildInstance = instantiateReactComponent(nextElement, true);
- nextChildren[name] = nextChildInstance;
- // Creating mount image now ensures refs are resolved in right order
- // (see https://github.com/facebook/react/pull/7101 for explanation).
- var nextChildMountImage = ReactReconciler.mountComponent(nextChildInstance, transaction, hostParent, hostContainerInfo, context, selfDebugID);
- mountImages.push(nextChildMountImage);
- }
- }
- // Unmount children that are no longer present.
- for (name in prevChildren) {
- if (prevChildren.hasOwnProperty(name) && !(nextChildren && nextChildren.hasOwnProperty(name))) {
- prevChild = prevChildren[name];
- removedNodes[name] = ReactReconciler.getHostNode(prevChild);
- ReactReconciler.unmountComponent(prevChild, false, /* safely */
- false /* skipLifecycle */
- );
- }
- }
- },
-
- /**
- * Unmounts all rendered children. This should be used to clean up children
- * when this component is unmounted.
- *
- * @param {?object} renderedChildren Previously initialized set of children.
- * @internal
- */
- unmountChildren: function (renderedChildren, safely, skipLifecycle) {
- for (var name in renderedChildren) {
- if (renderedChildren.hasOwnProperty(name)) {
- var renderedChild = renderedChildren[name];
- ReactReconciler.unmountComponent(renderedChild, safely, skipLifecycle);
- }
- }
- }
-
-};
-
-module.exports = ReactChildReconciler;
-}).call(this,undefined)
-},{"125":125,"133":133,"134":134,"136":136,"161":161,"23":23,"75":75}],27:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMChildrenOperations = _dereq_(8);
-var ReactDOMIDOperations = _dereq_(39);
-
-/**
- * Abstracts away all functionality of the reconciler that requires knowledge of
- * the browser context. TODO: These callers should be refactored to avoid the
- * need for this injection.
- */
-var ReactComponentBrowserEnvironment = {
-
- processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,
-
- replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup
-
-};
-
-module.exports = ReactComponentBrowserEnvironment;
-},{"39":39,"8":8}],28:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-var injected = false;
-
-var ReactComponentEnvironment = {
-
- /**
- * Optionally injectable hook for swapping out mount images in the middle of
- * the tree.
- */
- replaceNodeWithMarkup: null,
-
- /**
- * Optionally injectable hook for processing a queue of child updates. Will
- * later move into MultiChildComponents.
- */
- processChildrenUpdates: null,
-
- injection: {
- injectEnvironment: function (environment) {
- !!injected ? "development" !== 'production' ? invariant(false, 'ReactCompositeComponent: injectEnvironment() can only be called once.') : _prodInvariant('104') : void 0;
- ReactComponentEnvironment.replaceNodeWithMarkup = environment.replaceNodeWithMarkup;
- ReactComponentEnvironment.processChildrenUpdates = environment.processChildrenUpdates;
- injected = true;
- }
- }
-
-};
-
-module.exports = ReactComponentEnvironment;
-},{"129":129,"154":154}],29:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var React = _dereq_(138);
-var ReactComponentEnvironment = _dereq_(28);
-var ReactCurrentOwner = _dereq_(137);
-var ReactErrorUtils = _dereq_(56);
-var ReactInstanceMap = _dereq_(64);
-var ReactInstrumentation = _dereq_(65);
-var ReactNodeTypes = _dereq_(70);
-var ReactReconciler = _dereq_(75);
-
-if ("development" !== 'production') {
- var checkReactTypeSpec = _dereq_(106);
-}
-
-var emptyObject = _dereq_(147);
-var invariant = _dereq_(154);
-var shallowEqual = _dereq_(160);
-var shouldUpdateReactComponent = _dereq_(133);
-var warning = _dereq_(161);
-
-var CompositeTypes = {
- ImpureClass: 0,
- PureClass: 1,
- StatelessFunctional: 2
-};
-
-function StatelessComponent(Component) {}
-StatelessComponent.prototype.render = function () {
- var Component = ReactInstanceMap.get(this)._currentElement.type;
- var element = Component(this.props, this.context, this.updater);
- warnIfInvalidElement(Component, element);
- return element;
-};
-
-function warnIfInvalidElement(Component, element) {
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(element === null || element === false || React.isValidElement(element), '%s(...): A valid React element (or null) must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : void 0;
- "development" !== 'production' ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0;
- }
-}
-
-function shouldConstruct(Component) {
- return !!(Component.prototype && Component.prototype.isReactComponent);
-}
-
-function isPureComponent(Component) {
- return !!(Component.prototype && Component.prototype.isPureReactComponent);
-}
-
-// Separated into a function to contain deoptimizations caused by try/finally.
-function measureLifeCyclePerf(fn, debugID, timerType) {
- if (debugID === 0) {
- // Top-level wrappers (see ReactMount) and empty components (see
- // ReactDOMEmptyComponent) are invisible to hooks and devtools.
- // Both are implementation details that should go away in the future.
- return fn();
- }
-
- ReactInstrumentation.debugTool.onBeginLifeCycleTimer(debugID, timerType);
- try {
- return fn();
- } finally {
- ReactInstrumentation.debugTool.onEndLifeCycleTimer(debugID, timerType);
- }
-}
-
-/**
- * ------------------ The Life-Cycle of a Composite Component ------------------
- *
- * - constructor: Initialization of state. The instance is now retained.
- * - componentWillMount
- * - render
- * - [children's constructors]
- * - [children's componentWillMount and render]
- * - [children's componentDidMount]
- * - componentDidMount
- *
- * Update Phases:
- * - componentWillReceiveProps (only called if parent updated)
- * - shouldComponentUpdate
- * - componentWillUpdate
- * - render
- * - [children's constructors or receive props phases]
- * - componentDidUpdate
- *
- * - componentWillUnmount
- * - [children's componentWillUnmount]
- * - [children destroyed]
- * - (destroyed): The instance is now blank, released by React and ready for GC.
- *
- * -----------------------------------------------------------------------------
- */
-
-/**
- * An incrementing ID assigned to each component when it is mounted. This is
- * used to enforce the order in which `ReactUpdates` updates dirty components.
- *
- * @private
- */
-var nextMountID = 1;
-
-/**
- * @lends {ReactCompositeComponent.prototype}
- */
-var ReactCompositeComponent = {
-
- /**
- * Base constructor for all composite component.
- *
- * @param {ReactElement} element
- * @final
- * @internal
- */
- construct: function (element) {
- this._currentElement = element;
- this._rootNodeID = 0;
- this._compositeType = null;
- this._instance = null;
- this._hostParent = null;
- this._hostContainerInfo = null;
-
- // See ReactUpdateQueue
- this._updateBatchNumber = null;
- this._pendingElement = null;
- this._pendingStateQueue = null;
- this._pendingReplaceState = false;
- this._pendingForceUpdate = false;
-
- this._renderedNodeType = null;
- this._renderedComponent = null;
- this._context = null;
- this._mountOrder = 0;
- this._topLevelWrapper = null;
-
- // See ReactUpdates and ReactUpdateQueue.
- this._pendingCallbacks = null;
-
- // ComponentWillUnmount shall only be called once
- this._calledComponentWillUnmount = false;
-
- if ("development" !== 'production') {
- this._warnedAboutRefsInRender = false;
- }
- },
-
- /**
- * Initializes the component, renders markup, and registers event listeners.
- *
- * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
- * @param {?object} hostParent
- * @param {?object} hostContainerInfo
- * @param {?object} context
- * @return {?string} Rendered markup to be inserted into the DOM.
- * @final
- * @internal
- */
- mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
- var _this = this;
-
- this._context = context;
- this._mountOrder = nextMountID++;
- this._hostParent = hostParent;
- this._hostContainerInfo = hostContainerInfo;
-
- var publicProps = this._currentElement.props;
- var publicContext = this._processContext(context);
-
- var Component = this._currentElement.type;
-
- var updateQueue = transaction.getUpdateQueue();
-
- // Initialize the public class
- var doConstruct = shouldConstruct(Component);
- var inst = this._constructComponent(doConstruct, publicProps, publicContext, updateQueue);
- var renderedElement;
-
- // Support functional components
- if (!doConstruct && (inst == null || inst.render == null)) {
- renderedElement = inst;
- warnIfInvalidElement(Component, renderedElement);
- !(inst === null || inst === false || React.isValidElement(inst)) ? "development" !== 'production' ? invariant(false, '%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : _prodInvariant('105', Component.displayName || Component.name || 'Component') : void 0;
- inst = new StatelessComponent(Component);
- this._compositeType = CompositeTypes.StatelessFunctional;
- } else {
- if (isPureComponent(Component)) {
- this._compositeType = CompositeTypes.PureClass;
- } else {
- this._compositeType = CompositeTypes.ImpureClass;
- }
- }
-
- if ("development" !== 'production') {
- // This will throw later in _renderValidatedComponent, but add an early
- // warning now to help debugging
- if (inst.render == null) {
- "development" !== 'production' ? warning(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', Component.displayName || Component.name || 'Component') : void 0;
- }
-
- var propsMutated = inst.props !== publicProps;
- var componentName = Component.displayName || Component.name || 'Component';
-
- "development" !== 'production' ? warning(inst.props === undefined || !propsMutated, '%s(...): When calling super() in `%s`, make sure to pass ' + 'up the same props that your component\'s constructor was passed.', componentName, componentName) : void 0;
- }
-
- // These should be set up in the constructor, but as a convenience for
- // simpler class abstractions, we set them up after the fact.
- inst.props = publicProps;
- inst.context = publicContext;
- inst.refs = emptyObject;
- inst.updater = updateQueue;
-
- this._instance = inst;
-
- // Store a reference from the instance back to the internal representation
- ReactInstanceMap.set(inst, this);
-
- if ("development" !== 'production') {
- // Since plain JS classes are defined without any special initialization
- // logic, we can not catch common errors early. Therefore, we have to
- // catch them here, at initialization time, instead.
- "development" !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : void 0;
- "development" !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', this.getName() || 'a component') : void 0;
- "development" !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0;
- "development" !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0;
- "development" !== 'production' ? warning(typeof inst.componentShouldUpdate !== 'function', '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', this.getName() || 'A component') : void 0;
- "development" !== 'production' ? warning(typeof inst.componentDidUnmount !== 'function', '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', this.getName() || 'A component') : void 0;
- "development" !== 'production' ? warning(typeof inst.componentWillRecieveProps !== 'function', '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', this.getName() || 'A component') : void 0;
- }
-
- var initialState = inst.state;
- if (initialState === undefined) {
- inst.state = initialState = null;
- }
- !(typeof initialState === 'object' && !Array.isArray(initialState)) ? "development" !== 'production' ? invariant(false, '%s.state: must be set to an object or null', this.getName() || 'ReactCompositeComponent') : _prodInvariant('106', this.getName() || 'ReactCompositeComponent') : void 0;
-
- this._pendingStateQueue = null;
- this._pendingReplaceState = false;
- this._pendingForceUpdate = false;
-
- if (inst.componentWillMount) {
- if ("development" !== 'production') {
- measureLifeCyclePerf(function () {
- return inst.componentWillMount();
- }, this._debugID, 'componentWillMount');
- } else {
- inst.componentWillMount();
- }
- // When mounting, calls to `setState` by `componentWillMount` will set
- // `this._pendingStateQueue` without triggering a re-render.
- if (this._pendingStateQueue) {
- inst.state = this._processPendingState(inst.props, inst.context);
- }
- }
-
- var markup;
- if (inst.unstable_handleError) {
- markup = this.performInitialMountWithErrorHandling(renderedElement, hostParent, hostContainerInfo, transaction, context);
- } else {
- markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
- }
-
- if (inst.componentDidMount) {
- if ("development" !== 'production') {
- transaction.getReactMountReady().enqueue(function () {
- measureLifeCyclePerf(function () {
- return inst.componentDidMount();
- }, _this._debugID, 'componentDidMount');
- });
- } else {
- transaction.getReactMountReady().enqueue(inst.componentDidMount, inst);
- }
- }
-
- // setState callbacks during willMount should end up here
- var callbacks = this._pendingCallbacks;
- if (callbacks) {
- this._pendingCallbacks = null;
- for (var i = 0; i < callbacks.length; i++) {
- transaction.getReactMountReady().enqueue(callbacks[i], inst);
- }
- }
-
- return markup;
- },
-
- _constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) {
- if ("development" !== 'production') {
- ReactCurrentOwner.current = this;
- try {
- return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
- } finally {
- ReactCurrentOwner.current = null;
- }
- } else {
- return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
- }
- },
-
- _constructComponentWithoutOwner: function (doConstruct, publicProps, publicContext, updateQueue) {
- var Component = this._currentElement.type;
-
- if (doConstruct) {
- if ("development" !== 'production') {
- return measureLifeCyclePerf(function () {
- return new Component(publicProps, publicContext, updateQueue);
- }, this._debugID, 'ctor');
- } else {
- return new Component(publicProps, publicContext, updateQueue);
- }
- }
-
- // This can still be an instance in case of factory components
- // but we'll count this as time spent rendering as the more common case.
- if ("development" !== 'production') {
- return measureLifeCyclePerf(function () {
- return Component(publicProps, publicContext, updateQueue);
- }, this._debugID, 'render');
- } else {
- return Component(publicProps, publicContext, updateQueue);
- }
- },
-
- performInitialMountWithErrorHandling: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
- var markup;
- var checkpoint = transaction.checkpoint();
- try {
- markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
- } catch (e) {
- // Roll back to checkpoint, handle error (which may add items to the transaction), and take a new checkpoint
- transaction.rollback(checkpoint);
- this._instance.unstable_handleError(e);
- if (this._pendingStateQueue) {
- this._instance.state = this._processPendingState(this._instance.props, this._instance.context);
- }
- checkpoint = transaction.checkpoint();
- this._renderedComponent.unmountComponent(true, /* safely */
- // Don't call componentWillUnmount() because they never fully mounted:
- true /* skipLifecyle */
- );
- transaction.rollback(checkpoint);
-
- // Try again - we've informed the component about the error, so they can render an error message this time.
- // If this throws again, the error will bubble up (and can be caught by a higher error boundary).
- markup = this.performInitialMount(renderedElement, hostParent, hostContainerInfo, transaction, context);
- }
- return markup;
- },
-
- performInitialMount: function (renderedElement, hostParent, hostContainerInfo, transaction, context) {
- // If not a stateless component, we now render
- if (renderedElement === undefined) {
- renderedElement = this._renderValidatedComponent();
- }
-
- var nodeType = ReactNodeTypes.getType(renderedElement);
- this._renderedNodeType = nodeType;
- var child = this._instantiateReactComponent(renderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
- );
- this._renderedComponent = child;
-
- var debugID = 0;
- if ("development" !== 'production') {
- debugID = this._debugID;
- }
-
- var markup = ReactReconciler.mountComponent(child, transaction, hostParent, hostContainerInfo, this._processChildContext(context), debugID);
-
- if ("development" !== 'production') {
- if (debugID !== 0) {
- var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
- ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
- }
- }
-
- return markup;
- },
-
- getHostNode: function () {
- return ReactReconciler.getHostNode(this._renderedComponent);
- },
-
- /**
- * Releases any resources allocated by `mountComponent`.
- *
- * @final
- * @internal
- */
- unmountComponent: function (safely, skipLifecycle) {
- if (!this._renderedComponent) {
- return;
- }
-
- var inst = this._instance;
-
- if (inst.componentWillUnmount && !inst._calledComponentWillUnmount) {
- inst._calledComponentWillUnmount = true;
-
- if (safely) {
- if (!skipLifecycle) {
- var name = this.getName() + '.componentWillUnmount()';
- ReactErrorUtils.invokeGuardedCallback(name, inst.componentWillUnmount.bind(inst));
- }
- } else {
- if ("development" !== 'production') {
- measureLifeCyclePerf(function () {
- return inst.componentWillUnmount();
- }, this._debugID, 'componentWillUnmount');
- } else {
- inst.componentWillUnmount();
- }
- }
- }
-
- if (this._renderedComponent) {
- ReactReconciler.unmountComponent(this._renderedComponent, safely, skipLifecycle);
- this._renderedNodeType = null;
- this._renderedComponent = null;
- this._instance = null;
- }
-
- // Reset pending fields
- // Even if this component is scheduled for another update in ReactUpdates,
- // it would still be ignored because these fields are reset.
- this._pendingStateQueue = null;
- this._pendingReplaceState = false;
- this._pendingForceUpdate = false;
- this._pendingCallbacks = null;
- this._pendingElement = null;
-
- // These fields do not really need to be reset since this object is no
- // longer accessible.
- this._context = null;
- this._rootNodeID = 0;
- this._topLevelWrapper = null;
-
- // Delete the reference from the instance to this internal representation
- // which allow the internals to be properly cleaned up even if the user
- // leaks a reference to the public instance.
- ReactInstanceMap.remove(inst);
-
- // Some existing components rely on inst.props even after they've been
- // destroyed (in event handlers).
- // TODO: inst.props = null;
- // TODO: inst.state = null;
- // TODO: inst.context = null;
- },
-
- /**
- * Filters the context object to only contain keys specified in
- * `contextTypes`
- *
- * @param {object} context
- * @return {?object}
- * @private
- */
- _maskContext: function (context) {
- var Component = this._currentElement.type;
- var contextTypes = Component.contextTypes;
- if (!contextTypes) {
- return emptyObject;
- }
- var maskedContext = {};
- for (var contextName in contextTypes) {
- maskedContext[contextName] = context[contextName];
- }
- return maskedContext;
- },
-
- /**
- * Filters the context object to only contain keys specified in
- * `contextTypes`, and asserts that they are valid.
- *
- * @param {object} context
- * @return {?object}
- * @private
- */
- _processContext: function (context) {
- var maskedContext = this._maskContext(context);
- if ("development" !== 'production') {
- var Component = this._currentElement.type;
- if (Component.contextTypes) {
- this._checkContextTypes(Component.contextTypes, maskedContext, 'context');
- }
- }
- return maskedContext;
- },
-
- /**
- * @param {object} currentContext
- * @return {object}
- * @private
- */
- _processChildContext: function (currentContext) {
- var Component = this._currentElement.type;
- var inst = this._instance;
- var childContext;
-
- if (inst.getChildContext) {
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onBeginProcessingChildContext();
- try {
- childContext = inst.getChildContext();
- } finally {
- ReactInstrumentation.debugTool.onEndProcessingChildContext();
- }
- } else {
- childContext = inst.getChildContext();
- }
- }
-
- if (childContext) {
- !(typeof Component.childContextTypes === 'object') ? "development" !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0;
- if ("development" !== 'production') {
- this._checkContextTypes(Component.childContextTypes, childContext, 'childContext');
- }
- for (var name in childContext) {
- !(name in Component.childContextTypes) ? "development" !== 'production' ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0;
- }
- return _assign({}, currentContext, childContext);
- }
- return currentContext;
- },
-
- /**
- * Assert that the context types are valid
- *
- * @param {object} typeSpecs Map of context field to a ReactPropType
- * @param {object} values Runtime values that need to be type-checked
- * @param {string} location e.g. "prop", "context", "child context"
- * @private
- */
- _checkContextTypes: function (typeSpecs, values, location) {
- if ("development" !== 'production') {
- checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID);
- }
- },
-
- receiveComponent: function (nextElement, transaction, nextContext) {
- var prevElement = this._currentElement;
- var prevContext = this._context;
-
- this._pendingElement = null;
-
- this.updateComponent(transaction, prevElement, nextElement, prevContext, nextContext);
- },
-
- /**
- * If any of `_pendingElement`, `_pendingStateQueue`, or `_pendingForceUpdate`
- * is set, update the component.
- *
- * @param {ReactReconcileTransaction} transaction
- * @internal
- */
- performUpdateIfNecessary: function (transaction) {
- if (this._pendingElement != null) {
- ReactReconciler.receiveComponent(this, this._pendingElement, transaction, this._context);
- } else if (this._pendingStateQueue !== null || this._pendingForceUpdate) {
- this.updateComponent(transaction, this._currentElement, this._currentElement, this._context, this._context);
- } else {
- this._updateBatchNumber = null;
- }
- },
-
- /**
- * Perform an update to a mounted component. The componentWillReceiveProps and
- * shouldComponentUpdate methods are called, then (assuming the update isn't
- * skipped) the remaining update lifecycle methods are called and the DOM
- * representation is updated.
- *
- * By default, this implements React's rendering and reconciliation algorithm.
- * Sophisticated clients may wish to override this.
- *
- * @param {ReactReconcileTransaction} transaction
- * @param {ReactElement} prevParentElement
- * @param {ReactElement} nextParentElement
- * @internal
- * @overridable
- */
- updateComponent: function (transaction, prevParentElement, nextParentElement, prevUnmaskedContext, nextUnmaskedContext) {
- var inst = this._instance;
- !(inst != null) ? "development" !== 'production' ? invariant(false, 'Attempted to update component `%s` that has already been unmounted (or failed to mount).', this.getName() || 'ReactCompositeComponent') : _prodInvariant('136', this.getName() || 'ReactCompositeComponent') : void 0;
-
- var willReceive = false;
- var nextContext;
-
- // Determine if the context has changed or not
- if (this._context === nextUnmaskedContext) {
- nextContext = inst.context;
- } else {
- nextContext = this._processContext(nextUnmaskedContext);
- willReceive = true;
- }
-
- var prevProps = prevParentElement.props;
- var nextProps = nextParentElement.props;
-
- // Not a simple state update but a props update
- if (prevParentElement !== nextParentElement) {
- willReceive = true;
- }
-
- // An update here will schedule an update but immediately set
- // _pendingStateQueue which will ensure that any state updates gets
- // immediately reconciled instead of waiting for the next batch.
- if (willReceive && inst.componentWillReceiveProps) {
- if ("development" !== 'production') {
- measureLifeCyclePerf(function () {
- return inst.componentWillReceiveProps(nextProps, nextContext);
- }, this._debugID, 'componentWillReceiveProps');
- } else {
- inst.componentWillReceiveProps(nextProps, nextContext);
- }
- }
-
- var nextState = this._processPendingState(nextProps, nextContext);
- var shouldUpdate = true;
-
- if (!this._pendingForceUpdate) {
- if (inst.shouldComponentUpdate) {
- if ("development" !== 'production') {
- shouldUpdate = measureLifeCyclePerf(function () {
- return inst.shouldComponentUpdate(nextProps, nextState, nextContext);
- }, this._debugID, 'shouldComponentUpdate');
- } else {
- shouldUpdate = inst.shouldComponentUpdate(nextProps, nextState, nextContext);
- }
- } else {
- if (this._compositeType === CompositeTypes.PureClass) {
- shouldUpdate = !shallowEqual(prevProps, nextProps) || !shallowEqual(inst.state, nextState);
- }
- }
- }
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(shouldUpdate !== undefined, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', this.getName() || 'ReactCompositeComponent') : void 0;
- }
-
- this._updateBatchNumber = null;
- if (shouldUpdate) {
- this._pendingForceUpdate = false;
- // Will set `this.props`, `this.state` and `this.context`.
- this._performComponentUpdate(nextParentElement, nextProps, nextState, nextContext, transaction, nextUnmaskedContext);
- } else {
- // If it's determined that a component should not update, we still want
- // to set props and state but we shortcut the rest of the update.
- this._currentElement = nextParentElement;
- this._context = nextUnmaskedContext;
- inst.props = nextProps;
- inst.state = nextState;
- inst.context = nextContext;
- }
- },
-
- _processPendingState: function (props, context) {
- var inst = this._instance;
- var queue = this._pendingStateQueue;
- var replace = this._pendingReplaceState;
- this._pendingReplaceState = false;
- this._pendingStateQueue = null;
-
- if (!queue) {
- return inst.state;
- }
-
- if (replace && queue.length === 1) {
- return queue[0];
- }
-
- var nextState = _assign({}, replace ? queue[0] : inst.state);
- for (var i = replace ? 1 : 0; i < queue.length; i++) {
- var partial = queue[i];
- _assign(nextState, typeof partial === 'function' ? partial.call(inst, nextState, props, context) : partial);
- }
-
- return nextState;
- },
-
- /**
- * Merges new props and state, notifies delegate methods of update and
- * performs update.
- *
- * @param {ReactElement} nextElement Next element
- * @param {object} nextProps Next public object to set as properties.
- * @param {?object} nextState Next object to set as state.
- * @param {?object} nextContext Next public object to set as context.
- * @param {ReactReconcileTransaction} transaction
- * @param {?object} unmaskedContext
- * @private
- */
- _performComponentUpdate: function (nextElement, nextProps, nextState, nextContext, transaction, unmaskedContext) {
- var _this2 = this;
-
- var inst = this._instance;
-
- var hasComponentDidUpdate = Boolean(inst.componentDidUpdate);
- var prevProps;
- var prevState;
- var prevContext;
- if (hasComponentDidUpdate) {
- prevProps = inst.props;
- prevState = inst.state;
- prevContext = inst.context;
- }
-
- if (inst.componentWillUpdate) {
- if ("development" !== 'production') {
- measureLifeCyclePerf(function () {
- return inst.componentWillUpdate(nextProps, nextState, nextContext);
- }, this._debugID, 'componentWillUpdate');
- } else {
- inst.componentWillUpdate(nextProps, nextState, nextContext);
- }
- }
-
- this._currentElement = nextElement;
- this._context = unmaskedContext;
- inst.props = nextProps;
- inst.state = nextState;
- inst.context = nextContext;
-
- if (inst.unstable_handleError) {
- this._updateRenderedComponentWithErrorHandling(transaction, unmaskedContext);
- } else {
- this._updateRenderedComponent(transaction, unmaskedContext);
- }
-
- if (hasComponentDidUpdate) {
- if ("development" !== 'production') {
- transaction.getReactMountReady().enqueue(function () {
- measureLifeCyclePerf(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), _this2._debugID, 'componentDidUpdate');
- });
- } else {
- transaction.getReactMountReady().enqueue(inst.componentDidUpdate.bind(inst, prevProps, prevState, prevContext), inst);
- }
- }
- },
-
- /**
- * Call the component's `render` method and update the DOM accordingly.
- *
- * @param {ReactReconcileTransaction} transaction
- * @internal
- */
- _updateRenderedComponentWithErrorHandling: function (transaction, context) {
- var checkpoint = transaction.checkpoint();
- try {
- this._updateRenderedComponent(transaction, context);
- } catch (e) {
- // Roll back to checkpoint, handle error (which may add items to the transaction),
- // and take a new checkpoint
- transaction.rollback(checkpoint);
- this._instance.unstable_handleError(e);
- if (this._pendingStateQueue) {
- this._instance.state = this._processPendingState(this._instance.props, this._instance.context);
- }
- checkpoint = transaction.checkpoint();
-
- // Gracefully update to a clean state
- this._updateRenderedComponentWithNextElement(transaction, context, null, true /* safely */
- );
-
- // Try again - we've informed the component about the error, so they can render an error message this time.
- // If this throws again, the error will bubble up (and can be caught by a higher error boundary).
- this._updateRenderedComponent(transaction, context);
- }
- },
-
- /**
- * Call the component's `render` method and update the DOM accordingly.
- *
- * @param {ReactReconcileTransaction} transaction
- * @internal
- */
- _updateRenderedComponent: function (transaction, context) {
- var nextRenderedElement = this._renderValidatedComponent();
- this._updateRenderedComponentWithNextElement(transaction, context, nextRenderedElement, false /* safely */
- );
- },
-
- /**
- * Call the component's `render` method and update the DOM accordingly.
- *
- * @param {ReactReconcileTransaction} transaction
- * @internal
- */
- _updateRenderedComponentWithNextElement: function (transaction, context, nextRenderedElement, safely) {
- var prevComponentInstance = this._renderedComponent;
- var prevRenderedElement = prevComponentInstance._currentElement;
-
- var debugID = 0;
- if ("development" !== 'production') {
- debugID = this._debugID;
- }
-
- if (shouldUpdateReactComponent(prevRenderedElement, nextRenderedElement)) {
- ReactReconciler.receiveComponent(prevComponentInstance, nextRenderedElement, transaction, this._processChildContext(context));
- } else {
- var oldHostNode = ReactReconciler.getHostNode(prevComponentInstance);
- ReactReconciler.unmountComponent(prevComponentInstance, safely, false /* skipLifecycle */
- );
-
- var nodeType = ReactNodeTypes.getType(nextRenderedElement);
- this._renderedNodeType = nodeType;
- var child = this._instantiateReactComponent(nextRenderedElement, nodeType !== ReactNodeTypes.EMPTY /* shouldHaveDebugID */
- );
- this._renderedComponent = child;
-
- var nextMarkup = ReactReconciler.mountComponent(child, transaction, this._hostParent, this._hostContainerInfo, this._processChildContext(context), debugID);
-
- if ("development" !== 'production') {
- if (debugID !== 0) {
- var childDebugIDs = child._debugID !== 0 ? [child._debugID] : [];
- ReactInstrumentation.debugTool.onSetChildren(debugID, childDebugIDs);
- }
- }
-
- this._replaceNodeWithMarkup(oldHostNode, nextMarkup, prevComponentInstance);
- }
- },
-
- /**
- * Overridden in shallow rendering.
- *
- * @protected
- */
- _replaceNodeWithMarkup: function (oldHostNode, nextMarkup, prevInstance) {
- ReactComponentEnvironment.replaceNodeWithMarkup(oldHostNode, nextMarkup, prevInstance);
- },
-
- /**
- * @protected
- */
- _renderValidatedComponentWithoutOwnerOrContext: function () {
- var inst = this._instance;
- var renderedElement;
-
- if ("development" !== 'production') {
- renderedElement = measureLifeCyclePerf(function () {
- return inst.render();
- }, this._debugID, 'render');
- } else {
- renderedElement = inst.render();
- }
-
- if ("development" !== 'production') {
- // We allow auto-mocks to proceed as if they're returning null.
- if (renderedElement === undefined && inst.render._isMockFunction) {
- // This is probably bad practice. Consider warning here and
- // deprecating this convenience.
- renderedElement = null;
- }
- }
-
- return renderedElement;
- },
-
- /**
- * @private
- */
- _renderValidatedComponent: function () {
- var renderedElement;
- if ("development" !== 'production' || this._compositeType !== CompositeTypes.StatelessFunctional) {
- ReactCurrentOwner.current = this;
- try {
- renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
- } finally {
- ReactCurrentOwner.current = null;
- }
- } else {
- renderedElement = this._renderValidatedComponentWithoutOwnerOrContext();
- }
- !(
- // TODO: An `isValidNode` function would probably be more appropriate
- renderedElement === null || renderedElement === false || React.isValidElement(renderedElement)) ? "development" !== 'production' ? invariant(false, '%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : _prodInvariant('109', this.getName() || 'ReactCompositeComponent') : void 0;
-
- return renderedElement;
- },
-
- /**
- * Lazily allocates the refs object and stores `component` as `ref`.
- *
- * @param {string} ref Reference name.
- * @param {component} component Component to store as `ref`.
- * @final
- * @private
- */
- attachRef: function (ref, component) {
- var inst = this.getPublicInstance();
- !(inst != null) ? "development" !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : _prodInvariant('110') : void 0;
- var publicComponentInstance = component.getPublicInstance();
- if ("development" !== 'production') {
- var componentName = component && component.getName ? component.getName() : 'a component';
- "development" !== 'production' ? warning(publicComponentInstance != null || component._compositeType !== CompositeTypes.StatelessFunctional, 'Stateless function components cannot be given refs ' + '(See ref "%s" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : void 0;
- }
- var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
- refs[ref] = publicComponentInstance;
- },
-
- /**
- * Detaches a reference name.
- *
- * @param {string} ref Name to dereference.
- * @final
- * @private
- */
- detachRef: function (ref) {
- var refs = this.getPublicInstance().refs;
- delete refs[ref];
- },
-
- /**
- * Get a text description of the component that can be used to identify it
- * in error messages.
- * @return {string} The name or null.
- * @internal
- */
- getName: function () {
- var type = this._currentElement.type;
- var constructor = this._instance && this._instance.constructor;
- return type.displayName || constructor && constructor.displayName || type.name || constructor && constructor.name || null;
- },
-
- /**
- * Get the publicly accessible representation of this component - i.e. what
- * is exposed by refs and returned by render. Can be null for stateless
- * components.
- *
- * @return {ReactComponent} the public component instance.
- * @internal
- */
- getPublicInstance: function () {
- var inst = this._instance;
- if (this._compositeType === CompositeTypes.StatelessFunctional) {
- return null;
- }
- return inst;
- },
-
- // Stub
- _instantiateReactComponent: null
-
-};
-
-module.exports = ReactCompositeComponent;
-},{"106":106,"129":129,"133":133,"137":137,"138":138,"147":147,"154":154,"160":160,"161":161,"162":162,"28":28,"56":56,"64":64,"65":65,"70":70,"75":75}],30:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-// Use to restore controlled state after a change event has fired.
-
-var fiberHostComponent = null;
-
-var ReactControlledComponentInjection = {
- injectFiberControlledHostComponent: function (hostComponentImpl) {
- // The fiber implementation doesn't use dynamic dispatch so we need to
- // inject the implementation.
- fiberHostComponent = hostComponentImpl;
- }
-};
-
-var restoreTarget = null;
-var restoreQueue = null;
-
-function restoreStateOfTarget(internalInstance) {
- if (typeof internalInstance.tag === 'number') {
- !(fiberHostComponent && typeof fiberHostComponent.restoreControlledState === 'function') ? "development" !== 'production' ? invariant(false, 'Fiber needs to be injected to handle a fiber target for controlled events.') : _prodInvariant('146') : void 0;
- fiberHostComponent.restoreControlledState(internalInstance);
- }
- !(typeof internalInstance.restoreControlledState === 'function') ? "development" !== 'production' ? invariant(false, 'The internal instance must be a React host component.') : _prodInvariant('147') : void 0;
- // If it is not a Fiber, we can just use dynamic dispatch.
- internalInstance.restoreControlledState();
-}
-
-var ReactControlledComponent = {
- injection: ReactControlledComponentInjection,
-
- enqueueStateRestore: function (target) {
- if (restoreTarget) {
- if (restoreQueue) {
- restoreQueue.push(target);
- } else {
- restoreQueue = [target];
- }
- } else {
- restoreTarget = target;
- }
- },
- restoreStateIfNeeded: function () {
- if (!restoreTarget) {
- return;
- }
- var target = restoreTarget;
- var queuedTargets = restoreQueue;
- restoreTarget = null;
- restoreQueue = null;
-
- restoreStateOfTarget(target);
- if (queuedTargets) {
- for (var i = 0; i < queuedTargets.length; i++) {
- restoreStateOfTarget(queuedTargets[i]);
- }
- }
- }
-};
-
-module.exports = ReactControlledComponent;
-},{"129":129,"154":154}],31:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var React = _dereq_(138);
-
-var getComponentName = _dereq_(113);
-var warning = _dereq_(161);
-
-var hasReadOnlyValue = {
- 'button': true,
- 'checkbox': true,
- 'image': true,
- 'hidden': true,
- 'radio': true,
- 'reset': true,
- 'submit': true
-};
-
-var propTypes = {
- value: function (props, propName, componentName) {
- if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) {
- return null;
- }
- return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- },
- checked: function (props, propName, componentName) {
- if (!props[propName] || props.onChange || props.readOnly || props.disabled) {
- return null;
- }
- return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
- },
- onChange: React.PropTypes.func
-};
-
-var loggedTypeFailures = {};
-function getDeclarationErrorAddendum(owner) {
- if (owner) {
- var name = getComponentName(owner);
- if (name) {
- return ' Check the render method of `' + name + '`.';
- }
- }
- return '';
-}
-
-/**
- * Provide a linked `value` attribute for controlled forms. You should not use
- * this outside of the ReactDOM controlled form components.
- */
-var ReactControlledValuePropTypes = {
- checkPropTypes: function (tagName, props, owner) {
- for (var propName in propTypes) {
- if (propTypes.hasOwnProperty(propName)) {
- var error = propTypes[propName](props, propName, tagName, 'prop');
- }
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error.message] = true;
-
- var addendum = getDeclarationErrorAddendum(owner);
- "development" !== 'production' ? warning(false, 'Failed form propType: %s%s', error.message, addendum) : void 0;
- }
- }
- }
-};
-
-module.exports = ReactControlledValuePropTypes;
-},{"113":113,"138":138,"161":161}],32:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/
-
-'use strict';
-
-var ReactDOMComponentTree = _dereq_(35);
-var ReactDOMInjection = _dereq_(40);
-var ReactDOMStackInjection = _dereq_(47);
-var ReactMount = _dereq_(68);
-var ReactReconciler = _dereq_(75);
-var ReactUpdates = _dereq_(84);
-var ReactVersion = _dereq_(85);
-
-var findDOMNode = _dereq_(110);
-var getHostComponentFromComposite = _dereq_(118);
-var renderSubtreeIntoContainer = _dereq_(130);
-var warning = _dereq_(161);
-
-ReactDOMInjection.inject();
-ReactDOMStackInjection.inject();
-
-var ReactDOM = {
- findDOMNode: findDOMNode,
- render: ReactMount.render,
- unmountComponentAtNode: ReactMount.unmountComponentAtNode,
- version: ReactVersion,
-
- /* eslint-disable camelcase */
- unstable_batchedUpdates: ReactUpdates.batchedUpdates,
- unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
-};
-
-// Inject the runtime into a devtools global hook regardless of browser.
-// Allows for debugging when the hook is injected on the page.
-/* eslint-enable camelcase */
-if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') {
- __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
- ComponentTree: {
- getClosestInstanceFromNode: ReactDOMComponentTree.getClosestInstanceFromNode,
- getNodeFromInstance: function (inst) {
- // inst is an internal instance (but could be a composite)
- if (inst._renderedComponent) {
- inst = getHostComponentFromComposite(inst);
- }
- if (inst) {
- return ReactDOMComponentTree.getNodeFromInstance(inst);
- } else {
- return null;
- }
- }
- },
- Mount: ReactMount,
- Reconciler: ReactReconciler
- });
-}
-
-if ("development" !== 'production') {
- var ExecutionEnvironment = _dereq_(140);
- if (ExecutionEnvironment.canUseDOM && window.top === window.self) {
-
- // First check if devtools is not installed
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
- // If we're in Chrome or Firefox, provide a download link if not installed.
- if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
- // Firefox does not have the issue with devtools loaded over file://
- var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 && navigator.userAgent.indexOf('Firefox') === -1;
- console.debug('Download the React DevTools ' + (showFileUrlMessage ? 'and use an HTTP server (instead of a file: URL) ' : '') + 'for a better development experience: ' + 'https://fb.me/react-devtools');
- }
- }
-
- var testFunc = function testFn() {};
- "development" !== 'production' ? warning((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1, 'It looks like you\'re using a minified copy of the development build ' + 'of React. When deploying React apps to production, make sure to use ' + 'the production build which skips development warnings and is faster. ' + 'See https://fb.me/react-minification for more details.') : void 0;
-
- // If we're in IE8, check to see if we are in compatibility mode and provide
- // information on preventing compatibility mode
- var ieCompatibilityMode = document.documentMode && document.documentMode < 8;
-
- "development" !== 'production' ? warning(!ieCompatibilityMode, 'Internet Explorer is running in compatibility mode; please add the ' + 'following tag to your HTML to prevent this from happening: ' + '<meta http-equiv="X-UA-Compatible" content="IE=edge" />') : void 0;
-
- var expectedFeatures = [
- // shims
- Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim];
-
- for (var i = 0; i < expectedFeatures.length; i++) {
- if (!expectedFeatures[i]) {
- "development" !== 'production' ? warning(false, 'One or more ES5 shims expected by React are not available: ' + 'https://fb.me/react-warning-polyfills') : void 0;
- break;
- }
- }
- }
-}
-
-if ("development" !== 'production') {
- var ReactInstrumentation = _dereq_(65);
- var ReactDOMUnknownPropertyHook = _dereq_(51);
- var ReactDOMNullInputValuePropHook = _dereq_(43);
- var ReactDOMInvalidARIAHook = _dereq_(42);
-
- ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook);
- ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook);
- ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook);
-}
-
-module.exports = ReactDOM;
-},{"110":110,"118":118,"130":130,"140":140,"161":161,"35":35,"40":40,"42":42,"43":43,"47":47,"51":51,"65":65,"68":68,"75":75,"84":84,"85":85}],33:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/* global hasOwnProperty:true */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var AutoFocusUtils = _dereq_(2);
-var CSSPropertyOperations = _dereq_(5);
-var DOMLazyTree = _dereq_(10);
-var DOMNamespaces = _dereq_(11);
-var DOMProperty = _dereq_(12);
-var DOMPropertyOperations = _dereq_(13);
-var EventPluginHub = _dereq_(17);
-var EventPluginRegistry = _dereq_(18);
-var ReactBrowserEventEmitter = _dereq_(25);
-var ReactDOMComponentFlags = _dereq_(34);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactDOMInput = _dereq_(41);
-var ReactDOMOption = _dereq_(44);
-var ReactDOMSelect = _dereq_(45);
-var ReactDOMTextarea = _dereq_(49);
-var ReactInstrumentation = _dereq_(65);
-var ReactMultiChild = _dereq_(69);
-var ReactServerRenderingTransaction = _dereq_(77);
-
-var emptyFunction = _dereq_(146);
-var escapeTextContentForBrowser = _dereq_(109);
-var invariant = _dereq_(154);
-var isEventSupported = _dereq_(126);
-var shallowEqual = _dereq_(160);
-var inputValueTracking = _dereq_(124);
-var validateDOMNesting = _dereq_(135);
-var warning = _dereq_(161);
-var didWarnShadyDOM = false;
-
-var Flags = ReactDOMComponentFlags;
-var deleteListener = EventPluginHub.deleteListener;
-var getNode = ReactDOMComponentTree.getNodeFromInstance;
-var listenTo = ReactBrowserEventEmitter.listenTo;
-var registrationNameModules = EventPluginRegistry.registrationNameModules;
-
-// For quickly matching children type, to test if can be treated as content.
-var CONTENT_TYPES = { 'string': true, 'number': true };
-
-var STYLE = 'style';
-var HTML = '__html';
-var RESERVED_PROPS = {
- children: null,
- dangerouslySetInnerHTML: null,
- suppressContentEditableWarning: null
-};
-
-// Node type for document fragments (Node.DOCUMENT_FRAGMENT_NODE).
-var DOC_FRAGMENT_TYPE = 11;
-
-function getDeclarationErrorAddendum(internalInstance) {
- if (internalInstance) {
- var owner = internalInstance._currentElement._owner || null;
- if (owner) {
- var name = owner.getName();
- if (name) {
- return ' This DOM node was rendered by `' + name + '`.';
- }
- }
- }
- return '';
-}
-
-function friendlyStringify(obj) {
- if (typeof obj === 'object') {
- if (Array.isArray(obj)) {
- return '[' + obj.map(friendlyStringify).join(', ') + ']';
- } else {
- var pairs = [];
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- var keyEscaped = /^[a-z$_][\w$_]*$/i.test(key) ? key : JSON.stringify(key);
- pairs.push(keyEscaped + ': ' + friendlyStringify(obj[key]));
- }
- }
- return '{' + pairs.join(', ') + '}';
- }
- } else if (typeof obj === 'string') {
- return JSON.stringify(obj);
- } else if (typeof obj === 'function') {
- return '[function object]';
- }
- // Differs from JSON.stringify in that undefined because undefined and that
- // inf and nan don't become null
- return String(obj);
-}
-
-var styleMutationWarning = {};
-
-function checkAndWarnForMutatedStyle(style1, style2, component) {
- if (style1 == null || style2 == null) {
- return;
- }
- if (shallowEqual(style1, style2)) {
- return;
- }
-
- var componentName = component._tag;
- var owner = component._currentElement._owner;
- var ownerName;
- if (owner) {
- ownerName = owner.getName();
- }
-
- var hash = ownerName + '|' + componentName;
-
- if (styleMutationWarning.hasOwnProperty(hash)) {
- return;
- }
-
- styleMutationWarning[hash] = true;
-
- "development" !== 'production' ? warning(false, '`%s` was passed a style object that has previously been mutated. ' + 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' + 'the `render` %s. Previous style: %s. Mutated style: %s.', componentName, owner ? 'of `' + ownerName + '`' : 'using <' + componentName + '>', friendlyStringify(style1), friendlyStringify(style2)) : void 0;
-}
-
-/**
- * @param {object} component
- * @param {?object} props
- */
-function assertValidProps(component, props) {
- if (!props) {
- return;
- }
- // Note the use of `==` which checks for null or undefined.
- if (voidElementTags[component._tag]) {
- !(props.children == null && props.dangerouslySetInnerHTML == null) ? "development" !== 'production' ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : _prodInvariant('137', component._tag, component._currentElement._owner ? ' Check the render method of ' + component._currentElement._owner.getName() + '.' : '') : void 0;
- }
- if (props.dangerouslySetInnerHTML != null) {
- !(props.children == null) ? "development" !== 'production' ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : _prodInvariant('60') : void 0;
- !(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML) ? "development" !== 'production' ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : _prodInvariant('61') : void 0;
- }
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(props.innerHTML == null, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.') : void 0;
- "development" !== 'production' ? warning(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
- "development" !== 'production' ? warning(props.onFocusIn == null && props.onFocusOut == null, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.') : void 0;
- }
- !(props.style == null || typeof props.style === 'object') ? "development" !== 'production' ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', getDeclarationErrorAddendum(component)) : _prodInvariant('62', getDeclarationErrorAddendum(component)) : void 0;
-}
-
-function enqueuePutListener(inst, registrationName, listener, transaction) {
- if (transaction instanceof ReactServerRenderingTransaction) {
- return;
- }
- if ("development" !== 'production') {
- // IE8 has no API for event capturing and the `onScroll` event doesn't
- // bubble.
- "development" !== 'production' ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), 'This browser doesn\'t support the `onScroll` event') : void 0;
- }
- var containerInfo = inst._hostContainerInfo;
- var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE;
- var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
- listenTo(registrationName, doc);
- transaction.getReactMountReady().enqueue(putListener, {
- inst: inst,
- registrationName: registrationName,
- listener: listener
- });
-}
-
-// TODO: This is coming from future #8192. Dedupe this and enqueuePutListener.
-function ensureListeningTo(inst, registrationName, transaction) {
- if (transaction instanceof ReactServerRenderingTransaction) {
- return;
- }
- if ("development" !== 'production') {
- // IE8 has no API for event capturing and the `onScroll` event doesn't
- // bubble.
- "development" !== 'production' ? warning(registrationName !== 'onScroll' || isEventSupported('scroll', true), 'This browser doesn\'t support the `onScroll` event') : void 0;
- }
- var containerInfo = inst._hostContainerInfo;
- var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE;
- var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
- listenTo(registrationName, doc);
-}
-
-function putListener() {
- var listenerToPut = this;
- EventPluginHub.putListener(listenerToPut.inst, listenerToPut.registrationName, listenerToPut.listener);
-}
-
-function inputPostMount() {
- var inst = this;
- ReactDOMInput.postMountWrapper(inst);
-}
-
-function textareaPostMount() {
- var inst = this;
- ReactDOMTextarea.postMountWrapper(inst);
-}
-
-function optionPostMount() {
- var inst = this;
- ReactDOMOption.postMountWrapper(inst);
-}
-
-var setAndValidateContentChildDev = emptyFunction;
-if ("development" !== 'production') {
- setAndValidateContentChildDev = function (content) {
- var hasExistingContent = this._contentDebugID != null;
- var debugID = this._debugID;
- // This ID represents the inlined child that has no backing instance:
- var contentDebugID = -debugID;
-
- if (content == null) {
- if (hasExistingContent) {
- ReactInstrumentation.debugTool.onUnmountComponent(this._contentDebugID);
- }
- this._contentDebugID = null;
- return;
- }
-
- validateDOMNesting(null, String(content), this, this._ancestorInfo);
- this._contentDebugID = contentDebugID;
- if (hasExistingContent) {
- ReactInstrumentation.debugTool.onBeforeUpdateComponent(contentDebugID, content);
- ReactInstrumentation.debugTool.onUpdateComponent(contentDebugID);
- } else {
- ReactInstrumentation.debugTool.onBeforeMountComponent(contentDebugID, content, debugID);
- ReactInstrumentation.debugTool.onMountComponent(contentDebugID);
- ReactInstrumentation.debugTool.onSetChildren(debugID, [contentDebugID]);
- }
- };
-}
-
-// There are so many media events, it makes sense to just
-// maintain a list rather than create a `trapBubbledEvent` for each
-var mediaEvents = {
- topAbort: 'abort',
- topCanPlay: 'canplay',
- topCanPlayThrough: 'canplaythrough',
- topDurationChange: 'durationchange',
- topEmptied: 'emptied',
- topEncrypted: 'encrypted',
- topEnded: 'ended',
- topError: 'error',
- topLoadedData: 'loadeddata',
- topLoadedMetadata: 'loadedmetadata',
- topLoadStart: 'loadstart',
- topPause: 'pause',
- topPlay: 'play',
- topPlaying: 'playing',
- topProgress: 'progress',
- topRateChange: 'ratechange',
- topSeeked: 'seeked',
- topSeeking: 'seeking',
- topStalled: 'stalled',
- topSuspend: 'suspend',
- topTimeUpdate: 'timeupdate',
- topVolumeChange: 'volumechange',
- topWaiting: 'waiting'
-};
-
-function trackInputValue() {
- inputValueTracking.track(this);
-}
-
-function trapClickOnNonInteractiveElement() {
- // Mobile Safari does not fire properly bubble click events on
- // non-interactive elements, which means delegated click listeners do not
- // fire. The workaround for this bug involves attaching an empty click
- // listener on the target node.
- // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
- // Just set it using the onclick property so that we don't have to manage any
- // bookkeeping for it. Not sure if we need to clear it when the listener is
- // removed.
- // TODO: Only do this for the relevant Safaris maybe?
- var node = getNode(this);
- node.onclick = emptyFunction;
-}
-
-function trapBubbledEventsLocal() {
- var inst = this;
- // If a component renders to null or if another component fatals and causes
- // the state of the tree to be corrupted, `node` here can be null.
- !inst._rootNodeID ? "development" !== 'production' ? invariant(false, 'Must be mounted to trap events') : _prodInvariant('63') : void 0;
- var node = getNode(inst);
- !node ? "development" !== 'production' ? invariant(false, 'trapBubbledEvent(...): Requires node to be rendered.') : _prodInvariant('64') : void 0;
-
- switch (inst._tag) {
- case 'iframe':
- case 'object':
- inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
- break;
- case 'video':
- case 'audio':
-
- inst._wrapperState.listeners = [];
- // Create listener for each media event
- for (var event in mediaEvents) {
- if (mediaEvents.hasOwnProperty(event)) {
- inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node));
- }
- }
- break;
- case 'source':
- inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node)];
- break;
- case 'img':
- inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)];
- break;
- case 'form':
- inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node)];
- break;
- case 'input':
- case 'select':
- case 'textarea':
- inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node)];
- break;
- }
-}
-
-function postUpdateSelectWrapper() {
- ReactDOMSelect.postUpdateWrapper(this);
-}
-
-// For HTML, certain tags should omit their close tag. We keep a whitelist for
-// those special-case tags.
-
-var omittedCloseTags = {
- 'area': true,
- 'base': true,
- 'br': true,
- 'col': true,
- 'embed': true,
- 'hr': true,
- 'img': true,
- 'input': true,
- 'keygen': true,
- 'link': true,
- 'meta': true,
- 'param': true,
- 'source': true,
- 'track': true,
- 'wbr': true
-};
-
-// NOTE: menuitem's close tag should be omitted, but that causes problems.
-var newlineEatingTags = {
- 'listing': true,
- 'pre': true,
- 'textarea': true
-};
-
-// For HTML, certain tags cannot have children. This has the same purpose as
-// `omittedCloseTags` except that `menuitem` should still have its closing tag.
-
-var voidElementTags = _assign({
- 'menuitem': true
-}, omittedCloseTags);
-
-// We accept any tag to be rendered but since this gets injected into arbitrary
-// HTML, we want to make sure that it's a safe tag.
-// http://www.w3.org/TR/REC-xml/#NT-Name
-
-var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; // Simplified subset
-var validatedTagCache = {};
-var hasOwnProperty = {}.hasOwnProperty;
-
-function validateDangerousTag(tag) {
- if (!hasOwnProperty.call(validatedTagCache, tag)) {
- !VALID_TAG_REGEX.test(tag) ? "development" !== 'production' ? invariant(false, 'Invalid tag: %s', tag) : _prodInvariant('65', tag) : void 0;
- validatedTagCache[tag] = true;
- }
-}
-
-function isCustomComponent(tagName, props) {
- return tagName.indexOf('-') >= 0 || props.is != null;
-}
-
-var globalIdCounter = 1;
-
-/**
- * Creates a new React class that is idempotent and capable of containing other
- * React components. It accepts event listeners and DOM properties that are
- * valid according to `DOMProperty`.
- *
- * - Event listeners: `onClick`, `onMouseDown`, etc.
- * - DOM properties: `className`, `name`, `title`, etc.
- *
- * The `style` property functions differently from the DOM API. It accepts an
- * object mapping of style properties to values.
- *
- * @constructor ReactDOMComponent
- * @extends ReactMultiChild
- */
-function ReactDOMComponent(element) {
- var tag = element.type;
- validateDangerousTag(tag);
- this._currentElement = element;
- this._tag = tag.toLowerCase();
- this._namespaceURI = null;
- this._renderedChildren = null;
- this._previousStyle = null;
- this._previousStyleCopy = null;
- this._hostNode = null;
- this._hostParent = null;
- this._rootNodeID = 0;
- this._domID = 0;
- this._hostContainerInfo = null;
- this._wrapperState = null;
- this._topLevelWrapper = null;
- this._flags = 0;
- if ("development" !== 'production') {
- this._ancestorInfo = null;
- setAndValidateContentChildDev.call(this, null);
- }
-}
-
-ReactDOMComponent.displayName = 'ReactDOMComponent';
-
-ReactDOMComponent.Mixin = {
-
- /**
- * Generates root tag markup then recurses. This method has side effects and
- * is not idempotent.
- *
- * @internal
- * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
- * @param {?ReactDOMComponent} the parent component instance
- * @param {?object} info about the host container
- * @param {object} context
- * @return {string} The computed markup.
- */
- mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
- this._rootNodeID = globalIdCounter++;
- this._domID = hostContainerInfo._idCounter++;
- this._hostParent = hostParent;
- this._hostContainerInfo = hostContainerInfo;
-
- var props = this._currentElement.props;
-
- switch (this._tag) {
- case 'audio':
- case 'form':
- case 'iframe':
- case 'img':
- case 'link':
- case 'object':
- case 'source':
- case 'video':
- this._wrapperState = {
- listeners: null
- };
- transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
- break;
- case 'input':
- ReactDOMInput.mountWrapper(this, props, hostParent);
- props = ReactDOMInput.getHostProps(this, props);
- transaction.getReactMountReady().enqueue(trackInputValue, this);
- transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
- // For controlled components we always need to ensure we're listening
- // to onChange. Even if there is no listener.
- ensureListeningTo(this, 'onChange', transaction);
- break;
- case 'option':
- ReactDOMOption.mountWrapper(this, props, hostParent);
- props = ReactDOMOption.getHostProps(this, props);
- break;
- case 'select':
- ReactDOMSelect.mountWrapper(this, props, hostParent);
- props = ReactDOMSelect.getHostProps(this, props);
- transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
- // For controlled components we always need to ensure we're listening
- // to onChange. Even if there is no listener.
- ensureListeningTo(this, 'onChange', transaction);
- break;
- case 'textarea':
- ReactDOMTextarea.mountWrapper(this, props, hostParent);
- props = ReactDOMTextarea.getHostProps(this, props);
- transaction.getReactMountReady().enqueue(trackInputValue, this);
- transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this);
- // For controlled components we always need to ensure we're listening
- // to onChange. Even if there is no listener.
- ensureListeningTo(this, 'onChange', transaction);
- break;
- }
-
- assertValidProps(this, props);
-
- // We create tags in the namespace of their parent container, except HTML
- // tags get no namespace.
- var namespaceURI;
- var parentTag;
- if (hostParent != null) {
- namespaceURI = hostParent._namespaceURI;
- parentTag = hostParent._tag;
- } else if (hostContainerInfo._tag) {
- namespaceURI = hostContainerInfo._namespaceURI;
- parentTag = hostContainerInfo._tag;
- }
- if (namespaceURI == null || namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject') {
- namespaceURI = DOMNamespaces.html;
- }
- if (namespaceURI === DOMNamespaces.html) {
- if (this._tag === 'svg') {
- namespaceURI = DOMNamespaces.svg;
- } else if (this._tag === 'math') {
- namespaceURI = DOMNamespaces.mathml;
- }
- }
- this._namespaceURI = namespaceURI;
-
- if ("development" !== 'production') {
- var parentInfo;
- if (hostParent != null) {
- parentInfo = hostParent._ancestorInfo;
- } else if (hostContainerInfo._tag) {
- parentInfo = hostContainerInfo._ancestorInfo;
- }
- if (parentInfo) {
- // parentInfo should always be present except for the top-level
- // component when server rendering
- validateDOMNesting(this._tag, null, this, parentInfo);
- }
- this._ancestorInfo = validateDOMNesting.updatedAncestorInfo(parentInfo, this._tag, this);
- }
-
- var mountImage;
- var type = this._currentElement.type;
- if (transaction.useCreateElement) {
- var ownerDocument = hostContainerInfo._ownerDocument;
- var el;
- if (namespaceURI === DOMNamespaces.html) {
- if (this._tag === 'script') {
- // Create the script via .innerHTML so its "parser-inserted" flag is
- // set to true and it does not execute
- var div = ownerDocument.createElement('div');
- div.innerHTML = '<' + type + '></' + type + '>';
- el = div.removeChild(div.firstChild);
- } else if (props.is) {
- el = ownerDocument.createElement(type, props.is);
- } else {
- // Separate else branch instead of using `props.is || undefined` above becuase of a Firefox bug.
- // See discussion in https://github.com/facebook/react/pull/6896
- // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
- el = ownerDocument.createElement(type);
- }
- } else {
- el = ownerDocument.createElementNS(namespaceURI, type);
- }
- var isCustomComponentTag = isCustomComponent(this._tag, props);
- if ("development" !== 'production' && isCustomComponentTag && !didWarnShadyDOM && el.shadyRoot) {
- var owner = this._currentElement._owner;
- var name = owner && owner.getName() || 'A component';
- "development" !== 'production' ? warning(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', name) : void 0;
- didWarnShadyDOM = true;
- }
- ReactDOMComponentTree.precacheNode(this, el);
- this._flags |= Flags.hasCachedChildNodes;
- if (!this._hostParent) {
- DOMPropertyOperations.setAttributeForRoot(el);
- }
- this._updateDOMProperties(null, props, transaction, isCustomComponentTag);
- var lazyTree = DOMLazyTree(el);
- this._createInitialChildren(transaction, props, context, lazyTree);
- mountImage = lazyTree;
- } else {
- var tagOpen = this._createOpenTagMarkupAndPutListeners(transaction, props);
- var tagContent = this._createContentMarkup(transaction, props, context);
- if (!tagContent && omittedCloseTags[this._tag]) {
- mountImage = tagOpen + '/>';
- } else {
- mountImage = tagOpen + '>' + tagContent + '</' + type + '>';
- }
- }
-
- switch (this._tag) {
- case 'input':
- transaction.getReactMountReady().enqueue(inputPostMount, this);
- if (props.autoFocus) {
- transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
- }
- break;
- case 'textarea':
- transaction.getReactMountReady().enqueue(textareaPostMount, this);
- if (props.autoFocus) {
- transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
- }
- break;
- case 'select':
- if (props.autoFocus) {
- transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
- }
- break;
- case 'button':
- if (props.autoFocus) {
- transaction.getReactMountReady().enqueue(AutoFocusUtils.focusDOMComponent, this);
- }
- break;
- case 'option':
- transaction.getReactMountReady().enqueue(optionPostMount, this);
- break;
- default:
- if (typeof props.onClick === 'function') {
- transaction.getReactMountReady().enqueue(trapClickOnNonInteractiveElement, this);
- }
- break;
- }
-
- return mountImage;
- },
-
- /**
- * Creates markup for the open tag and all attributes.
- *
- * This method has side effects because events get registered.
- *
- * Iterating over object properties is faster than iterating over arrays.
- * @see http://jsperf.com/obj-vs-arr-iteration
- *
- * @private
- * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
- * @param {object} props
- * @return {string} Markup of opening tag.
- */
- _createOpenTagMarkupAndPutListeners: function (transaction, props) {
- var ret = '<' + this._currentElement.type;
-
- for (var propKey in props) {
- if (!props.hasOwnProperty(propKey)) {
- continue;
- }
- var propValue = props[propKey];
- if (propValue == null) {
- continue;
- }
- if (registrationNameModules.hasOwnProperty(propKey)) {
- if (propValue) {
- enqueuePutListener(this, propKey, propValue, transaction);
- }
- } else {
- if (propKey === STYLE) {
- if (propValue) {
- if ("development" !== 'production') {
- // See `_updateDOMProperties`. style block
- this._previousStyle = propValue;
- }
- propValue = this._previousStyleCopy = _assign({}, props.style);
- }
- propValue = CSSPropertyOperations.createMarkupForStyles(propValue, this);
- }
- var markup = null;
- if (this._tag != null && isCustomComponent(this._tag, props)) {
- if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
- markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue);
- }
- } else {
- markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue);
- }
- if (markup) {
- ret += ' ' + markup;
- }
- }
- }
-
- // For static pages, no need to put React ID and checksum. Saves lots of
- // bytes.
- if (transaction.renderToStaticMarkup) {
- return ret;
- }
-
- if (!this._hostParent) {
- ret += ' ' + DOMPropertyOperations.createMarkupForRoot();
- }
- ret += ' ' + DOMPropertyOperations.createMarkupForID(this._domID);
- return ret;
- },
-
- /**
- * Creates markup for the content between the tags.
- *
- * @private
- * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
- * @param {object} props
- * @param {object} context
- * @return {string} Content markup.
- */
- _createContentMarkup: function (transaction, props, context) {
- var ret = '';
-
- // Intentional use of != to avoid catching zero/false.
- var innerHTML = props.dangerouslySetInnerHTML;
- if (innerHTML != null) {
- if (innerHTML.__html != null) {
- ret = innerHTML.__html;
- }
- } else {
- var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
- var childrenToUse = contentToUse != null ? null : props.children;
- if (contentToUse != null) {
- // TODO: Validate that text is allowed as a child of this node
- ret = escapeTextContentForBrowser(contentToUse);
- if ("development" !== 'production') {
- setAndValidateContentChildDev.call(this, contentToUse);
- }
- } else if (childrenToUse != null) {
- var mountImages = this.mountChildren(childrenToUse, transaction, context);
- ret = mountImages.join('');
- }
- }
- if (newlineEatingTags[this._tag] && ret.charAt(0) === '\n') {
- // text/html ignores the first character in these tags if it's a newline
- // Prefer to break application/xml over text/html (for now) by adding
- // a newline specifically to get eaten by the parser. (Alternately for
- // textareas, replacing "^\n" with "\r\n" doesn't get eaten, and the first
- // \r is normalized out by HTMLTextAreaElement#value.)
- // See: <http://www.w3.org/TR/html-polyglot/#newlines-in-textarea-and-pre>
- // See: <http://www.w3.org/TR/html5/syntax.html#element-restrictions>
- // See: <http://www.w3.org/TR/html5/syntax.html#newlines>
- // See: Parsing of "textarea" "listing" and "pre" elements
- // from <http://www.w3.org/TR/html5/syntax.html#parsing-main-inbody>
- return '\n' + ret;
- } else {
- return ret;
- }
- },
-
- _createInitialChildren: function (transaction, props, context, lazyTree) {
- // Intentional use of != to avoid catching zero/false.
- var innerHTML = props.dangerouslySetInnerHTML;
- if (innerHTML != null) {
- if (innerHTML.__html != null) {
- DOMLazyTree.queueHTML(lazyTree, innerHTML.__html);
- }
- } else {
- var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null;
- var childrenToUse = contentToUse != null ? null : props.children;
- // TODO: Validate that text is allowed as a child of this node
- if (contentToUse != null) {
- // Avoid setting textContent when the text is empty. In IE11 setting
- // textContent on a text area will cause the placeholder to not
- // show within the textarea until it has been focused and blurred again.
- // https://github.com/facebook/react/issues/6731#issuecomment-254874553
- if (contentToUse !== '') {
- if ("development" !== 'production') {
- setAndValidateContentChildDev.call(this, contentToUse);
- }
- DOMLazyTree.queueText(lazyTree, contentToUse);
- }
- } else if (childrenToUse != null) {
- var mountImages = this.mountChildren(childrenToUse, transaction, context);
- for (var i = 0; i < mountImages.length; i++) {
- DOMLazyTree.queueChild(lazyTree, mountImages[i]);
- }
- }
- }
- },
-
- /**
- * Receives a next element and updates the component.
- *
- * @internal
- * @param {ReactElement} nextElement
- * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
- * @param {object} context
- */
- receiveComponent: function (nextElement, transaction, context) {
- var prevElement = this._currentElement;
- this._currentElement = nextElement;
- this.updateComponent(transaction, prevElement, nextElement, context);
- },
-
- /**
- * Updates a DOM component after it has already been allocated and
- * attached to the DOM. Reconciles the root DOM node, then recurses.
- *
- * @param {ReactReconcileTransaction} transaction
- * @param {ReactElement} prevElement
- * @param {ReactElement} nextElement
- * @internal
- * @overridable
- */
- updateComponent: function (transaction, prevElement, nextElement, context) {
- var lastProps = prevElement.props;
- var nextProps = this._currentElement.props;
-
- switch (this._tag) {
- case 'input':
- lastProps = ReactDOMInput.getHostProps(this, lastProps);
- nextProps = ReactDOMInput.getHostProps(this, nextProps);
- break;
- case 'option':
- lastProps = ReactDOMOption.getHostProps(this, lastProps);
- nextProps = ReactDOMOption.getHostProps(this, nextProps);
- break;
- case 'select':
- lastProps = ReactDOMSelect.getHostProps(this, lastProps);
- nextProps = ReactDOMSelect.getHostProps(this, nextProps);
- break;
- case 'textarea':
- lastProps = ReactDOMTextarea.getHostProps(this, lastProps);
- nextProps = ReactDOMTextarea.getHostProps(this, nextProps);
- break;
- default:
- if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
- transaction.getReactMountReady().enqueue(trapClickOnNonInteractiveElement, this);
- }
- break;
- }
-
- assertValidProps(this, nextProps);
- var isCustomComponentTag = isCustomComponent(this._tag, nextProps);
- this._updateDOMProperties(lastProps, nextProps, transaction, isCustomComponentTag);
- this._updateDOMChildren(lastProps, nextProps, transaction, context);
-
- switch (this._tag) {
- case 'input':
- // Update the wrapper around inputs *after* updating props. This has to
- // happen after `_updateDOMProperties`. Otherwise HTML5 input validations
- // raise warnings and prevent the new value from being assigned.
- ReactDOMInput.updateWrapper(this);
- break;
- case 'textarea':
- ReactDOMTextarea.updateWrapper(this);
- break;
- case 'select':
- // <select> value update needs to occur after <option> children
- // reconciliation
- transaction.getReactMountReady().enqueue(postUpdateSelectWrapper, this);
- break;
- }
- },
-
- /**
- * Reconciles the properties by detecting differences in property values and
- * updating the DOM as necessary. This function is probably the single most
- * critical path for performance optimization.
- *
- * TODO: Benchmark whether checking for changed values in memory actually
- * improves performance (especially statically positioned elements).
- * TODO: Benchmark the effects of putting this at the top since 99% of props
- * do not change for a given reconciliation.
- * TODO: Benchmark areas that can be improved with caching.
- *
- * @private
- * @param {object} lastProps
- * @param {object} nextProps
- * @param {?DOMElement} node
- */
- _updateDOMProperties: function (lastProps, nextProps, transaction, isCustomComponentTag) {
- var propKey;
- var styleName;
- var styleUpdates;
- for (propKey in lastProps) {
- if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
- continue;
- }
- if (propKey === STYLE) {
- var lastStyle = this._previousStyleCopy;
- for (styleName in lastStyle) {
- if (lastStyle.hasOwnProperty(styleName)) {
- styleUpdates = styleUpdates || {};
- styleUpdates[styleName] = '';
- }
- }
- this._previousStyleCopy = null;
- } else if (registrationNameModules.hasOwnProperty(propKey)) {
- if (lastProps[propKey]) {
- // Only call deleteListener if there was a listener previously or
- // else willDeleteListener gets called when there wasn't actually a
- // listener (e.g., onClick={null})
- deleteListener(this, propKey);
- }
- } else if (isCustomComponent(this._tag, lastProps)) {
- if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
- DOMPropertyOperations.deleteValueForAttribute(getNode(this), propKey);
- }
- } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
- DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
- }
- }
- for (propKey in nextProps) {
- var nextProp = nextProps[propKey];
- var lastProp = propKey === STYLE ? this._previousStyleCopy : lastProps != null ? lastProps[propKey] : undefined;
- if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
- continue;
- }
- if (propKey === STYLE) {
- if (nextProp) {
- if ("development" !== 'production') {
- checkAndWarnForMutatedStyle(this._previousStyleCopy, this._previousStyle, this);
- this._previousStyle = nextProp;
- }
- nextProp = this._previousStyleCopy = _assign({}, nextProp);
- } else {
- this._previousStyleCopy = null;
- }
- if (lastProp) {
- // Unset styles on `lastProp` but not on `nextProp`.
- for (styleName in lastProp) {
- if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
- styleUpdates = styleUpdates || {};
- styleUpdates[styleName] = '';
- }
- }
- // Update styles that changed since `lastProp`.
- for (styleName in nextProp) {
- if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
- styleUpdates = styleUpdates || {};
- styleUpdates[styleName] = nextProp[styleName];
- }
- }
- } else {
- // Relies on `updateStylesByID` not mutating `styleUpdates`.
- styleUpdates = nextProp;
- }
- } else if (registrationNameModules.hasOwnProperty(propKey)) {
- if (nextProp) {
- enqueuePutListener(this, propKey, nextProp, transaction);
- } else if (lastProp) {
- deleteListener(this, propKey);
- }
- } else if (isCustomComponentTag) {
- if (!RESERVED_PROPS.hasOwnProperty(propKey)) {
- DOMPropertyOperations.setValueForAttribute(getNode(this), propKey, nextProp);
- }
- } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) {
- var node = getNode(this);
- // If we're updating to null or undefined, we should remove the property
- // from the DOM node instead of inadvertently setting to a string. This
- // brings us in line with the same behavior we have on initial render.
- if (nextProp != null) {
- DOMPropertyOperations.setValueForProperty(node, propKey, nextProp);
- } else {
- DOMPropertyOperations.deleteValueForProperty(node, propKey);
- }
- }
- }
- if (styleUpdates) {
- CSSPropertyOperations.setValueForStyles(getNode(this), styleUpdates, this);
- }
- },
-
- /**
- * Reconciles the children with the various properties that affect the
- * children content.
- *
- * @param {object} lastProps
- * @param {object} nextProps
- * @param {ReactReconcileTransaction} transaction
- * @param {object} context
- */
- _updateDOMChildren: function (lastProps, nextProps, transaction, context) {
- var lastContent = CONTENT_TYPES[typeof lastProps.children] ? lastProps.children : null;
- var nextContent = CONTENT_TYPES[typeof nextProps.children] ? nextProps.children : null;
-
- var lastHtml = lastProps.dangerouslySetInnerHTML && lastProps.dangerouslySetInnerHTML.__html;
- var nextHtml = nextProps.dangerouslySetInnerHTML && nextProps.dangerouslySetInnerHTML.__html;
-
- // Note the use of `!=` which checks for null or undefined.
- var lastChildren = lastContent != null ? null : lastProps.children;
- var nextChildren = nextContent != null ? null : nextProps.children;
-
- // If we're switching from children to content/html or vice versa, remove
- // the old content
- var lastHasContentOrHtml = lastContent != null || lastHtml != null;
- var nextHasContentOrHtml = nextContent != null || nextHtml != null;
- if (lastChildren != null && nextChildren == null) {
- this.updateChildren(null, transaction, context);
- } else if (lastHasContentOrHtml && !nextHasContentOrHtml) {
- this.updateTextContent('');
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
- }
- }
-
- if (nextContent != null) {
- if (lastContent !== nextContent) {
- this.updateTextContent('' + nextContent);
- if ("development" !== 'production') {
- setAndValidateContentChildDev.call(this, nextContent);
- }
- }
- } else if (nextHtml != null) {
- if (lastHtml !== nextHtml) {
- this.updateMarkup('' + nextHtml);
- }
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onSetChildren(this._debugID, []);
- }
- } else if (nextChildren != null) {
- if ("development" !== 'production') {
- setAndValidateContentChildDev.call(this, null);
- }
-
- this.updateChildren(nextChildren, transaction, context);
- }
- },
-
- getHostNode: function () {
- return getNode(this);
- },
-
- /**
- * Destroys all event registrations for this instance. Does not remove from
- * the DOM. That must be done by the parent.
- *
- * @internal
- */
- unmountComponent: function (safely, skipLifecycle) {
- switch (this._tag) {
- case 'audio':
- case 'form':
- case 'iframe':
- case 'img':
- case 'link':
- case 'object':
- case 'source':
- case 'video':
- var listeners = this._wrapperState.listeners;
- if (listeners) {
- for (var i = 0; i < listeners.length; i++) {
- listeners[i].remove();
- }
- }
- break;
- case 'input':
- case 'textarea':
- inputValueTracking.stopTracking(this);
- break;
- case 'html':
- case 'head':
- case 'body':
- /**
- * Components like <html> <head> and <body> can't be removed or added
- * easily in a cross-browser way, however it's valuable to be able to
- * take advantage of React's reconciliation for styling and <title>
- * management. So we just document it and throw in dangerous cases.
- */
- !false ? "development" !== 'production' ? invariant(false, '<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.', this._tag) : _prodInvariant('66', this._tag) : void 0;
- break;
- }
-
- this.unmountChildren(safely, skipLifecycle);
- ReactDOMComponentTree.uncacheNode(this);
- EventPluginHub.deleteAllListeners(this);
- this._rootNodeID = 0;
- this._domID = 0;
- this._wrapperState = null;
-
- if ("development" !== 'production') {
- setAndValidateContentChildDev.call(this, null);
- }
- },
-
- restoreControlledState: function () {
- switch (this._tag) {
- case 'input':
- ReactDOMInput.restoreControlledState(this);
- return;
- case 'textarea':
- ReactDOMTextarea.restoreControlledState(this);
- return;
- case 'select':
- ReactDOMSelect.restoreControlledState(this);
- return;
- }
- },
-
- getPublicInstance: function () {
- return getNode(this);
- }
-
-};
-
-_assign(ReactDOMComponent.prototype, ReactDOMComponent.Mixin, ReactMultiChild);
-
-module.exports = ReactDOMComponent;
-},{"10":10,"109":109,"11":11,"12":12,"124":124,"126":126,"129":129,"13":13,"135":135,"146":146,"154":154,"160":160,"161":161,"162":162,"17":17,"18":18,"2":2,"25":25,"34":34,"35":35,"41":41,"44":44,"45":45,"49":49,"5":5,"65":65,"69":69,"77":77}],34:[function(_dereq_,module,exports){
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactDOMComponentFlags = {
- hasCachedChildNodes: 1 << 0
-};
-
-module.exports = ReactDOMComponentFlags;
-},{}],35:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var DOMProperty = _dereq_(12);
-var ReactDOMComponentFlags = _dereq_(34);
-
-var invariant = _dereq_(154);
-
-var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
-var Flags = ReactDOMComponentFlags;
-
-var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2);
-
-/**
- * Check if a given node should be cached.
- */
-function shouldPrecacheNode(node, nodeID) {
- return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' ';
-}
-
-/**
- * Drill down (through composites and empty components) until we get a host or
- * host text component.
- *
- * This is pretty polymorphic but unavoidable with the current structure we have
- * for `_renderedChildren`.
- */
-function getRenderedHostOrTextFromComponent(component) {
- var rendered;
- while (rendered = component._renderedComponent) {
- component = rendered;
- }
- return component;
-}
-
-/**
- * Populate `_hostNode` on the rendered host/text component with the given
- * DOM node. The passed `inst` can be a composite.
- */
-function precacheNode(inst, node) {
- var hostInst = getRenderedHostOrTextFromComponent(inst);
- hostInst._hostNode = node;
- node[internalInstanceKey] = hostInst;
-}
-
-function uncacheNode(inst) {
- var node = inst._hostNode;
- if (node) {
- delete node[internalInstanceKey];
- inst._hostNode = null;
- }
-}
-
-/**
- * Populate `_hostNode` on each child of `inst`, assuming that the children
- * match up with the DOM (element) children of `node`.
- *
- * We cache entire levels at once to avoid an n^2 problem where we access the
- * children of a node sequentially and have to walk from the start to our target
- * node every time.
- *
- * Since we update `_renderedChildren` and the actual DOM at (slightly)
- * different times, we could race here and see a newer `_renderedChildren` than
- * the DOM nodes we see. To avoid this, ReactMultiChild calls
- * `prepareToManageChildren` before we change `_renderedChildren`, at which
- * time the container's child nodes are always cached (until it unmounts).
- */
-function precacheChildNodes(inst, node) {
- if (inst._flags & Flags.hasCachedChildNodes) {
- return;
- }
- var children = inst._renderedChildren;
- var childNode = node.firstChild;
- outer: for (var name in children) {
- if (!children.hasOwnProperty(name)) {
- continue;
- }
- var childInst = children[name];
- var childID = getRenderedHostOrTextFromComponent(childInst)._domID;
- if (childID === 0) {
- // We're currently unmounting this child in ReactMultiChild; skip it.
- continue;
- }
- // We assume the child nodes are in the same order as the child instances.
- for (; childNode !== null; childNode = childNode.nextSibling) {
- if (shouldPrecacheNode(childNode, childID)) {
- precacheNode(childInst, childNode);
- continue outer;
- }
- }
- // We reached the end of the DOM children without finding an ID match.
- !false ? "development" !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0;
- }
- inst._flags |= Flags.hasCachedChildNodes;
-}
-
-/**
- * Given a DOM node, return the closest ReactDOMComponent or
- * ReactDOMTextComponent instance ancestor.
- */
-function getClosestInstanceFromNode(node) {
- if (node[internalInstanceKey]) {
- return node[internalInstanceKey];
- }
-
- // Walk up the tree until we find an ancestor whose instance we have cached.
- var parents = [];
- while (!node[internalInstanceKey]) {
- parents.push(node);
- if (node.parentNode) {
- node = node.parentNode;
- } else {
- // Top of the tree. This node must not be part of a React tree (or is
- // unmounted, potentially).
- return null;
- }
- }
-
- var closest;
- var inst;
- for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) {
- closest = inst;
- if (parents.length) {
- precacheChildNodes(inst, node);
- }
- }
-
- return closest;
-}
-
-/**
- * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
- * instance, or null if the node was not rendered by this React.
- */
-function getInstanceFromNode(node) {
- var inst = getClosestInstanceFromNode(node);
- if (inst != null && inst._hostNode === node) {
- return inst;
- } else {
- return null;
- }
-}
-
-/**
- * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
- * DOM node.
- */
-function getNodeFromInstance(inst) {
- // Without this first invariant, passing a non-DOM-component triggers the next
- // invariant for a missing parent, which is super confusing.
- !(inst._hostNode !== undefined) ? "development" !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0;
-
- if (inst._hostNode) {
- return inst._hostNode;
- }
-
- // Walk up the tree until we find an ancestor whose DOM node we have cached.
- var parents = [];
- while (!inst._hostNode) {
- parents.push(inst);
- !inst._hostParent ? "development" !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0;
- inst = inst._hostParent;
- }
-
- // Now parents contains each ancestor that does *not* have a cached native
- // node, and `inst` is the deepest ancestor that does.
- for (; parents.length; inst = parents.pop()) {
- precacheChildNodes(inst, inst._hostNode);
- }
-
- return inst._hostNode;
-}
-
-var ReactDOMComponentTree = {
- getClosestInstanceFromNode: getClosestInstanceFromNode,
- getInstanceFromNode: getInstanceFromNode,
- getNodeFromInstance: getNodeFromInstance,
- precacheChildNodes: precacheChildNodes,
- precacheNode: precacheNode,
- uncacheNode: uncacheNode
-};
-
-module.exports = ReactDOMComponentTree;
-},{"12":12,"129":129,"154":154,"34":34}],36:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var validateDOMNesting = _dereq_(135);
-
-var DOC_NODE_TYPE = 9;
-
-function ReactDOMContainerInfo(topLevelWrapper, node) {
- var info = {
- _topLevelWrapper: topLevelWrapper,
- _idCounter: 1,
- _ownerDocument: node ? node.nodeType === DOC_NODE_TYPE ? node : node.ownerDocument : null,
- _node: node,
- _tag: node ? node.nodeName.toLowerCase() : null,
- _namespaceURI: node ? node.namespaceURI : null
- };
- if ("development" !== 'production') {
- info._ancestorInfo = node ? validateDOMNesting.updatedAncestorInfo(null, info._tag, null) : null;
- }
- return info;
-}
-
-module.exports = ReactDOMContainerInfo;
-},{"135":135}],37:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var DOMLazyTree = _dereq_(10);
-var ReactDOMComponentTree = _dereq_(35);
-
-var ReactDOMEmptyComponent = function (instantiate) {
- // ReactCompositeComponent uses this:
- this._currentElement = null;
- // ReactDOMComponentTree uses these:
- this._hostNode = null;
- this._hostParent = null;
- this._hostContainerInfo = null;
- this._domID = 0;
-};
-_assign(ReactDOMEmptyComponent.prototype, {
- mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
- var domID = hostContainerInfo._idCounter++;
- this._domID = domID;
- this._hostParent = hostParent;
- this._hostContainerInfo = hostContainerInfo;
-
- var nodeValue = ' react-empty: ' + this._domID + ' ';
- if (transaction.useCreateElement) {
- var ownerDocument = hostContainerInfo._ownerDocument;
- var node = ownerDocument.createComment(nodeValue);
- ReactDOMComponentTree.precacheNode(this, node);
- return DOMLazyTree(node);
- } else {
- if (transaction.renderToStaticMarkup) {
- // Normally we'd insert a comment node, but since this is a situation
- // where React won't take over (static pages), we can simply return
- // nothing.
- return '';
- }
- return '<!--' + nodeValue + '-->';
- }
- },
- receiveComponent: function () {},
- getHostNode: function () {
- return ReactDOMComponentTree.getNodeFromInstance(this);
- },
- unmountComponent: function () {
- ReactDOMComponentTree.uncacheNode(this);
- }
-});
-
-module.exports = ReactDOMEmptyComponent;
-},{"10":10,"162":162,"35":35}],38:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactDOMFeatureFlags = {
- useCreateElement: true,
- useFiber: false
-};
-
-module.exports = ReactDOMFeatureFlags;
-},{}],39:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMChildrenOperations = _dereq_(8);
-var ReactDOMComponentTree = _dereq_(35);
-
-/**
- * Operations used to process updates to DOM nodes.
- */
-var ReactDOMIDOperations = {
-
- /**
- * Updates a component's children by processing a series of updates.
- *
- * @param {array<object>} updates List of update configurations.
- * @internal
- */
- dangerouslyProcessChildrenUpdates: function (parentInst, updates) {
- var node = ReactDOMComponentTree.getNodeFromInstance(parentInst);
- DOMChildrenOperations.processUpdates(node, updates);
- }
-};
-
-module.exports = ReactDOMIDOperations;
-},{"35":35,"8":8}],40:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ARIADOMPropertyConfig = _dereq_(1);
-var BeforeInputEventPlugin = _dereq_(3);
-var DOMProperty = _dereq_(12);
-var ChangeEventPlugin = _dereq_(7);
-var DOMEventPluginOrder = _dereq_(9);
-var EnterLeaveEventPlugin = _dereq_(15);
-var EventPluginHub = _dereq_(17);
-var EventPluginUtils = _dereq_(19);
-var HTMLDOMPropertyConfig = _dereq_(22);
-var ReactBrowserEventEmitter = _dereq_(25);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactEventListener = _dereq_(58);
-var SVGDOMPropertyConfig = _dereq_(86);
-var SelectEventPlugin = _dereq_(87);
-var SimpleEventPlugin = _dereq_(88);
-
-var alreadyInjected = false;
-
-function inject() {
- if (alreadyInjected) {
- // TODO: This is currently true because these injections are shared between
- // the client and the server package. They should be built independently
- // and not share any injection state. Then this problem will be solved.
- return;
- }
- alreadyInjected = true;
-
- ReactBrowserEventEmitter.injection.injectReactEventListener(ReactEventListener);
-
- /**
- * Inject modules for resolving DOM hierarchy and plugin ordering.
- */
- EventPluginHub.injection.injectEventPluginOrder(DOMEventPluginOrder);
- EventPluginUtils.injection.injectComponentTree(ReactDOMComponentTree);
-
- /**
- * Some important event plugins included by default (without having to require
- * them).
- */
- EventPluginHub.injection.injectEventPluginsByName({
- SimpleEventPlugin: SimpleEventPlugin,
- EnterLeaveEventPlugin: EnterLeaveEventPlugin,
- ChangeEventPlugin: ChangeEventPlugin,
- SelectEventPlugin: SelectEventPlugin,
- BeforeInputEventPlugin: BeforeInputEventPlugin
- });
-
- DOMProperty.injection.injectDOMPropertyConfig(ARIADOMPropertyConfig);
- DOMProperty.injection.injectDOMPropertyConfig(HTMLDOMPropertyConfig);
- DOMProperty.injection.injectDOMPropertyConfig(SVGDOMPropertyConfig);
-}
-
-module.exports = {
- inject: inject
-};
-},{"1":1,"12":12,"15":15,"17":17,"19":19,"22":22,"25":25,"3":3,"35":35,"58":58,"7":7,"86":86,"87":87,"88":88,"9":9}],41:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var DOMPropertyOperations = _dereq_(13);
-var ReactControlledValuePropTypes = _dereq_(31);
-var ReactDOMComponentTree = _dereq_(35);
-
-var invariant = _dereq_(154);
-var warning = _dereq_(161);
-
-var didWarnValueDefaultValue = false;
-var didWarnCheckedDefaultChecked = false;
-var didWarnControlledToUncontrolled = false;
-var didWarnUncontrolledToControlled = false;
-
-function isControlled(props) {
- var usesChecked = props.type === 'checkbox' || props.type === 'radio';
- return usesChecked ? props.checked != null : props.value != null;
-}
-
-/**
- * Implements an <input> host component that allows setting these optional
- * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
- *
- * If `checked` or `value` are not supplied (or null/undefined), user actions
- * that affect the checked state or value will trigger updates to the element.
- *
- * If they are supplied (and not null/undefined), the rendered element will not
- * trigger updates to the element. Instead, the props must change in order for
- * the rendered element to be updated.
- *
- * The rendered element will be initialized as unchecked (or `defaultChecked`)
- * with an empty value (or `defaultValue`).
- *
- * @see http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
- */
-var ReactDOMInput = {
- getHostProps: function (inst, props) {
- var value = props.value;
- var checked = props.checked;
-
- var hostProps = _assign({
- // Make sure we set .type before any other properties (setting .value
- // before .type means .value is lost in IE11 and below)
- type: undefined,
- // Make sure we set .step before .value (setting .value before .step
- // means .value is rounded on mount, based upon step precision)
- step: undefined,
- // Make sure we set .min & .max before .value (to ensure proper order
- // in corner cases such as min or max deriving from value, e.g. Issue #7170)
- min: undefined,
- max: undefined
- }, props, {
- defaultChecked: undefined,
- defaultValue: undefined,
- value: value != null ? value : inst._wrapperState.initialValue,
- checked: checked != null ? checked : inst._wrapperState.initialChecked
- });
-
- return hostProps;
- },
-
- mountWrapper: function (inst, props) {
- if ("development" !== 'production') {
- ReactControlledValuePropTypes.checkPropTypes('input', props, inst._currentElement._owner);
-
- var owner = inst._currentElement._owner;
-
- if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
- "development" !== 'production' ? warning(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;
- didWarnCheckedDefaultChecked = true;
- }
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
- "development" !== 'production' ? warning(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;
- didWarnValueDefaultValue = true;
- }
- }
-
- var defaultValue = props.defaultValue;
- inst._wrapperState = {
- initialChecked: props.checked != null ? props.checked : props.defaultChecked,
- initialValue: props.value != null ? props.value : defaultValue,
- listeners: null
- };
-
- if ("development" !== 'production') {
- inst._wrapperState.controlled = isControlled(props);
- }
- },
-
- updateWrapper: function (inst) {
- var props = inst._currentElement.props;
-
- if ("development" !== 'production') {
- var controlled = isControlled(props);
- var owner = inst._currentElement._owner;
-
- if (!inst._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
- "development" !== 'production' ? warning(false, '%s is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;
- didWarnUncontrolledToControlled = true;
- }
- if (inst._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
- "development" !== 'production' ? warning(false, '%s is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', owner && owner.getName() || 'A component', props.type) : void 0;
- didWarnControlledToUncontrolled = true;
- }
- }
-
- var checked = props.checked;
- if (checked != null) {
- DOMPropertyOperations.setValueForProperty(ReactDOMComponentTree.getNodeFromInstance(inst), 'checked', checked || false);
- }
-
- var node = ReactDOMComponentTree.getNodeFromInstance(inst);
- var value = props.value;
- if (value != null) {
-
- // Cast `value` to a string to ensure the value is set correctly. While
- // browsers typically do this as necessary, jsdom doesn't.
- var newValue = '' + value;
-
- // To avoid side effects (such as losing text selection), only set value if changed
- if (newValue !== node.value) {
- node.value = newValue;
- }
- } else {
- if (props.value == null && props.defaultValue != null) {
- // In Chrome, assigning defaultValue to certain input types triggers input validation.
- // For number inputs, the display value loses trailing decimal points. For email inputs,
- // Chrome raises "The specified value <x> is not a valid email address".
- //
- // Here we check to see if the defaultValue has actually changed, avoiding these problems
- // when the user is inputting text
- //
- // https://github.com/facebook/react/issues/7253
- if (node.defaultValue !== '' + props.defaultValue) {
- node.defaultValue = '' + props.defaultValue;
- }
- }
- if (props.checked == null && props.defaultChecked != null) {
- node.defaultChecked = !!props.defaultChecked;
- }
- }
- },
-
- postMountWrapper: function (inst) {
- var props = inst._currentElement.props;
-
- // This is in postMount because we need access to the DOM node, which is not
- // available until after the component has mounted.
- var node = ReactDOMComponentTree.getNodeFromInstance(inst);
-
- // Detach value from defaultValue. We won't do anything if we're working on
- // submit or reset inputs as those values & defaultValues are linked. They
- // are not resetable nodes so this operation doesn't matter and actually
- // removes browser-default values (eg "Submit Query") when no value is
- // provided.
-
- switch (props.type) {
- case 'submit':
- case 'reset':
- break;
- case 'color':
- case 'date':
- case 'datetime':
- case 'datetime-local':
- case 'month':
- case 'time':
- case 'week':
- // This fixes the no-show issue on iOS Safari and Android Chrome:
- // https://github.com/facebook/react/issues/7233
- node.value = '';
- node.value = node.defaultValue;
- break;
- default:
- node.value = node.value;
- break;
- }
-
- // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
- // this is needed to work around a chrome bug where setting defaultChecked
- // will sometimes influence the value of checked (even after detachment).
- // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
- // We need to temporarily unset name to avoid disrupting radio button groups.
- var name = node.name;
- if (name !== '') {
- node.name = '';
- }
- node.defaultChecked = !node.defaultChecked;
- node.defaultChecked = !node.defaultChecked;
- if (name !== '') {
- node.name = name;
- }
- },
-
- restoreControlledState: function (inst) {
- if (inst._rootNodeID) {
- // DOM component is still mounted; update
- ReactDOMInput.updateWrapper(inst);
- }
- var props = inst._currentElement.props;
- updateNamedCousins(inst, props);
- }
-};
-
-function updateNamedCousins(thisInstance, props) {
- var name = props.name;
- if (props.type === 'radio' && name != null) {
- var rootNode = ReactDOMComponentTree.getNodeFromInstance(thisInstance);
- var queryRoot = rootNode;
-
- while (queryRoot.parentNode) {
- queryRoot = queryRoot.parentNode;
- }
-
- // If `rootNode.form` was non-null, then we could try `form.elements`,
- // but that sometimes behaves strangely in IE8. We could also try using
- // `form.getElementsByName`, but that will only return direct children
- // and won't include inputs that use the HTML5 `form=` attribute. Since
- // the input might not even be in a form. It might not even be in the
- // document. Let's just use the local `querySelectorAll` to ensure we don't
- // miss anything.
- var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
-
- for (var i = 0; i < group.length; i++) {
- var otherNode = group[i];
- if (otherNode === rootNode || otherNode.form !== rootNode.form) {
- continue;
- }
- // This will throw if radio buttons rendered by different copies of React
- // and the same name are rendered into the same form (same as #1939).
- // That's probably okay; we don't support it just as we don't support
- // mixing React radio buttons with non-React ones.
- var otherInstance = ReactDOMComponentTree.getInstanceFromNode(otherNode);
- !otherInstance ? "development" !== 'production' ? invariant(false, 'ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.') : _prodInvariant('90') : void 0;
- // If this is a controlled radio button group, forcing the input that
- // was previously checked to update will cause it to be come re-checked
- // as appropriate.
- if (otherInstance._rootNodeID) {
- ReactDOMInput.updateWrapper(otherInstance);
- }
- }
- }
-}
-
-module.exports = ReactDOMInput;
-},{"129":129,"13":13,"154":154,"161":161,"162":162,"31":31,"35":35}],42:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMProperty = _dereq_(12);
-var ReactComponentTreeHook = _dereq_(136);
-
-var warning = _dereq_(161);
-
-var warnedProperties = {};
-var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$');
-
-function validateProperty(tagName, name, debugID) {
- if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
- return true;
- }
-
- if (rARIA.test(name)) {
- var lowerCasedName = name.toLowerCase();
- var standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
-
- // If this is an aria-* attribute, but is not listed in the known DOM
- // DOM properties, then it is an invalid aria-* attribute.
- if (standardName == null) {
- warnedProperties[name] = true;
- return false;
- }
- // aria-* attributes should be lowercase; suggest the lowercase version.
- if (name !== standardName) {
- "development" !== 'production' ? warning(false, 'Unknown ARIA attribute %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- warnedProperties[name] = true;
- return true;
- }
- }
-
- return true;
-}
-
-function warnInvalidARIAProps(debugID, element) {
- var invalidProps = [];
-
- for (var key in element.props) {
- var isValid = validateProperty(element.type, key, debugID);
- if (!isValid) {
- invalidProps.push(key);
- }
- }
-
- var unknownPropString = invalidProps.map(function (prop) {
- return '`' + prop + '`';
- }).join(', ');
-
- if (invalidProps.length === 1) {
- "development" !== 'production' ? warning(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- } else if (invalidProps.length > 1) {
- "development" !== 'production' ? warning(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- }
-}
-
-function handleElement(debugID, element) {
- if (element == null || typeof element.type !== 'string') {
- return;
- }
- if (element.type.indexOf('-') >= 0 || element.props.is) {
- return;
- }
-
- warnInvalidARIAProps(debugID, element);
-}
-
-var ReactDOMInvalidARIAHook = {
- onBeforeMountComponent: function (debugID, element) {
- if ("development" !== 'production') {
- handleElement(debugID, element);
- }
- },
- onBeforeUpdateComponent: function (debugID, element) {
- if ("development" !== 'production') {
- handleElement(debugID, element);
- }
- }
-};
-
-module.exports = ReactDOMInvalidARIAHook;
-},{"12":12,"136":136,"161":161}],43:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactComponentTreeHook = _dereq_(136);
-
-var warning = _dereq_(161);
-
-var didWarnValueNull = false;
-
-function handleElement(debugID, element) {
- if (element == null) {
- return;
- }
- if (element.type !== 'input' && element.type !== 'textarea' && element.type !== 'select') {
- return;
- }
- if (element.props != null && element.props.value === null && !didWarnValueNull) {
- "development" !== 'production' ? warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
-
- didWarnValueNull = true;
- }
-}
-
-var ReactDOMNullInputValuePropHook = {
- onBeforeMountComponent: function (debugID, element) {
- handleElement(debugID, element);
- },
- onBeforeUpdateComponent: function (debugID, element) {
- handleElement(debugID, element);
- }
-};
-
-module.exports = ReactDOMNullInputValuePropHook;
-},{"136":136,"161":161}],44:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var React = _dereq_(138);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactDOMSelect = _dereq_(45);
-
-var warning = _dereq_(161);
-var didWarnInvalidOptionChildren = false;
-
-function flattenChildren(children) {
- var content = '';
-
- // Flatten children and warn if they aren't strings or numbers;
- // invalid types are ignored.
- React.Children.forEach(children, function (child) {
- if (child == null) {
- return;
- }
- if (typeof child === 'string' || typeof child === 'number') {
- content += child;
- } else if (!didWarnInvalidOptionChildren) {
- didWarnInvalidOptionChildren = true;
- "development" !== 'production' ? warning(false, 'Only strings and numbers are supported as <option> children.') : void 0;
- }
- });
-
- return content;
-}
-
-/**
- * Implements an <option> host component that warns when `selected` is set.
- */
-var ReactDOMOption = {
- mountWrapper: function (inst, props, hostParent) {
- // TODO (yungsters): Remove support for `selected` in <option>.
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(props.selected == null, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.') : void 0;
- }
-
- // Look up whether this option is 'selected'
- var selectValue = null;
- if (hostParent != null) {
- var selectParent = hostParent;
-
- if (selectParent._tag === 'optgroup') {
- selectParent = selectParent._hostParent;
- }
-
- if (selectParent != null && selectParent._tag === 'select') {
- selectValue = ReactDOMSelect.getSelectValueContext(selectParent);
- }
- }
-
- // If the value is null (e.g., no specified value or after initial mount)
- // or missing (e.g., for <datalist>), we don't change props.selected
- var selected = null;
- if (selectValue != null) {
- var value;
- if (props.value != null) {
- value = props.value + '';
- } else {
- value = flattenChildren(props.children);
- }
- selected = false;
- if (Array.isArray(selectValue)) {
- // multiple
- for (var i = 0; i < selectValue.length; i++) {
- if ('' + selectValue[i] === value) {
- selected = true;
- break;
- }
- }
- } else {
- selected = '' + selectValue === value;
- }
- }
-
- inst._wrapperState = { selected: selected };
- },
-
- postMountWrapper: function (inst) {
- // value="" should make a value attribute (#6219)
- var props = inst._currentElement.props;
- if (props.value != null) {
- var node = ReactDOMComponentTree.getNodeFromInstance(inst);
- node.setAttribute('value', props.value);
- }
- },
-
- getHostProps: function (inst, props) {
- var hostProps = _assign({ selected: undefined, children: undefined }, props);
-
- // Read state only from initial mount because <select> updates value
- // manually; we need the initial state only for server rendering
- if (inst._wrapperState.selected != null) {
- hostProps.selected = inst._wrapperState.selected;
- }
-
- var content = flattenChildren(props.children);
-
- if (content) {
- hostProps.children = content;
- }
-
- return hostProps;
- }
-
-};
-
-module.exports = ReactDOMOption;
-},{"138":138,"161":161,"162":162,"35":35,"45":45}],45:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var ReactControlledValuePropTypes = _dereq_(31);
-var ReactDOMComponentTree = _dereq_(35);
-
-var warning = _dereq_(161);
-
-var didWarnValueDefaultValue = false;
-
-function getDeclarationErrorAddendum(owner) {
- if (owner) {
- var name = owner.getName();
- if (name) {
- return ' Check the render method of `' + name + '`.';
- }
- }
- return '';
-}
-
-var valuePropNames = ['value', 'defaultValue'];
-
-/**
- * Validation function for `value` and `defaultValue`.
- * @private
- */
-function checkSelectPropTypes(inst, props) {
- var owner = inst._currentElement._owner;
- ReactControlledValuePropTypes.checkPropTypes('select', props, owner);
-
- for (var i = 0; i < valuePropNames.length; i++) {
- var propName = valuePropNames[i];
- if (props[propName] == null) {
- continue;
- }
- var isArray = Array.isArray(props[propName]);
- if (props.multiple && !isArray) {
- "development" !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;
- } else if (!props.multiple && isArray) {
- "development" !== 'production' ? warning(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum(owner)) : void 0;
- }
- }
-}
-
-/**
- * @param {ReactDOMComponent} inst
- * @param {boolean} multiple
- * @param {*} propValue A stringable (with `multiple`, a list of stringables).
- * @private
- */
-function updateOptions(inst, multiple, propValue) {
- var options = ReactDOMComponentTree.getNodeFromInstance(inst).options;
-
- if (multiple) {
- var selectedValue = {};
- for (var i = 0; i < propValue.length; i++) {
- selectedValue['' + propValue[i]] = true;
- }
- for (var _i = 0; _i < options.length; _i++) {
- var selected = selectedValue.hasOwnProperty(options[_i].value);
- if (options[_i].selected !== selected) {
- options[_i].selected = selected;
- }
- }
- } else {
- // Do not set `select.value` as exact behavior isn't consistent across all
- // browsers for all cases.
- var _selectedValue = '' + propValue;
- for (var _i2 = 0; _i2 < options.length; _i2++) {
- if (options[_i2].value === _selectedValue) {
- options[_i2].selected = true;
- return;
- }
- }
- if (options.length) {
- options[0].selected = true;
- }
- }
-}
-
-/**
- * Implements a <select> host component that allows optionally setting the
- * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
- * stringable. If `multiple` is true, the prop must be an array of stringables.
- *
- * If `value` is not supplied (or null/undefined), user actions that change the
- * selected option will trigger updates to the rendered options.
- *
- * If it is supplied (and not null/undefined), the rendered options will not
- * update in response to user actions. Instead, the `value` prop must change in
- * order for the rendered options to update.
- *
- * If `defaultValue` is provided, any options with the supplied values will be
- * selected.
- */
-var ReactDOMSelect = {
- getHostProps: function (inst, props) {
- return _assign({}, props, {
- value: undefined
- });
- },
-
- mountWrapper: function (inst, props) {
- if ("development" !== 'production') {
- checkSelectPropTypes(inst, props);
- }
-
- var value = props.value;
- inst._wrapperState = {
- initialValue: value != null ? value : props.defaultValue,
- listeners: null,
- wasMultiple: Boolean(props.multiple)
- };
-
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
- "development" !== 'production' ? warning(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components') : void 0;
- didWarnValueDefaultValue = true;
- }
- },
-
- getSelectValueContext: function (inst) {
- // ReactDOMOption looks at this initial value so the initial generated
- // markup has correct `selected` attributes
- return inst._wrapperState.initialValue;
- },
-
- postUpdateWrapper: function (inst) {
- var props = inst._currentElement.props;
-
- // After the initial mount, we control selected-ness manually so don't pass
- // this value down
- inst._wrapperState.initialValue = undefined;
-
- var wasMultiple = inst._wrapperState.wasMultiple;
- inst._wrapperState.wasMultiple = Boolean(props.multiple);
-
- var value = props.value;
- if (value != null) {
- updateOptions(inst, Boolean(props.multiple), value);
- } else if (wasMultiple !== Boolean(props.multiple)) {
- // For simplicity, reapply `defaultValue` if `multiple` is toggled.
- if (props.defaultValue != null) {
- updateOptions(inst, Boolean(props.multiple), props.defaultValue);
- } else {
- // Revert the select back to its default unselected state.
- updateOptions(inst, Boolean(props.multiple), props.multiple ? [] : '');
- }
- }
- },
-
- restoreControlledState: function (inst) {
- if (inst._rootNodeID) {
- var props = inst._currentElement.props;
- var value = props.value;
-
- if (value != null) {
- updateOptions(inst, Boolean(props.multiple), value);
- }
- }
- }
-};
-
-module.exports = ReactDOMSelect;
-},{"161":161,"162":162,"31":31,"35":35}],46:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ExecutionEnvironment = _dereq_(140);
-
-var getNodeForCharacterOffset = _dereq_(121);
-var getTextContentAccessor = _dereq_(122);
-
-/**
- * While `isCollapsed` is available on the Selection object and `collapsed`
- * is available on the Range object, IE11 sometimes gets them wrong.
- * If the anchor/focus nodes and offsets are the same, the range is collapsed.
- */
-function isCollapsed(anchorNode, anchorOffset, focusNode, focusOffset) {
- return anchorNode === focusNode && anchorOffset === focusOffset;
-}
-
-/**
- * Get the appropriate anchor and focus node/offset pairs for IE.
- *
- * The catch here is that IE's selection API doesn't provide information
- * about whether the selection is forward or backward, so we have to
- * behave as though it's always forward.
- *
- * IE text differs from modern selection in that it behaves as though
- * block elements end with a new line. This means character offsets will
- * differ between the two APIs.
- *
- * @param {DOMElement} node
- * @return {object}
- */
-function getIEOffsets(node) {
- var selection = document.selection;
- var selectedRange = selection.createRange();
- var selectedLength = selectedRange.text.length;
-
- // Duplicate selection so we can move range without breaking user selection.
- var fromStart = selectedRange.duplicate();
- fromStart.moveToElementText(node);
- fromStart.setEndPoint('EndToStart', selectedRange);
-
- var startOffset = fromStart.text.length;
- var endOffset = startOffset + selectedLength;
-
- return {
- start: startOffset,
- end: endOffset
- };
-}
-
-/**
- * @param {DOMElement} node
- * @return {?object}
- */
-function getModernOffsets(node) {
- var selection = window.getSelection && window.getSelection();
-
- if (!selection || selection.rangeCount === 0) {
- return null;
- }
-
- var anchorNode = selection.anchorNode;
- var anchorOffset = selection.anchorOffset;
- var focusNode = selection.focusNode;
- var focusOffset = selection.focusOffset;
-
- var currentRange = selection.getRangeAt(0);
-
- // In Firefox, range.startContainer and range.endContainer can be "anonymous
- // divs", e.g. the up/down buttons on an <input type="number">. Anonymous
- // divs do not seem to expose properties, triggering a "Permission denied
- // error" if any of its properties are accessed. The only seemingly possible
- // way to avoid erroring is to access a property that typically works for
- // non-anonymous divs and catch any error that may otherwise arise. See
- // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
- try {
- /* eslint-disable no-unused-expressions */
- currentRange.startContainer.nodeType;
- currentRange.endContainer.nodeType;
- /* eslint-enable no-unused-expressions */
- } catch (e) {
- return null;
- }
-
- // If the node and offset values are the same, the selection is collapsed.
- // `Selection.isCollapsed` is available natively, but IE sometimes gets
- // this value wrong.
- var isSelectionCollapsed = isCollapsed(selection.anchorNode, selection.anchorOffset, selection.focusNode, selection.focusOffset);
-
- var rangeLength = isSelectionCollapsed ? 0 : currentRange.toString().length;
-
- var tempRange = currentRange.cloneRange();
- tempRange.selectNodeContents(node);
- tempRange.setEnd(currentRange.startContainer, currentRange.startOffset);
-
- var isTempRangeCollapsed = isCollapsed(tempRange.startContainer, tempRange.startOffset, tempRange.endContainer, tempRange.endOffset);
-
- var start = isTempRangeCollapsed ? 0 : tempRange.toString().length;
- var end = start + rangeLength;
-
- // Detect whether the selection is backward.
- var detectionRange = document.createRange();
- detectionRange.setStart(anchorNode, anchorOffset);
- detectionRange.setEnd(focusNode, focusOffset);
- var isBackward = detectionRange.collapsed;
-
- return {
- start: isBackward ? end : start,
- end: isBackward ? start : end
- };
-}
-
-/**
- * @param {DOMElement|DOMTextNode} node
- * @param {object} offsets
- */
-function setIEOffsets(node, offsets) {
- var range = document.selection.createRange().duplicate();
- var start, end;
-
- if (offsets.end === undefined) {
- start = offsets.start;
- end = start;
- } else if (offsets.start > offsets.end) {
- start = offsets.end;
- end = offsets.start;
- } else {
- start = offsets.start;
- end = offsets.end;
- }
-
- range.moveToElementText(node);
- range.moveStart('character', start);
- range.setEndPoint('EndToStart', range);
- range.moveEnd('character', end - start);
- range.select();
-}
-
-/**
- * In modern non-IE browsers, we can support both forward and backward
- * selections.
- *
- * Note: IE10+ supports the Selection object, but it does not support
- * the `extend` method, which means that even in modern IE, it's not possible
- * to programmatically create a backward selection. Thus, for all IE
- * versions, we use the old IE API to create our selections.
- *
- * @param {DOMElement|DOMTextNode} node
- * @param {object} offsets
- */
-function setModernOffsets(node, offsets) {
- if (!window.getSelection) {
- return;
- }
-
- var selection = window.getSelection();
- var length = node[getTextContentAccessor()].length;
- var start = Math.min(offsets.start, length);
- var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
-
- // IE 11 uses modern selection, but doesn't support the extend method.
- // Flip backward selections, so we can set with a single range.
- if (!selection.extend && start > end) {
- var temp = end;
- end = start;
- start = temp;
- }
-
- var startMarker = getNodeForCharacterOffset(node, start);
- var endMarker = getNodeForCharacterOffset(node, end);
-
- if (startMarker && endMarker) {
- var range = document.createRange();
- range.setStart(startMarker.node, startMarker.offset);
- selection.removeAllRanges();
-
- if (start > end) {
- selection.addRange(range);
- selection.extend(endMarker.node, endMarker.offset);
- } else {
- range.setEnd(endMarker.node, endMarker.offset);
- selection.addRange(range);
- }
- }
-}
-
-var useIEOffsets = ExecutionEnvironment.canUseDOM && 'selection' in document && !('getSelection' in window);
-
-var ReactDOMSelection = {
- /**
- * @param {DOMElement} node
- */
- getOffsets: useIEOffsets ? getIEOffsets : getModernOffsets,
-
- /**
- * @param {DOMElement|DOMTextNode} node
- * @param {object} offsets
- */
- setOffsets: useIEOffsets ? setIEOffsets : setModernOffsets
-};
-
-module.exports = ReactDOMSelection;
-},{"121":121,"122":122,"140":140}],47:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactComponentEnvironment = _dereq_(28);
-var ReactComponentBrowserEnvironment = _dereq_(27);
-var ReactDOMComponent = _dereq_(33);
-var ReactDOMEmptyComponent = _dereq_(37);
-var ReactDOMTextComponent = _dereq_(48);
-var ReactDefaultBatchingStrategy = _dereq_(53);
-var ReactEmptyComponent = _dereq_(55);
-var ReactGenericBatching = _dereq_(60);
-var ReactHostComponent = _dereq_(61);
-var ReactReconcileTransaction = _dereq_(74);
-var ReactUpdates = _dereq_(84);
-
-var alreadyInjected = false;
-
-function inject() {
- if (alreadyInjected) {
- // TODO: This is currently true because these injections are shared between
- // the client and the server package. They should be built independently
- // and not share any injection state. Then this problem will be solved.
- return;
- }
- alreadyInjected = true;
-
- ReactGenericBatching.injection.injectStackBatchedUpdates(ReactUpdates.batchedUpdates);
-
- ReactHostComponent.injection.injectGenericComponentClass(ReactDOMComponent);
-
- ReactHostComponent.injection.injectTextComponentClass(ReactDOMTextComponent);
-
- ReactEmptyComponent.injection.injectEmptyComponentFactory(function (instantiate) {
- return new ReactDOMEmptyComponent(instantiate);
- });
-
- ReactUpdates.injection.injectReconcileTransaction(ReactReconcileTransaction);
- ReactUpdates.injection.injectBatchingStrategy(ReactDefaultBatchingStrategy);
-
- ReactComponentEnvironment.injection.injectEnvironment(ReactComponentBrowserEnvironment);
-}
-
-module.exports = {
- inject: inject
-};
-},{"27":27,"28":28,"33":33,"37":37,"48":48,"53":53,"55":55,"60":60,"61":61,"74":74,"84":84}],48:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var DOMChildrenOperations = _dereq_(8);
-var DOMLazyTree = _dereq_(10);
-var ReactDOMComponentTree = _dereq_(35);
-
-var escapeTextContentForBrowser = _dereq_(109);
-var invariant = _dereq_(154);
-var validateDOMNesting = _dereq_(135);
-
-/**
- * Text nodes violate a couple assumptions that React makes about components:
- *
- * - When mounting text into the DOM, adjacent text nodes are merged.
- * - Text nodes cannot be assigned a React root ID.
- *
- * This component is used to wrap strings between comment nodes so that they
- * can undergo the same reconciliation that is applied to elements.
- *
- * TODO: Investigate representing React components in the DOM with text nodes.
- *
- * @class ReactDOMTextComponent
- * @extends ReactComponent
- * @internal
- */
-var ReactDOMTextComponent = function (text) {
- // TODO: This is really a ReactText (ReactNode), not a ReactElement
- this._currentElement = text;
- this._stringText = '' + text;
- // ReactDOMComponentTree uses these:
- this._hostNode = null;
- this._hostParent = null;
-
- // Properties
- this._domID = 0;
- this._mountIndex = 0;
- this._closingComment = null;
- this._commentNodes = null;
-};
-
-_assign(ReactDOMTextComponent.prototype, {
-
- /**
- * Creates the markup for this text node. This node is not intended to have
- * any features besides containing text content.
- *
- * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
- * @return {string} Markup for this text node.
- * @internal
- */
- mountComponent: function (transaction, hostParent, hostContainerInfo, context) {
- if ("development" !== 'production') {
- var parentInfo;
- if (hostParent != null) {
- parentInfo = hostParent._ancestorInfo;
- } else if (hostContainerInfo != null) {
- parentInfo = hostContainerInfo._ancestorInfo;
- }
- if (parentInfo) {
- // parentInfo should always be present except for the top-level
- // component when server rendering
- validateDOMNesting(null, this._stringText, this, parentInfo);
- }
- }
-
- var domID = hostContainerInfo._idCounter++;
- var openingValue = ' react-text: ' + domID + ' ';
- var closingValue = ' /react-text ';
- this._domID = domID;
- this._hostParent = hostParent;
- if (transaction.useCreateElement) {
- var ownerDocument = hostContainerInfo._ownerDocument;
- var openingComment = ownerDocument.createComment(openingValue);
- var closingComment = ownerDocument.createComment(closingValue);
- var lazyTree = DOMLazyTree(ownerDocument.createDocumentFragment());
- DOMLazyTree.queueChild(lazyTree, DOMLazyTree(openingComment));
- if (this._stringText) {
- DOMLazyTree.queueChild(lazyTree, DOMLazyTree(ownerDocument.createTextNode(this._stringText)));
- }
- DOMLazyTree.queueChild(lazyTree, DOMLazyTree(closingComment));
- ReactDOMComponentTree.precacheNode(this, openingComment);
- this._closingComment = closingComment;
- return lazyTree;
- } else {
- var escapedText = escapeTextContentForBrowser(this._stringText);
-
- if (transaction.renderToStaticMarkup) {
- // Normally we'd wrap this between comment nodes for the reasons stated
- // above, but since this is a situation where React won't take over
- // (static pages), we can simply return the text as it is.
- return escapedText;
- }
-
- return '<!--' + openingValue + '-->' + escapedText + '<!--' + closingValue + '-->';
- }
- },
-
- /**
- * Updates this component by updating the text content.
- *
- * @param {ReactText} nextText The next text content
- * @param {ReactReconcileTransaction} transaction
- * @internal
- */
- receiveComponent: function (nextText, transaction) {
- if (nextText !== this._currentElement) {
- this._currentElement = nextText;
- var nextStringText = '' + nextText;
- if (nextStringText !== this._stringText) {
- // TODO: Save this as pending props and use performUpdateIfNecessary
- // and/or updateComponent to do the actual update for consistency with
- // other component types?
- this._stringText = nextStringText;
- var commentNodes = this.getHostNode();
- DOMChildrenOperations.replaceDelimitedText(commentNodes[0], commentNodes[1], nextStringText);
- }
- }
- },
-
- getHostNode: function () {
- var hostNode = this._commentNodes;
- if (hostNode) {
- return hostNode;
- }
- if (!this._closingComment) {
- var openingComment = ReactDOMComponentTree.getNodeFromInstance(this);
- var node = openingComment.nextSibling;
- while (true) {
- !(node != null) ? "development" !== 'production' ? invariant(false, 'Missing closing comment for text component %s', this._domID) : _prodInvariant('67', this._domID) : void 0;
- if (node.nodeType === 8 && node.nodeValue === ' /react-text ') {
- this._closingComment = node;
- break;
- }
- node = node.nextSibling;
- }
- }
- hostNode = [this._hostNode, this._closingComment];
- this._commentNodes = hostNode;
- return hostNode;
- },
-
- unmountComponent: function () {
- this._closingComment = null;
- this._commentNodes = null;
- ReactDOMComponentTree.uncacheNode(this);
- }
-
-});
-
-module.exports = ReactDOMTextComponent;
-},{"10":10,"109":109,"129":129,"135":135,"154":154,"162":162,"35":35,"8":8}],49:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var ReactControlledValuePropTypes = _dereq_(31);
-var ReactDOMComponentTree = _dereq_(35);
-
-var invariant = _dereq_(154);
-var warning = _dereq_(161);
-
-var didWarnValDefaultVal = false;
-
-/**
- * Implements a <textarea> host component that allows setting `value`, and
- * `defaultValue`. This differs from the traditional DOM API because value is
- * usually set as PCDATA children.
- *
- * If `value` is not supplied (or null/undefined), user actions that affect the
- * value will trigger updates to the element.
- *
- * If `value` is supplied (and not null/undefined), the rendered element will
- * not trigger updates to the element. Instead, the `value` prop must change in
- * order for the rendered element to be updated.
- *
- * The rendered element will be initialized with an empty value, the prop
- * `defaultValue` if specified, or the children content (deprecated).
- */
-var ReactDOMTextarea = {
- getHostProps: function (inst, props) {
- !(props.dangerouslySetInnerHTML == null) ? "development" !== 'production' ? invariant(false, '`dangerouslySetInnerHTML` does not make sense on <textarea>.') : _prodInvariant('91') : void 0;
-
- // Always set children to the same thing. In IE9, the selection range will
- // get reset if `textContent` is mutated. We could add a check in setTextContent
- // to only set the value if/when the value differs from the node value (which would
- // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution.
- // The value can be a boolean or object so that's why it's forced to be a string.
- var hostProps = _assign({}, props, {
- value: undefined,
- defaultValue: undefined,
- children: '' + inst._wrapperState.initialValue
- });
-
- return hostProps;
- },
-
- mountWrapper: function (inst, props) {
- if ("development" !== 'production') {
- ReactControlledValuePropTypes.checkPropTypes('textarea', props, inst._currentElement._owner);
- if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
- "development" !== 'production' ? warning(false, 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components') : void 0;
- didWarnValDefaultVal = true;
- }
- }
-
- var value = props.value;
- var initialValue = value;
-
- // Only bother fetching default value if we're going to use it
- if (value == null) {
- var defaultValue = props.defaultValue;
- // TODO (yungsters): Remove support for children content in <textarea>.
- var children = props.children;
- if (children != null) {
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.') : void 0;
- }
- !(defaultValue == null) ? "development" !== 'production' ? invariant(false, 'If you supply `defaultValue` on a <textarea>, do not pass children.') : _prodInvariant('92') : void 0;
- if (Array.isArray(children)) {
- !(children.length <= 1) ? "development" !== 'production' ? invariant(false, '<textarea> can only have at most one child.') : _prodInvariant('93') : void 0;
- children = children[0];
- }
-
- defaultValue = '' + children;
- }
- if (defaultValue == null) {
- defaultValue = '';
- }
- initialValue = defaultValue;
- }
-
- inst._wrapperState = {
- initialValue: '' + initialValue,
- listeners: null
- };
- },
-
- updateWrapper: function (inst) {
- var props = inst._currentElement.props;
-
- var node = ReactDOMComponentTree.getNodeFromInstance(inst);
- var value = props.value;
- if (value != null) {
- // Cast `value` to a string to ensure the value is set correctly. While
- // browsers typically do this as necessary, jsdom doesn't.
- var newValue = '' + value;
-
- // To avoid side effects (such as losing text selection), only set value if changed
- if (newValue !== node.value) {
- node.value = newValue;
- }
- if (props.defaultValue == null) {
- node.defaultValue = newValue;
- }
- }
- if (props.defaultValue != null) {
- node.defaultValue = props.defaultValue;
- }
- },
-
- postMountWrapper: function (inst) {
- // This is in postMount because we need access to the DOM node, which is not
- // available until after the component has mounted.
- var node = ReactDOMComponentTree.getNodeFromInstance(inst);
- var textContent = node.textContent;
-
- // Only set node.value if textContent is equal to the expected
- // initial value. In IE10/IE11 there is a bug where the placeholder attribute
- // will populate textContent as well.
- // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
- if (textContent === inst._wrapperState.initialValue) {
- node.value = textContent;
- }
- },
-
- restoreControlledState: function (inst) {
- if (inst._rootNodeID) {
- // DOM component is still mounted; update
- ReactDOMTextarea.updateWrapper(inst);
- }
- }
-
-};
-
-module.exports = ReactDOMTextarea;
-},{"129":129,"154":154,"161":161,"162":162,"31":31,"35":35}],50:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var ReactDOM = _dereq_(32);
-
-var ReactDOMUMDEntry = _assign({
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
- ReactInstanceMap: _dereq_(64)
- }
-}, ReactDOM);
-
-if ("development" !== 'production') {
- _assign(ReactDOMUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
- // ReactPerf and ReactTestUtils currently only work with the DOM renderer
- // so we expose them from here, but only in DEV mode.
- ReactPerf: _dereq_(72),
- ReactTestUtils: _dereq_(80)
- });
-}
-
-module.exports = ReactDOMUMDEntry;
-},{"162":162,"32":32,"64":64,"72":72,"80":80}],51:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var DOMProperty = _dereq_(12);
-var EventPluginRegistry = _dereq_(18);
-var ReactComponentTreeHook = _dereq_(136);
-
-var warning = _dereq_(161);
-
-if ("development" !== 'production') {
- var reactProps = {
- children: true,
- dangerouslySetInnerHTML: true,
- key: true,
- ref: true,
-
- autoFocus: true,
- defaultValue: true,
- defaultChecked: true,
- innerHTML: true,
- suppressContentEditableWarning: true,
- onFocusIn: true,
- onFocusOut: true
- };
- var warnedProperties = {};
-
- var validateProperty = function (tagName, name, debugID) {
- if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) {
- return true;
- }
- if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {
- return true;
- }
- if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) {
- return true;
- }
- warnedProperties[name] = true;
- var lowerCasedName = name.toLowerCase();
-
- // data-* attributes should be lowercase; suggest the lowercase version
- var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;
-
- var registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null;
-
- if (standardName != null) {
- "development" !== 'production' ? warning(false, 'Unknown DOM property %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- return true;
- } else if (registrationName != null) {
- "development" !== 'production' ? warning(false, 'Unknown event handler property %s. Did you mean `%s`?%s', name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- return true;
- } else {
- // We were unable to guess which prop the user intended.
- // It is likely that the user was just blindly spreading/forwarding props
- // Components should be careful to only render valid props/attributes.
- // Warning will be invoked in warnUnknownProperties to allow grouping.
- return false;
- }
- };
-}
-
-var warnUnknownProperties = function (debugID, element) {
- var unknownProps = [];
- for (var key in element.props) {
- var isValid = validateProperty(element.type, key, debugID);
- if (!isValid) {
- unknownProps.push(key);
- }
- }
-
- var unknownPropString = unknownProps.map(function (prop) {
- return '`' + prop + '`';
- }).join(', ');
-
- if (unknownProps.length === 1) {
- "development" !== 'production' ? warning(false, 'Unknown prop %s on <%s> tag. Remove this prop from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- } else if (unknownProps.length > 1) {
- "development" !== 'production' ? warning(false, 'Unknown props %s on <%s> tag. Remove these props from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;
- }
-};
-
-function handleElement(debugID, element) {
- if (element == null || typeof element.type !== 'string') {
- return;
- }
- if (element.type.indexOf('-') >= 0 || element.props.is) {
- return;
- }
- warnUnknownProperties(debugID, element);
-}
-
-var ReactDOMUnknownPropertyHook = {
- onBeforeMountComponent: function (debugID, element) {
- handleElement(debugID, element);
- },
- onBeforeUpdateComponent: function (debugID, element) {
- handleElement(debugID, element);
- }
-};
-
-module.exports = ReactDOMUnknownPropertyHook;
-},{"12":12,"136":136,"161":161,"18":18}],52:[function(_dereq_,module,exports){
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var ReactInvalidSetStateWarningHook = _dereq_(66);
-var ReactHostOperationHistoryHook = _dereq_(62);
-var ReactComponentTreeHook = _dereq_(136);
-var ExecutionEnvironment = _dereq_(140);
-
-var performanceNow = _dereq_(159);
-var warning = _dereq_(161);
-
-var hooks = [];
-var didHookThrowForEvent = {};
-
-function callHook(event, fn, context, arg1, arg2, arg3, arg4, arg5) {
- try {
- fn.call(context, arg1, arg2, arg3, arg4, arg5);
- } catch (e) {
- "development" !== 'production' ? warning(didHookThrowForEvent[event], 'Exception thrown by hook while handling %s: %s', event, e + '\n' + e.stack) : void 0;
- didHookThrowForEvent[event] = true;
- }
-}
-
-function emitEvent(event, arg1, arg2, arg3, arg4, arg5) {
- for (var i = 0; i < hooks.length; i++) {
- var hook = hooks[i];
- var fn = hook[event];
- if (fn) {
- callHook(event, fn, hook, arg1, arg2, arg3, arg4, arg5);
- }
- }
-}
-
-var isProfiling = false;
-var flushHistory = [];
-var lifeCycleTimerStack = [];
-var currentFlushNesting = 0;
-var currentFlushMeasurements = [];
-var currentFlushStartTime = 0;
-var currentTimerDebugID = null;
-var currentTimerStartTime = 0;
-var currentTimerNestedFlushDuration = 0;
-var currentTimerType = null;
-
-var lifeCycleTimerHasWarned = false;
-
-function clearHistory() {
- ReactComponentTreeHook.purgeUnmountedComponents();
- ReactHostOperationHistoryHook.clearHistory();
-}
-
-function getTreeSnapshot(registeredIDs) {
- return registeredIDs.reduce(function (tree, id) {
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var parentID = ReactComponentTreeHook.getParentID(id);
- tree[id] = {
- displayName: ReactComponentTreeHook.getDisplayName(id),
- text: ReactComponentTreeHook.getText(id),
- updateCount: ReactComponentTreeHook.getUpdateCount(id),
- childIDs: ReactComponentTreeHook.getChildIDs(id),
- // Text nodes don't have owners but this is close enough.
- ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0,
- parentID: parentID
- };
- return tree;
- }, {});
-}
-
-function resetMeasurements() {
- var previousStartTime = currentFlushStartTime;
- var previousMeasurements = currentFlushMeasurements;
- var previousOperations = ReactHostOperationHistoryHook.getHistory();
-
- if (currentFlushNesting === 0) {
- currentFlushStartTime = 0;
- currentFlushMeasurements = [];
- clearHistory();
- return;
- }
-
- if (previousMeasurements.length || previousOperations.length) {
- var registeredIDs = ReactComponentTreeHook.getRegisteredIDs();
- flushHistory.push({
- duration: performanceNow() - previousStartTime,
- measurements: previousMeasurements || [],
- operations: previousOperations || [],
- treeSnapshot: getTreeSnapshot(registeredIDs)
- });
- }
-
- clearHistory();
- currentFlushStartTime = performanceNow();
- currentFlushMeasurements = [];
-}
-
-function checkDebugID(debugID) {
- var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
-
- if (allowRoot && debugID === 0) {
- return;
- }
- if (!debugID) {
- "development" !== 'production' ? warning(false, 'ReactDebugTool: debugID may not be empty.') : void 0;
- }
-}
-
-function beginLifeCycleTimer(debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType && !lifeCycleTimerHasWarned) {
- "development" !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'Did not expect %s timer to start while %s timer is still in ' + 'progress for %s instance.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
- lifeCycleTimerHasWarned = true;
- }
- currentTimerStartTime = performanceNow();
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
-}
-
-function endLifeCycleTimer(debugID, timerType) {
- if (currentFlushNesting === 0) {
- return;
- }
- if (currentTimerType !== timerType && !lifeCycleTimerHasWarned) {
- "development" !== 'production' ? warning(false, 'There is an internal error in the React performance measurement code. ' + 'We did not expect %s timer to stop while %s timer is still in ' + 'progress for %s instance. Please report this as a bug in React.', timerType, currentTimerType || 'no', debugID === currentTimerDebugID ? 'the same' : 'another') : void 0;
- lifeCycleTimerHasWarned = true;
- }
- if (isProfiling) {
- currentFlushMeasurements.push({
- timerType: timerType,
- instanceID: debugID,
- duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration
- });
- }
- currentTimerStartTime = 0;
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = null;
- currentTimerType = null;
-}
-
-function pauseCurrentLifeCycleTimer() {
- var currentTimer = {
- startTime: currentTimerStartTime,
- nestedFlushStartTime: performanceNow(),
- debugID: currentTimerDebugID,
- timerType: currentTimerType
- };
- lifeCycleTimerStack.push(currentTimer);
- currentTimerStartTime = 0;
- currentTimerNestedFlushDuration = 0;
- currentTimerDebugID = null;
- currentTimerType = null;
-}
-
-function resumeCurrentLifeCycleTimer() {
- var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop();
-
- var startTime = _lifeCycleTimerStack$.startTime;
- var nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime;
- var debugID = _lifeCycleTimerStack$.debugID;
- var timerType = _lifeCycleTimerStack$.timerType;
-
- var nestedFlushDuration = performanceNow() - nestedFlushStartTime;
- currentTimerStartTime = startTime;
- currentTimerNestedFlushDuration += nestedFlushDuration;
- currentTimerDebugID = debugID;
- currentTimerType = timerType;
-}
-
-var lastMarkTimeStamp = 0;
-var canUsePerformanceMeasure = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
-
-function shouldMark(debugID) {
- if (!isProfiling || !canUsePerformanceMeasure) {
- return false;
- }
- var element = ReactComponentTreeHook.getElement(debugID);
- if (element == null || typeof element !== 'object') {
- return false;
- }
- var isHostElement = typeof element.type === 'string';
- if (isHostElement) {
- return false;
- }
- return true;
-}
-
-function markBegin(debugID, markType) {
- if (!shouldMark(debugID)) {
- return;
- }
-
- var markName = debugID + '::' + markType;
- lastMarkTimeStamp = performanceNow();
- performance.mark(markName);
-}
-
-function markEnd(debugID, markType) {
- if (!shouldMark(debugID)) {
- return;
- }
-
- var markName = debugID + '::' + markType;
- var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown';
-
- // Chrome has an issue of dropping markers recorded too fast:
- // https://bugs.chromium.org/p/chromium/issues/detail?id=640652
- // To work around this, we will not report very small measurements.
- // I determined the magic number by tweaking it back and forth.
- // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe.
- // When the bug is fixed, we can `measure()` unconditionally if we want to.
- var timeStamp = performanceNow();
- if (timeStamp - lastMarkTimeStamp > 0.1) {
- var measurementName = displayName + ' [' + markType + ']';
- performance.measure(measurementName, markName);
- }
-
- performance.clearMarks(markName);
- performance.clearMeasures(measurementName);
-}
-
-var ReactDebugTool = {
- addHook: function (hook) {
- hooks.push(hook);
- },
- removeHook: function (hook) {
- for (var i = 0; i < hooks.length; i++) {
- if (hooks[i] === hook) {
- hooks.splice(i, 1);
- i--;
- }
- }
- },
- isProfiling: function () {
- return isProfiling;
- },
- beginProfiling: function () {
- if (isProfiling) {
- return;
- }
-
- isProfiling = true;
- flushHistory.length = 0;
- resetMeasurements();
- ReactDebugTool.addHook(ReactHostOperationHistoryHook);
- },
- endProfiling: function () {
- if (!isProfiling) {
- return;
- }
-
- isProfiling = false;
- resetMeasurements();
- ReactDebugTool.removeHook(ReactHostOperationHistoryHook);
- },
- getFlushHistory: function () {
- return flushHistory;
- },
- onBeginFlush: function () {
- currentFlushNesting++;
- resetMeasurements();
- pauseCurrentLifeCycleTimer();
- emitEvent('onBeginFlush');
- },
- onEndFlush: function () {
- resetMeasurements();
- currentFlushNesting--;
- resumeCurrentLifeCycleTimer();
- emitEvent('onEndFlush');
- },
- onBeginLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- emitEvent('onBeginLifeCycleTimer', debugID, timerType);
- markBegin(debugID, timerType);
- beginLifeCycleTimer(debugID, timerType);
- },
- onEndLifeCycleTimer: function (debugID, timerType) {
- checkDebugID(debugID);
- endLifeCycleTimer(debugID, timerType);
- markEnd(debugID, timerType);
- emitEvent('onEndLifeCycleTimer', debugID, timerType);
- },
- onBeginProcessingChildContext: function () {
- emitEvent('onBeginProcessingChildContext');
- },
- onEndProcessingChildContext: function () {
- emitEvent('onEndProcessingChildContext');
- },
- onHostOperation: function (operation) {
- checkDebugID(operation.instanceID);
- emitEvent('onHostOperation', operation);
- },
- onSetState: function () {
- emitEvent('onSetState');
- },
- onSetChildren: function (debugID, childDebugIDs) {
- checkDebugID(debugID);
- childDebugIDs.forEach(checkDebugID);
- emitEvent('onSetChildren', debugID, childDebugIDs);
- },
- onBeforeMountComponent: function (debugID, element, parentDebugID) {
- checkDebugID(debugID);
- checkDebugID(parentDebugID, true);
- emitEvent('onBeforeMountComponent', debugID, element, parentDebugID);
- markBegin(debugID, 'mount');
- },
- onMountComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'mount');
- emitEvent('onMountComponent', debugID);
- },
- onBeforeUpdateComponent: function (debugID, element) {
- checkDebugID(debugID);
- emitEvent('onBeforeUpdateComponent', debugID, element);
- markBegin(debugID, 'update');
- },
- onUpdateComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'update');
- emitEvent('onUpdateComponent', debugID);
- },
- onBeforeUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- emitEvent('onBeforeUnmountComponent', debugID);
- markBegin(debugID, 'unmount');
- },
- onUnmountComponent: function (debugID) {
- checkDebugID(debugID);
- markEnd(debugID, 'unmount');
- emitEvent('onUnmountComponent', debugID);
- },
- onTestEvent: function () {
- emitEvent('onTestEvent');
- }
-};
-
-ReactDebugTool.addHook(ReactInvalidSetStateWarningHook);
-ReactDebugTool.addHook(ReactComponentTreeHook);
-var url = ExecutionEnvironment.canUseDOM && window.location.href || '';
-if (/[?&]react_perf\b/.test(url)) {
- ReactDebugTool.beginProfiling();
-}
-
-module.exports = ReactDebugTool;
-},{"136":136,"140":140,"159":159,"161":161,"62":62,"66":66}],53:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var ReactUpdates = _dereq_(84);
-var Transaction = _dereq_(102);
-
-var emptyFunction = _dereq_(146);
-
-var RESET_BATCHED_UPDATES = {
- initialize: emptyFunction,
- close: function () {
- ReactDefaultBatchingStrategy.isBatchingUpdates = false;
- }
-};
-
-var FLUSH_BATCHED_UPDATES = {
- initialize: emptyFunction,
- close: ReactUpdates.flushBatchedUpdates.bind(ReactUpdates)
-};
-
-var TRANSACTION_WRAPPERS = [FLUSH_BATCHED_UPDATES, RESET_BATCHED_UPDATES];
-
-function ReactDefaultBatchingStrategyTransaction() {
- this.reinitializeTransaction();
-}
-
-_assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, {
- getTransactionWrappers: function () {
- return TRANSACTION_WRAPPERS;
- }
-});
-
-var transaction = new ReactDefaultBatchingStrategyTransaction();
-
-var ReactDefaultBatchingStrategy = {
- isBatchingUpdates: false,
-
- /**
- * Call the provided function in a context within which calls to `setState`
- * and friends are batched such that components aren't updated unnecessarily.
- */
- batchedUpdates: function (callback, a, b, c, d, e) {
- var alreadyBatchingUpdates = ReactDefaultBatchingStrategy.isBatchingUpdates;
-
- ReactDefaultBatchingStrategy.isBatchingUpdates = true;
-
- // The code is written this way to avoid extra allocations
- if (alreadyBatchingUpdates) {
- return callback(a, b, c, d, e);
- } else {
- return transaction.perform(callback, null, a, b, c, d, e);
- }
- }
-};
-
-module.exports = ReactDefaultBatchingStrategy;
-},{"102":102,"146":146,"162":162,"84":84}],54:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-// The Symbol used to tag the ReactElement type. If there is no native Symbol
-// nor polyfill, then a plain number is used for performance.
-
-var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
-
-module.exports = REACT_ELEMENT_TYPE;
-},{}],55:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var emptyComponentFactory;
-
-var ReactEmptyComponentInjection = {
- injectEmptyComponentFactory: function (factory) {
- emptyComponentFactory = factory;
- }
-};
-
-var ReactEmptyComponent = {
- create: function (instantiate) {
- return emptyComponentFactory(instantiate);
- }
-};
-
-ReactEmptyComponent.injection = ReactEmptyComponentInjection;
-
-module.exports = ReactEmptyComponent;
-},{}],56:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var caughtError = null;
-
-/**
- * Call a function while guarding against errors that happens within it.
- *
- * @param {String} name of the guard to use for logging or debugging
- * @param {Function} func The function to invoke
- * @param {*} a Argument
- */
-function invokeGuardedCallback(name, func, a) {
- try {
- func(a);
- } catch (x) {
- if (caughtError === null) {
- caughtError = x;
- }
- }
-}
-
-var ReactErrorUtils = {
- invokeGuardedCallback: invokeGuardedCallback,
-
- /**
- * Invoked by ReactTestUtils.Simulate so that any errors thrown by the event
- * handler are sure to be rethrown by rethrowCaughtError.
- */
- invokeGuardedCallbackWithCatch: invokeGuardedCallback,
-
- /**
- * During execution of guarded functions we will capture the first error which
- * we will rethrow to be handled by the top level error handler.
- */
- rethrowCaughtError: function () {
- if (caughtError) {
- var error = caughtError;
- caughtError = null;
- throw error;
- }
- }
-};
-
-if ("development" !== 'production') {
- /**
- * To help development we can get better devtools integration by simulating a
- * real browser event.
- */
- if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
- var fakeNode = document.createElement('react');
- ReactErrorUtils.invokeGuardedCallback = function (name, func, a) {
- var boundFunc = func.bind(null, a);
- var evtType = 'react-' + name;
- fakeNode.addEventListener(evtType, boundFunc, false);
- var evt = document.createEvent('Event');
- evt.initEvent(evtType, false, false);
- fakeNode.dispatchEvent(evt);
- fakeNode.removeEventListener(evtType, boundFunc, false);
- };
- }
-}
-
-module.exports = ReactErrorUtils;
-},{}],57:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var EventPluginHub = _dereq_(17);
-
-function runEventQueueInBatch(events) {
- EventPluginHub.enqueueEvents(events);
- EventPluginHub.processEventQueue(false);
-}
-
-var ReactEventEmitterMixin = {
-
- /**
- * Streams a fired top-level event to `EventPluginHub` where plugins have the
- * opportunity to create `ReactEvent`s to be dispatched.
- */
- handleTopLevel: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- var events = EventPluginHub.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
- runEventQueueInBatch(events);
- }
-};
-
-module.exports = ReactEventEmitterMixin;
-},{"17":17}],58:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var EventListener = _dereq_(139);
-var ExecutionEnvironment = _dereq_(140);
-var PooledClass = _dereq_(24);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactGenericBatching = _dereq_(60);
-
-var getEventTarget = _dereq_(117);
-var getUnboundedScrollPosition = _dereq_(151);
-
-/**
- * Find the deepest React component completely containing the root of the
- * passed-in instance (for use when entire React trees are nested within each
- * other). If React trees are not nested, returns null.
- */
-function findParent(inst) {
- // TODO: It may be a good idea to cache this to prevent unnecessary DOM
- // traversal, but caching is difficult to do correctly without using a
- // mutation observer to listen for all DOM changes.
- while (inst._hostParent) {
- inst = inst._hostParent;
- }
- var rootNode = ReactDOMComponentTree.getNodeFromInstance(inst);
- var container = rootNode.parentNode;
- return ReactDOMComponentTree.getClosestInstanceFromNode(container);
-}
-
-// Used to store ancestor hierarchy in top level callback
-function TopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
- this.topLevelType = topLevelType;
- this.nativeEvent = nativeEvent;
- this.targetInst = targetInst;
- this.ancestors = [];
-}
-_assign(TopLevelCallbackBookKeeping.prototype, {
- destructor: function () {
- this.topLevelType = null;
- this.nativeEvent = null;
- this.targetInst = null;
- this.ancestors.length = 0;
- }
-});
-PooledClass.addPoolingTo(TopLevelCallbackBookKeeping, PooledClass.threeArgumentPooler);
-
-function handleTopLevelImpl(bookKeeping) {
- var targetInst = bookKeeping.targetInst;
-
- // Loop through the hierarchy, in case there's any nested components.
- // It's important that we build the array of ancestors before calling any
- // event handlers, because event handlers can modify the DOM, leading to
- // inconsistencies with ReactMount's node cache. See #1105.
- var ancestor = targetInst;
- do {
- bookKeeping.ancestors.push(ancestor);
- ancestor = ancestor && findParent(ancestor);
- } while (ancestor);
-
- for (var i = 0; i < bookKeeping.ancestors.length; i++) {
- targetInst = bookKeeping.ancestors[i];
- ReactEventListener._handleTopLevel(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent));
- }
-}
-
-function scrollValueMonitor(cb) {
- var scrollPosition = getUnboundedScrollPosition(window);
- cb(scrollPosition);
-}
-
-var ReactEventListener = {
- _enabled: true,
- _handleTopLevel: null,
-
- WINDOW_HANDLE: ExecutionEnvironment.canUseDOM ? window : null,
-
- setHandleTopLevel: function (handleTopLevel) {
- ReactEventListener._handleTopLevel = handleTopLevel;
- },
-
- setEnabled: function (enabled) {
- ReactEventListener._enabled = !!enabled;
- },
-
- isEnabled: function () {
- return ReactEventListener._enabled;
- },
-
- /**
- * Traps top-level events by using event bubbling.
- *
- * @param {string} topLevelType Record from `EventConstants`.
- * @param {string} handlerBaseName Event name (e.g. "click").
- * @param {object} element Element on which to attach listener.
- * @return {?object} An object with a remove function which will forcefully
- * remove the listener.
- * @internal
- */
- trapBubbledEvent: function (topLevelType, handlerBaseName, element) {
- if (!element) {
- return null;
- }
- return EventListener.listen(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
- },
-
- /**
- * Traps a top-level event by using event capturing.
- *
- * @param {string} topLevelType Record from `EventConstants`.
- * @param {string} handlerBaseName Event name (e.g. "click").
- * @param {object} element Element on which to attach listener.
- * @return {?object} An object with a remove function which will forcefully
- * remove the listener.
- * @internal
- */
- trapCapturedEvent: function (topLevelType, handlerBaseName, element) {
- if (!element) {
- return null;
- }
- return EventListener.capture(element, handlerBaseName, ReactEventListener.dispatchEvent.bind(null, topLevelType));
- },
-
- monitorScrollValue: function (refresh) {
- var callback = scrollValueMonitor.bind(null, refresh);
- EventListener.listen(window, 'scroll', callback);
- },
-
- dispatchEvent: function (topLevelType, nativeEvent) {
- if (!ReactEventListener._enabled) {
- return;
- }
-
- var nativeEventTarget = getEventTarget(nativeEvent);
- var targetInst = ReactDOMComponentTree.getClosestInstanceFromNode(nativeEventTarget);
-
- var bookKeeping = TopLevelCallbackBookKeeping.getPooled(topLevelType, nativeEvent, targetInst);
-
- try {
- // Event queue being processed in the same cycle allows
- // `preventDefault`.
- ReactGenericBatching.batchedUpdates(handleTopLevelImpl, bookKeeping);
- } finally {
- TopLevelCallbackBookKeeping.release(bookKeeping);
- }
- }
-};
-
-module.exports = ReactEventListener;
-},{"117":117,"139":139,"140":140,"151":151,"162":162,"24":24,"35":35,"60":60}],59:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var ReactFeatureFlags = {
- // When true, call console.time() before and .timeEnd() after each top-level
- // render (both initial renders and updates). Useful when looking at prod-mode
- // timeline profiles in Chrome, for example.
- logTopLevelRenders: false
-};
-
-module.exports = ReactFeatureFlags;
-},{}],60:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactControlledComponent = _dereq_(30);
-
-// Used as a way to call batchedUpdates when we don't know if we're in a Fiber
-// or Stack context. Such as when we're dispatching events or if third party
-// libraries need to call batchedUpdates. Eventually, this API will go away when
-// everything is batched by default. We'll then have a similar API to opt-out of
-// scheduled work and instead do synchronous work.
-
-// Defaults
-var stackBatchedUpdates = function (fn, a, b, c, d, e) {
- fn(a, b, c, d, e);
-};
-var fiberPerformSynchronousWork = function (fn, bookkeeping) {
- fn(bookkeeping);
-};
-
-function performFiberBatchedUpdates(fn, bookkeeping) {
- // If we have Fiber loaded, we need to wrap this in a batching call so that
- // Fiber can apply its default priority for this call.
- fiberPerformSynchronousWork(fn, bookkeeping);
-}
-function batchedUpdates(fn, bookkeeping) {
- // We first perform work with the stack batching strategy, by passing our
- // indirection to it.
- stackBatchedUpdates(performFiberBatchedUpdates, fn, bookkeeping);
-}
-
-var isNestingBatched = false;
-function batchedUpdatesWithControlledComponents(fn, bookkeeping) {
- if (isNestingBatched) {
- // If we are currently inside another batch, we need to wait until it
- // fully completes before restoring state. Therefore, we add the target to
- // a queue of work.
- batchedUpdates(fn, bookkeeping);
- return;
- }
- isNestingBatched = true;
- try {
- batchedUpdates(fn, bookkeeping);
- } finally {
- // Here we wait until all updates have propagated, which is important
- // when using controlled components within layers:
- // https://github.com/facebook/react/issues/1698
- // Then we restore state of any controlled component.
- isNestingBatched = false;
- ReactControlledComponent.restoreStateIfNeeded();
- }
-}
-
-var ReactGenericBatchingInjection = {
- injectStackBatchedUpdates: function (_batchedUpdates) {
- stackBatchedUpdates = _batchedUpdates;
- },
- injectFiberPerformSynchronousWork: function (_performSynchronousWork) {
- fiberPerformSynchronousWork = _performSynchronousWork;
- }
-};
-
-var ReactGenericBatching = {
- batchedUpdates: batchedUpdatesWithControlledComponents,
- injection: ReactGenericBatchingInjection
-};
-
-module.exports = ReactGenericBatching;
-},{"30":30}],61:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-var genericComponentClass = null;
-var textComponentClass = null;
-
-var ReactHostComponentInjection = {
- // This accepts a class that receives the tag string. This is a catch all
- // that can render any kind of tag.
- injectGenericComponentClass: function (componentClass) {
- genericComponentClass = componentClass;
- },
- // This accepts a text component class that takes the text string to be
- // rendered as props.
- injectTextComponentClass: function (componentClass) {
- textComponentClass = componentClass;
- }
-};
-
-/**
- * Get a host internal component class for a specific tag.
- *
- * @param {ReactElement} element The element to create.
- * @return {function} The internal class constructor function.
- */
-function createInternalComponent(element) {
- !genericComponentClass ? "development" !== 'production' ? invariant(false, 'There is no registered component for the tag %s', element.type) : _prodInvariant('111', element.type) : void 0;
- return new genericComponentClass(element);
-}
-
-/**
- * @param {ReactText} text
- * @return {ReactComponent}
- */
-function createInstanceForText(text) {
- return new textComponentClass(text);
-}
-
-/**
- * @param {ReactComponent} component
- * @return {boolean}
- */
-function isTextComponent(component) {
- return component instanceof textComponentClass;
-}
-
-var ReactHostComponent = {
- createInternalComponent: createInternalComponent,
- createInstanceForText: createInstanceForText,
- isTextComponent: isTextComponent,
- injection: ReactHostComponentInjection
-};
-
-module.exports = ReactHostComponent;
-},{"129":129,"154":154}],62:[function(_dereq_,module,exports){
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var history = [];
-
-var ReactHostOperationHistoryHook = {
- onHostOperation: function (operation) {
- history.push(operation);
- },
- clearHistory: function () {
- if (ReactHostOperationHistoryHook._preventClearing) {
- // Should only be used for tests.
- return;
- }
-
- history = [];
- },
- getHistory: function () {
- return history;
- }
-};
-
-module.exports = ReactHostOperationHistoryHook;
-},{}],63:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactDOMSelection = _dereq_(46);
-
-var containsNode = _dereq_(143);
-var focusNode = _dereq_(148);
-var getActiveElement = _dereq_(149);
-
-function isInDocument(node) {
- return containsNode(document.documentElement, node);
-}
-
-/**
- * @ReactInputSelection: React input selection module. Based on Selection.js,
- * but modified to be suitable for react and has a couple of bug fixes (doesn't
- * assume buttons have range selections allowed).
- * Input selection module for React.
- */
-var ReactInputSelection = {
-
- hasSelectionCapabilities: function (elem) {
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
- return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true');
- },
-
- getSelectionInformation: function () {
- var focusedElem = getActiveElement();
- return {
- focusedElem: focusedElem,
- selectionRange: ReactInputSelection.hasSelectionCapabilities(focusedElem) ? ReactInputSelection.getSelection(focusedElem) : null
- };
- },
-
- /**
- * @restoreSelection: If any selection information was potentially lost,
- * restore it. This is useful when performing operations that could remove dom
- * nodes and place them back in, resulting in focus being lost.
- */
- restoreSelection: function (priorSelectionInformation) {
- var curFocusedElem = getActiveElement();
- var priorFocusedElem = priorSelectionInformation.focusedElem;
- var priorSelectionRange = priorSelectionInformation.selectionRange;
- if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
- if (ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)) {
- ReactInputSelection.setSelection(priorFocusedElem, priorSelectionRange);
- }
- focusNode(priorFocusedElem);
- }
- },
-
- /**
- * @getSelection: Gets the selection bounds of a focused textarea, input or
- * contentEditable node.
- * -@input: Look up selection bounds of this input
- * -@return {start: selectionStart, end: selectionEnd}
- */
- getSelection: function (input) {
- var selection;
-
- if ('selectionStart' in input) {
- // Modern browser with input or textarea.
- selection = {
- start: input.selectionStart,
- end: input.selectionEnd
- };
- } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {
- // IE8 input.
- var range = document.selection.createRange();
- // There can only be one selection per document in IE, so it must
- // be in our element.
- if (range.parentElement() === input) {
- selection = {
- start: -range.moveStart('character', -input.value.length),
- end: -range.moveEnd('character', -input.value.length)
- };
- }
- } else {
- // Content editable or old IE textarea.
- selection = ReactDOMSelection.getOffsets(input);
- }
-
- return selection || { start: 0, end: 0 };
- },
-
- /**
- * @setSelection: Sets the selection bounds of a textarea or input and focuses
- * the input.
- * -@input Set selection bounds of this input or textarea
- * -@offsets Object of same form that is returned from get*
- */
- setSelection: function (input, offsets) {
- var start = offsets.start;
- var end = offsets.end;
- if (end === undefined) {
- end = start;
- }
-
- if ('selectionStart' in input) {
- input.selectionStart = start;
- input.selectionEnd = Math.min(end, input.value.length);
- } else if (document.selection && input.nodeName && input.nodeName.toLowerCase() === 'input') {
- var range = input.createTextRange();
- range.collapse(true);
- range.moveStart('character', start);
- range.moveEnd('character', end - start);
- range.select();
- } else {
- ReactDOMSelection.setOffsets(input, offsets);
- }
- }
-};
-
-module.exports = ReactInputSelection;
-},{"143":143,"148":148,"149":149,"46":46}],64:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * `ReactInstanceMap` maintains a mapping from a public facing stateful
- * instance (key) and the internal representation (value). This allows public
- * methods to accept the user facing instance as an argument and map them back
- * to internal methods.
- */
-
-// TODO: Replace this with ES6: var ReactInstanceMap = new Map();
-
-var ReactInstanceMap = {
-
- /**
- * This API should be called `delete` but we'd have to make sure to always
- * transform these to strings for IE support. When this transform is fully
- * supported we can rename it.
- */
- remove: function (key) {
- key._reactInternalInstance = undefined;
- },
-
- get: function (key) {
- return key._reactInternalInstance;
- },
-
- has: function (key) {
- return key._reactInternalInstance !== undefined;
- },
-
- set: function (key, value) {
- key._reactInternalInstance = value;
- }
-
-};
-
-module.exports = ReactInstanceMap;
-},{}],65:[function(_dereq_,module,exports){
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-// Trust the developer to only use ReactInstrumentation with a __DEV__ check
-
-var debugTool = null;
-
-if ("development" !== 'production') {
- var ReactDebugTool = _dereq_(52);
- debugTool = ReactDebugTool;
-}
-
-module.exports = { debugTool: debugTool };
-},{"52":52}],66:[function(_dereq_,module,exports){
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var warning = _dereq_(161);
-
-if ("development" !== 'production') {
- var processingChildContext = false;
-
- var warnInvalidSetState = function () {
- "development" !== 'production' ? warning(!processingChildContext, 'setState(...): Cannot call setState() inside getChildContext()') : void 0;
- };
-}
-
-var ReactInvalidSetStateWarningHook = {
- onBeginProcessingChildContext: function () {
- processingChildContext = true;
- },
- onEndProcessingChildContext: function () {
- processingChildContext = false;
- },
- onSetState: function () {
- warnInvalidSetState();
- }
-};
-
-module.exports = ReactInvalidSetStateWarningHook;
-},{"161":161}],67:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var adler32 = _dereq_(105);
-
-var TAG_END = /\/?>/;
-var COMMENT_START = /^<\!\-\-/;
-
-var ReactMarkupChecksum = {
- CHECKSUM_ATTR_NAME: 'data-react-checksum',
-
- /**
- * @param {string} markup Markup string
- * @return {string} Markup string with checksum attribute attached
- */
- addChecksumToMarkup: function (markup) {
- var checksum = adler32(markup);
-
- // Add checksum (handle both parent tags, comments and self-closing tags)
- if (COMMENT_START.test(markup)) {
- return markup;
- } else {
- return markup.replace(TAG_END, ' ' + ReactMarkupChecksum.CHECKSUM_ATTR_NAME + '="' + checksum + '"$&');
- }
- },
-
- /**
- * @param {string} markup to use
- * @param {DOMElement} element root React element
- * @returns {boolean} whether or not the markup is the same
- */
- canReuseMarkup: function (markup, element) {
- var existingChecksum = element.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
- existingChecksum = existingChecksum && parseInt(existingChecksum, 10);
- var markupChecksum = adler32(markup);
- return markupChecksum === existingChecksum;
- }
-};
-
-module.exports = ReactMarkupChecksum;
-},{"105":105}],68:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var DOMLazyTree = _dereq_(10);
-var DOMProperty = _dereq_(12);
-var React = _dereq_(138);
-var ReactBrowserEventEmitter = _dereq_(25);
-var ReactCurrentOwner = _dereq_(137);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactDOMContainerInfo = _dereq_(36);
-var ReactDOMFeatureFlags = _dereq_(38);
-var ReactFeatureFlags = _dereq_(59);
-var ReactInstanceMap = _dereq_(64);
-var ReactInstrumentation = _dereq_(65);
-var ReactMarkupChecksum = _dereq_(67);
-var ReactReconciler = _dereq_(75);
-var ReactUpdateQueue = _dereq_(83);
-var ReactUpdates = _dereq_(84);
-
-var emptyObject = _dereq_(147);
-var instantiateReactComponent = _dereq_(125);
-var invariant = _dereq_(154);
-var setInnerHTML = _dereq_(131);
-var shouldUpdateReactComponent = _dereq_(133);
-var warning = _dereq_(161);
-
-var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME;
-var ROOT_ATTR_NAME = DOMProperty.ROOT_ATTRIBUTE_NAME;
-
-var ELEMENT_NODE_TYPE = 1;
-var DOC_NODE_TYPE = 9;
-var DOCUMENT_FRAGMENT_NODE_TYPE = 11;
-
-var instancesByReactRootID = {};
-
-/**
- * Finds the index of the first character
- * that's not common between the two given strings.
- *
- * @return {number} the index of the character where the strings diverge
- */
-function firstDifferenceIndex(string1, string2) {
- var minLen = Math.min(string1.length, string2.length);
- for (var i = 0; i < minLen; i++) {
- if (string1.charAt(i) !== string2.charAt(i)) {
- return i;
- }
- }
- return string1.length === string2.length ? -1 : minLen;
-}
-
-/**
- * @param {DOMElement|DOMDocument} container DOM element that may contain
- * a React component
- * @return {?*} DOM element that may have the reactRoot ID, or null.
- */
-function getReactRootElementInContainer(container) {
- if (!container) {
- return null;
- }
-
- if (container.nodeType === DOC_NODE_TYPE) {
- return container.documentElement;
- } else {
- return container.firstChild;
- }
-}
-
-function internalGetID(node) {
- // If node is something like a window, document, or text node, none of
- // which support attributes or a .getAttribute method, gracefully return
- // the empty string, as if the attribute were missing.
- return node.getAttribute && node.getAttribute(ATTR_NAME) || '';
-}
-
-/**
- * Mounts this component and inserts it into the DOM.
- *
- * @param {ReactComponent} componentInstance The instance to mount.
- * @param {DOMElement} container DOM element to mount into.
- * @param {ReactReconcileTransaction} transaction
- * @param {boolean} shouldReuseMarkup If true, do not insert markup
- */
-function mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) {
- var markerName;
- if (ReactFeatureFlags.logTopLevelRenders) {
- var wrappedElement = wrapperInstance._currentElement.props.child;
- var type = wrappedElement.type;
- markerName = 'React mount: ' + (typeof type === 'string' ? type : type.displayName || type.name);
- console.time(markerName);
- }
-
- var markup = ReactReconciler.mountComponent(wrapperInstance, transaction, null, ReactDOMContainerInfo(wrapperInstance, container), context, 0 /* parentDebugID */
- );
-
- if (markerName) {
- console.timeEnd(markerName);
- }
-
- wrapperInstance._renderedComponent._topLevelWrapper = wrapperInstance;
- ReactMount._mountImageIntoNode(markup, container, wrapperInstance, shouldReuseMarkup, transaction);
-}
-
-/**
- * Batched mount.
- *
- * @param {ReactComponent} componentInstance The instance to mount.
- * @param {DOMElement} container DOM element to mount into.
- * @param {boolean} shouldReuseMarkup If true, do not insert markup
- */
-function batchedMountComponentIntoNode(componentInstance, container, shouldReuseMarkup, context) {
- var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(
- /* useCreateElement */
- !shouldReuseMarkup && ReactDOMFeatureFlags.useCreateElement);
- transaction.perform(mountComponentIntoNode, null, componentInstance, container, transaction, shouldReuseMarkup, context);
- ReactUpdates.ReactReconcileTransaction.release(transaction);
-}
-
-/**
- * Unmounts a component and removes it from the DOM.
- *
- * @param {ReactComponent} instance React component instance.
- * @param {DOMElement} container DOM element to unmount from.
- * @final
- * @internal
- * @see {ReactMount.unmountComponentAtNode}
- */
-function unmountComponentFromNode(instance, container) {
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onBeginFlush();
- }
- ReactReconciler.unmountComponent(instance, false /* safely */
- , false /* skipLifecycle */
- );
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onEndFlush();
- }
-
- if (container.nodeType === DOC_NODE_TYPE) {
- container = container.documentElement;
- }
-
- // http://jsperf.com/emptying-a-node
- while (container.lastChild) {
- container.removeChild(container.lastChild);
- }
-}
-
-/**
- * True if the supplied DOM node has a direct React-rendered child that is
- * not a React root element. Useful for warning in `render`,
- * `unmountComponentAtNode`, etc.
- *
- * @param {?DOMElement} node The candidate DOM node.
- * @return {boolean} True if the DOM element contains a direct child that was
- * rendered by React but is not a root element.
- * @internal
- */
-function hasNonRootReactChild(container) {
- var rootEl = getReactRootElementInContainer(container);
- if (rootEl) {
- var inst = ReactDOMComponentTree.getInstanceFromNode(rootEl);
- return !!(inst && inst._hostParent);
- }
-}
-
-/**
- * True if the supplied DOM node is a React DOM element and
- * it has been rendered by another copy of React.
- *
- * @param {?DOMElement} node The candidate DOM node.
- * @return {boolean} True if the DOM has been rendered by another copy of React
- * @internal
- */
-function nodeIsRenderedByOtherInstance(container) {
- var rootEl = getReactRootElementInContainer(container);
- return !!(rootEl && isReactNode(rootEl) && !ReactDOMComponentTree.getInstanceFromNode(rootEl));
-}
-
-/**
- * True if the supplied DOM node is a valid node element.
- *
- * @param {?DOMElement} node The candidate DOM node.
- * @return {boolean} True if the DOM is a valid DOM node.
- * @internal
- */
-function isValidContainer(node) {
- return !!(node && (node.nodeType === ELEMENT_NODE_TYPE || node.nodeType === DOC_NODE_TYPE || node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE));
-}
-
-/**
- * True if the supplied DOM node is a valid React node element.
- *
- * @param {?DOMElement} node The candidate DOM node.
- * @return {boolean} True if the DOM is a valid React DOM node.
- * @internal
- */
-function isReactNode(node) {
- return isValidContainer(node) && (node.hasAttribute(ROOT_ATTR_NAME) || node.hasAttribute(ATTR_NAME));
-}
-
-function getHostRootInstanceInContainer(container) {
- var rootEl = getReactRootElementInContainer(container);
- var prevHostInstance = rootEl && ReactDOMComponentTree.getInstanceFromNode(rootEl);
- return prevHostInstance && !prevHostInstance._hostParent ? prevHostInstance : null;
-}
-
-function getTopLevelWrapperInContainer(container) {
- var root = getHostRootInstanceInContainer(container);
- return root ? root._hostContainerInfo._topLevelWrapper : null;
-}
-
-/**
- * Temporary (?) hack so that we can store all top-level pending updates on
- * composites instead of having to worry about different types of components
- * here.
- */
-var topLevelRootCounter = 1;
-var TopLevelWrapper = function () {
- this.rootID = topLevelRootCounter++;
-};
-TopLevelWrapper.prototype.isReactComponent = {};
-if ("development" !== 'production') {
- TopLevelWrapper.displayName = 'TopLevelWrapper';
-}
-TopLevelWrapper.prototype.render = function () {
- return this.props.child;
-};
-TopLevelWrapper.isReactTopLevelWrapper = true;
-
-/**
- * Mounting is the process of initializing a React component by creating its
- * representative DOM elements and inserting them into a supplied `container`.
- * Any prior content inside `container` is destroyed in the process.
- *
- * ReactMount.render(
- * component,
- * document.getElementById('container')
- * );
- *
- * <div id="container"> <-- Supplied `container`.
- * <div data-reactid=".3"> <-- Rendered reactRoot of React
- * // ... component.
- * </div>
- * </div>
- *
- * Inside of `container`, the first element rendered is the "reactRoot".
- */
-var ReactMount = {
-
- TopLevelWrapper: TopLevelWrapper,
-
- /**
- * Used by devtools. The keys are not important.
- */
- _instancesByReactRootID: instancesByReactRootID,
-
- /**
- * This is a hook provided to support rendering React components while
- * ensuring that the apparent scroll position of its `container` does not
- * change.
- *
- * @param {DOMElement} container The `container` being rendered into.
- * @param {function} renderCallback This must be called once to do the render.
- */
- scrollMonitor: function (container, renderCallback) {
- renderCallback();
- },
-
- /**
- * Take a component that's already mounted into the DOM and replace its props
- * @param {ReactComponent} prevComponent component instance already in the DOM
- * @param {ReactElement} nextElement component instance to render
- * @param {DOMElement} container container to render into
- * @param {?function} callback function triggered on completion
- */
- _updateRootComponent: function (prevComponent, nextElement, nextContext, container, callback) {
- ReactMount.scrollMonitor(container, function () {
- ReactUpdateQueue.enqueueElementInternal(prevComponent, nextElement, nextContext);
- if (callback) {
- ReactUpdateQueue.enqueueCallbackInternal(prevComponent, callback);
- }
- });
-
- return prevComponent;
- },
-
- /**
- * Render a new component into the DOM. Hooked by hooks!
- *
- * @param {ReactElement} nextElement element to render
- * @param {DOMElement} container container to render into
- * @param {boolean} shouldReuseMarkup if we should skip the markup insertion
- * @return {ReactComponent} nextComponent
- */
- _renderNewRootComponent: function (nextElement, container, shouldReuseMarkup, context, callback) {
- // Various parts of our code (such as ReactCompositeComponent's
- // _renderValidatedComponent) assume that calls to render aren't nested;
- // verify that that's the case.
- "development" !== 'production' ? warning(ReactCurrentOwner.current == null, '_renderNewRootComponent(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from ' + 'render is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;
-
- !isValidContainer(container) ? "development" !== 'production' ? invariant(false, '_registerComponent(...): Target container is not a DOM element.') : _prodInvariant('37') : void 0;
-
- ReactBrowserEventEmitter.ensureScrollValueMonitoring();
- var componentInstance = instantiateReactComponent(nextElement, false);
-
- if (callback) {
- componentInstance._pendingCallbacks = [function () {
- callback.call(componentInstance._renderedComponent.getPublicInstance());
- }];
- }
-
- // The initial render is synchronous but any updates that happen during
- // rendering, in componentWillMount or componentDidMount, will be batched
- // according to the current batching strategy.
-
- ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, componentInstance, container, shouldReuseMarkup, context);
-
- var wrapperID = componentInstance._instance.rootID;
- instancesByReactRootID[wrapperID] = componentInstance;
-
- return componentInstance;
- },
-
- /**
- * Renders a React component into the DOM in the supplied `container`.
- *
- * If the React component was previously rendered into `container`, this will
- * perform an update on it and only mutate the DOM as necessary to reflect the
- * latest React component.
- *
- * @param {ReactComponent} parentComponent The conceptual parent of this render tree.
- * @param {ReactElement} nextElement Component element to render.
- * @param {DOMElement} container DOM element to render into.
- * @param {?function} callback function triggered on completion
- * @return {ReactComponent} Component instance rendered in `container`.
- */
- renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {
- !(parentComponent != null && ReactInstanceMap.has(parentComponent)) ? "development" !== 'production' ? invariant(false, 'parentComponent must be a valid React Component') : _prodInvariant('38') : void 0;
- return ReactMount._renderSubtreeIntoContainer(parentComponent, nextElement, container, callback);
- },
-
- _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) {
- ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render');
- !React.isValidElement(nextElement) ? "development" !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' :
- // Check if it quacks like an element
- nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : _prodInvariant('39', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : void 0;
-
- "development" !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
-
- var nextWrappedElement = React.createElement(TopLevelWrapper, { child: nextElement });
-
- var nextContext;
- if (parentComponent) {
- var parentInst = ReactInstanceMap.get(parentComponent);
- nextContext = parentInst._processChildContext(parentInst._context);
- } else {
- nextContext = emptyObject;
- }
-
- var prevComponent = getTopLevelWrapperInContainer(container);
-
- if (prevComponent) {
- var prevWrappedElement = prevComponent._currentElement;
- var prevElement = prevWrappedElement.props.child;
- if (shouldUpdateReactComponent(prevElement, nextElement)) {
- var publicInst = prevComponent._renderedComponent.getPublicInstance();
- var updatedCallback = callback && function () {
- callback.call(publicInst);
- };
- ReactMount._updateRootComponent(prevComponent, nextWrappedElement, nextContext, container, updatedCallback);
- return publicInst;
- } else {
- ReactMount.unmountComponentAtNode(container);
- }
- }
-
- var reactRootElement = getReactRootElementInContainer(container);
- var containerHasReactMarkup = reactRootElement && !!internalGetID(reactRootElement);
- var containerHasNonRootReactChild = hasNonRootReactChild(container);
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(!containerHasNonRootReactChild, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;
-
- if (!containerHasReactMarkup || reactRootElement.nextSibling) {
- var rootElementSibling = reactRootElement;
- while (rootElementSibling) {
- if (internalGetID(rootElementSibling)) {
- "development" !== 'production' ? warning(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.') : void 0;
- break;
- }
- rootElementSibling = rootElementSibling.nextSibling;
- }
- }
- }
-
- var shouldReuseMarkup = containerHasReactMarkup && !prevComponent && !containerHasNonRootReactChild;
- var component = ReactMount._renderNewRootComponent(nextWrappedElement, container, shouldReuseMarkup, nextContext, callback)._renderedComponent.getPublicInstance();
- return component;
- },
-
- /**
- * Renders a React component into the DOM in the supplied `container`.
- * See https://facebook.github.io/react/docs/react-dom.html#render
- *
- * If the React component was previously rendered into `container`, this will
- * perform an update on it and only mutate the DOM as necessary to reflect the
- * latest React component.
- *
- * @param {ReactElement} nextElement Component element to render.
- * @param {DOMElement} container DOM element to render into.
- * @param {?function} callback function triggered on completion
- * @return {ReactComponent} Component instance rendered in `container`.
- */
- render: function (nextElement, container, callback) {
- return ReactMount._renderSubtreeIntoContainer(null, nextElement, container, callback);
- },
-
- /**
- * Unmounts and destroys the React component rendered in the `container`.
- * See https://facebook.github.io/react/docs/react-dom.html#unmountcomponentatnode
- *
- * @param {DOMElement} container DOM element containing a React component.
- * @return {boolean} True if a component was found in and unmounted from
- * `container`
- */
- unmountComponentAtNode: function (container) {
- // Various parts of our code (such as ReactCompositeComponent's
- // _renderValidatedComponent) assume that calls to render aren't nested;
- // verify that that's the case. (Strictly speaking, unmounting won't cause a
- // render but we still don't expect to be in a render call here.)
- "development" !== 'production' ? warning(ReactCurrentOwner.current == null, 'unmountComponentAtNode(): Render methods should be a pure function ' + 'of props and state; triggering nested component updates from render ' + 'is not allowed. If necessary, trigger nested updates in ' + 'componentDidUpdate. Check the render method of %s.', ReactCurrentOwner.current && ReactCurrentOwner.current.getName() || 'ReactCompositeComponent') : void 0;
-
- !isValidContainer(container) ? "development" !== 'production' ? invariant(false, 'unmountComponentAtNode(...): Target container is not a DOM element.') : _prodInvariant('40') : void 0;
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(!nodeIsRenderedByOtherInstance(container), 'unmountComponentAtNode(): The node you\'re attempting to unmount ' + 'was rendered by another copy of React.') : void 0;
- }
-
- var prevComponent = getTopLevelWrapperInContainer(container);
- if (!prevComponent) {
- // Check if the node being unmounted was rendered by React, but isn't a
- // root node.
- var containerHasNonRootReactChild = hasNonRootReactChild(container);
-
- // Check if the container itself is a React root node.
- var isContainerReactRoot = container.nodeType === 1 && container.hasAttribute(ROOT_ATTR_NAME);
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(!containerHasNonRootReactChild, 'unmountComponentAtNode(): The node you\'re attempting to unmount ' + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
- }
-
- return false;
- }
- delete instancesByReactRootID[prevComponent._instance.rootID];
- ReactUpdates.batchedUpdates(unmountComponentFromNode, prevComponent, container);
- return true;
- },
-
- _mountImageIntoNode: function (markup, container, instance, shouldReuseMarkup, transaction) {
- !isValidContainer(container) ? "development" !== 'production' ? invariant(false, 'mountComponentIntoNode(...): Target container is not valid.') : _prodInvariant('41') : void 0;
-
- if (shouldReuseMarkup) {
- var rootElement = getReactRootElementInContainer(container);
- if (ReactMarkupChecksum.canReuseMarkup(markup, rootElement)) {
- ReactDOMComponentTree.precacheNode(instance, rootElement);
- return;
- } else {
- var checksum = rootElement.getAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
- rootElement.removeAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME);
-
- var rootMarkup = rootElement.outerHTML;
- rootElement.setAttribute(ReactMarkupChecksum.CHECKSUM_ATTR_NAME, checksum);
-
- var normalizedMarkup = markup;
- if ("development" !== 'production') {
- // because rootMarkup is retrieved from the DOM, various normalizations
- // will have occurred which will not be present in `markup`. Here,
- // insert markup into a <div> or <iframe> depending on the container
- // type to perform the same normalizations before comparing.
- var normalizer;
- if (container.nodeType === ELEMENT_NODE_TYPE) {
- normalizer = document.createElement('div');
- normalizer.innerHTML = markup;
- normalizedMarkup = normalizer.innerHTML;
- } else {
- normalizer = document.createElement('iframe');
- document.body.appendChild(normalizer);
- normalizer.contentDocument.write(markup);
- normalizedMarkup = normalizer.contentDocument.documentElement.outerHTML;
- document.body.removeChild(normalizer);
- }
- }
-
- var diffIndex = firstDifferenceIndex(normalizedMarkup, rootMarkup);
- var difference = ' (client) ' + normalizedMarkup.substring(diffIndex - 20, diffIndex + 20) + '\n (server) ' + rootMarkup.substring(diffIndex - 20, diffIndex + 20);
-
- !(container.nodeType !== DOC_NODE_TYPE) ? "development" !== 'production' ? invariant(false, 'You\'re trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s', difference) : _prodInvariant('42', difference) : void 0;
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(false, 'React attempted to reuse markup in a container but the ' + 'checksum was invalid. This generally means that you are ' + 'using server rendering and the markup generated on the ' + 'server was not what the client was expecting. React injected ' + 'new markup to compensate which works but you have lost many ' + 'of the benefits of server rendering. Instead, figure out ' + 'why the markup being generated is different on the client ' + 'or server:\n%s', difference) : void 0;
- }
- }
- }
-
- !(container.nodeType !== DOC_NODE_TYPE) ? "development" !== 'production' ? invariant(false, 'You\'re trying to render a component to the document but you didn\'t use server rendering. We can\'t do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering.') : _prodInvariant('43') : void 0;
-
- if (transaction.useCreateElement) {
- while (container.lastChild) {
- container.removeChild(container.lastChild);
- }
- DOMLazyTree.insertTreeBefore(container, markup, null);
- } else {
- setInnerHTML(container, markup);
- ReactDOMComponentTree.precacheNode(instance, container.firstChild);
- }
-
- if ("development" !== 'production') {
- var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild);
- if (hostNode._debugID !== 0) {
- ReactInstrumentation.debugTool.onHostOperation({
- instanceID: hostNode._debugID,
- type: 'mount',
- payload: markup.toString()
- });
- }
- }
- }
-};
-
-module.exports = ReactMount;
-},{"10":10,"12":12,"125":125,"129":129,"131":131,"133":133,"137":137,"138":138,"147":147,"154":154,"161":161,"25":25,"35":35,"36":36,"38":38,"59":59,"64":64,"65":65,"67":67,"75":75,"83":83,"84":84}],69:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var ReactComponentEnvironment = _dereq_(28);
-var ReactInstanceMap = _dereq_(64);
-var ReactInstrumentation = _dereq_(65);
-
-var ReactCurrentOwner = _dereq_(137);
-var ReactReconciler = _dereq_(75);
-var ReactChildReconciler = _dereq_(26);
-
-var emptyFunction = _dereq_(146);
-var flattenChildren = _dereq_(111);
-var invariant = _dereq_(154);
-
-/**
- * Make an update for markup to be rendered and inserted at a supplied index.
- *
- * @param {string} markup Markup that renders into an element.
- * @param {number} toIndex Destination index.
- * @private
- */
-function makeInsertMarkup(markup, afterNode, toIndex) {
- // NOTE: Null values reduce hidden classes.
- return {
- type: 'INSERT_MARKUP',
- content: markup,
- fromIndex: null,
- fromNode: null,
- toIndex: toIndex,
- afterNode: afterNode
- };
-}
-
-/**
- * Make an update for moving an existing element to another index.
- *
- * @param {number} fromIndex Source index of the existing element.
- * @param {number} toIndex Destination index of the element.
- * @private
- */
-function makeMove(child, afterNode, toIndex) {
- // NOTE: Null values reduce hidden classes.
- return {
- type: 'MOVE_EXISTING',
- content: null,
- fromIndex: child._mountIndex,
- fromNode: ReactReconciler.getHostNode(child),
- toIndex: toIndex,
- afterNode: afterNode
- };
-}
-
-/**
- * Make an update for removing an element at an index.
- *
- * @param {number} fromIndex Index of the element to remove.
- * @private
- */
-function makeRemove(child, node) {
- // NOTE: Null values reduce hidden classes.
- return {
- type: 'REMOVE_NODE',
- content: null,
- fromIndex: child._mountIndex,
- fromNode: node,
- toIndex: null,
- afterNode: null
- };
-}
-
-/**
- * Make an update for setting the markup of a node.
- *
- * @param {string} markup Markup that renders into an element.
- * @private
- */
-function makeSetMarkup(markup) {
- // NOTE: Null values reduce hidden classes.
- return {
- type: 'SET_MARKUP',
- content: markup,
- fromIndex: null,
- fromNode: null,
- toIndex: null,
- afterNode: null
- };
-}
-
-/**
- * Make an update for setting the text content.
- *
- * @param {string} textContent Text content to set.
- * @private
- */
-function makeTextContent(textContent) {
- // NOTE: Null values reduce hidden classes.
- return {
- type: 'TEXT_CONTENT',
- content: textContent,
- fromIndex: null,
- fromNode: null,
- toIndex: null,
- afterNode: null
- };
-}
-
-/**
- * Push an update, if any, onto the queue. Creates a new queue if none is
- * passed and always returns the queue. Mutative.
- */
-function enqueue(queue, update) {
- if (update) {
- queue = queue || [];
- queue.push(update);
- }
- return queue;
-}
-
-/**
- * Processes any enqueued updates.
- *
- * @private
- */
-function processQueue(inst, updateQueue) {
- ReactComponentEnvironment.processChildrenUpdates(inst, updateQueue);
-}
-
-var setChildrenForInstrumentation = emptyFunction;
-if ("development" !== 'production') {
- var getDebugID = function (inst) {
- if (!inst._debugID) {
- // Check for ART-like instances. TODO: This is silly/gross.
- var internal;
- if (internal = ReactInstanceMap.get(inst)) {
- inst = internal;
- }
- }
- return inst._debugID;
- };
- setChildrenForInstrumentation = function (children) {
- var debugID = getDebugID(this);
- // TODO: React Native empty components are also multichild.
- // This means they still get into this method but don't have _debugID.
- if (debugID !== 0) {
- ReactInstrumentation.debugTool.onSetChildren(debugID, children ? Object.keys(children).map(function (key) {
- return children[key]._debugID;
- }) : []);
- }
- };
-}
-
-/**
- * Provides common functionality for components that must reconcile multiple
- * children. This is used by `ReactDOMComponent` to mount, update, and
- * unmount child components.
- */
-var ReactMultiChild = {
- _reconcilerInstantiateChildren: function (nestedChildren, transaction, context) {
- if ("development" !== 'production') {
- var selfDebugID = getDebugID(this);
- if (this._currentElement) {
- try {
- ReactCurrentOwner.current = this._currentElement._owner;
- return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context, selfDebugID);
- } finally {
- ReactCurrentOwner.current = null;
- }
- }
- }
- return ReactChildReconciler.instantiateChildren(nestedChildren, transaction, context);
- },
-
- _reconcilerUpdateChildren: function (prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context) {
- var nextChildren;
- var selfDebugID = 0;
- if ("development" !== 'production') {
- selfDebugID = getDebugID(this);
- if (this._currentElement) {
- try {
- ReactCurrentOwner.current = this._currentElement._owner;
- nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
- } finally {
- ReactCurrentOwner.current = null;
- }
- ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
- return nextChildren;
- }
- }
- nextChildren = flattenChildren(nextNestedChildrenElements, selfDebugID);
- ReactChildReconciler.updateChildren(prevChildren, nextChildren, mountImages, removedNodes, transaction, this, this._hostContainerInfo, context, selfDebugID);
- return nextChildren;
- },
-
- /**
- * Generates a "mount image" for each of the supplied children. In the case
- * of `ReactDOMComponent`, a mount image is a string of markup.
- *
- * @param {?object} nestedChildren Nested child maps.
- * @return {array} An array of mounted representations.
- * @internal
- */
- mountChildren: function (nestedChildren, transaction, context) {
- var children = this._reconcilerInstantiateChildren(nestedChildren, transaction, context);
- this._renderedChildren = children;
-
- var mountImages = [];
- var index = 0;
- for (var name in children) {
- if (children.hasOwnProperty(name)) {
- var child = children[name];
- var selfDebugID = 0;
- if ("development" !== 'production') {
- selfDebugID = getDebugID(this);
- }
- var mountImage = ReactReconciler.mountComponent(child, transaction, this, this._hostContainerInfo, context, selfDebugID);
- child._mountIndex = index++;
- mountImages.push(mountImage);
- }
- }
-
- if ("development" !== 'production') {
- setChildrenForInstrumentation.call(this, children);
- }
-
- return mountImages;
- },
-
- /**
- * Replaces any rendered children with a text content string.
- *
- * @param {string} nextContent String of content.
- * @internal
- */
- updateTextContent: function (nextContent) {
- var prevChildren = this._renderedChildren;
- // Remove any rendered children.
- ReactChildReconciler.unmountChildren(prevChildren, false, /* safely */
- false /* skipLifecycle */
- );
- for (var name in prevChildren) {
- if (prevChildren.hasOwnProperty(name)) {
- !false ? "development" !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
- }
- }
- // Set new text content.
- var updates = [makeTextContent(nextContent)];
- processQueue(this, updates);
- },
-
- /**
- * Replaces any rendered children with a markup string.
- *
- * @param {string} nextMarkup String of markup.
- * @internal
- */
- updateMarkup: function (nextMarkup) {
- var prevChildren = this._renderedChildren;
- // Remove any rendered children.
- ReactChildReconciler.unmountChildren(prevChildren, false, /* safely */
- false /* skipLifecycle */
- );
- for (var name in prevChildren) {
- if (prevChildren.hasOwnProperty(name)) {
- !false ? "development" !== 'production' ? invariant(false, 'updateTextContent called on non-empty component.') : _prodInvariant('118') : void 0;
- }
- }
- var updates = [makeSetMarkup(nextMarkup)];
- processQueue(this, updates);
- },
-
- /**
- * Updates the rendered children with new children.
- *
- * @param {?object} nextNestedChildrenElements Nested child element maps.
- * @param {ReactReconcileTransaction} transaction
- * @internal
- */
- updateChildren: function (nextNestedChildrenElements, transaction, context) {
- // Hook used by React ART
- this._updateChildren(nextNestedChildrenElements, transaction, context);
- },
-
- /**
- * @param {?object} nextNestedChildrenElements Nested child element maps.
- * @param {ReactReconcileTransaction} transaction
- * @final
- * @protected
- */
- _updateChildren: function (nextNestedChildrenElements, transaction, context) {
- var prevChildren = this._renderedChildren;
- var removedNodes = {};
- var mountImages = [];
- var nextChildren = this._reconcilerUpdateChildren(prevChildren, nextNestedChildrenElements, mountImages, removedNodes, transaction, context);
- if (!nextChildren && !prevChildren) {
- return;
- }
- var updates = null;
- var name;
- // `nextIndex` will increment for each child in `nextChildren`, but
- // `lastIndex` will be the last index visited in `prevChildren`.
- var nextIndex = 0;
- var lastIndex = 0;
- // `nextMountIndex` will increment for each newly mounted child.
- var nextMountIndex = 0;
- var lastPlacedNode = null;
- for (name in nextChildren) {
- if (!nextChildren.hasOwnProperty(name)) {
- continue;
- }
- var prevChild = prevChildren && prevChildren[name];
- var nextChild = nextChildren[name];
- if (prevChild === nextChild) {
- updates = enqueue(updates, this.moveChild(prevChild, lastPlacedNode, nextIndex, lastIndex));
- lastIndex = Math.max(prevChild._mountIndex, lastIndex);
- prevChild._mountIndex = nextIndex;
- } else {
- if (prevChild) {
- // Update `lastIndex` before `_mountIndex` gets unset by unmounting.
- lastIndex = Math.max(prevChild._mountIndex, lastIndex);
- // The `removedNodes` loop below will actually remove the child.
- }
- // The child must be instantiated before it's mounted.
- updates = enqueue(updates, this._mountChildAtIndex(nextChild, mountImages[nextMountIndex], lastPlacedNode, nextIndex, transaction, context));
- nextMountIndex++;
- }
- nextIndex++;
- lastPlacedNode = ReactReconciler.getHostNode(nextChild);
- }
- // Remove children that are no longer present.
- for (name in removedNodes) {
- if (removedNodes.hasOwnProperty(name)) {
- updates = enqueue(updates, this._unmountChild(prevChildren[name], removedNodes[name]));
- }
- }
- if (updates) {
- processQueue(this, updates);
- }
- this._renderedChildren = nextChildren;
-
- if ("development" !== 'production') {
- setChildrenForInstrumentation.call(this, nextChildren);
- }
- },
-
- /**
- * Unmounts all rendered children. This should be used to clean up children
- * when this component is unmounted. It does not actually perform any
- * backend operations.
- *
- * @internal
- */
- unmountChildren: function (safely, skipLifecycle) {
- var renderedChildren = this._renderedChildren;
- ReactChildReconciler.unmountChildren(renderedChildren, safely, skipLifecycle);
- this._renderedChildren = null;
- },
-
- /**
- * Moves a child component to the supplied index.
- *
- * @param {ReactComponent} child Component to move.
- * @param {number} toIndex Destination index of the element.
- * @param {number} lastIndex Last index visited of the siblings of `child`.
- * @protected
- */
- moveChild: function (child, afterNode, toIndex, lastIndex) {
- // If the index of `child` is less than `lastIndex`, then it needs to
- // be moved. Otherwise, we do not need to move it because a child will be
- // inserted or moved before `child`.
- if (child._mountIndex < lastIndex) {
- return makeMove(child, afterNode, toIndex);
- }
- },
-
- /**
- * Creates a child component.
- *
- * @param {ReactComponent} child Component to create.
- * @param {string} mountImage Markup to insert.
- * @protected
- */
- createChild: function (child, afterNode, mountImage) {
- return makeInsertMarkup(mountImage, afterNode, child._mountIndex);
- },
-
- /**
- * Removes a child component.
- *
- * @param {ReactComponent} child Child to remove.
- * @protected
- */
- removeChild: function (child, node) {
- return makeRemove(child, node);
- },
-
- /**
- * Mounts a child with the supplied name.
- *
- * NOTE: This is part of `updateChildren` and is here for readability.
- *
- * @param {ReactComponent} child Component to mount.
- * @param {string} name Name of the child.
- * @param {number} index Index at which to insert the child.
- * @param {ReactReconcileTransaction} transaction
- * @private
- */
- _mountChildAtIndex: function (child, mountImage, afterNode, index, transaction, context) {
- child._mountIndex = index;
- return this.createChild(child, afterNode, mountImage);
- },
-
- /**
- * Unmounts a rendered child.
- *
- * NOTE: This is part of `updateChildren` and is here for readability.
- *
- * @param {ReactComponent} child Component to unmount.
- * @private
- */
- _unmountChild: function (child, node) {
- var update = this.removeChild(child, node);
- child._mountIndex = null;
- return update;
- }
-};
-
-module.exports = ReactMultiChild;
-},{"111":111,"129":129,"137":137,"146":146,"154":154,"26":26,"28":28,"64":64,"65":65,"75":75}],70:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var React = _dereq_(138);
-
-var invariant = _dereq_(154);
-
-var ReactNodeTypes = {
- HOST: 0,
- COMPOSITE: 1,
- EMPTY: 2,
-
- getType: function (node) {
- if (node === null || node === false) {
- return ReactNodeTypes.EMPTY;
- } else if (React.isValidElement(node)) {
- if (typeof node.type === 'function') {
- return ReactNodeTypes.COMPOSITE;
- } else {
- return ReactNodeTypes.HOST;
- }
- }
- !false ? "development" !== 'production' ? invariant(false, 'Unexpected node: %s', node) : _prodInvariant('26', node) : void 0;
- }
-};
-
-module.exports = ReactNodeTypes;
-},{"129":129,"138":138,"154":154}],71:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-/**
- * @param {?object} object
- * @return {boolean} True if `object` is a valid owner.
- * @final
- */
-function isValidOwner(object) {
- return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function');
-}
-
-/**
- * ReactOwners are capable of storing references to owned components.
- *
- * All components are capable of //being// referenced by owner components, but
- * only ReactOwner components are capable of //referencing// owned components.
- * The named reference is known as a "ref".
- *
- * Refs are available when mounted and updated during reconciliation.
- *
- * var MyComponent = React.createClass({
- * render: function() {
- * return (
- * <div onClick={this.handleClick}>
- * <CustomComponent ref="custom" />
- * </div>
- * );
- * },
- * handleClick: function() {
- * this.refs.custom.handleClick();
- * },
- * componentDidMount: function() {
- * this.refs.custom.initialize();
- * }
- * });
- *
- * Refs should rarely be used. When refs are used, they should only be done to
- * control data that is not handled by React's data flow.
- *
- * @class ReactOwner
- */
-var ReactOwner = {
- /**
- * Adds a component by ref to an owner component.
- *
- * @param {ReactComponent} component Component to reference.
- * @param {string} ref Name by which to refer to the component.
- * @param {ReactOwner} owner Component on which to record the ref.
- * @final
- * @internal
- */
- addComponentAsRefTo: function (component, ref, owner) {
- !isValidOwner(owner) ? "development" !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0;
- owner.attachRef(ref, component);
- },
-
- /**
- * Removes a component by ref from an owner component.
- *
- * @param {ReactComponent} component Component to dereference.
- * @param {string} ref Name of the ref to remove.
- * @param {ReactOwner} owner Component on which the ref is recorded.
- * @final
- * @internal
- */
- removeComponentAsRefFrom: function (component, ref, owner) {
- !isValidOwner(owner) ? "development" !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0;
- var ownerPublicInstance = owner.getPublicInstance();
- // Check that `component`'s owner is still alive and that `component` is still the current ref
- // because we do not want to detach the ref if another component stole it.
- if (ownerPublicInstance && ownerPublicInstance.refs[ref] === component.getPublicInstance()) {
- owner.detachRef(ref);
- }
- }
-
-};
-
-module.exports = ReactOwner;
-},{"129":129,"154":154}],72:[function(_dereq_,module,exports){
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var _extends = _assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
-
-var ReactDebugTool = _dereq_(52);
-var warning = _dereq_(161);
-var alreadyWarned = false;
-
-function roundFloat(val) {
- var base = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
-
- var n = Math.pow(10, base);
- return Math.floor(val * n) / n;
-}
-
-// Flow type definition of console.table is too strict right now, see
-// https://github.com/facebook/flow/pull/2353 for updates
-function consoleTable(table) {
- console.table(table);
-}
-
-function warnInProduction() {
- if (alreadyWarned) {
- return;
- }
- alreadyWarned = true;
- if (typeof console !== 'undefined') {
- console.error('ReactPerf is not supported in the production builds of React. ' + 'To collect measurements, please use the development build of React instead.');
- }
-}
-
-function getLastMeasurements() {
- if (!("development" !== 'production')) {
- warnInProduction();
- return [];
- }
-
- return ReactDebugTool.getFlushHistory();
-}
-
-function getExclusive() {
- var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();
-
- if (!("development" !== 'production')) {
- warnInProduction();
- return [];
- }
-
- var aggregatedStats = {};
- var affectedIDs = {};
-
- function updateAggregatedStats(treeSnapshot, instanceID, timerType, applyUpdate) {
- var displayName = treeSnapshot[instanceID].displayName;
-
- var key = displayName;
- var stats = aggregatedStats[key];
- if (!stats) {
- affectedIDs[key] = {};
- stats = aggregatedStats[key] = {
- key: key,
- instanceCount: 0,
- counts: {},
- durations: {},
- totalDuration: 0
- };
- }
- if (!stats.durations[timerType]) {
- stats.durations[timerType] = 0;
- }
- if (!stats.counts[timerType]) {
- stats.counts[timerType] = 0;
- }
- affectedIDs[key][instanceID] = true;
- applyUpdate(stats);
- }
-
- flushHistory.forEach(function (flush) {
- var measurements = flush.measurements;
- var treeSnapshot = flush.treeSnapshot;
-
- measurements.forEach(function (measurement) {
- var duration = measurement.duration;
- var instanceID = measurement.instanceID;
- var timerType = measurement.timerType;
-
- updateAggregatedStats(treeSnapshot, instanceID, timerType, function (stats) {
- stats.totalDuration += duration;
- stats.durations[timerType] += duration;
- stats.counts[timerType]++;
- });
- });
- });
-
- return Object.keys(aggregatedStats).map(function (key) {
- return _extends({}, aggregatedStats[key], {
- instanceCount: Object.keys(affectedIDs[key]).length
- });
- }).sort(function (a, b) {
- return b.totalDuration - a.totalDuration;
- });
-}
-
-function getInclusive() {
- var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();
-
- if (!("development" !== 'production')) {
- warnInProduction();
- return [];
- }
-
- var aggregatedStats = {};
- var affectedIDs = {};
-
- function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) {
- var _treeSnapshot$instanc = treeSnapshot[instanceID];
- var displayName = _treeSnapshot$instanc.displayName;
- var ownerID = _treeSnapshot$instanc.ownerID;
-
- var owner = treeSnapshot[ownerID];
- var key = (owner ? owner.displayName + ' > ' : '') + displayName;
- var stats = aggregatedStats[key];
- if (!stats) {
- affectedIDs[key] = {};
- stats = aggregatedStats[key] = {
- key: key,
- instanceCount: 0,
- inclusiveRenderDuration: 0,
- renderCount: 0
- };
- }
- affectedIDs[key][instanceID] = true;
- applyUpdate(stats);
- }
-
- var isCompositeByID = {};
- flushHistory.forEach(function (flush) {
- var measurements = flush.measurements;
-
- measurements.forEach(function (measurement) {
- var instanceID = measurement.instanceID;
- var timerType = measurement.timerType;
-
- if (timerType !== 'render') {
- return;
- }
- isCompositeByID[instanceID] = true;
- });
- });
-
- flushHistory.forEach(function (flush) {
- var measurements = flush.measurements;
- var treeSnapshot = flush.treeSnapshot;
-
- measurements.forEach(function (measurement) {
- var duration = measurement.duration;
- var instanceID = measurement.instanceID;
- var timerType = measurement.timerType;
-
- if (timerType !== 'render') {
- return;
- }
- updateAggregatedStats(treeSnapshot, instanceID, function (stats) {
- stats.renderCount++;
- });
- var nextParentID = instanceID;
- while (nextParentID) {
- // As we traverse parents, only count inclusive time towards composites.
- // We know something is a composite if its render() was called.
- if (isCompositeByID[nextParentID]) {
- updateAggregatedStats(treeSnapshot, nextParentID, function (stats) {
- stats.inclusiveRenderDuration += duration;
- });
- }
- nextParentID = treeSnapshot[nextParentID].parentID;
- }
- });
- });
-
- return Object.keys(aggregatedStats).map(function (key) {
- return _extends({}, aggregatedStats[key], {
- instanceCount: Object.keys(affectedIDs[key]).length
- });
- }).sort(function (a, b) {
- return b.inclusiveRenderDuration - a.inclusiveRenderDuration;
- });
-}
-
-function getWasted() {
- var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();
-
- if (!("development" !== 'production')) {
- warnInProduction();
- return [];
- }
-
- var aggregatedStats = {};
- var affectedIDs = {};
-
- function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) {
- var _treeSnapshot$instanc2 = treeSnapshot[instanceID];
- var displayName = _treeSnapshot$instanc2.displayName;
- var ownerID = _treeSnapshot$instanc2.ownerID;
-
- var owner = treeSnapshot[ownerID];
- var key = (owner ? owner.displayName + ' > ' : '') + displayName;
- var stats = aggregatedStats[key];
- if (!stats) {
- affectedIDs[key] = {};
- stats = aggregatedStats[key] = {
- key: key,
- instanceCount: 0,
- inclusiveRenderDuration: 0,
- renderCount: 0
- };
- }
- affectedIDs[key][instanceID] = true;
- applyUpdate(stats);
- }
-
- flushHistory.forEach(function (flush) {
- var measurements = flush.measurements;
- var treeSnapshot = flush.treeSnapshot;
- var operations = flush.operations;
-
- var isDefinitelyNotWastedByID = {};
-
- // Find host components associated with an operation in this batch.
- // Mark all components in their parent tree as definitely not wasted.
- operations.forEach(function (operation) {
- var instanceID = operation.instanceID;
-
- var nextParentID = instanceID;
- while (nextParentID) {
- isDefinitelyNotWastedByID[nextParentID] = true;
- nextParentID = treeSnapshot[nextParentID].parentID;
- }
- });
-
- // Find composite components that rendered in this batch.
- // These are potential candidates for being wasted renders.
- var renderedCompositeIDs = {};
- measurements.forEach(function (measurement) {
- var instanceID = measurement.instanceID;
- var timerType = measurement.timerType;
-
- if (timerType !== 'render') {
- return;
- }
- renderedCompositeIDs[instanceID] = true;
- });
-
- measurements.forEach(function (measurement) {
- var duration = measurement.duration;
- var instanceID = measurement.instanceID;
- var timerType = measurement.timerType;
-
- if (timerType !== 'render') {
- return;
- }
-
- // If there was a DOM update below this component, or it has just been
- // mounted, its render() is not considered wasted.
- var updateCount = treeSnapshot[instanceID].updateCount;
-
- if (isDefinitelyNotWastedByID[instanceID] || updateCount === 0) {
- return;
- }
-
- // We consider this render() wasted.
- updateAggregatedStats(treeSnapshot, instanceID, function (stats) {
- stats.renderCount++;
- });
-
- var nextParentID = instanceID;
- while (nextParentID) {
- // Any parents rendered during this batch are considered wasted
- // unless we previously marked them as dirty.
- var isWasted = renderedCompositeIDs[nextParentID] && !isDefinitelyNotWastedByID[nextParentID];
- if (isWasted) {
- updateAggregatedStats(treeSnapshot, nextParentID, function (stats) {
- stats.inclusiveRenderDuration += duration;
- });
- }
- nextParentID = treeSnapshot[nextParentID].parentID;
- }
- });
- });
-
- return Object.keys(aggregatedStats).map(function (key) {
- return _extends({}, aggregatedStats[key], {
- instanceCount: Object.keys(affectedIDs[key]).length
- });
- }).sort(function (a, b) {
- return b.inclusiveRenderDuration - a.inclusiveRenderDuration;
- });
-}
-
-function getOperations() {
- var flushHistory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getLastMeasurements();
-
- if (!("development" !== 'production')) {
- warnInProduction();
- return [];
- }
-
- var stats = [];
- flushHistory.forEach(function (flush, flushIndex) {
- var operations = flush.operations;
- var treeSnapshot = flush.treeSnapshot;
-
- operations.forEach(function (operation) {
- var instanceID = operation.instanceID;
- var type = operation.type;
- var payload = operation.payload;
- var _treeSnapshot$instanc3 = treeSnapshot[instanceID];
- var displayName = _treeSnapshot$instanc3.displayName;
- var ownerID = _treeSnapshot$instanc3.ownerID;
-
- var owner = treeSnapshot[ownerID];
- var key = (owner ? owner.displayName + ' > ' : '') + displayName;
-
- stats.push({
- flushIndex: flushIndex,
- instanceID: instanceID,
- key: key,
- type: type,
- ownerID: ownerID,
- payload: payload
- });
- });
- });
- return stats;
-}
-
-function printExclusive(flushHistory) {
- if (!("development" !== 'production')) {
- warnInProduction();
- return;
- }
-
- var stats = getExclusive(flushHistory);
- var table = stats.map(function (item) {
- var key = item.key;
- var instanceCount = item.instanceCount;
- var totalDuration = item.totalDuration;
-
- var renderCount = item.counts.render || 0;
- var renderDuration = item.durations.render || 0;
- return {
- 'Component': key,
- 'Total time (ms)': roundFloat(totalDuration),
- 'Instance count': instanceCount,
- 'Total render time (ms)': roundFloat(renderDuration),
- 'Average render time (ms)': renderCount ? roundFloat(renderDuration / renderCount) : undefined,
- 'Render count': renderCount,
- 'Total lifecycle time (ms)': roundFloat(totalDuration - renderDuration)
- };
- });
- consoleTable(table);
-}
-
-function printInclusive(flushHistory) {
- if (!("development" !== 'production')) {
- warnInProduction();
- return;
- }
-
- var stats = getInclusive(flushHistory);
- var table = stats.map(function (item) {
- var key = item.key;
- var instanceCount = item.instanceCount;
- var inclusiveRenderDuration = item.inclusiveRenderDuration;
- var renderCount = item.renderCount;
-
- return {
- 'Owner > Component': key,
- 'Inclusive render time (ms)': roundFloat(inclusiveRenderDuration),
- 'Instance count': instanceCount,
- 'Render count': renderCount
- };
- });
- consoleTable(table);
-}
-
-function printWasted(flushHistory) {
- if (!("development" !== 'production')) {
- warnInProduction();
- return;
- }
-
- var stats = getWasted(flushHistory);
- var table = stats.map(function (item) {
- var key = item.key;
- var instanceCount = item.instanceCount;
- var inclusiveRenderDuration = item.inclusiveRenderDuration;
- var renderCount = item.renderCount;
-
- return {
- 'Owner > Component': key,
- 'Inclusive wasted time (ms)': roundFloat(inclusiveRenderDuration),
- 'Instance count': instanceCount,
- 'Render count': renderCount
- };
- });
- consoleTable(table);
-}
-
-function printOperations(flushHistory) {
- if (!("development" !== 'production')) {
- warnInProduction();
- return;
- }
-
- var stats = getOperations(flushHistory);
- var table = stats.map(function (stat) {
- return {
- 'Owner > Node': stat.key,
- 'Operation': stat.type,
- 'Payload': typeof stat.payload === 'object' ? JSON.stringify(stat.payload) : stat.payload,
- 'Flush index': stat.flushIndex,
- 'Owner Component ID': stat.ownerID,
- 'DOM Component ID': stat.instanceID
- };
- });
- consoleTable(table);
-}
-
-var warnedAboutPrintDOM = false;
-function printDOM(measurements) {
- "development" !== 'production' ? warning(warnedAboutPrintDOM, '`ReactPerf.printDOM(...)` is deprecated. Use ' + '`ReactPerf.printOperations(...)` instead.') : void 0;
- warnedAboutPrintDOM = true;
- return printOperations(measurements);
-}
-
-var warnedAboutGetMeasurementsSummaryMap = false;
-function getMeasurementsSummaryMap(measurements) {
- "development" !== 'production' ? warning(warnedAboutGetMeasurementsSummaryMap, '`ReactPerf.getMeasurementsSummaryMap(...)` is deprecated. Use ' + '`ReactPerf.getWasted(...)` instead.') : void 0;
- warnedAboutGetMeasurementsSummaryMap = true;
- return getWasted(measurements);
-}
-
-function start() {
- if (!("development" !== 'production')) {
- warnInProduction();
- return;
- }
-
- ReactDebugTool.beginProfiling();
-}
-
-function stop() {
- if (!("development" !== 'production')) {
- warnInProduction();
- return;
- }
-
- ReactDebugTool.endProfiling();
-}
-
-function isRunning() {
- if (!("development" !== 'production')) {
- warnInProduction();
- return false;
- }
-
- return ReactDebugTool.isProfiling();
-}
-
-var ReactPerfAnalysis = {
- getLastMeasurements: getLastMeasurements,
- getExclusive: getExclusive,
- getInclusive: getInclusive,
- getWasted: getWasted,
- getOperations: getOperations,
- printExclusive: printExclusive,
- printInclusive: printInclusive,
- printWasted: printWasted,
- printOperations: printOperations,
- start: start,
- stop: stop,
- isRunning: isRunning,
- // Deprecated:
- printDOM: printDOM,
- getMeasurementsSummaryMap: getMeasurementsSummaryMap
-};
-
-module.exports = ReactPerfAnalysis;
-},{"161":161,"162":162,"52":52}],73:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var ReactPropTypeLocationNames = {};
-
-if ("development" !== 'production') {
- ReactPropTypeLocationNames = {
- prop: 'prop',
- context: 'context',
- childContext: 'child context'
- };
-}
-
-module.exports = ReactPropTypeLocationNames;
-},{}],74:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var CallbackQueue = _dereq_(6);
-var PooledClass = _dereq_(24);
-var ReactBrowserEventEmitter = _dereq_(25);
-var ReactInputSelection = _dereq_(63);
-var ReactInstrumentation = _dereq_(65);
-var Transaction = _dereq_(102);
-var ReactUpdateQueue = _dereq_(83);
-
-/**
- * Ensures that, when possible, the selection range (currently selected text
- * input) is not disturbed by performing the transaction.
- */
-var SELECTION_RESTORATION = {
- /**
- * @return {Selection} Selection information.
- */
- initialize: ReactInputSelection.getSelectionInformation,
- /**
- * @param {Selection} sel Selection information returned from `initialize`.
- */
- close: ReactInputSelection.restoreSelection
-};
-
-/**
- * Suppresses events (blur/focus) that could be inadvertently dispatched due to
- * high level DOM manipulations (like temporarily removing a text input from the
- * DOM).
- */
-var EVENT_SUPPRESSION = {
- /**
- * @return {boolean} The enabled status of `ReactBrowserEventEmitter` before
- * the reconciliation.
- */
- initialize: function () {
- var currentlyEnabled = ReactBrowserEventEmitter.isEnabled();
- ReactBrowserEventEmitter.setEnabled(false);
- return currentlyEnabled;
- },
-
- /**
- * @param {boolean} previouslyEnabled Enabled status of
- * `ReactBrowserEventEmitter` before the reconciliation occurred. `close`
- * restores the previous value.
- */
- close: function (previouslyEnabled) {
- ReactBrowserEventEmitter.setEnabled(previouslyEnabled);
- }
-};
-
-/**
- * Provides a queue for collecting `componentDidMount` and
- * `componentDidUpdate` callbacks during the transaction.
- */
-var ON_DOM_READY_QUEUEING = {
- /**
- * Initializes the internal `onDOMReady` queue.
- */
- initialize: function () {
- this.reactMountReady.reset();
- },
-
- /**
- * After DOM is flushed, invoke all registered `onDOMReady` callbacks.
- */
- close: function () {
- this.reactMountReady.notifyAll();
- }
-};
-
-/**
- * Executed within the scope of the `Transaction` instance. Consider these as
- * being member methods, but with an implied ordering while being isolated from
- * each other.
- */
-var TRANSACTION_WRAPPERS = [SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING];
-
-if ("development" !== 'production') {
- TRANSACTION_WRAPPERS.push({
- initialize: ReactInstrumentation.debugTool.onBeginFlush,
- close: ReactInstrumentation.debugTool.onEndFlush
- });
-}
-
-/**
- * Currently:
- * - The order that these are listed in the transaction is critical:
- * - Suppresses events.
- * - Restores selection range.
- *
- * Future:
- * - Restore document/overflow scroll positions that were unintentionally
- * modified via DOM insertions above the top viewport boundary.
- * - Implement/integrate with customized constraint based layout system and keep
- * track of which dimensions must be remeasured.
- *
- * @class ReactReconcileTransaction
- */
-function ReactReconcileTransaction(useCreateElement) {
- this.reinitializeTransaction();
- // Only server-side rendering really needs this option (see
- // `ReactServerRendering`), but server-side uses
- // `ReactServerRenderingTransaction` instead. This option is here so that it's
- // accessible and defaults to false when `ReactDOMComponent` and
- // `ReactDOMTextComponent` checks it in `mountComponent`.`
- this.renderToStaticMarkup = false;
- this.reactMountReady = CallbackQueue.getPooled(null);
- this.useCreateElement = useCreateElement;
-}
-
-var Mixin = {
- /**
- * @see Transaction
- * @abstract
- * @final
- * @return {array<object>} List of operation wrap procedures.
- * TODO: convert to array<TransactionWrapper>
- */
- getTransactionWrappers: function () {
- return TRANSACTION_WRAPPERS;
- },
-
- /**
- * @return {object} The queue to collect `onDOMReady` callbacks with.
- */
- getReactMountReady: function () {
- return this.reactMountReady;
- },
-
- /**
- * @return {object} The queue to collect React async events.
- */
- getUpdateQueue: function () {
- return ReactUpdateQueue;
- },
-
- /**
- * Save current transaction state -- if the return value from this method is
- * passed to `rollback`, the transaction will be reset to that state.
- */
- checkpoint: function () {
- // reactMountReady is the our only stateful wrapper
- return this.reactMountReady.checkpoint();
- },
-
- rollback: function (checkpoint) {
- this.reactMountReady.rollback(checkpoint);
- },
-
- /**
- * `PooledClass` looks for this, and will invoke this before allowing this
- * instance to be reused.
- */
- destructor: function () {
- CallbackQueue.release(this.reactMountReady);
- this.reactMountReady = null;
- }
-};
-
-_assign(ReactReconcileTransaction.prototype, Transaction, Mixin);
-
-PooledClass.addPoolingTo(ReactReconcileTransaction);
-
-module.exports = ReactReconcileTransaction;
-},{"102":102,"162":162,"24":24,"25":25,"6":6,"63":63,"65":65,"83":83}],75:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactRef = _dereq_(76);
-var ReactInstrumentation = _dereq_(65);
-
-var warning = _dereq_(161);
-
-/**
- * Helper to call ReactRef.attachRefs with this composite component, split out
- * to avoid allocations in the transaction mount-ready queue.
- */
-function attachRefs() {
- ReactRef.attachRefs(this, this._currentElement);
-}
-
-var ReactReconciler = {
-
- /**
- * Initializes the component, renders markup, and registers event listeners.
- *
- * @param {ReactComponent} internalInstance
- * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction
- * @param {?object} the containing host component instance
- * @param {?object} info about the host container
- * @return {?string} Rendered markup to be inserted into the DOM.
- * @final
- * @internal
- */
- mountComponent: function (internalInstance, transaction, hostParent, hostContainerInfo, context, parentDebugID // 0 in production and for roots
- ) {
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onBeforeMountComponent(internalInstance._debugID, internalInstance._currentElement, parentDebugID);
- }
- }
- var markup = internalInstance.mountComponent(transaction, hostParent, hostContainerInfo, context, parentDebugID);
- if (internalInstance._currentElement && internalInstance._currentElement.ref != null) {
- transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
- }
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onMountComponent(internalInstance._debugID);
- }
- }
- return markup;
- },
-
- /**
- * Returns a value that can be passed to
- * ReactComponentEnvironment.replaceNodeWithMarkup.
- */
- getHostNode: function (internalInstance) {
- return internalInstance.getHostNode();
- },
-
- /**
- * Releases any resources allocated by `mountComponent`.
- *
- * @final
- * @internal
- */
- unmountComponent: function (internalInstance, safely, skipLifecycle) {
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onBeforeUnmountComponent(internalInstance._debugID);
- }
- }
- ReactRef.detachRefs(internalInstance, internalInstance._currentElement);
- internalInstance.unmountComponent(safely, skipLifecycle);
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onUnmountComponent(internalInstance._debugID);
- }
- }
- },
-
- /**
- * Update a component using a new element.
- *
- * @param {ReactComponent} internalInstance
- * @param {ReactElement} nextElement
- * @param {ReactReconcileTransaction} transaction
- * @param {object} context
- * @internal
- */
- receiveComponent: function (internalInstance, nextElement, transaction, context) {
- var prevElement = internalInstance._currentElement;
-
- if (nextElement === prevElement && context === internalInstance._context) {
- // Since elements are immutable after the owner is rendered,
- // we can do a cheap identity compare here to determine if this is a
- // superfluous reconcile. It's possible for state to be mutable but such
- // change should trigger an update of the owner which would recreate
- // the element. We explicitly check for the existence of an owner since
- // it's possible for an element created outside a composite to be
- // deeply mutated and reused.
-
- // TODO: Bailing out early is just a perf optimization right?
- // TODO: Removing the return statement should affect correctness?
- return;
- }
-
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, nextElement);
- }
- }
-
- var refsChanged = ReactRef.shouldUpdateRefs(prevElement, nextElement);
-
- if (refsChanged) {
- ReactRef.detachRefs(internalInstance, prevElement);
- }
-
- internalInstance.receiveComponent(nextElement, transaction, context);
-
- if (refsChanged && internalInstance._currentElement && internalInstance._currentElement.ref != null) {
- transaction.getReactMountReady().enqueue(attachRefs, internalInstance);
- }
-
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
- }
- }
- },
-
- /**
- * Flush any dirty changes in a component.
- *
- * @param {ReactComponent} internalInstance
- * @param {ReactReconcileTransaction} transaction
- * @internal
- */
- performUpdateIfNecessary: function (internalInstance, transaction, updateBatchNumber) {
- if (internalInstance._updateBatchNumber !== updateBatchNumber) {
- // The component's enqueued batch number should always be the current
- // batch or the following one.
- "development" !== 'production' ? warning(internalInstance._updateBatchNumber == null || internalInstance._updateBatchNumber === updateBatchNumber + 1, 'performUpdateIfNecessary: Unexpected batch number (current %s, ' + 'pending %s)', updateBatchNumber, internalInstance._updateBatchNumber) : void 0;
- return;
- }
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onBeforeUpdateComponent(internalInstance._debugID, internalInstance._currentElement);
- }
- }
- internalInstance.performUpdateIfNecessary(transaction);
- if ("development" !== 'production') {
- if (internalInstance._debugID !== 0) {
- ReactInstrumentation.debugTool.onUpdateComponent(internalInstance._debugID);
- }
- }
- }
-
-};
-
-module.exports = ReactReconciler;
-},{"161":161,"65":65,"76":76}],76:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var ReactOwner = _dereq_(71);
-
-var ReactRef = {};
-
-function attachRef(ref, component, owner) {
- if (typeof ref === 'function') {
- ref(component.getPublicInstance());
- } else {
- // Legacy ref
- ReactOwner.addComponentAsRefTo(component, ref, owner);
- }
-}
-
-function detachRef(ref, component, owner) {
- if (typeof ref === 'function') {
- ref(null);
- } else {
- // Legacy ref
- ReactOwner.removeComponentAsRefFrom(component, ref, owner);
- }
-}
-
-ReactRef.attachRefs = function (instance, element) {
- if (element === null || typeof element !== 'object') {
- return;
- }
- var ref = element.ref;
- if (ref != null) {
- attachRef(ref, instance, element._owner);
- }
-};
-
-ReactRef.shouldUpdateRefs = function (prevElement, nextElement) {
- // If either the owner or a `ref` has changed, make sure the newest owner
- // has stored a reference to `this`, and the previous owner (if different)
- // has forgotten the reference to `this`. We use the element instead
- // of the public this.props because the post processing cannot determine
- // a ref. The ref conceptually lives on the element.
-
- // TODO: Should this even be possible? The owner cannot change because
- // it's forbidden by shouldUpdateReactComponent. The ref can change
- // if you swap the keys of but not the refs. Reconsider where this check
- // is made. It probably belongs where the key checking and
- // instantiateReactComponent is done.
-
- var prevRef = null;
- var prevOwner = null;
- if (prevElement !== null && typeof prevElement === 'object') {
- prevRef = prevElement.ref;
- prevOwner = prevElement._owner;
- }
-
- var nextRef = null;
- var nextOwner = null;
- if (nextElement !== null && typeof nextElement === 'object') {
- nextRef = nextElement.ref;
- nextOwner = nextElement._owner;
- }
-
- return prevRef !== nextRef ||
- // If owner changes but we have an unchanged function ref, don't update refs
- typeof nextRef === 'string' && nextOwner !== prevOwner;
-};
-
-ReactRef.detachRefs = function (instance, element) {
- if (element === null || typeof element !== 'object') {
- return;
- }
- var ref = element.ref;
- if (ref != null) {
- detachRef(ref, instance, element._owner);
- }
-};
-
-module.exports = ReactRef;
-},{"71":71}],77:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var PooledClass = _dereq_(24);
-var Transaction = _dereq_(102);
-var ReactInstrumentation = _dereq_(65);
-var ReactServerUpdateQueue = _dereq_(78);
-
-/**
- * Executed within the scope of the `Transaction` instance. Consider these as
- * being member methods, but with an implied ordering while being isolated from
- * each other.
- */
-var TRANSACTION_WRAPPERS = [];
-
-if ("development" !== 'production') {
- TRANSACTION_WRAPPERS.push({
- initialize: ReactInstrumentation.debugTool.onBeginFlush,
- close: ReactInstrumentation.debugTool.onEndFlush
- });
-}
-
-var noopCallbackQueue = {
- enqueue: function () {}
-};
-
-/**
- * @class ReactServerRenderingTransaction
- * @param {boolean} renderToStaticMarkup
- */
-function ReactServerRenderingTransaction(renderToStaticMarkup) {
- this.reinitializeTransaction();
- this.renderToStaticMarkup = renderToStaticMarkup;
- this.useCreateElement = false;
- this.updateQueue = new ReactServerUpdateQueue(this);
-}
-
-var Mixin = {
- /**
- * @see Transaction
- * @abstract
- * @final
- * @return {array} Empty list of operation wrap procedures.
- */
- getTransactionWrappers: function () {
- return TRANSACTION_WRAPPERS;
- },
-
- /**
- * @return {object} The queue to collect `onDOMReady` callbacks with.
- */
- getReactMountReady: function () {
- return noopCallbackQueue;
- },
-
- /**
- * @return {object} The queue to collect React async events.
- */
- getUpdateQueue: function () {
- return this.updateQueue;
- },
-
- /**
- * `PooledClass` looks for this, and will invoke this before allowing this
- * instance to be reused.
- */
- destructor: function () {},
-
- checkpoint: function () {},
-
- rollback: function () {}
-};
-
-_assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin);
-
-PooledClass.addPoolingTo(ReactServerRenderingTransaction);
-
-module.exports = ReactServerRenderingTransaction;
-},{"102":102,"162":162,"24":24,"65":65,"78":78}],78:[function(_dereq_,module,exports){
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-var ReactUpdateQueue = _dereq_(83);
-
-var warning = _dereq_(161);
-
-function warnNoop(publicInstance, callerName) {
- if ("development" !== 'production') {
- var constructor = publicInstance.constructor;
- "development" !== 'production' ? warning(false, '%s(...): Can only update a mounting component. ' + 'This usually means you called %s() outside componentWillMount() on the server. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
- }
-}
-
-/**
- * This is the update queue used for server rendering.
- * It delegates to ReactUpdateQueue while server rendering is in progress and
- * switches to ReactNoopUpdateQueue after the transaction has completed.
- * @class ReactServerUpdateQueue
- * @param {Transaction} transaction
- */
-
-var ReactServerUpdateQueue = function () {
- function ReactServerUpdateQueue(transaction) {
- _classCallCheck(this, ReactServerUpdateQueue);
-
- this.transaction = transaction;
- }
-
- /**
- * Checks whether or not this composite component is mounted.
- * @param {ReactClass} publicInstance The instance we want to test.
- * @return {boolean} True if mounted, false otherwise.
- * @protected
- * @final
- */
-
-
- ReactServerUpdateQueue.prototype.isMounted = function isMounted(publicInstance) {
- return false;
- };
-
- /**
- * Enqueue a callback that will be executed after all the pending updates
- * have processed.
- *
- * @param {ReactClass} publicInstance The instance to use as `this` context.
- * @param {?function} callback Called after state is updated.
- * @internal
- */
-
-
- ReactServerUpdateQueue.prototype.enqueueCallback = function enqueueCallback(publicInstance, callback, callerName) {
- if (this.transaction.isInTransaction()) {
- ReactUpdateQueue.enqueueCallback(publicInstance, callback, callerName);
- }
- };
-
- /**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @internal
- */
-
-
- ReactServerUpdateQueue.prototype.enqueueForceUpdate = function enqueueForceUpdate(publicInstance) {
- if (this.transaction.isInTransaction()) {
- ReactUpdateQueue.enqueueForceUpdate(publicInstance);
- } else {
- warnNoop(publicInstance, 'forceUpdate');
- }
- };
-
- /**
- * Replaces all of the state. Always use this or `setState` to mutate state.
- * You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object|function} completeState Next state.
- * @internal
- */
-
-
- ReactServerUpdateQueue.prototype.enqueueReplaceState = function enqueueReplaceState(publicInstance, completeState) {
- if (this.transaction.isInTransaction()) {
- ReactUpdateQueue.enqueueReplaceState(publicInstance, completeState);
- } else {
- warnNoop(publicInstance, 'replaceState');
- }
- };
-
- /**
- * Sets a subset of the state. This only exists because _pendingState is
- * internal. This provides a merging strategy that is not available to deep
- * properties which is confusing. TODO: Expose pendingState or don't use it
- * during the merge.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object|function} partialState Next partial state to be merged with state.
- * @internal
- */
-
-
- ReactServerUpdateQueue.prototype.enqueueSetState = function enqueueSetState(publicInstance, partialState) {
- if (this.transaction.isInTransaction()) {
- ReactUpdateQueue.enqueueSetState(publicInstance, partialState);
- } else {
- warnNoop(publicInstance, 'setState');
- }
- };
-
- return ReactServerUpdateQueue;
-}();
-
-module.exports = ReactServerUpdateQueue;
-},{"161":161,"83":83}],79:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @preventMunge
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-var React = _dereq_(138);
-var ReactDOMInjection = _dereq_(40);
-var ReactDOMStackInjection = _dereq_(47);
-var ReactCompositeComponent = _dereq_(29);
-var ReactReconciler = _dereq_(75);
-var ReactUpdates = _dereq_(84);
-
-var emptyObject = _dereq_(147);
-var getNextDebugID = _dereq_(120);
-var invariant = _dereq_(154);
-
-var NoopInternalComponent = function () {
- function NoopInternalComponent(element) {
- _classCallCheck(this, NoopInternalComponent);
-
- this._renderedOutput = element;
- this._currentElement = element;
-
- if ("development" !== 'production') {
- this._debugID = getNextDebugID();
- }
- }
-
- NoopInternalComponent.prototype.mountComponent = function mountComponent() {};
-
- NoopInternalComponent.prototype.receiveComponent = function receiveComponent(element) {
- this._renderedOutput = element;
- this._currentElement = element;
- };
-
- NoopInternalComponent.prototype.unmountComponent = function unmountComponent() {};
-
- NoopInternalComponent.prototype.getHostNode = function getHostNode() {
- return undefined;
- };
-
- NoopInternalComponent.prototype.getPublicInstance = function getPublicInstance() {
- return null;
- };
-
- return NoopInternalComponent;
-}();
-
-var ShallowComponentWrapper = function (element) {
- // TODO: Consolidate with instantiateReactComponent
- if ("development" !== 'production') {
- this._debugID = getNextDebugID();
- }
-
- this.construct(element);
-};
-_assign(ShallowComponentWrapper.prototype, ReactCompositeComponent, {
- _constructComponent: ReactCompositeComponent._constructComponentWithoutOwner,
- _instantiateReactComponent: function (element) {
- return new NoopInternalComponent(element);
- },
- _replaceNodeWithMarkup: function () {},
- _renderValidatedComponent: ReactCompositeComponent._renderValidatedComponentWithoutOwnerOrContext
-});
-
-function _batchedRender(renderer, element, context) {
- var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(true);
- renderer._render(element, transaction, context);
- ReactUpdates.ReactReconcileTransaction.release(transaction);
-}
-
-var ReactShallowRenderer = function () {
- function ReactShallowRenderer() {
- _classCallCheck(this, ReactShallowRenderer);
-
- this._instance = null;
- }
-
- ReactShallowRenderer.prototype.getMountedInstance = function getMountedInstance() {
- return this._instance ? this._instance._instance : null;
- };
-
- ReactShallowRenderer.prototype.render = function render(element, context) {
- // Ensure we've done the default injections. This might not be true in the
- // case of a simple test that only requires React and the TestUtils in
- // conjunction with an inline-requires transform.
- ReactDOMInjection.inject();
- ReactDOMStackInjection.inject();
-
- !React.isValidElement(element) ? "development" !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Invalid component element.%s', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : _prodInvariant('12', typeof element === 'function' ? ' Instead of passing a component class, make sure to instantiate ' + 'it by passing it to React.createElement.' : '') : void 0;
- !(typeof element.type !== 'string') ? "development" !== 'production' ? invariant(false, 'ReactShallowRenderer render(): Shallow rendering works only with custom components, not primitives (%s). Instead of calling `.render(el)` and inspecting the rendered output, look at `el.props` directly instead.', element.type) : _prodInvariant('13', element.type) : void 0;
-
- if (!context) {
- context = emptyObject;
- }
- ReactUpdates.batchedUpdates(_batchedRender, this, element, context);
-
- return this.getRenderOutput();
- };
-
- ReactShallowRenderer.prototype.getRenderOutput = function getRenderOutput() {
- return this._instance && this._instance._renderedComponent && this._instance._renderedComponent._renderedOutput || null;
- };
-
- ReactShallowRenderer.prototype.unmount = function unmount() {
- if (this._instance) {
- ReactReconciler.unmountComponent(this._instance, false, /* safely */
- false /* skipLifecycle */
- );
- }
- };
-
- ReactShallowRenderer.prototype._render = function _render(element, transaction, context) {
- if (this._instance) {
- ReactReconciler.receiveComponent(this._instance, element, transaction, context);
- } else {
- var instance = new ShallowComponentWrapper(element);
- ReactReconciler.mountComponent(instance, transaction, null, null, context, 0);
- this._instance = instance;
- }
- };
-
- return ReactShallowRenderer;
-}();
-
-module.exports = ReactShallowRenderer;
-},{"120":120,"129":129,"138":138,"147":147,"154":154,"162":162,"29":29,"40":40,"47":47,"75":75,"84":84}],80:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var EventConstants = _dereq_(16);
-var EventPluginHub = _dereq_(17);
-var EventPluginRegistry = _dereq_(18);
-var EventPropagators = _dereq_(20);
-var React = _dereq_(138);
-var ReactControlledComponent = _dereq_(30);
-var ReactDOM = _dereq_(32);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactBrowserEventEmitter = _dereq_(25);
-var ReactInstanceMap = _dereq_(64);
-var ReactTypeOfWork = _dereq_(82);
-var ReactGenericBatching = _dereq_(60);
-var SyntheticEvent = _dereq_(93);
-var ReactShallowRenderer = _dereq_(79);
-
-var findDOMNode = _dereq_(110);
-var invariant = _dereq_(154);
-
-var topLevelTypes = EventConstants.topLevelTypes;
-var ClassComponent = ReactTypeOfWork.ClassComponent;
-var FunctionalComponent = ReactTypeOfWork.FunctionalComponent;
-var HostComponent = ReactTypeOfWork.HostComponent;
-var HostContainer = ReactTypeOfWork.HostContainer;
-var HostText = ReactTypeOfWork.HostText;
-
-
-function Event(suffix) {}
-
-/**
- * @class ReactTestUtils
- */
-
-function findAllInRenderedStackTreeInternal(inst, test) {
- if (!inst || !inst.getPublicInstance) {
- return [];
- }
- var publicInst = inst.getPublicInstance();
- var ret = test(publicInst) ? [publicInst] : [];
- var currentElement = inst._currentElement;
- if (ReactTestUtils.isDOMComponent(publicInst)) {
- var renderedChildren = inst._renderedChildren;
- var key;
- for (key in renderedChildren) {
- if (!renderedChildren.hasOwnProperty(key)) {
- continue;
- }
- ret = ret.concat(findAllInRenderedStackTreeInternal(renderedChildren[key], test));
- }
- } else if (React.isValidElement(currentElement) && typeof currentElement.type === 'function') {
- ret = ret.concat(findAllInRenderedStackTreeInternal(inst._renderedComponent, test));
- }
- return ret;
-}
-
-function findAllInRenderedFiberTreeInternal(fiber, test) {
- if (!fiber) {
- return [];
- }
- if (fiber.tag !== ClassComponent && fiber.tag !== FunctionalComponent && fiber.tag !== HostComponent && fiber.tag !== HostText) {
- return [];
- }
- var publicInst = fiber.stateNode;
- var ret = publicInst && test(publicInst) ? [publicInst] : [];
- var child = fiber.child;
- while (child) {
- ret = ret.concat(findAllInRenderedFiberTreeInternal(child, test));
- child = child.sibling;
- }
- // TODO: visit stateNode for coroutines
- return ret;
-}
-
-/**
- * Utilities for making it easy to test React components.
- *
- * See https://facebook.github.io/react/docs/test-utils.html
- *
- * Todo: Support the entire DOM.scry query syntax. For now, these simple
- * utilities will suffice for testing purposes.
- * @lends ReactTestUtils
- */
-var ReactTestUtils = {
- renderIntoDocument: function (element) {
- var div = document.createElement('div');
- // None of our tests actually require attaching the container to the
- // DOM, and doing so creates a mess that we rely on test isolation to
- // clean up, so we're going to stop honoring the name of this method
- // (and probably rename it eventually) if no problems arise.
- // document.documentElement.appendChild(div);
- return ReactDOM.render(element, div);
- },
-
- isElement: function (element) {
- return React.isValidElement(element);
- },
-
- isElementOfType: function (inst, convenienceConstructor) {
- return React.isValidElement(inst) && inst.type === convenienceConstructor;
- },
-
- isDOMComponent: function (inst) {
- return !!(inst && inst.nodeType === 1 && inst.tagName);
- },
-
- isDOMComponentElement: function (inst) {
- return !!(inst && React.isValidElement(inst) && !!inst.tagName);
- },
-
- isCompositeComponent: function (inst) {
- if (ReactTestUtils.isDOMComponent(inst)) {
- // Accessing inst.setState warns; just return false as that'll be what
- // this returns when we have DOM nodes as refs directly
- return false;
- }
- return inst != null && typeof inst.render === 'function' && typeof inst.setState === 'function';
- },
-
- isCompositeComponentWithType: function (inst, type) {
- if (!ReactTestUtils.isCompositeComponent(inst)) {
- return false;
- }
- var internalInstance = ReactInstanceMap.get(inst);
- var constructor = typeof internalInstance.tag === 'number' ? internalInstance.type : // Fiber reconciler
- internalInstance._currentElement.type; // Stack reconciler
-
- return constructor === type;
- },
-
- // TODO: deprecate? It's undocumented and unused.
- isCompositeComponentElement: function (inst) {
- if (!React.isValidElement(inst)) {
- return false;
- }
- // We check the prototype of the type that will get mounted, not the
- // instance itself. This is a future proof way of duck typing.
- var prototype = inst.type.prototype;
- return typeof prototype.render === 'function' && typeof prototype.setState === 'function';
- },
-
- // TODO: deprecate? It's undocumented and unused.
- isCompositeComponentElementWithType: function (inst, type) {
- var internalInstance = ReactInstanceMap.get(inst);
- var constructor = internalInstance._currentElement.type;
-
- return !!(ReactTestUtils.isCompositeComponentElement(inst) && constructor === type);
- },
-
- // TODO: deprecate? It's undocumented and unused.
- getRenderedChildOfCompositeComponent: function (inst) {
- if (!ReactTestUtils.isCompositeComponent(inst)) {
- return null;
- }
- var internalInstance = ReactInstanceMap.get(inst);
- return internalInstance._renderedComponent.getPublicInstance();
- },
-
- findAllInRenderedTree: function (inst, test) {
- if (!inst) {
- return [];
- }
- !ReactTestUtils.isCompositeComponent(inst) ? "development" !== 'production' ? invariant(false, 'findAllInRenderedTree(...): instance must be a composite component') : _prodInvariant('10') : void 0;
- var internalInstance = ReactInstanceMap.get(inst);
- if (internalInstance && typeof internalInstance.tag === 'number') {
- var fiber = internalInstance;
- var root = fiber;
- while (root['return']) {
- root = root['return'];
- }
- var isRootCurrent = root.tag === HostContainer && root.stateNode.current === root;
- // Make sure we're introspecting the current tree
- var current = isRootCurrent ? fiber : fiber.alternate;
- return findAllInRenderedFiberTreeInternal(current, test);
- } else {
- return findAllInRenderedStackTreeInternal(internalInstance, test);
- }
- },
-
- /**
- * Finds all instance of components in the rendered tree that are DOM
- * components with the class name matching `className`.
- * @return {array} an array of all the matches.
- */
- scryRenderedDOMComponentsWithClass: function (root, classNames) {
- return ReactTestUtils.findAllInRenderedTree(root, function (inst) {
- if (ReactTestUtils.isDOMComponent(inst)) {
- var className = inst.className;
- if (typeof className !== 'string') {
- // SVG, probably.
- className = inst.getAttribute('class') || '';
- }
- var classList = className.split(/\s+/);
-
- if (!Array.isArray(classNames)) {
- !(classNames !== undefined) ? "development" !== 'production' ? invariant(false, 'TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.') : _prodInvariant('11') : void 0;
- classNames = classNames.split(/\s+/);
- }
- return classNames.every(function (name) {
- return classList.indexOf(name) !== -1;
- });
- }
- return false;
- });
- },
-
- /**
- * Like scryRenderedDOMComponentsWithClass but expects there to be one result,
- * and returns that one result, or throws exception if there is any other
- * number of matches besides one.
- * @return {!ReactDOMComponent} The one match.
- */
- findRenderedDOMComponentWithClass: function (root, className) {
- var all = ReactTestUtils.scryRenderedDOMComponentsWithClass(root, className);
- if (all.length !== 1) {
- throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for class:' + className);
- }
- return all[0];
- },
-
- /**
- * Finds all instance of components in the rendered tree that are DOM
- * components with the tag name matching `tagName`.
- * @return {array} an array of all the matches.
- */
- scryRenderedDOMComponentsWithTag: function (root, tagName) {
- return ReactTestUtils.findAllInRenderedTree(root, function (inst) {
- return ReactTestUtils.isDOMComponent(inst) && inst.tagName.toUpperCase() === tagName.toUpperCase();
- });
- },
-
- /**
- * Like scryRenderedDOMComponentsWithTag but expects there to be one result,
- * and returns that one result, or throws exception if there is any other
- * number of matches besides one.
- * @return {!ReactDOMComponent} The one match.
- */
- findRenderedDOMComponentWithTag: function (root, tagName) {
- var all = ReactTestUtils.scryRenderedDOMComponentsWithTag(root, tagName);
- if (all.length !== 1) {
- throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for tag:' + tagName);
- }
- return all[0];
- },
-
- /**
- * Finds all instances of components with type equal to `componentType`.
- * @return {array} an array of all the matches.
- */
- scryRenderedComponentsWithType: function (root, componentType) {
- return ReactTestUtils.findAllInRenderedTree(root, function (inst) {
- return ReactTestUtils.isCompositeComponentWithType(inst, componentType);
- });
- },
-
- /**
- * Same as `scryRenderedComponentsWithType` but expects there to be one result
- * and returns that one result, or throws exception if there is any other
- * number of matches besides one.
- * @return {!ReactComponent} The one match.
- */
- findRenderedComponentWithType: function (root, componentType) {
- var all = ReactTestUtils.scryRenderedComponentsWithType(root, componentType);
- if (all.length !== 1) {
- throw new Error('Did not find exactly one match (found: ' + all.length + ') ' + 'for componentType:' + componentType);
- }
- return all[0];
- },
-
- /**
- * Pass a mocked component module to this method to augment it with
- * useful methods that allow it to be used as a dummy React component.
- * Instead of rendering as usual, the component will become a simple
- * <div> containing any provided children.
- *
- * @param {object} module the mock function object exported from a
- * module that defines the component to be mocked
- * @param {?string} mockTagName optional dummy root tag name to return
- * from render method (overrides
- * module.mockTagName if provided)
- * @return {object} the ReactTestUtils object (for chaining)
- */
- mockComponent: function (module, mockTagName) {
- mockTagName = mockTagName || module.mockTagName || 'div';
-
- module.prototype.render.mockImplementation(function () {
- return React.createElement(mockTagName, null, this.props.children);
- });
-
- return this;
- },
-
- /**
- * Simulates a top level event being dispatched from a raw event that occurred
- * on an `Element` node.
- * @param {Object} topLevelType A type from `EventConstants.topLevelTypes`
- * @param {!Element} node The dom to simulate an event occurring on.
- * @param {?Event} fakeNativeEvent Fake native event to use in SyntheticEvent.
- */
- simulateNativeEventOnNode: function (topLevelType, node, fakeNativeEvent) {
- fakeNativeEvent.target = node;
- ReactBrowserEventEmitter.ReactEventListener.dispatchEvent(topLevelType, fakeNativeEvent);
- },
-
- /**
- * Simulates a top level event being dispatched from a raw event that occurred
- * on the `ReactDOMComponent` `comp`.
- * @param {Object} topLevelType A type from `EventConstants.topLevelTypes`.
- * @param {!ReactDOMComponent} comp
- * @param {?Event} fakeNativeEvent Fake native event to use in SyntheticEvent.
- */
- simulateNativeEventOnDOMComponent: function (topLevelType, comp, fakeNativeEvent) {
- ReactTestUtils.simulateNativeEventOnNode(topLevelType, findDOMNode(comp), fakeNativeEvent);
- },
-
- nativeTouchData: function (x, y) {
- return {
- touches: [{ pageX: x, pageY: y }]
- };
- },
-
- createRenderer: function () {
- return new ReactShallowRenderer();
- },
-
- Simulate: null,
- SimulateNative: {}
-};
-
-/**
- * Exports:
- *
- * - `ReactTestUtils.Simulate.click(Element/ReactDOMComponent)`
- * - `ReactTestUtils.Simulate.mouseMove(Element/ReactDOMComponent)`
- * - `ReactTestUtils.Simulate.change(Element/ReactDOMComponent)`
- * - ... (All keys from event plugin `eventTypes` objects)
- */
-function makeSimulator(eventType) {
- return function (domComponentOrNode, eventData) {
- var node;
- !!React.isValidElement(domComponentOrNode) ? "development" !== 'production' ? invariant(false, 'TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.') : _prodInvariant('14') : void 0;
- if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {
- node = findDOMNode(domComponentOrNode);
- } else if (domComponentOrNode.tagName) {
- node = domComponentOrNode;
- }
-
- var dispatchConfig = EventPluginRegistry.eventNameDispatchConfigs[eventType];
-
- var fakeNativeEvent = new Event();
- fakeNativeEvent.target = node;
- fakeNativeEvent.type = eventType.toLowerCase();
-
- // We don't use SyntheticEvent.getPooled in order to not have to worry about
- // properly destroying any properties assigned from `eventData` upon release
- var targetInst = ReactDOMComponentTree.getInstanceFromNode(node);
- var event = new SyntheticEvent(dispatchConfig, targetInst, fakeNativeEvent, node);
-
- // Since we aren't using pooling, always persist the event. This will make
- // sure it's marked and won't warn when setting additional properties.
- event.persist();
- _assign(event, eventData);
-
- if (dispatchConfig.phasedRegistrationNames) {
- EventPropagators.accumulateTwoPhaseDispatches(event);
- } else {
- EventPropagators.accumulateDirectDispatches(event);
- }
-
- ReactGenericBatching.batchedUpdates(function () {
- // Normally extractEvent enqueues a state restore, but we'll just always
- // do that since we we're by-passing it here.
- ReactControlledComponent.enqueueStateRestore(targetInst);
-
- EventPluginHub.enqueueEvents(event);
- EventPluginHub.processEventQueue(true);
- });
- };
-}
-
-function buildSimulators() {
- ReactTestUtils.Simulate = {};
-
- var eventType;
- for (eventType in EventPluginRegistry.eventNameDispatchConfigs) {
- /**
- * @param {!Element|ReactDOMComponent} domComponentOrNode
- * @param {?object} eventData Fake event data to use in SyntheticEvent.
- */
- ReactTestUtils.Simulate[eventType] = makeSimulator(eventType);
- }
-}
-
-// Rebuild ReactTestUtils.Simulate whenever event plugins are injected
-var oldInjectEventPluginOrder = EventPluginHub.injection.injectEventPluginOrder;
-EventPluginHub.injection.injectEventPluginOrder = function () {
- oldInjectEventPluginOrder.apply(this, arguments);
- buildSimulators();
-};
-var oldInjectEventPlugins = EventPluginHub.injection.injectEventPluginsByName;
-EventPluginHub.injection.injectEventPluginsByName = function () {
- oldInjectEventPlugins.apply(this, arguments);
- buildSimulators();
-};
-
-buildSimulators();
-
-/**
- * Exports:
- *
- * - `ReactTestUtils.SimulateNative.click(Element/ReactDOMComponent)`
- * - `ReactTestUtils.SimulateNative.mouseMove(Element/ReactDOMComponent)`
- * - `ReactTestUtils.SimulateNative.mouseIn/ReactDOMComponent)`
- * - `ReactTestUtils.SimulateNative.mouseOut(Element/ReactDOMComponent)`
- * - ... (All keys from `EventConstants.topLevelTypes`)
- *
- * Note: Top level event types are a subset of the entire set of handler types
- * (which include a broader set of "synthetic" events). For example, onDragDone
- * is a synthetic event. Except when testing an event plugin or React's event
- * handling code specifically, you probably want to use ReactTestUtils.Simulate
- * to dispatch synthetic events.
- */
-
-function makeNativeSimulator(eventType) {
- return function (domComponentOrNode, nativeEventData) {
- var fakeNativeEvent = new Event(eventType);
- _assign(fakeNativeEvent, nativeEventData);
- if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {
- ReactTestUtils.simulateNativeEventOnDOMComponent(eventType, domComponentOrNode, fakeNativeEvent);
- } else if (domComponentOrNode.tagName) {
- // Will allow on actual dom nodes.
- ReactTestUtils.simulateNativeEventOnNode(eventType, domComponentOrNode, fakeNativeEvent);
- }
- };
-}
-
-Object.keys(topLevelTypes).forEach(function (eventType) {
- // Event type is stored as 'topClick' - we transform that to 'click'
- var convenienceName = eventType.indexOf('top') === 0 ? eventType.charAt(3).toLowerCase() + eventType.substr(4) : eventType;
- /**
- * @param {!Element|ReactDOMComponent} domComponentOrNode
- * @param {?Event} nativeEventData Fake native event to use in SyntheticEvent.
- */
- ReactTestUtils.SimulateNative[convenienceName] = makeNativeSimulator(eventType);
-});
-
-module.exports = ReactTestUtils;
-},{"110":110,"129":129,"138":138,"154":154,"16":16,"162":162,"17":17,"18":18,"20":20,"25":25,"30":30,"32":32,"35":35,"60":60,"64":64,"79":79,"82":82,"93":93}],81:[function(_dereq_,module,exports){
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Return the lowest common ancestor of A and B, or null if they are in
- * different trees.
- */
-
-function getLowestCommonAncestor(instA, instB) {
- var depthA = 0;
- for (var tempA = instA; tempA; tempA = tempA._hostParent) {
- depthA++;
- }
- var depthB = 0;
- for (var tempB = instB; tempB; tempB = tempB._hostParent) {
- depthB++;
- }
-
- // If A is deeper, crawl up.
- while (depthA - depthB > 0) {
- instA = instA._hostParent;
- depthA--;
- }
-
- // If B is deeper, crawl up.
- while (depthB - depthA > 0) {
- instB = instB._hostParent;
- depthB--;
- }
-
- // Walk in lockstep until we find a match.
- var depth = depthA;
- while (depth--) {
- if (instA === instB) {
- return instA;
- }
- instA = instA._hostParent;
- instB = instB._hostParent;
- }
- return null;
-}
-
-/**
- * Return if A is an ancestor of B.
- */
-function isAncestor(instA, instB) {
- while (instB) {
- if (instB === instA) {
- return true;
- }
- instB = instB._hostParent;
- }
- return false;
-}
-
-/**
- * Return the parent instance of the passed-in instance.
- */
-function getParentInstance(inst) {
- return inst._hostParent;
-}
-
-/**
- * Simulates the traversal of a two-phase, capture/bubble event dispatch.
- */
-function traverseTwoPhase(inst, fn, arg) {
- var path = [];
- while (inst) {
- path.push(inst);
- inst = inst._hostParent;
- }
- var i;
- for (i = path.length; i-- > 0;) {
- fn(path[i], 'captured', arg);
- }
- for (i = 0; i < path.length; i++) {
- fn(path[i], 'bubbled', arg);
- }
-}
-
-/**
- * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
- * should would receive a `mouseEnter` or `mouseLeave` event.
- *
- * Does not invoke the callback on the nearest common ancestor because nothing
- * "entered" or "left" that element.
- */
-function traverseEnterLeave(from, to, fn, argFrom, argTo) {
- var common = from && to ? getLowestCommonAncestor(from, to) : null;
- var pathFrom = [];
- while (from && from !== common) {
- pathFrom.push(from);
- from = from._hostParent;
- }
- var pathTo = [];
- while (to && to !== common) {
- pathTo.push(to);
- to = to._hostParent;
- }
- var i;
- for (i = 0; i < pathFrom.length; i++) {
- fn(pathFrom[i], 'bubbled', argFrom);
- }
- for (i = pathTo.length; i-- > 0;) {
- fn(pathTo[i], 'captured', argTo);
- }
-}
-
-module.exports = {
- isAncestor: isAncestor,
- getLowestCommonAncestor: getLowestCommonAncestor,
- getParentInstance: getParentInstance,
- traverseTwoPhase: traverseTwoPhase,
- traverseEnterLeave: traverseEnterLeave
-};
-},{}],82:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-module.exports = {
- IndeterminateComponent: 0, // Before we know whether it is functional or class
- FunctionalComponent: 1,
- ClassComponent: 2,
- HostContainer: 3, // Root of a host tree. Could be nested inside another node.
- HostComponent: 4,
- HostText: 5,
- CoroutineComponent: 6,
- CoroutineHandlerPhase: 7,
- YieldComponent: 8,
- Fragment: 9
-};
-},{}],83:[function(_dereq_,module,exports){
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var ReactCurrentOwner = _dereq_(137);
-var ReactInstanceMap = _dereq_(64);
-var ReactInstrumentation = _dereq_(65);
-var ReactUpdates = _dereq_(84);
-
-var invariant = _dereq_(154);
-var warning = _dereq_(161);
-
-function enqueueUpdate(internalInstance) {
- ReactUpdates.enqueueUpdate(internalInstance);
-}
-
-function formatUnexpectedArgument(arg) {
- var type = typeof arg;
- if (type !== 'object') {
- return type;
- }
- var displayName = arg.constructor && arg.constructor.name || type;
- var keys = Object.keys(arg);
- if (keys.length > 0 && keys.length < 20) {
- return displayName + ' (keys: ' + keys.join(', ') + ')';
- }
- return displayName;
-}
-
-function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
- var internalInstance = ReactInstanceMap.get(publicInstance);
- if (!internalInstance) {
- if ("development" !== 'production') {
- var ctor = publicInstance.constructor;
- // Only warn when we have a callerName. Otherwise we should be silent.
- // We're probably calling from enqueueCallback. We don't want to warn
- // there because we already warned for the corresponding lifecycle method.
- "development" !== 'production' ? warning(!callerName, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, ctor && (ctor.displayName || ctor.name) || 'ReactClass') : void 0;
- }
- return null;
- }
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + 'within `render` or another component\'s constructor). Render methods ' + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;
- }
-
- return internalInstance;
-}
-
-/**
- * ReactUpdateQueue allows for state updates to be scheduled into a later
- * reconciliation step.
- */
-var ReactUpdateQueue = {
-
- /**
- * Checks whether or not this composite component is mounted.
- * @param {ReactClass} publicInstance The instance we want to test.
- * @return {boolean} True if mounted, false otherwise.
- * @protected
- * @final
- */
- isMounted: function (publicInstance) {
- if ("development" !== 'production') {
- var owner = ReactCurrentOwner.current;
- if (owner !== null) {
- "development" !== 'production' ? warning(owner._warnedAboutRefsInRender, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A component') : void 0;
- owner._warnedAboutRefsInRender = true;
- }
- }
- var internalInstance = ReactInstanceMap.get(publicInstance);
- if (internalInstance) {
- // During componentWillMount and render this will still be null but after
- // that will always render to something. At least for now. So we can use
- // this hack.
- return !!internalInstance._renderedComponent;
- } else {
- return false;
- }
- },
-
- /**
- * Enqueue a callback that will be executed after all the pending updates
- * have processed.
- *
- * @param {ReactClass} publicInstance The instance to use as `this` context.
- * @param {?function} callback Called after state is updated.
- * @param {string} callerName Name of the calling function in the public API.
- * @internal
- */
- enqueueCallback: function (publicInstance, callback, callerName) {
- ReactUpdateQueue.validateCallback(callback, callerName);
- var internalInstance = getInternalInstanceReadyForUpdate(publicInstance);
-
- // Previously we would throw an error if we didn't have an internal
- // instance. Since we want to make it a no-op instead, we mirror the same
- // behavior we have in other enqueue* methods.
- // We also need to ignore callbacks in componentWillMount. See
- // enqueueUpdates.
- if (!internalInstance) {
- return null;
- }
-
- if (internalInstance._pendingCallbacks) {
- internalInstance._pendingCallbacks.push(callback);
- } else {
- internalInstance._pendingCallbacks = [callback];
- }
- // TODO: The callback here is ignored when setState is called from
- // componentWillMount. Either fix it or disallow doing so completely in
- // favor of getInitialState. Alternatively, we can disallow
- // componentWillMount during server-side rendering.
- enqueueUpdate(internalInstance);
- },
-
- enqueueCallbackInternal: function (internalInstance, callback) {
- if (internalInstance._pendingCallbacks) {
- internalInstance._pendingCallbacks.push(callback);
- } else {
- internalInstance._pendingCallbacks = [callback];
- }
- enqueueUpdate(internalInstance);
- },
-
- /**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @internal
- */
- enqueueForceUpdate: function (publicInstance) {
- var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'forceUpdate');
-
- if (!internalInstance) {
- return;
- }
-
- internalInstance._pendingForceUpdate = true;
-
- enqueueUpdate(internalInstance);
- },
-
- /**
- * Replaces all of the state. Always use this or `setState` to mutate state.
- * You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} completeState Next state.
- * @internal
- */
- enqueueReplaceState: function (publicInstance, completeState) {
- var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'replaceState');
-
- if (!internalInstance) {
- return;
- }
-
- internalInstance._pendingStateQueue = [completeState];
- internalInstance._pendingReplaceState = true;
-
- enqueueUpdate(internalInstance);
- },
-
- /**
- * Sets a subset of the state. This only exists because _pendingState is
- * internal. This provides a merging strategy that is not available to deep
- * properties which is confusing. TODO: Expose pendingState or don't use it
- * during the merge.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} partialState Next partial state to be merged with state.
- * @internal
- */
- enqueueSetState: function (publicInstance, partialState) {
- if ("development" !== 'production') {
- ReactInstrumentation.debugTool.onSetState();
- "development" !== 'production' ? warning(partialState != null, 'setState(...): You passed an undefined or null state object; ' + 'instead, use forceUpdate().') : void 0;
- }
-
- var internalInstance = getInternalInstanceReadyForUpdate(publicInstance, 'setState');
-
- if (!internalInstance) {
- return;
- }
-
- var queue = internalInstance._pendingStateQueue || (internalInstance._pendingStateQueue = []);
- queue.push(partialState);
-
- enqueueUpdate(internalInstance);
- },
-
- enqueueElementInternal: function (internalInstance, nextElement, nextContext) {
- internalInstance._pendingElement = nextElement;
- // TODO: introduce _pendingContext instead of setting it directly.
- internalInstance._context = nextContext;
- enqueueUpdate(internalInstance);
- },
-
- validateCallback: function (callback, callerName) {
- !(!callback || typeof callback === 'function') ? "development" !== 'production' ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0;
- }
-
-};
-
-module.exports = ReactUpdateQueue;
-},{"129":129,"137":137,"154":154,"161":161,"64":64,"65":65,"84":84}],84:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var PooledClass = _dereq_(24);
-var ReactFeatureFlags = _dereq_(59);
-var ReactReconciler = _dereq_(75);
-var Transaction = _dereq_(102);
-
-var invariant = _dereq_(154);
-
-var dirtyComponents = [];
-var updateBatchNumber = 0;
-
-var batchingStrategy = null;
-
-function ensureInjected() {
- !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? "development" !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0;
-}
-
-var NESTED_UPDATES = {
- initialize: function () {
- this.dirtyComponentsLength = dirtyComponents.length;
- },
- close: function () {
- if (this.dirtyComponentsLength !== dirtyComponents.length) {
- // Additional updates were enqueued by componentDidUpdate handlers or
- // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run
- // these new updates so that if A's componentDidUpdate calls setState on
- // B, B will update before the callback A's updater provided when calling
- // setState.
- dirtyComponents.splice(0, this.dirtyComponentsLength);
- flushBatchedUpdates();
- } else {
- dirtyComponents.length = 0;
- }
- }
-};
-
-var TRANSACTION_WRAPPERS = [NESTED_UPDATES];
-
-function ReactUpdatesFlushTransaction() {
- this.reinitializeTransaction();
- this.dirtyComponentsLength = null;
- this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled(
- /* useCreateElement */true);
-}
-
-_assign(ReactUpdatesFlushTransaction.prototype, Transaction, {
- getTransactionWrappers: function () {
- return TRANSACTION_WRAPPERS;
- },
-
- destructor: function () {
- this.dirtyComponentsLength = null;
- ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction);
- this.reconcileTransaction = null;
- },
-
- perform: function (method, scope, a) {
- // Essentially calls `this.reconcileTransaction.perform(method, scope, a)`
- // with this transaction's wrappers around it.
- return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a);
- }
-});
-
-PooledClass.addPoolingTo(ReactUpdatesFlushTransaction);
-
-function batchedUpdates(callback, a, b, c, d, e) {
- ensureInjected();
- return batchingStrategy.batchedUpdates(callback, a, b, c, d, e);
-}
-
-/**
- * Array comparator for ReactComponents by mount ordering.
- *
- * @param {ReactComponent} c1 first component you're comparing
- * @param {ReactComponent} c2 second component you're comparing
- * @return {number} Return value usable by Array.prototype.sort().
- */
-function mountOrderComparator(c1, c2) {
- return c1._mountOrder - c2._mountOrder;
-}
-
-function runBatchedUpdates(transaction) {
- var len = transaction.dirtyComponentsLength;
- !(len === dirtyComponents.length) ? "development" !== 'production' ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0;
-
- // Since reconciling a component higher in the owner hierarchy usually (not
- // always -- see shouldComponentUpdate()) will reconcile children, reconcile
- // them before their children by sorting the array.
- dirtyComponents.sort(mountOrderComparator);
-
- // Any updates enqueued while reconciling must be performed after this entire
- // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and
- // C, B could update twice in a single batch if C's render enqueues an update
- // to B (since B would have already updated, we should skip it, and the only
- // way we can know to do so is by checking the batch counter).
- updateBatchNumber++;
-
- for (var i = 0; i < len; i++) {
- // If a component is unmounted before pending changes apply, it will still
- // be here, but we assume that it has cleared its _pendingCallbacks and
- // that performUpdateIfNecessary is a noop.
- var component = dirtyComponents[i];
-
- // If performUpdateIfNecessary happens to enqueue any new updates, we
- // shouldn't execute the callbacks until the next render happens, so
- // stash the callbacks first
- var callbacks = component._pendingCallbacks;
- component._pendingCallbacks = null;
-
- var markerName;
- if (ReactFeatureFlags.logTopLevelRenders) {
- var namedComponent = component;
- // Duck type TopLevelWrapper. This is probably always true.
- if (component._currentElement.type.isReactTopLevelWrapper) {
- namedComponent = component._renderedComponent;
- }
- markerName = 'React update: ' + namedComponent.getName();
- console.time(markerName);
- }
-
- ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber);
-
- if (markerName) {
- console.timeEnd(markerName);
- }
-
- if (callbacks) {
- for (var j = 0; j < callbacks.length; j++) {
- transaction.reconcileTransaction.getReactMountReady().enqueue(callbacks[j], component.getPublicInstance());
- }
- }
- }
-}
-
-var flushBatchedUpdates = function () {
- // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents
- // array and perform any updates enqueued by mount-ready handlers (i.e.,
- // componentDidUpdate) but we need to check here too in order to catch
- // updates enqueued by setState callbacks.
- while (dirtyComponents.length) {
- if (dirtyComponents.length) {
- var transaction = ReactUpdatesFlushTransaction.getPooled();
- transaction.perform(runBatchedUpdates, null, transaction);
- ReactUpdatesFlushTransaction.release(transaction);
- }
- }
-};
-
-/**
- * Mark a component as needing a rerender, adding an optional callback to a
- * list of functions which will be executed once the rerender occurs.
- */
-function enqueueUpdate(component) {
- ensureInjected();
-
- // Various parts of our code (such as ReactCompositeComponent's
- // _renderValidatedComponent) assume that calls to render aren't nested;
- // verify that that's the case. (This is called by each top-level update
- // function, like setState, forceUpdate, etc.; creation and
- // destruction of top-level components is guarded in ReactMount.)
-
- if (!batchingStrategy.isBatchingUpdates) {
- batchingStrategy.batchedUpdates(enqueueUpdate, component);
- return;
- }
-
- dirtyComponents.push(component);
- if (component._updateBatchNumber == null) {
- component._updateBatchNumber = updateBatchNumber + 1;
- }
-}
-
-var ReactUpdatesInjection = {
- injectReconcileTransaction: function (ReconcileTransaction) {
- !ReconcileTransaction ? "development" !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0;
- ReactUpdates.ReactReconcileTransaction = ReconcileTransaction;
- },
-
- injectBatchingStrategy: function (_batchingStrategy) {
- !_batchingStrategy ? "development" !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0;
- !(typeof _batchingStrategy.batchedUpdates === 'function') ? "development" !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0;
- !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? "development" !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0;
- batchingStrategy = _batchingStrategy;
- },
-
- getBatchingStrategy: function () {
- return batchingStrategy;
- }
-};
-
-var ReactUpdates = {
- /**
- * React references `ReactReconcileTransaction` using this property in order
- * to allow dependency injection.
- *
- * @internal
- */
- ReactReconcileTransaction: null,
-
- batchedUpdates: batchedUpdates,
- enqueueUpdate: enqueueUpdate,
- flushBatchedUpdates: flushBatchedUpdates,
- injection: ReactUpdatesInjection
-};
-
-module.exports = ReactUpdates;
-},{"102":102,"129":129,"154":154,"162":162,"24":24,"59":59,"75":75}],85:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-module.exports = '16.0.0-alpha';
-},{}],86:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var NS = {
- xlink: 'http://www.w3.org/1999/xlink',
- xml: 'http://www.w3.org/XML/1998/namespace'
-};
-
-// We use attributes for everything SVG so let's avoid some duplication and run
-// code instead.
-// The following are all specified in the HTML config already so we exclude here.
-// - class (as className)
-// - color
-// - height
-// - id
-// - lang
-// - max
-// - media
-// - method
-// - min
-// - name
-// - style
-// - target
-// - type
-// - width
-var ATTRS = {
- accentHeight: 'accent-height',
- accumulate: 0,
- additive: 0,
- alignmentBaseline: 'alignment-baseline',
- allowReorder: 'allowReorder',
- alphabetic: 0,
- amplitude: 0,
- arabicForm: 'arabic-form',
- ascent: 0,
- attributeName: 'attributeName',
- attributeType: 'attributeType',
- autoReverse: 'autoReverse',
- azimuth: 0,
- baseFrequency: 'baseFrequency',
- baseProfile: 'baseProfile',
- baselineShift: 'baseline-shift',
- bbox: 0,
- begin: 0,
- bias: 0,
- by: 0,
- calcMode: 'calcMode',
- capHeight: 'cap-height',
- clip: 0,
- clipPath: 'clip-path',
- clipRule: 'clip-rule',
- clipPathUnits: 'clipPathUnits',
- colorInterpolation: 'color-interpolation',
- colorInterpolationFilters: 'color-interpolation-filters',
- colorProfile: 'color-profile',
- colorRendering: 'color-rendering',
- contentScriptType: 'contentScriptType',
- contentStyleType: 'contentStyleType',
- cursor: 0,
- cx: 0,
- cy: 0,
- d: 0,
- decelerate: 0,
- descent: 0,
- diffuseConstant: 'diffuseConstant',
- direction: 0,
- display: 0,
- divisor: 0,
- dominantBaseline: 'dominant-baseline',
- dur: 0,
- dx: 0,
- dy: 0,
- edgeMode: 'edgeMode',
- elevation: 0,
- enableBackground: 'enable-background',
- end: 0,
- exponent: 0,
- externalResourcesRequired: 'externalResourcesRequired',
- fill: 0,
- fillOpacity: 'fill-opacity',
- fillRule: 'fill-rule',
- filter: 0,
- filterRes: 'filterRes',
- filterUnits: 'filterUnits',
- floodColor: 'flood-color',
- floodOpacity: 'flood-opacity',
- focusable: 0,
- fontFamily: 'font-family',
- fontSize: 'font-size',
- fontSizeAdjust: 'font-size-adjust',
- fontStretch: 'font-stretch',
- fontStyle: 'font-style',
- fontVariant: 'font-variant',
- fontWeight: 'font-weight',
- format: 0,
- from: 0,
- fx: 0,
- fy: 0,
- g1: 0,
- g2: 0,
- glyphName: 'glyph-name',
- glyphOrientationHorizontal: 'glyph-orientation-horizontal',
- glyphOrientationVertical: 'glyph-orientation-vertical',
- glyphRef: 'glyphRef',
- gradientTransform: 'gradientTransform',
- gradientUnits: 'gradientUnits',
- hanging: 0,
- horizAdvX: 'horiz-adv-x',
- horizOriginX: 'horiz-origin-x',
- ideographic: 0,
- imageRendering: 'image-rendering',
- 'in': 0,
- in2: 0,
- intercept: 0,
- k: 0,
- k1: 0,
- k2: 0,
- k3: 0,
- k4: 0,
- kernelMatrix: 'kernelMatrix',
- kernelUnitLength: 'kernelUnitLength',
- kerning: 0,
- keyPoints: 'keyPoints',
- keySplines: 'keySplines',
- keyTimes: 'keyTimes',
- lengthAdjust: 'lengthAdjust',
- letterSpacing: 'letter-spacing',
- lightingColor: 'lighting-color',
- limitingConeAngle: 'limitingConeAngle',
- local: 0,
- markerEnd: 'marker-end',
- markerMid: 'marker-mid',
- markerStart: 'marker-start',
- markerHeight: 'markerHeight',
- markerUnits: 'markerUnits',
- markerWidth: 'markerWidth',
- mask: 0,
- maskContentUnits: 'maskContentUnits',
- maskUnits: 'maskUnits',
- mathematical: 0,
- mode: 0,
- numOctaves: 'numOctaves',
- offset: 0,
- opacity: 0,
- operator: 0,
- order: 0,
- orient: 0,
- orientation: 0,
- origin: 0,
- overflow: 0,
- overlinePosition: 'overline-position',
- overlineThickness: 'overline-thickness',
- paintOrder: 'paint-order',
- panose1: 'panose-1',
- pathLength: 'pathLength',
- patternContentUnits: 'patternContentUnits',
- patternTransform: 'patternTransform',
- patternUnits: 'patternUnits',
- pointerEvents: 'pointer-events',
- points: 0,
- pointsAtX: 'pointsAtX',
- pointsAtY: 'pointsAtY',
- pointsAtZ: 'pointsAtZ',
- preserveAlpha: 'preserveAlpha',
- preserveAspectRatio: 'preserveAspectRatio',
- primitiveUnits: 'primitiveUnits',
- r: 0,
- radius: 0,
- refX: 'refX',
- refY: 'refY',
- renderingIntent: 'rendering-intent',
- repeatCount: 'repeatCount',
- repeatDur: 'repeatDur',
- requiredExtensions: 'requiredExtensions',
- requiredFeatures: 'requiredFeatures',
- restart: 0,
- result: 0,
- rotate: 0,
- rx: 0,
- ry: 0,
- scale: 0,
- seed: 0,
- shapeRendering: 'shape-rendering',
- slope: 0,
- spacing: 0,
- specularConstant: 'specularConstant',
- specularExponent: 'specularExponent',
- speed: 0,
- spreadMethod: 'spreadMethod',
- startOffset: 'startOffset',
- stdDeviation: 'stdDeviation',
- stemh: 0,
- stemv: 0,
- stitchTiles: 'stitchTiles',
- stopColor: 'stop-color',
- stopOpacity: 'stop-opacity',
- strikethroughPosition: 'strikethrough-position',
- strikethroughThickness: 'strikethrough-thickness',
- string: 0,
- stroke: 0,
- strokeDasharray: 'stroke-dasharray',
- strokeDashoffset: 'stroke-dashoffset',
- strokeLinecap: 'stroke-linecap',
- strokeLinejoin: 'stroke-linejoin',
- strokeMiterlimit: 'stroke-miterlimit',
- strokeOpacity: 'stroke-opacity',
- strokeWidth: 'stroke-width',
- surfaceScale: 'surfaceScale',
- systemLanguage: 'systemLanguage',
- tableValues: 'tableValues',
- targetX: 'targetX',
- targetY: 'targetY',
- textAnchor: 'text-anchor',
- textDecoration: 'text-decoration',
- textRendering: 'text-rendering',
- textLength: 'textLength',
- to: 0,
- transform: 0,
- u1: 0,
- u2: 0,
- underlinePosition: 'underline-position',
- underlineThickness: 'underline-thickness',
- unicode: 0,
- unicodeBidi: 'unicode-bidi',
- unicodeRange: 'unicode-range',
- unitsPerEm: 'units-per-em',
- vAlphabetic: 'v-alphabetic',
- vHanging: 'v-hanging',
- vIdeographic: 'v-ideographic',
- vMathematical: 'v-mathematical',
- values: 0,
- vectorEffect: 'vector-effect',
- version: 0,
- vertAdvY: 'vert-adv-y',
- vertOriginX: 'vert-origin-x',
- vertOriginY: 'vert-origin-y',
- viewBox: 'viewBox',
- viewTarget: 'viewTarget',
- visibility: 0,
- widths: 0,
- wordSpacing: 'word-spacing',
- writingMode: 'writing-mode',
- x: 0,
- xHeight: 'x-height',
- x1: 0,
- x2: 0,
- xChannelSelector: 'xChannelSelector',
- xlinkActuate: 'xlink:actuate',
- xlinkArcrole: 'xlink:arcrole',
- xlinkHref: 'xlink:href',
- xlinkRole: 'xlink:role',
- xlinkShow: 'xlink:show',
- xlinkTitle: 'xlink:title',
- xlinkType: 'xlink:type',
- xmlBase: 'xml:base',
- xmlns: 0,
- xmlnsXlink: 'xmlns:xlink',
- xmlLang: 'xml:lang',
- xmlSpace: 'xml:space',
- y: 0,
- y1: 0,
- y2: 0,
- yChannelSelector: 'yChannelSelector',
- z: 0,
- zoomAndPan: 'zoomAndPan'
-};
-
-var SVGDOMPropertyConfig = {
- Properties: {},
- DOMAttributeNamespaces: {
- xlinkActuate: NS.xlink,
- xlinkArcrole: NS.xlink,
- xlinkHref: NS.xlink,
- xlinkRole: NS.xlink,
- xlinkShow: NS.xlink,
- xlinkTitle: NS.xlink,
- xlinkType: NS.xlink,
- xmlBase: NS.xml,
- xmlLang: NS.xml,
- xmlSpace: NS.xml
- },
- DOMAttributeNames: {}
-};
-
-Object.keys(ATTRS).forEach(function (key) {
- SVGDOMPropertyConfig.Properties[key] = 0;
- if (ATTRS[key]) {
- SVGDOMPropertyConfig.DOMAttributeNames[key] = ATTRS[key];
- }
-});
-
-module.exports = SVGDOMPropertyConfig;
-},{}],87:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var EventPropagators = _dereq_(20);
-var ExecutionEnvironment = _dereq_(140);
-var ReactBrowserEventEmitter = _dereq_(25);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactInputSelection = _dereq_(63);
-var SyntheticEvent = _dereq_(93);
-
-var getActiveElement = _dereq_(149);
-var isTextInputElement = _dereq_(127);
-var shallowEqual = _dereq_(160);
-
-// Node type for document fragments (Node.DOCUMENT_FRAGMENT_NODE).
-var DOC_FRAGMENT_TYPE = 11;
-
-var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11;
-
-var eventTypes = {
- select: {
- phasedRegistrationNames: {
- bubbled: 'onSelect',
- captured: 'onSelectCapture'
- },
- dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange']
- }
-};
-
-var activeElement = null;
-var activeElementInst = null;
-var lastSelection = null;
-var mouseDown = false;
-
-// Track whether all listeners exists for this plugin. If none exist, we do
-// not extract events. See #3639.
-var isListeningToAllDependencies = ReactBrowserEventEmitter.isListeningToAllDependencies;
-
-/**
- * Get an object which is a unique representation of the current selection.
- *
- * The return value will not be consistent across nodes or browsers, but
- * two identical selections on the same node will return identical objects.
- *
- * @param {DOMElement} node
- * @return {object}
- */
-function getSelection(node) {
- if ('selectionStart' in node && ReactInputSelection.hasSelectionCapabilities(node)) {
- return {
- start: node.selectionStart,
- end: node.selectionEnd
- };
- } else if (window.getSelection) {
- var selection = window.getSelection();
- return {
- anchorNode: selection.anchorNode,
- anchorOffset: selection.anchorOffset,
- focusNode: selection.focusNode,
- focusOffset: selection.focusOffset
- };
- } else if (document.selection) {
- var range = document.selection.createRange();
- return {
- parentElement: range.parentElement(),
- text: range.text,
- top: range.boundingTop,
- left: range.boundingLeft
- };
- }
-}
-
-/**
- * Poll selection to see whether it's changed.
- *
- * @param {object} nativeEvent
- * @return {?SyntheticEvent}
- */
-function constructSelectEvent(nativeEvent, nativeEventTarget) {
- // Ensure we have the right element, and that the user is not dragging a
- // selection (this matches native `select` event behavior). In HTML5, select
- // fires only on input and textarea thus if there's no focused element we
- // won't dispatch.
- if (mouseDown || activeElement == null || activeElement !== getActiveElement()) {
- return null;
- }
-
- // Only fire when selection has actually changed.
- var currentSelection = getSelection(activeElement);
- if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
- lastSelection = currentSelection;
-
- var syntheticEvent = SyntheticEvent.getPooled(eventTypes.select, activeElementInst, nativeEvent, nativeEventTarget);
-
- syntheticEvent.type = 'select';
- syntheticEvent.target = activeElement;
-
- EventPropagators.accumulateTwoPhaseDispatches(syntheticEvent);
-
- return syntheticEvent;
- }
-
- return null;
-}
-
-/**
- * This plugin creates an `onSelect` event that normalizes select events
- * across form elements.
- *
- * Supported elements are:
- * - input (see `isTextInputElement`)
- * - textarea
- * - contentEditable
- *
- * This differs from native browser implementations in the following ways:
- * - Fires on contentEditable fields as well as inputs.
- * - Fires for collapsed selection.
- * - Fires after user input.
- */
-var SelectEventPlugin = {
-
- eventTypes: eventTypes,
-
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- if (targetInst) {
- var containerInfo = targetInst._hostContainerInfo;
- var isDocumentFragment = containerInfo._node && containerInfo._node.nodeType === DOC_FRAGMENT_TYPE;
- var doc = isDocumentFragment ? containerInfo._node : containerInfo._ownerDocument;
- if (!isListeningToAllDependencies('onSelect', doc)) {
- return null;
- }
- }
-
- var targetNode = targetInst ? ReactDOMComponentTree.getNodeFromInstance(targetInst) : window;
-
- switch (topLevelType) {
- // Track the input node that has focus.
- case 'topFocus':
- if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
- activeElement = targetNode;
- activeElementInst = targetInst;
- lastSelection = null;
- }
- break;
- case 'topBlur':
- activeElement = null;
- activeElementInst = null;
- lastSelection = null;
- break;
-
- // Don't fire the event while the user is dragging. This matches the
- // semantics of the native select event.
- case 'topMouseDown':
- mouseDown = true;
- break;
- case 'topContextMenu':
- case 'topMouseUp':
- mouseDown = false;
- return constructSelectEvent(nativeEvent, nativeEventTarget);
-
- // Chrome and IE fire non-standard event when selection is changed (and
- // sometimes when it hasn't). IE's event fires out of order with respect
- // to key and input events on deletion, so we discard it.
- //
- // Firefox doesn't support selectionchange, so check selection status
- // after each key entry. The selection changes after keydown and before
- // keyup, but we check on keydown as well in the case of holding down a
- // key, when multiple keydown events are fired but only one keyup is.
- // This is also our approach for IE handling, for the reason above.
- case 'topSelectionChange':
- if (skipSelectionChangeEvent) {
- break;
- }
- // falls through
- case 'topKeyDown':
- case 'topKeyUp':
- return constructSelectEvent(nativeEvent, nativeEventTarget);
- }
-
- return null;
- }
-
-};
-
-module.exports = SelectEventPlugin;
-},{"127":127,"140":140,"149":149,"160":160,"20":20,"25":25,"35":35,"63":63,"93":93}],88:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var EventPropagators = _dereq_(20);
-var SyntheticAnimationEvent = _dereq_(89);
-var SyntheticClipboardEvent = _dereq_(90);
-var SyntheticEvent = _dereq_(93);
-var SyntheticFocusEvent = _dereq_(94);
-var SyntheticKeyboardEvent = _dereq_(96);
-var SyntheticMouseEvent = _dereq_(97);
-var SyntheticDragEvent = _dereq_(92);
-var SyntheticTouchEvent = _dereq_(98);
-var SyntheticTransitionEvent = _dereq_(99);
-var SyntheticUIEvent = _dereq_(100);
-var SyntheticWheelEvent = _dereq_(101);
-
-var getEventCharCode = _dereq_(114);
-var invariant = _dereq_(154);
-
-/**
- * Turns
- * ['abort', ...]
- * into
- * eventTypes = {
- * 'abort': {
- * phasedRegistrationNames: {
- * bubbled: 'onAbort',
- * captured: 'onAbortCapture',
- * },
- * dependencies: ['topAbort'],
- * },
- * ...
- * };
- * topLevelEventsToDispatchConfig = {
- * 'topAbort': { sameConfig }
- * };
- */
-var eventTypes = {};
-var topLevelEventsToDispatchConfig = {};
-['abort', 'animationEnd', 'animationIteration', 'animationStart', 'blur', 'canPlay', 'canPlayThrough', 'click', 'contextMenu', 'copy', 'cut', 'doubleClick', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'focus', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'progress', 'rateChange', 'reset', 'scroll', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchMove', 'touchStart', 'transitionEnd', 'volumeChange', 'waiting', 'wheel'].forEach(function (event) {
- var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
- var onEvent = 'on' + capitalizedEvent;
- var topEvent = 'top' + capitalizedEvent;
-
- var type = {
- phasedRegistrationNames: {
- bubbled: onEvent,
- captured: onEvent + 'Capture'
- },
- dependencies: [topEvent]
- };
- eventTypes[event] = type;
- topLevelEventsToDispatchConfig[topEvent] = type;
-});
-
-function isInteractive(tag) {
- return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
-}
-
-function shouldPreventMouseEvent(inst) {
- if (inst) {
- var disabled = inst._currentElement && inst._currentElement.props.disabled;
-
- if (disabled) {
- return isInteractive(inst._tag);
- }
- }
-
- return false;
-}
-
-var SimpleEventPlugin = {
-
- eventTypes: eventTypes,
-
- extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
- var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
- if (!dispatchConfig) {
- return null;
- }
- var EventConstructor;
- switch (topLevelType) {
- case 'topAbort':
- case 'topCanPlay':
- case 'topCanPlayThrough':
- case 'topDurationChange':
- case 'topEmptied':
- case 'topEncrypted':
- case 'topEnded':
- case 'topError':
- case 'topInput':
- case 'topInvalid':
- case 'topLoad':
- case 'topLoadedData':
- case 'topLoadedMetadata':
- case 'topLoadStart':
- case 'topPause':
- case 'topPlay':
- case 'topPlaying':
- case 'topProgress':
- case 'topRateChange':
- case 'topReset':
- case 'topSeeked':
- case 'topSeeking':
- case 'topStalled':
- case 'topSubmit':
- case 'topSuspend':
- case 'topTimeUpdate':
- case 'topVolumeChange':
- case 'topWaiting':
- // HTML Events
- // @see http://www.w3.org/TR/html5/index.html#events-0
- EventConstructor = SyntheticEvent;
- break;
- case 'topKeyPress':
- // Firefox creates a keypress event for function keys too. This removes
- // the unwanted keypress events. Enter is however both printable and
- // non-printable. One would expect Tab to be as well (but it isn't).
- if (getEventCharCode(nativeEvent) === 0) {
- return null;
- }
- /* falls through */
- case 'topKeyDown':
- case 'topKeyUp':
- EventConstructor = SyntheticKeyboardEvent;
- break;
- case 'topBlur':
- case 'topFocus':
- EventConstructor = SyntheticFocusEvent;
- break;
- case 'topClick':
- // Firefox creates a click event on right mouse clicks. This removes the
- // unwanted click events.
- if (nativeEvent.button === 2) {
- return null;
- }
- /* falls through */
- case 'topDoubleClick':
- case 'topMouseDown':
- case 'topMouseMove':
- case 'topMouseUp':
- // Disabled elements should not respond to mouse events
- if (shouldPreventMouseEvent(targetInst)) {
- return null;
- }
- /* falls through */
- case 'topMouseOut':
- case 'topMouseOver':
- case 'topContextMenu':
- EventConstructor = SyntheticMouseEvent;
- break;
- case 'topDrag':
- case 'topDragEnd':
- case 'topDragEnter':
- case 'topDragExit':
- case 'topDragLeave':
- case 'topDragOver':
- case 'topDragStart':
- case 'topDrop':
- EventConstructor = SyntheticDragEvent;
- break;
- case 'topTouchCancel':
- case 'topTouchEnd':
- case 'topTouchMove':
- case 'topTouchStart':
- EventConstructor = SyntheticTouchEvent;
- break;
- case 'topAnimationEnd':
- case 'topAnimationIteration':
- case 'topAnimationStart':
- EventConstructor = SyntheticAnimationEvent;
- break;
- case 'topTransitionEnd':
- EventConstructor = SyntheticTransitionEvent;
- break;
- case 'topScroll':
- EventConstructor = SyntheticUIEvent;
- break;
- case 'topWheel':
- EventConstructor = SyntheticWheelEvent;
- break;
- case 'topCopy':
- case 'topCut':
- case 'topPaste':
- EventConstructor = SyntheticClipboardEvent;
- break;
- }
- !EventConstructor ? "development" !== 'production' ? invariant(false, 'SimpleEventPlugin: Unhandled event type, `%s`.', topLevelType) : _prodInvariant('86', topLevelType) : void 0;
- var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
- EventPropagators.accumulateTwoPhaseDispatches(event);
- return event;
- }
-
-};
-
-module.exports = SimpleEventPlugin;
-},{"100":100,"101":101,"114":114,"129":129,"154":154,"20":20,"89":89,"90":90,"92":92,"93":93,"94":94,"96":96,"97":97,"98":98,"99":99}],89:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticEvent = _dereq_(93);
-
-/**
- * @interface Event
- * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
- */
-var AnimationEventInterface = {
- animationName: null,
- elapsedTime: null,
- pseudoElement: null
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticEvent}
- */
-function SyntheticAnimationEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticEvent.augmentClass(SyntheticAnimationEvent, AnimationEventInterface);
-
-module.exports = SyntheticAnimationEvent;
-},{"93":93}],90:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticEvent = _dereq_(93);
-
-/**
- * @interface Event
- * @see http://www.w3.org/TR/clipboard-apis/
- */
-var ClipboardEventInterface = {
- clipboardData: function (event) {
- return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
- }
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
-
-module.exports = SyntheticClipboardEvent;
-},{"93":93}],91:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticEvent = _dereq_(93);
-
-/**
- * @interface Event
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
- */
-var CompositionEventInterface = {
- data: null
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticCompositionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface);
-
-module.exports = SyntheticCompositionEvent;
-},{"93":93}],92:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticMouseEvent = _dereq_(97);
-
-/**
- * @interface DragEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-var DragEventInterface = {
- dataTransfer: null
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
-
-module.exports = SyntheticDragEvent;
-},{"97":97}],93:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var PooledClass = _dereq_(24);
-
-var emptyFunction = _dereq_(146);
-var warning = _dereq_(161);
-
-var didWarnForAddedNewProperty = false;
-var isProxySupported = typeof Proxy === 'function';
-
-var shouldBeReleasedProperties = ['dispatchConfig', '_targetInst', 'nativeEvent', 'isDefaultPrevented', 'isPropagationStopped', '_dispatchListeners', '_dispatchInstances'];
-
-/**
- * @interface Event
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-var EventInterface = {
- type: null,
- target: null,
- // currentTarget is set when dispatching; no use in copying it here
- currentTarget: emptyFunction.thatReturnsNull,
- eventPhase: null,
- bubbles: null,
- cancelable: null,
- timeStamp: function (event) {
- return event.timeStamp || Date.now();
- },
- defaultPrevented: null,
- isTrusted: null
-};
-
-/**
- * Synthetic events are dispatched by event plugins, typically in response to a
- * top-level event delegation handler.
- *
- * These systems should generally use pooling to reduce the frequency of garbage
- * collection. The system should check `isPersistent` to determine whether the
- * event should be released into the pool after being dispatched. Users that
- * need a persisted event should invoke `persist`.
- *
- * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
- * normalizing browser quirks. Subclasses do not necessarily have to implement a
- * DOM interface; custom application-specific events can also subclass this.
- *
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {*} targetInst Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @param {DOMEventTarget} nativeEventTarget Target node.
- */
-function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
- if ("development" !== 'production') {
- // these have a getter/setter for warnings
- delete this.nativeEvent;
- delete this.preventDefault;
- delete this.stopPropagation;
- }
-
- this.dispatchConfig = dispatchConfig;
- this._targetInst = targetInst;
- this.nativeEvent = nativeEvent;
-
- var Interface = this.constructor.Interface;
- for (var propName in Interface) {
- if (!Interface.hasOwnProperty(propName)) {
- continue;
- }
- if ("development" !== 'production') {
- delete this[propName]; // this has a getter/setter for warnings
- }
- var normalize = Interface[propName];
- if (normalize) {
- this[propName] = normalize(nativeEvent);
- } else {
- if (propName === 'target') {
- this.target = nativeEventTarget;
- } else {
- this[propName] = nativeEvent[propName];
- }
- }
- }
-
- var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
- if (defaultPrevented) {
- this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
- } else {
- this.isDefaultPrevented = emptyFunction.thatReturnsFalse;
- }
- this.isPropagationStopped = emptyFunction.thatReturnsFalse;
- return this;
-}
-
-_assign(SyntheticEvent.prototype, {
-
- preventDefault: function () {
- this.defaultPrevented = true;
- var event = this.nativeEvent;
- if (!event) {
- return;
- }
-
- if (event.preventDefault) {
- event.preventDefault();
- } else if (typeof event.returnValue !== 'unknown') {
- // eslint-disable-line valid-typeof
- event.returnValue = false;
- }
- this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
- },
-
- stopPropagation: function () {
- var event = this.nativeEvent;
- if (!event) {
- return;
- }
-
- if (event.stopPropagation) {
- event.stopPropagation();
- } else if (typeof event.cancelBubble !== 'unknown') {
- // eslint-disable-line valid-typeof
- // The ChangeEventPlugin registers a "propertychange" event for
- // IE. This event does not support bubbling or cancelling, and
- // any references to cancelBubble throw "Member not found". A
- // typeof check of "unknown" circumvents this issue (and is also
- // IE specific).
- event.cancelBubble = true;
- }
-
- this.isPropagationStopped = emptyFunction.thatReturnsTrue;
- },
-
- /**
- * We release all dispatched `SyntheticEvent`s after each event loop, adding
- * them back into the pool. This allows a way to hold onto a reference that
- * won't be added back into the pool.
- */
- persist: function () {
- this.isPersistent = emptyFunction.thatReturnsTrue;
- },
-
- /**
- * Checks if this event should be released back into the pool.
- *
- * @return {boolean} True if this should not be released, false otherwise.
- */
- isPersistent: emptyFunction.thatReturnsFalse,
-
- /**
- * `PooledClass` looks for `destructor` on each instance it releases.
- */
- destructor: function () {
- var Interface = this.constructor.Interface;
- for (var propName in Interface) {
- if ("development" !== 'production') {
- Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
- } else {
- this[propName] = null;
- }
- }
- for (var i = 0; i < shouldBeReleasedProperties.length; i++) {
- this[shouldBeReleasedProperties[i]] = null;
- }
- if ("development" !== 'production') {
- Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
- Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', emptyFunction));
- Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
- }
- }
-
-});
-
-SyntheticEvent.Interface = EventInterface;
-
-if ("development" !== 'production') {
- if (isProxySupported) {
- /*eslint-disable no-func-assign */
- SyntheticEvent = new Proxy(SyntheticEvent, {
- construct: function (target, args) {
- return this.apply(target, Object.create(target.prototype), args);
- },
- apply: function (constructor, that, args) {
- return new Proxy(constructor.apply(that, args), {
- set: function (target, prop, value) {
- if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
- "development" !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
- didWarnForAddedNewProperty = true;
- }
- target[prop] = value;
- return true;
- }
- });
- }
- });
- /*eslint-enable no-func-assign */
- }
-}
-/**
- * Helper to reduce boilerplate when creating subclasses.
- *
- * @param {function} Class
- * @param {?object} Interface
- */
-SyntheticEvent.augmentClass = function (Class, Interface) {
- var Super = this;
-
- var E = function () {};
- E.prototype = Super.prototype;
- var prototype = new E();
-
- _assign(prototype, Class.prototype);
- Class.prototype = prototype;
- Class.prototype.constructor = Class;
-
- Class.Interface = _assign({}, Super.Interface, Interface);
- Class.augmentClass = Super.augmentClass;
-
- PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
-};
-
-PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);
-
-module.exports = SyntheticEvent;
-
-/**
- * Helper to nullify syntheticEvent instance properties when destructing
- *
- * @param {object} SyntheticEvent
- * @param {String} propName
- * @return {object} defineProperty object
- */
-function getPooledWarningPropertyDefinition(propName, getVal) {
- var isFunction = typeof getVal === 'function';
- return {
- configurable: true,
- set: set,
- get: get
- };
-
- function set(val) {
- var action = isFunction ? 'setting the method' : 'setting the property';
- warn(action, 'This is effectively a no-op');
- return val;
- }
-
- function get() {
- var action = isFunction ? 'accessing the method' : 'accessing the property';
- var result = isFunction ? 'This is a no-op function' : 'This is set to null';
- warn(action, result);
- return getVal;
- }
-
- function warn(action, result) {
- var warningCondition = false;
- "development" !== 'production' ? warning(warningCondition, 'This synthetic event is reused for performance reasons. If you\'re seeing this, ' + 'you\'re %s `%s` on a released/nullified synthetic event. %s. ' + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
- }
-}
-},{"146":146,"161":161,"162":162,"24":24}],94:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticUIEvent = _dereq_(100);
-
-/**
- * @interface FocusEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-var FocusEventInterface = {
- relatedTarget: null
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticFocusEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticUIEvent.augmentClass(SyntheticFocusEvent, FocusEventInterface);
-
-module.exports = SyntheticFocusEvent;
-},{"100":100}],95:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticEvent = _dereq_(93);
-
-/**
- * @interface Event
- * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
- * /#events-inputevents
- */
-var InputEventInterface = {
- data: null
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticInputEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticEvent.augmentClass(SyntheticInputEvent, InputEventInterface);
-
-module.exports = SyntheticInputEvent;
-},{"93":93}],96:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticUIEvent = _dereq_(100);
-
-var getEventCharCode = _dereq_(114);
-var getEventKey = _dereq_(115);
-var getEventModifierState = _dereq_(116);
-
-/**
- * @interface KeyboardEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-var KeyboardEventInterface = {
- key: getEventKey,
- location: null,
- ctrlKey: null,
- shiftKey: null,
- altKey: null,
- metaKey: null,
- repeat: null,
- locale: null,
- getModifierState: getEventModifierState,
- // Legacy Interface
- charCode: function (event) {
- // `charCode` is the result of a KeyPress event and represents the value of
- // the actual printable character.
-
- // KeyPress is deprecated, but its replacement is not yet final and not
- // implemented in any major browser. Only KeyPress has charCode.
- if (event.type === 'keypress') {
- return getEventCharCode(event);
- }
- return 0;
- },
- keyCode: function (event) {
- // `keyCode` is the result of a KeyDown/Up event and represents the value of
- // physical keyboard key.
-
- // The actual meaning of the value depends on the users' keyboard layout
- // which cannot be detected. Assuming that it is a US keyboard layout
- // provides a surprisingly accurate mapping for US and European users.
- // Due to this, it is left to the user to implement at this time.
- if (event.type === 'keydown' || event.type === 'keyup') {
- return event.keyCode;
- }
- return 0;
- },
- which: function (event) {
- // `which` is an alias for either `keyCode` or `charCode` depending on the
- // type of the event.
- if (event.type === 'keypress') {
- return getEventCharCode(event);
- }
- if (event.type === 'keydown' || event.type === 'keyup') {
- return event.keyCode;
- }
- return 0;
- }
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticKeyboardEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticUIEvent.augmentClass(SyntheticKeyboardEvent, KeyboardEventInterface);
-
-module.exports = SyntheticKeyboardEvent;
-},{"100":100,"114":114,"115":115,"116":116}],97:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticUIEvent = _dereq_(100);
-var ViewportMetrics = _dereq_(103);
-
-var getEventModifierState = _dereq_(116);
-
-/**
- * @interface MouseEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-var MouseEventInterface = {
- screenX: null,
- screenY: null,
- clientX: null,
- clientY: null,
- ctrlKey: null,
- shiftKey: null,
- altKey: null,
- metaKey: null,
- getModifierState: getEventModifierState,
- button: function (event) {
- // Webkit, Firefox, IE9+
- // which: 1 2 3
- // button: 0 1 2 (standard)
- var button = event.button;
- if ('which' in event) {
- return button;
- }
- // IE<9
- // which: undefined
- // button: 0 0 0
- // button: 1 4 2 (onmouseup)
- return button === 2 ? 2 : button === 4 ? 1 : 0;
- },
- buttons: null,
- relatedTarget: function (event) {
- return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
- },
- // "Proprietary" Interface.
- pageX: function (event) {
- return 'pageX' in event ? event.pageX : event.clientX + ViewportMetrics.currentScrollLeft;
- },
- pageY: function (event) {
- return 'pageY' in event ? event.pageY : event.clientY + ViewportMetrics.currentScrollTop;
- }
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticMouseEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticUIEvent.augmentClass(SyntheticMouseEvent, MouseEventInterface);
-
-module.exports = SyntheticMouseEvent;
-},{"100":100,"103":103,"116":116}],98:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticUIEvent = _dereq_(100);
-
-var getEventModifierState = _dereq_(116);
-
-/**
- * @interface TouchEvent
- * @see http://www.w3.org/TR/touch-events/
- */
-var TouchEventInterface = {
- touches: null,
- targetTouches: null,
- changedTouches: null,
- altKey: null,
- metaKey: null,
- ctrlKey: null,
- shiftKey: null,
- getModifierState: getEventModifierState
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticUIEvent}
- */
-function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
-
-module.exports = SyntheticTouchEvent;
-},{"100":100,"116":116}],99:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticEvent = _dereq_(93);
-
-/**
- * @interface Event
- * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
- * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
- */
-var TransitionEventInterface = {
- propertyName: null,
- elapsedTime: null,
- pseudoElement: null
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticEvent}
- */
-function SyntheticTransitionEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticEvent.augmentClass(SyntheticTransitionEvent, TransitionEventInterface);
-
-module.exports = SyntheticTransitionEvent;
-},{"93":93}],100:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticEvent = _dereq_(93);
-
-var getEventTarget = _dereq_(117);
-
-/**
- * @interface UIEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-var UIEventInterface = {
- view: function (event) {
- if (event.view) {
- return event.view;
- }
-
- var target = getEventTarget(event);
- if (target.window === target) {
- // target is a window object
- return target;
- }
-
- var doc = target.ownerDocument;
- // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
- if (doc) {
- return doc.defaultView || doc.parentWindow;
- } else {
- return window;
- }
- },
- detail: function (event) {
- return event.detail || 0;
- }
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticEvent}
- */
-function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);
-
-module.exports = SyntheticUIEvent;
-},{"117":117,"93":93}],101:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var SyntheticMouseEvent = _dereq_(97);
-
-/**
- * @interface WheelEvent
- * @see http://www.w3.org/TR/DOM-Level-3-Events/
- */
-var WheelEventInterface = {
- deltaX: function (event) {
- return 'deltaX' in event ? event.deltaX :
- // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
- 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
- },
- deltaY: function (event) {
- return 'deltaY' in event ? event.deltaY :
- // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
- 'wheelDeltaY' in event ? -event.wheelDeltaY :
- // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
- 'wheelDelta' in event ? -event.wheelDelta : 0;
- },
- deltaZ: null,
-
- // Browsers without "deltaMode" is reporting in raw wheel delta where one
- // notch on the scroll is always +/- 120, roughly equivalent to pixels.
- // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
- // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
- deltaMode: null
-};
-
-/**
- * @param {object} dispatchConfig Configuration used to dispatch this event.
- * @param {string} dispatchMarker Marker identifying the event target.
- * @param {object} nativeEvent Native browser event.
- * @extends {SyntheticMouseEvent}
- */
-function SyntheticWheelEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
- return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
-}
-
-SyntheticMouseEvent.augmentClass(SyntheticWheelEvent, WheelEventInterface);
-
-module.exports = SyntheticWheelEvent;
-},{"97":97}],102:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-var OBSERVED_ERROR = {};
-
-/**
- * `Transaction` creates a black box that is able to wrap any method such that
- * certain invariants are maintained before and after the method is invoked
- * (Even if an exception is thrown while invoking the wrapped method). Whoever
- * instantiates a transaction can provide enforcers of the invariants at
- * creation time. The `Transaction` class itself will supply one additional
- * automatic invariant for you - the invariant that any transaction instance
- * should not be run while it is already being run. You would typically create a
- * single instance of a `Transaction` for reuse multiple times, that potentially
- * is used to wrap several different methods. Wrappers are extremely simple -
- * they only require implementing two methods.
- *
- * <pre>
- * wrappers (injected at creation time)
- * + +
- * | |
- * +-----------------|--------|--------------+
- * | v | |
- * | +---------------+ | |
- * | +--| wrapper1 |---|----+ |
- * | | +---------------+ v | |
- * | | +-------------+ | |
- * | | +----| wrapper2 |--------+ |
- * | | | +-------------+ | | |
- * | | | | | |
- * | v v v v | wrapper
- * | +---+ +---+ +---------+ +---+ +---+ | invariants
- * perform(anyMethod) | | | | | | | | | | | | maintained
- * +----------------->|-|---|-|---|-->|anyMethod|---|---|-|---|-|-------->
- * | | | | | | | | | | | |
- * | | | | | | | | | | | |
- * | | | | | | | | | | | |
- * | +---+ +---+ +---------+ +---+ +---+ |
- * | initialize close |
- * +-----------------------------------------+
- * </pre>
- *
- * Use cases:
- * - Preserving the input selection ranges before/after reconciliation.
- * Restoring selection even in the event of an unexpected error.
- * - Deactivating events while rearranging the DOM, preventing blurs/focuses,
- * while guaranteeing that afterwards, the event system is reactivated.
- * - Flushing a queue of collected DOM mutations to the main UI thread after a
- * reconciliation takes place in a worker thread.
- * - Invoking any collected `componentDidUpdate` callbacks after rendering new
- * content.
- * - (Future use case): Wrapping particular flushes of the `ReactWorker` queue
- * to preserve the `scrollTop` (an automatic scroll aware DOM).
- * - (Future use case): Layout calculations before and after DOM updates.
- *
- * Transactional plugin API:
- * - A module that has an `initialize` method that returns any precomputation.
- * - and a `close` method that accepts the precomputation. `close` is invoked
- * when the wrapped process is completed, or has failed.
- *
- * @param {Array<TransactionalWrapper>} transactionWrapper Wrapper modules
- * that implement `initialize` and `close`.
- * @return {Transaction} Single transaction for reuse in thread.
- *
- * @class Transaction
- */
-var TransactionImpl = {
- /**
- * Sets up this instance so that it is prepared for collecting metrics. Does
- * so such that this setup method may be used on an instance that is already
- * initialized, in a way that does not consume additional memory upon reuse.
- * That can be useful if you decide to make your subclass of this mixin a
- * "PooledClass".
- */
- reinitializeTransaction: function () {
- this.transactionWrappers = this.getTransactionWrappers();
- if (this.wrapperInitData) {
- this.wrapperInitData.length = 0;
- } else {
- this.wrapperInitData = [];
- }
- this._isInTransaction = false;
- },
-
- _isInTransaction: false,
-
- /**
- * @abstract
- * @return {Array<TransactionWrapper>} Array of transaction wrappers.
- */
- getTransactionWrappers: null,
-
- isInTransaction: function () {
- return !!this._isInTransaction;
- },
-
- /**
- * Executes the function within a safety window. Use this for the top level
- * methods that result in large amounts of computation/mutations that would
- * need to be safety checked. The optional arguments helps prevent the need
- * to bind in many cases.
- *
- * @param {function} method Member of scope to call.
- * @param {Object} scope Scope to invoke from.
- * @param {Object?=} a Argument to pass to the method.
- * @param {Object?=} b Argument to pass to the method.
- * @param {Object?=} c Argument to pass to the method.
- * @param {Object?=} d Argument to pass to the method.
- * @param {Object?=} e Argument to pass to the method.
- * @param {Object?=} f Argument to pass to the method.
- *
- * @return {*} Return value from `method`.
- */
- perform: function ( // eslint-disable-line space-before-function-paren
- method, scope, a, b, c, d, e, f) {
- !!this.isInTransaction() ? "development" !== 'production' ? invariant(false, 'Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.') : _prodInvariant('27') : void 0;
- var errorThrown;
- var ret;
- try {
- this._isInTransaction = true;
- // Catching errors makes debugging more difficult, so we start with
- // errorThrown set to true before setting it to false after calling
- // close -- if it's still set to true in the finally block, it means
- // one of these calls threw.
- errorThrown = true;
- this.initializeAll(0);
- ret = method.call(scope, a, b, c, d, e, f);
- errorThrown = false;
- } finally {
- try {
- if (errorThrown) {
- // If `method` throws, prefer to show that stack trace over any thrown
- // by invoking `closeAll`.
- try {
- this.closeAll(0);
- } catch (err) {}
- } else {
- // Since `method` didn't throw, we don't want to silence the exception
- // here.
- this.closeAll(0);
- }
- } finally {
- this._isInTransaction = false;
- }
- }
- return ret;
- },
-
- initializeAll: function (startIndex) {
- var transactionWrappers = this.transactionWrappers;
- for (var i = startIndex; i < transactionWrappers.length; i++) {
- var wrapper = transactionWrappers[i];
- try {
- // Catching errors makes debugging more difficult, so we start with the
- // OBSERVED_ERROR state before overwriting it with the real return value
- // of initialize -- if it's still set to OBSERVED_ERROR in the finally
- // block, it means wrapper.initialize threw.
- this.wrapperInitData[i] = OBSERVED_ERROR;
- this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null;
- } finally {
- if (this.wrapperInitData[i] === OBSERVED_ERROR) {
- // The initializer for wrapper i threw an error; initialize the
- // remaining wrappers but silence any exceptions from them to ensure
- // that the first error is the one to bubble up.
- try {
- this.initializeAll(i + 1);
- } catch (err) {}
- }
- }
- }
- },
-
- /**
- * Invokes each of `this.transactionWrappers.close[i]` functions, passing into
- * them the respective return values of `this.transactionWrappers.init[i]`
- * (`close`rs that correspond to initializers that failed will not be
- * invoked).
- */
- closeAll: function (startIndex) {
- !this.isInTransaction() ? "development" !== 'production' ? invariant(false, 'Transaction.closeAll(): Cannot close transaction when none are open.') : _prodInvariant('28') : void 0;
- var transactionWrappers = this.transactionWrappers;
- for (var i = startIndex; i < transactionWrappers.length; i++) {
- var wrapper = transactionWrappers[i];
- var initData = this.wrapperInitData[i];
- var errorThrown;
- try {
- // Catching errors makes debugging more difficult, so we start with
- // errorThrown set to true before setting it to false after calling
- // close -- if it's still set to true in the finally block, it means
- // wrapper.close threw.
- errorThrown = true;
- if (initData !== OBSERVED_ERROR && wrapper.close) {
- wrapper.close.call(this, initData);
- }
- errorThrown = false;
- } finally {
- if (errorThrown) {
- // The closer for wrapper i threw an error; close the remaining
- // wrappers but silence any exceptions from them to ensure that the
- // first error is the one to bubble up.
- try {
- this.closeAll(i + 1);
- } catch (e) {}
- }
- }
- }
- this.wrapperInitData.length = 0;
- }
-};
-
-module.exports = TransactionImpl;
-},{"129":129,"154":154}],103:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ViewportMetrics = {
-
- currentScrollLeft: 0,
-
- currentScrollTop: 0,
-
- refreshScrollValues: function (scrollPosition) {
- ViewportMetrics.currentScrollLeft = scrollPosition.x;
- ViewportMetrics.currentScrollTop = scrollPosition.y;
- }
-
-};
-
-module.exports = ViewportMetrics;
-},{}],104:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var invariant = _dereq_(154);
-
-/**
- * Accumulates items that must not be null or undefined into the first one. This
- * is used to conserve memory by avoiding array allocations, and thus sacrifices
- * API cleanness. Since `current` can be null before being passed in and not
- * null after this function, make sure to assign it back to `current`:
- *
- * `a = accumulateInto(a, b);`
- *
- * This API should be sparingly used. Try `accumulate` for something cleaner.
- *
- * @return {*|array<*>} An accumulation of items.
- */
-
-function accumulateInto(current, next) {
- !(next != null) ? "development" !== 'production' ? invariant(false, 'accumulateInto(...): Accumulated items must not be null or undefined.') : _prodInvariant('30') : void 0;
-
- if (current == null) {
- return next;
- }
-
- // Both are not empty. Warning: Never call x.concat(y) when you are not
- // certain that x is an Array (x could be a string with concat method).
- if (Array.isArray(current)) {
- if (Array.isArray(next)) {
- current.push.apply(current, next);
- return current;
- }
- current.push(next);
- return current;
- }
-
- if (Array.isArray(next)) {
- // A bit too dangerous to mutate `next`.
- return [current].concat(next);
- }
-
- return [current, next];
-}
-
-module.exports = accumulateInto;
-},{"129":129,"154":154}],105:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var MOD = 65521;
-
-// adler32 is not cryptographically strong, and is only used to sanity check that
-// markup generated on the server matches the markup generated on the client.
-// This implementation (a modified version of the SheetJS version) has been optimized
-// for our use case, at the expense of conforming to the adler32 specification
-// for non-ascii inputs.
-function adler32(data) {
- var a = 1;
- var b = 0;
- var i = 0;
- var l = data.length;
- var m = l & ~0x3;
- while (i < m) {
- var n = Math.min(i + 4096, m);
- for (; i < n; i += 4) {
- b += (a += data.charCodeAt(i)) + (a += data.charCodeAt(i + 1)) + (a += data.charCodeAt(i + 2)) + (a += data.charCodeAt(i + 3));
- }
- a %= MOD;
- b %= MOD;
- }
- for (; i < l; i++) {
- b += a += data.charCodeAt(i);
- }
- a %= MOD;
- b %= MOD;
- return a | b << 16;
-}
-
-module.exports = adler32;
-},{}],106:[function(_dereq_,module,exports){
-(function (process){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var ReactPropTypeLocationNames = _dereq_(73);
-
-var invariant = _dereq_(154);
-var warning = _dereq_(161);
-
-var ReactComponentTreeHook;
-
-if (typeof process !== 'undefined' && process.env && "development" === 'test') {
- // Temporary hack.
- // Inline requires don't work well with Jest:
- // https://github.com/facebook/react/issues/7240
- // Remove the inline requires when we don't need them anymore:
- // https://github.com/facebook/react/pull/7178
- ReactComponentTreeHook = _dereq_(136);
-}
-
-var loggedTypeFailures = {};
-
-/**
- * Assert that the values match with the type specs.
- * Error messages are memorized and will only be shown once.
- *
- * @param {object} typeSpecs Map of name to a ReactPropType
- * @param {object} values Runtime values that need to be type-checked
- * @param {string} location e.g. "prop", "context", "child context"
- * @param {string} componentName Name of the component for error messages.
- * @param {?object} element The React element that is being type-checked
- * @param {?number} debugID The React component instance that is being type-checked
- * @private
- */
-function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
- for (var typeSpecName in typeSpecs) {
- if (typeSpecs.hasOwnProperty(typeSpecName)) {
- var error;
- // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- !(typeof typeSpecs[typeSpecName] === 'function') ? "development" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location);
- } catch (ex) {
- error = ex;
- }
- "development" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error.message] = true;
-
- var componentStackInfo = '';
-
- if ("development" !== 'production') {
- if (!ReactComponentTreeHook) {
- ReactComponentTreeHook = _dereq_(136);
- }
- if (debugID !== null) {
- componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
- } else if (element !== null) {
- componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
- }
- }
-
- "development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
- }
- }
- }
-}
-
-module.exports = checkReactTypeSpec;
-}).call(this,undefined)
-},{"129":129,"136":136,"154":154,"161":161,"73":73}],107:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/* globals MSApp */
-
-'use strict';
-
-/**
- * Create a function which has 'unsafe' privileges (required by windows8 apps)
- */
-
-var createMicrosoftUnsafeLocalFunction = function (func) {
- if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
- return function (arg0, arg1, arg2, arg3) {
- MSApp.execUnsafeLocalFunction(function () {
- return func(arg0, arg1, arg2, arg3);
- });
- };
- } else {
- return func;
- }
-};
-
-module.exports = createMicrosoftUnsafeLocalFunction;
-},{}],108:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var CSSProperty = _dereq_(4);
-
-var isUnitlessNumber = CSSProperty.isUnitlessNumber;
-
-/**
- * Convert a value into the proper css writable value. The style name `name`
- * should be logical (no hyphens), as specified
- * in `CSSProperty.isUnitlessNumber`.
- *
- * @param {string} name CSS property name such as `topMargin`.
- * @param {*} value CSS property value such as `10px`.
- * @param {ReactDOMComponent} component
- * @return {string} Normalized style value with dimensions applied.
- */
-function dangerousStyleValue(name, value, component) {
- // Note that we've removed escapeTextForBrowser() calls here since the
- // whole string will be escaped when the attribute is injected into
- // the markup. If you provide unsafe user data here they can inject
- // arbitrary CSS which may be problematic (I couldn't repro this):
- // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
- // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
- // This is not an XSS hole but instead a potential CSS injection issue
- // which has lead to a greater discussion about how we're going to
- // trust URLs moving forward. See #2115901
-
- var isEmpty = value == null || typeof value === 'boolean' || value === '';
- if (isEmpty) {
- return '';
- }
-
- if (typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
- return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
- }
-
- return ('' + value).trim();
-}
-
-module.exports = dangerousStyleValue;
-},{"4":4}],109:[function(_dereq_,module,exports){
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * Based on the escape-html library, which is used under the MIT License below:
- *
- * Copyright (c) 2012-2013 TJ Holowaychuk
- * Copyright (c) 2015 Andreas Lubbe
- * Copyright (c) 2015 Tiancheng "Timothy" Gu
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * 'Software'), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- */
-
-'use strict';
-
-// code copied and modified from escape-html
-/**
- * Module variables.
- * @private
- */
-
-var matchHtmlRegExp = /["'&<>]/;
-
-/**
- * Escape special characters in the given string of html.
- *
- * @param {string} string The string to escape for inserting into HTML
- * @return {string}
- * @public
- */
-
-function escapeHtml(string) {
- var str = '' + string;
- var match = matchHtmlRegExp.exec(str);
-
- if (!match) {
- return str;
- }
-
- var escape;
- var html = '';
- var index = 0;
- var lastIndex = 0;
-
- for (index = match.index; index < str.length; index++) {
- switch (str.charCodeAt(index)) {
- case 34:
- // "
- escape = '&quot;';
- break;
- case 38:
- // &
- escape = '&amp;';
- break;
- case 39:
- // '
- escape = '&#x27;'; // modified from escape-html; used to be '&#39'
- break;
- case 60:
- // <
- escape = '&lt;';
- break;
- case 62:
- // >
- escape = '&gt;';
- break;
- default:
- continue;
- }
-
- if (lastIndex !== index) {
- html += str.substring(lastIndex, index);
- }
-
- lastIndex = index + 1;
- html += escape;
- }
-
- return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
-}
-// end code copied and modified from escape-html
-
-
-/**
- * Escapes text to prevent scripting attacks.
- *
- * @param {*} text Text value to escape.
- * @return {string} An escaped string.
- */
-function escapeTextContentForBrowser(text) {
- if (typeof text === 'boolean' || typeof text === 'number') {
- // this shortcircuit helps perf for types that we know will never have
- // special characters, especially given that this function is used often
- // for numeric dom ids.
- return '' + text;
- }
- return escapeHtml(text);
-}
-
-module.exports = escapeTextContentForBrowser;
-},{}],110:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var ReactCurrentOwner = _dereq_(137);
-var ReactDOMComponentTree = _dereq_(35);
-var ReactInstanceMap = _dereq_(64);
-
-var getHostComponentFromComposite = _dereq_(118);
-var invariant = _dereq_(154);
-var warning = _dereq_(161);
-
-/**
- * Returns the DOM node rendered by this element.
- *
- * See https://facebook.github.io/react/docs/react-dom.html#finddomnode
- *
- * @param {ReactComponent|DOMElement} componentOrElement
- * @return {?DOMElement} The root node of this element.
- */
-function findDOMNode(componentOrElement) {
- if ("development" !== 'production') {
- var owner = ReactCurrentOwner.current;
- if (owner !== null) {
- "development" !== 'production' ? warning(owner._warnedAboutRefsInRender, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', owner.getName() || 'A component') : void 0;
- owner._warnedAboutRefsInRender = true;
- }
- }
- if (componentOrElement == null) {
- return null;
- }
- if (componentOrElement.nodeType === 1) {
- return componentOrElement;
- }
-
- var inst = ReactInstanceMap.get(componentOrElement);
- if (inst) {
- inst = getHostComponentFromComposite(inst);
- return inst ? ReactDOMComponentTree.getNodeFromInstance(inst) : null;
- }
-
- if (typeof componentOrElement.render === 'function') {
- !false ? "development" !== 'production' ? invariant(false, 'findDOMNode was called on an unmounted component.') : _prodInvariant('44') : void 0;
- } else {
- !false ? "development" !== 'production' ? invariant(false, 'Element appears to be neither ReactComponent nor DOMNode (keys: %s)', Object.keys(componentOrElement)) : _prodInvariant('45', Object.keys(componentOrElement)) : void 0;
- }
-}
-
-module.exports = findDOMNode;
-},{"118":118,"129":129,"137":137,"154":154,"161":161,"35":35,"64":64}],111:[function(_dereq_,module,exports){
-(function (process){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var KeyEscapeUtils = _dereq_(23);
-var traverseAllChildren = _dereq_(134);
-var warning = _dereq_(161);
-
-var ReactComponentTreeHook;
-
-if (typeof process !== 'undefined' && process.env && "development" === 'test') {
- // Temporary hack.
- // Inline requires don't work well with Jest:
- // https://github.com/facebook/react/issues/7240
- // Remove the inline requires when we don't need them anymore:
- // https://github.com/facebook/react/pull/7178
- ReactComponentTreeHook = _dereq_(136);
-}
-
-/**
- * @param {function} traverseContext Context passed through traversal.
- * @param {?ReactComponent} child React child component.
- * @param {!string} name String name of key path to child.
- * @param {number=} selfDebugID Optional debugID of the current internal instance.
- */
-function flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID) {
- // We found a component instance.
- if (traverseContext && typeof traverseContext === 'object') {
- var result = traverseContext;
- var keyUnique = result[name] === undefined;
- if ("development" !== 'production') {
- if (!ReactComponentTreeHook) {
- ReactComponentTreeHook = _dereq_(136);
- }
- if (!keyUnique) {
- "development" !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0;
- }
- }
- if (keyUnique && child != null) {
- result[name] = child;
- }
- }
-}
-
-/**
- * Flattens children that are typically specified as `props.children`. Any null
- * children will not be included in the resulting object.
- * @return {!object} flattened children keyed by name.
- */
-function flattenChildren(children, selfDebugID) {
- if (children == null) {
- return children;
- }
- var result = {};
-
- if ("development" !== 'production') {
- traverseAllChildren(children, function (traverseContext, child, name) {
- return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID);
- }, result);
- } else {
- traverseAllChildren(children, flattenSingleChildIntoContext, result);
- }
- return result;
-}
-
-module.exports = flattenChildren;
-}).call(this,undefined)
-},{"134":134,"136":136,"161":161,"23":23}],112:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-/**
- * @param {array} arr an "accumulation" of items which is either an Array or
- * a single item. Useful when paired with the `accumulate` module. This is a
- * simple utility that allows us to reason about a collection of items, but
- * handling the case when there is exactly one item (and we do not need to
- * allocate an array).
- */
-
-function forEachAccumulated(arr, cb, scope) {
- if (Array.isArray(arr)) {
- arr.forEach(cb, scope);
- } else if (arr) {
- cb.call(scope, arr);
- }
-}
-
-module.exports = forEachAccumulated;
-},{}],113:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-function getComponentName(instanceOrFiber) {
- if ("development" !== 'production') {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName() || 'Component';
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
-
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
- }
- }
- return null;
-}
-
-module.exports = getComponentName;
-},{}],114:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * `charCode` represents the actual "character code" and is safe to use with
- * `String.fromCharCode`. As such, only keys that correspond to printable
- * characters produce a valid `charCode`, the only exception to this is Enter.
- * The Tab-key is considered non-printable and does not have a `charCode`,
- * presumably because it does not produce a tab-character in browsers.
- *
- * @param {object} nativeEvent Native browser event.
- * @return {number} Normalized `charCode` property.
- */
-
-function getEventCharCode(nativeEvent) {
- var charCode;
- var keyCode = nativeEvent.keyCode;
-
- if ('charCode' in nativeEvent) {
- charCode = nativeEvent.charCode;
-
- // FF does not set `charCode` for the Enter-key, check against `keyCode`.
- if (charCode === 0 && keyCode === 13) {
- charCode = 13;
- }
- } else {
- // IE8 does not implement `charCode`, but `keyCode` has the correct value.
- charCode = keyCode;
- }
-
- // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
- // Must not discard the (non-)printable Enter-key.
- if (charCode >= 32 || charCode === 13) {
- return charCode;
- }
-
- return 0;
-}
-
-module.exports = getEventCharCode;
-},{}],115:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var getEventCharCode = _dereq_(114);
-
-/**
- * Normalization of deprecated HTML5 `key` values
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
- */
-var normalizeKey = {
- 'Esc': 'Escape',
- 'Spacebar': ' ',
- 'Left': 'ArrowLeft',
- 'Up': 'ArrowUp',
- 'Right': 'ArrowRight',
- 'Down': 'ArrowDown',
- 'Del': 'Delete',
- 'Win': 'OS',
- 'Menu': 'ContextMenu',
- 'Apps': 'ContextMenu',
- 'Scroll': 'ScrollLock',
- 'MozPrintableKey': 'Unidentified'
-};
-
-/**
- * Translation from legacy `keyCode` to HTML5 `key`
- * Only special keys supported, all others depend on keyboard layout or browser
- * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
- */
-var translateToKey = {
- 8: 'Backspace',
- 9: 'Tab',
- 12: 'Clear',
- 13: 'Enter',
- 16: 'Shift',
- 17: 'Control',
- 18: 'Alt',
- 19: 'Pause',
- 20: 'CapsLock',
- 27: 'Escape',
- 32: ' ',
- 33: 'PageUp',
- 34: 'PageDown',
- 35: 'End',
- 36: 'Home',
- 37: 'ArrowLeft',
- 38: 'ArrowUp',
- 39: 'ArrowRight',
- 40: 'ArrowDown',
- 45: 'Insert',
- 46: 'Delete',
- 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6',
- 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12',
- 144: 'NumLock',
- 145: 'ScrollLock',
- 224: 'Meta'
-};
-
-/**
- * @param {object} nativeEvent Native browser event.
- * @return {string} Normalized `key` property.
- */
-function getEventKey(nativeEvent) {
- if (nativeEvent.key) {
- // Normalize inconsistent values reported by browsers due to
- // implementations of a working draft specification.
-
- // FireFox implements `key` but returns `MozPrintableKey` for all
- // printable characters (normalized to `Unidentified`), ignore it.
- var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
- if (key !== 'Unidentified') {
- return key;
- }
- }
-
- // Browser does not implement `key`, polyfill as much of it as we can.
- if (nativeEvent.type === 'keypress') {
- var charCode = getEventCharCode(nativeEvent);
-
- // The enter-key is technically both printable and non-printable and can
- // thus be captured by `keypress`, no other non-printable key should.
- return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
- }
- if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
- // While user keyboard layout determines the actual meaning of each
- // `keyCode` value, almost all function keys have a universal value.
- return translateToKey[nativeEvent.keyCode] || 'Unidentified';
- }
- return '';
-}
-
-module.exports = getEventKey;
-},{"114":114}],116:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Translation from modifier key to the associated property in the event.
- * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
- */
-
-var modifierKeyToProp = {
- 'Alt': 'altKey',
- 'Control': 'ctrlKey',
- 'Meta': 'metaKey',
- 'Shift': 'shiftKey'
-};
-
-// IE8 does not implement getModifierState so we simply map it to the only
-// modifier keys exposed by the event itself, does not support Lock-keys.
-// Currently, all major browsers except Chrome seems to support Lock-keys.
-function modifierStateGetter(keyArg) {
- var syntheticEvent = this;
- var nativeEvent = syntheticEvent.nativeEvent;
- if (nativeEvent.getModifierState) {
- return nativeEvent.getModifierState(keyArg);
- }
- var keyProp = modifierKeyToProp[keyArg];
- return keyProp ? !!nativeEvent[keyProp] : false;
-}
-
-function getEventModifierState(nativeEvent) {
- return modifierStateGetter;
-}
-
-module.exports = getEventModifierState;
-},{}],117:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Gets the target node from a native browser event by accounting for
- * inconsistencies in browser DOM APIs.
- *
- * @param {object} nativeEvent Native browser event.
- * @return {DOMEventTarget} Target node.
- */
-
-function getEventTarget(nativeEvent) {
- var target = nativeEvent.target || nativeEvent.srcElement || window;
-
- // Normalize SVG <use> element events #4963
- if (target.correspondingUseElement) {
- target = target.correspondingUseElement;
- }
-
- // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
- // @see http://www.quirksmode.org/js/events_properties.html
- return target.nodeType === 3 ? target.parentNode : target;
-}
-
-module.exports = getEventTarget;
-},{}],118:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactNodeTypes = _dereq_(70);
-
-function getHostComponentFromComposite(inst) {
- var type;
-
- while ((type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE) {
- inst = inst._renderedComponent;
- }
-
- if (type === ReactNodeTypes.HOST) {
- return inst._renderedComponent;
- } else if (type === ReactNodeTypes.EMPTY) {
- return null;
- }
-}
-
-module.exports = getHostComponentFromComposite;
-},{"70":70}],119:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-/* global Symbol */
-
-var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
-var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
-
-/**
- * Returns the iterator method function contained on the iterable object.
- *
- * Be sure to invoke the function with the iterable as context:
- *
- * var iteratorFn = getIteratorFn(myIterable);
- * if (iteratorFn) {
- * var iterator = iteratorFn.call(myIterable);
- * ...
- * }
- *
- * @param {?object} maybeIterable
- * @return {?function}
- */
-function getIteratorFn(maybeIterable) {
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
- if (typeof iteratorFn === 'function') {
- return iteratorFn;
- }
-}
-
-module.exports = getIteratorFn;
-},{}],120:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var nextDebugID = 1;
-
-function getNextDebugID() {
- return nextDebugID++;
-}
-
-module.exports = getNextDebugID;
-},{}],121:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Given any node return the first leaf node without children.
- *
- * @param {DOMElement|DOMTextNode} node
- * @return {DOMElement|DOMTextNode}
- */
-
-function getLeafNode(node) {
- while (node && node.firstChild) {
- node = node.firstChild;
- }
- return node;
-}
-
-/**
- * Get the next sibling within a container. This will walk up the
- * DOM if a node's siblings have been exhausted.
- *
- * @param {DOMElement|DOMTextNode} node
- * @return {?DOMElement|DOMTextNode}
- */
-function getSiblingNode(node) {
- while (node) {
- if (node.nextSibling) {
- return node.nextSibling;
- }
- node = node.parentNode;
- }
-}
-
-/**
- * Get object describing the nodes which contain characters at offset.
- *
- * @param {DOMElement|DOMTextNode} root
- * @param {number} offset
- * @return {?object}
- */
-function getNodeForCharacterOffset(root, offset) {
- var node = getLeafNode(root);
- var nodeStart = 0;
- var nodeEnd = 0;
-
- while (node) {
- if (node.nodeType === 3) {
- nodeEnd = nodeStart + node.textContent.length;
-
- if (nodeStart <= offset && nodeEnd >= offset) {
- return {
- node: node,
- offset: offset - nodeStart
- };
- }
-
- nodeStart = nodeEnd;
- }
-
- node = getLeafNode(getSiblingNode(node));
- }
-}
-
-module.exports = getNodeForCharacterOffset;
-},{}],122:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ExecutionEnvironment = _dereq_(140);
-
-var contentKey = null;
-
-/**
- * Gets the key used to access text content on a DOM node.
- *
- * @return {?string} Key used to access text content.
- * @internal
- */
-function getTextContentAccessor() {
- if (!contentKey && ExecutionEnvironment.canUseDOM) {
- // Prefer textContent to innerText because many browsers support both but
- // SVG <text> elements don't support innerText even when <div> does.
- contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText';
- }
- return contentKey;
-}
-
-module.exports = getTextContentAccessor;
-},{"140":140}],123:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ExecutionEnvironment = _dereq_(140);
-
-/**
- * Generate a mapping of standard vendor prefixes using the defined style property and event name.
- *
- * @param {string} styleProp
- * @param {string} eventName
- * @returns {object}
- */
-function makePrefixMap(styleProp, eventName) {
- var prefixes = {};
-
- prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
- prefixes['Webkit' + styleProp] = 'webkit' + eventName;
- prefixes['Moz' + styleProp] = 'moz' + eventName;
- prefixes['ms' + styleProp] = 'MS' + eventName;
- prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();
-
- return prefixes;
-}
-
-/**
- * A list of event names to a configurable list of vendor prefixes.
- */
-var vendorPrefixes = {
- animationend: makePrefixMap('Animation', 'AnimationEnd'),
- animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
- animationstart: makePrefixMap('Animation', 'AnimationStart'),
- transitionend: makePrefixMap('Transition', 'TransitionEnd')
-};
-
-/**
- * Event names that have already been detected and prefixed (if applicable).
- */
-var prefixedEventNames = {};
-
-/**
- * Element to check for prefixes on.
- */
-var style = {};
-
-/**
- * Bootstrap if a DOM exists.
- */
-if (ExecutionEnvironment.canUseDOM) {
- style = document.createElement('div').style;
-
- // On some platforms, in particular some releases of Android 4.x,
- // the un-prefixed "animation" and "transition" properties are defined on the
- // style object but the events that fire will still be prefixed, so we need
- // to check if the un-prefixed events are usable, and if not remove them from the map.
- if (!('AnimationEvent' in window)) {
- delete vendorPrefixes.animationend.animation;
- delete vendorPrefixes.animationiteration.animation;
- delete vendorPrefixes.animationstart.animation;
- }
-
- // Same as above
- if (!('TransitionEvent' in window)) {
- delete vendorPrefixes.transitionend.transition;
- }
-}
-
-/**
- * Attempts to determine the correct vendor prefixed event name.
- *
- * @param {string} eventName
- * @returns {string}
- */
-function getVendorPrefixedEventName(eventName) {
- if (prefixedEventNames[eventName]) {
- return prefixedEventNames[eventName];
- } else if (!vendorPrefixes[eventName]) {
- return eventName;
- }
-
- var prefixMap = vendorPrefixes[eventName];
-
- for (var styleProp in prefixMap) {
- if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
- return prefixedEventNames[eventName] = prefixMap[styleProp];
- }
- }
-
- return '';
-}
-
-module.exports = getVendorPrefixedEventName;
-},{"140":140}],124:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactDOMComponentTree = _dereq_(35);
-
-function isCheckable(elem) {
- var type = elem.type;
- var nodeName = elem.nodeName;
- return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
-}
-
-function getTracker(inst) {
- return inst._wrapperState.valueTracker;
-}
-
-function attachTracker(inst, tracker) {
- inst._wrapperState.valueTracker = tracker;
-}
-
-function detachTracker(inst) {
- delete inst._wrapperState.valueTracker;
-}
-
-function getValueFromNode(node) {
- var value;
- if (node) {
- value = isCheckable(node) ? '' + node.checked : node.value;
- }
- return value;
-}
-
-var inputValueTracking = {
- // exposed for testing
- _getTrackerFromNode: function (node) {
- return getTracker(ReactDOMComponentTree.getInstanceFromNode(node));
- },
-
-
- track: function (inst) {
- if (getTracker(inst)) {
- return;
- }
-
- var node = ReactDOMComponentTree.getNodeFromInstance(inst);
- var valueField = isCheckable(node) ? 'checked' : 'value';
- var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
-
- var currentValue = '' + node[valueField];
-
- // if someone has already defined a value or Safari, then bail
- // and don't track value will cause over reporting of changes,
- // but it's better then a hard failure
- // (needed for certain tests that spyOn input values and Safari)
- if (node.hasOwnProperty(valueField) || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
- return;
- }
-
- Object.defineProperty(node, valueField, {
- enumerable: descriptor.enumerable,
- configurable: true,
- get: function () {
- return descriptor.get.call(this);
- },
- set: function (value) {
- currentValue = '' + value;
- descriptor.set.call(this, value);
- }
- });
-
- attachTracker(inst, {
- getValue: function () {
- return currentValue;
- },
- setValue: function (value) {
- currentValue = '' + value;
- },
- stopTracking: function () {
- detachTracker(inst);
- delete node[valueField];
- }
- });
- },
-
- updateValueIfChanged: function (inst) {
- if (!inst) {
- return false;
- }
- var tracker = getTracker(inst);
-
- if (!tracker) {
- inputValueTracking.track(inst);
- return true;
- }
-
- var lastValue = tracker.getValue();
- var nextValue = getValueFromNode(ReactDOMComponentTree.getNodeFromInstance(inst));
-
- if (nextValue !== lastValue) {
- tracker.setValue(nextValue);
- return true;
- }
-
- return false;
- },
- stopTracking: function (inst) {
- var tracker = getTracker(inst);
- if (tracker) {
- tracker.stopTracking();
- }
- }
-};
-
-module.exports = inputValueTracking;
-},{"35":35}],125:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129),
- _assign = _dereq_(162);
-
-var ReactCompositeComponent = _dereq_(29);
-var ReactEmptyComponent = _dereq_(55);
-var ReactHostComponent = _dereq_(61);
-
-var getNextDebugID = _dereq_(120);
-var invariant = _dereq_(154);
-var warning = _dereq_(161);
-
-// To avoid a cyclic dependency, we create the final class in this module
-var ReactCompositeComponentWrapper = function (element) {
- this.construct(element);
-};
-_assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, {
- _instantiateReactComponent: instantiateReactComponent
-});
-
-function getDeclarationErrorAddendum(owner) {
- if (owner) {
- var name = owner.getName();
- if (name) {
- return ' Check the render method of `' + name + '`.';
- }
- }
- return '';
-}
-
-/**
- * Check if the type reference is a known internal type. I.e. not a user
- * provided composite type.
- *
- * @param {function} type
- * @return {boolean} Returns true if this is a valid internal type.
- */
-function isInternalComponentType(type) {
- return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function';
-}
-
-/**
- * Given a ReactNode, create an instance that will actually be mounted.
- *
- * @param {ReactNode} node
- * @param {boolean} shouldHaveDebugID
- * @return {object} A new instance of the element's constructor.
- * @protected
- */
-function instantiateReactComponent(node, shouldHaveDebugID) {
- var instance;
-
- if (node === null || node === false) {
- instance = ReactEmptyComponent.create(instantiateReactComponent);
- } else if (typeof node === 'object') {
- var element = node;
- !(element && (typeof element.type === 'function' || typeof element.type === 'string')) ? "development" !== 'production' ? invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', element.type == null ? element.type : typeof element.type, getDeclarationErrorAddendum(element._owner)) : _prodInvariant('130', element.type == null ? element.type : typeof element.type, getDeclarationErrorAddendum(element._owner)) : void 0;
-
- // Special case string values
- if (typeof element.type === 'string') {
- instance = ReactHostComponent.createInternalComponent(element);
- } else if (isInternalComponentType(element.type)) {
- // This is temporarily available for custom components that are not string
- // representations. I.e. ART. Once those are updated to use the string
- // representation, we can drop this code path.
- instance = new element.type(element);
-
- // We renamed this. Allow the old name for compat. :(
- if (!instance.getHostNode) {
- instance.getHostNode = instance.getNativeNode;
- }
- } else {
- instance = new ReactCompositeComponentWrapper(element);
- }
- } else if (typeof node === 'string' || typeof node === 'number') {
- instance = ReactHostComponent.createInstanceForText(node);
- } else {
- !false ? "development" !== 'production' ? invariant(false, 'Encountered invalid React node of type %s', typeof node) : _prodInvariant('131', typeof node) : void 0;
- }
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(typeof instance.mountComponent === 'function' && typeof instance.receiveComponent === 'function' && typeof instance.getHostNode === 'function' && typeof instance.unmountComponent === 'function', 'Only React Components can be mounted.') : void 0;
- }
-
- // These two fields are used by the DOM and ART diffing algorithms
- // respectively. Instead of using expandos on components, we should be
- // storing the state needed by the diffing algorithms elsewhere.
- instance._mountIndex = 0;
- instance._mountImage = null;
-
- if ("development" !== 'production') {
- instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0;
- }
-
- // Internal instances should fully constructed at this point, so they should
- // not get any new fields added to them at this point.
- if ("development" !== 'production') {
- if (Object.preventExtensions) {
- Object.preventExtensions(instance);
- }
- }
-
- return instance;
-}
-
-module.exports = instantiateReactComponent;
-},{"120":120,"129":129,"154":154,"161":161,"162":162,"29":29,"55":55,"61":61}],126:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ExecutionEnvironment = _dereq_(140);
-
-var useHasFeature;
-if (ExecutionEnvironment.canUseDOM) {
- useHasFeature = document.implementation && document.implementation.hasFeature &&
- // always returns true in newer browsers as per the standard.
- // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
- document.implementation.hasFeature('', '') !== true;
-}
-
-/**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
-function isEventSupported(eventNameSuffix, capture) {
- if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) {
- return false;
- }
-
- var eventName = 'on' + eventNameSuffix;
- var isSupported = eventName in document;
-
- if (!isSupported) {
- var element = document.createElement('div');
- element.setAttribute(eventName, 'return;');
- isSupported = typeof element[eventName] === 'function';
- }
-
- if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
- // This is the only way to test support for the `wheel` event in IE9+.
- isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
- }
-
- return isSupported;
-}
-
-module.exports = isEventSupported;
-},{"140":140}],127:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-/**
- * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
- */
-
-var supportedInputTypes = {
- 'color': true,
- 'date': true,
- 'datetime': true,
- 'datetime-local': true,
- 'email': true,
- 'month': true,
- 'number': true,
- 'password': true,
- 'range': true,
- 'search': true,
- 'tel': true,
- 'text': true,
- 'time': true,
- 'url': true,
- 'week': true
-};
-
-function isTextInputElement(elem) {
- var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
-
- if (nodeName === 'input') {
- return !!supportedInputTypes[elem.type];
- }
-
- if (nodeName === 'textarea') {
- return true;
- }
-
- return false;
-}
-
-module.exports = isTextInputElement;
-},{}],128:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var escapeTextContentForBrowser = _dereq_(109);
-
-/**
- * Escapes attribute value to prevent scripting attacks.
- *
- * @param {*} value Value to escape.
- * @return {string} An escaped string.
- */
-function quoteAttributeValueForBrowser(value) {
- return '"' + escapeTextContentForBrowser(value) + '"';
-}
-
-module.exports = quoteAttributeValueForBrowser;
-},{"109":109}],129:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-'use strict';
-
-/**
- * WARNING: DO NOT manually require this module.
- * This is a replacement for `invariant(...)` used by the error code system
- * and will _only_ be required by the corresponding babel pass.
- * It always throws.
- */
-
-function reactProdInvariant(code) {
- var argCount = arguments.length - 1;
-
- var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
-
- for (var argIdx = 0; argIdx < argCount; argIdx++) {
- message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
- }
-
- message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
-
- var error = new Error(message);
- error.name = 'Invariant Violation';
- error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
-
- throw error;
-}
-
-module.exports = reactProdInvariant;
-},{}],130:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactMount = _dereq_(68);
-
-module.exports = ReactMount.renderSubtreeIntoContainer;
-},{"68":68}],131:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ExecutionEnvironment = _dereq_(140);
-var DOMNamespaces = _dereq_(11);
-
-var WHITESPACE_TEST = /^[ \r\n\t\f]/;
-var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/;
-
-var createMicrosoftUnsafeLocalFunction = _dereq_(107);
-
-// SVG temp container for IE lacking innerHTML
-var reusableSVGContainer;
-
-/**
- * Set the innerHTML property of a node, ensuring that whitespace is preserved
- * even in IE8.
- *
- * @param {DOMElement} node
- * @param {string} html
- * @internal
- */
-var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
- // IE does not have innerHTML for SVG nodes, so instead we inject the
- // new markup in a temp node and then move the child nodes across into
- // the target node
- if (node.namespaceURI === DOMNamespaces.svg && !('innerHTML' in node)) {
- reusableSVGContainer = reusableSVGContainer || document.createElement('div');
- reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
- var svgNode = reusableSVGContainer.firstChild;
- while (svgNode.firstChild) {
- node.appendChild(svgNode.firstChild);
- }
- } else {
- node.innerHTML = html;
- }
-});
-
-if (ExecutionEnvironment.canUseDOM) {
- // IE8: When updating a just created node with innerHTML only leading
- // whitespace is removed. When updating an existing node with innerHTML
- // whitespace in root TextNodes is also collapsed.
- // @see quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html
-
- // Feature detection; only IE8 is known to behave improperly like this.
- var testElement = document.createElement('div');
- testElement.innerHTML = ' ';
- if (testElement.innerHTML === '') {
- setInnerHTML = function (node, html) {
- // Magic theory: IE8 supposedly differentiates between added and updated
- // nodes when processing innerHTML, innerHTML on updated nodes suffers
- // from worse whitespace behavior. Re-adding a node like this triggers
- // the initial and more favorable whitespace behavior.
- // TODO: What to do on a detached node?
- if (node.parentNode) {
- node.parentNode.replaceChild(node, node);
- }
-
- // We also implement a workaround for non-visible tags disappearing into
- // thin air on IE8, this only happens if there is no visible text
- // in-front of the non-visible tags. Piggyback on the whitespace fix
- // and simply check if any non-visible tags appear in the source.
- if (WHITESPACE_TEST.test(html) || html[0] === '<' && NONVISIBLE_TEST.test(html)) {
- // Recover leading whitespace by temporarily prepending any character.
- // \uFEFF has the potential advantage of being zero-width/invisible.
- // UglifyJS drops U+FEFF chars when parsing, so use String.fromCharCode
- // in hopes that this is preserved even if "\uFEFF" is transformed to
- // the actual Unicode character (by Babel, for example).
- // https://github.com/mishoo/UglifyJS2/blob/v2.4.20/lib/parse.js#L216
- node.innerHTML = String.fromCharCode(0xFEFF) + html;
-
- // deleteData leaves an empty `TextNode` which offsets the index of all
- // children. Definitely want to avoid this.
- var textNode = node.firstChild;
- if (textNode.data.length === 1) {
- node.removeChild(textNode);
- } else {
- textNode.deleteData(0, 1);
- }
- } else {
- node.innerHTML = html;
- }
- };
- }
- testElement = null;
-}
-
-module.exports = setInnerHTML;
-},{"107":107,"11":11,"140":140}],132:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ExecutionEnvironment = _dereq_(140);
-var escapeTextContentForBrowser = _dereq_(109);
-var setInnerHTML = _dereq_(131);
-
-/**
- * Set the textContent property of a node, ensuring that whitespace is preserved
- * even in IE8. innerText is a poor substitute for textContent and, among many
- * issues, inserts <br> instead of the literal newline chars. innerHTML behaves
- * as it should.
- *
- * @param {DOMElement} node
- * @param {string} text
- * @internal
- */
-var setTextContent = function (node, text) {
- if (text) {
- var firstChild = node.firstChild;
-
- if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) {
- firstChild.nodeValue = text;
- return;
- }
- }
- node.textContent = text;
-};
-
-if (ExecutionEnvironment.canUseDOM) {
- if (!('textContent' in document.documentElement)) {
- setTextContent = function (node, text) {
- if (node.nodeType === 3) {
- node.nodeValue = text;
- return;
- }
- setInnerHTML(node, escapeTextContentForBrowser(text));
- };
- }
-}
-
-module.exports = setTextContent;
-},{"109":109,"131":131,"140":140}],133:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Given a `prevElement` and `nextElement`, determines if the existing
- * instance should be updated as opposed to being destroyed or replaced by a new
- * instance. Both arguments are elements. This ensures that this logic can
- * operate on stateless trees without any backing instance.
- *
- * @param {?object} prevElement
- * @param {?object} nextElement
- * @return {boolean} True if the existing instance should be updated.
- * @protected
- */
-
-function shouldUpdateReactComponent(prevElement, nextElement) {
- var prevEmpty = prevElement === null || prevElement === false;
- var nextEmpty = nextElement === null || nextElement === false;
- if (prevEmpty || nextEmpty) {
- return prevEmpty === nextEmpty;
- }
-
- var prevType = typeof prevElement;
- var nextType = typeof nextElement;
- if (prevType === 'string' || prevType === 'number') {
- return nextType === 'string' || nextType === 'number';
- } else {
- return nextType === 'object' && prevElement.type === nextElement.type && prevElement.key === nextElement.key;
- }
-}
-
-module.exports = shouldUpdateReactComponent;
-},{}],134:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(129);
-
-var ReactCurrentOwner = _dereq_(137);
-var REACT_ELEMENT_TYPE = _dereq_(54);
-
-var getIteratorFn = _dereq_(119);
-var invariant = _dereq_(154);
-var KeyEscapeUtils = _dereq_(23);
-var warning = _dereq_(161);
-
-var SEPARATOR = '.';
-var SUBSEPARATOR = ':';
-
-/**
- * This is inlined from ReactElement since this file is shared between
- * isomorphic and renderers. We could extract this to a
- *
- */
-
-/**
- * TODO: Test that a single child and an array with one item have the same key
- * pattern.
- */
-
-var didWarnAboutMaps = false;
-
-/**
- * Generate a key string that identifies a component within a set.
- *
- * @param {*} component A component that could contain a manual key.
- * @param {number} index Index that is used if a manual key is not provided.
- * @return {string}
- */
-function getComponentKey(component, index) {
- // Do some typechecking here since we call this blindly. We want to ensure
- // that we don't block potential future ES APIs.
- if (component && typeof component === 'object' && component.key != null) {
- // Explicit key
- return KeyEscapeUtils.escape(component.key);
- }
- // Implicit key determined by the index in the set
- return index.toString(36);
-}
-
-/**
- * @param {?*} children Children tree container.
- * @param {!string} nameSoFar Name of the key path so far.
- * @param {!function} callback Callback to invoke with each child found.
- * @param {?*} traverseContext Used to pass information throughout the traversal
- * process.
- * @return {!number} The number of children in this subtree.
- */
-function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
- var type = typeof children;
-
- if (type === 'undefined' || type === 'boolean') {
- // All of the above are perceived as null.
- children = null;
- }
-
- if (children === null || type === 'string' || type === 'number' ||
- // The following is inlined from ReactElement. This means we can optimize
- // some checks. React Fiber also inlines this logic for similar purposes.
- type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
- callback(traverseContext, children,
- // If it's the only child, treat the name as if it was wrapped in an array
- // so that it's consistent if the number of children grows.
- nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
- return 1;
- }
-
- var child;
- var nextName;
- var subtreeCount = 0; // Count of children found in the current subtree.
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
-
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- child = children[i];
- nextName = nextNamePrefix + getComponentKey(child, i);
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
- }
- } else {
- var iteratorFn = getIteratorFn(children);
- if (iteratorFn) {
- var iterator = iteratorFn.call(children);
- var step;
- if (iteratorFn !== children.entries) {
- var ii = 0;
- while (!(step = iterator.next()).done) {
- child = step.value;
- nextName = nextNamePrefix + getComponentKey(child, ii++);
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
- }
- } else {
- if ("development" !== 'production') {
- var mapsAsChildrenAddendum = '';
- if (ReactCurrentOwner.current) {
- var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
- if (mapsAsChildrenOwnerName) {
- mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
- }
- }
- "development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
- didWarnAboutMaps = true;
- }
- // Iterator will provide entry [k,v] tuples rather than values.
- while (!(step = iterator.next()).done) {
- var entry = step.value;
- if (entry) {
- child = entry[1];
- nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
- }
- }
- }
- } else if (type === 'object') {
- var addendum = '';
- if ("development" !== 'production') {
- addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
- if (children._isReactElement) {
- addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
- }
- if (ReactCurrentOwner.current) {
- var name = ReactCurrentOwner.current.getName();
- if (name) {
- addendum += ' Check the render method of `' + name + '`.';
- }
- }
- }
- var childrenString = String(children);
- !false ? "development" !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
- }
- }
-
- return subtreeCount;
-}
-
-/**
- * Traverses children that are typically specified as `props.children`, but
- * might also be specified through attributes:
- *
- * - `traverseAllChildren(this.props.children, ...)`
- * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
- *
- * The `traverseContext` is an optional argument that is passed through the
- * entire traversal. It can be used to store accumulations or anything else that
- * the callback might find relevant.
- *
- * @param {?*} children Children tree object.
- * @param {!function} callback To invoke upon traversing each child.
- * @param {?*} traverseContext Context for traversal.
- * @return {!number} The number of children in this subtree.
- */
-function traverseAllChildren(children, callback, traverseContext) {
- if (children == null) {
- return 0;
- }
-
- return traverseAllChildrenImpl(children, '', callback, traverseContext);
-}
-
-module.exports = traverseAllChildren;
-},{"119":119,"129":129,"137":137,"154":154,"161":161,"23":23,"54":54}],135:[function(_dereq_,module,exports){
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(162);
-
-var emptyFunction = _dereq_(146);
-var getComponentName = _dereq_(113);
-var warning = _dereq_(161);
-
-var validateDOMNesting = emptyFunction;
-
-if ("development" !== 'production') {
- // This validation code was written based on the HTML5 parsing spec:
- // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
- //
- // Note: this does not catch all invalid nesting, nor does it try to (as it's
- // not clear what practical benefit doing so provides); instead, we warn only
- // for cases where the parser will give a parse tree differing from what React
- // intended. For example, <b><div></div></b> is invalid but we don't warn
- // because it still parses correctly; we do warn for other cases like nested
- // <p> tags where the beginning of the second element implicitly closes the
- // first, causing a confusing mess.
-
- // https://html.spec.whatwg.org/multipage/syntax.html#special
- var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];
-
- // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
- var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
-
- // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
- // TODO: Distinguish by namespace here -- for <title>, including it here
- // errs on the side of fewer warnings
- 'foreignObject', 'desc', 'title'];
-
- // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
- var buttonScopeTags = inScopeTags.concat(['button']);
-
- // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
- var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
-
- var emptyAncestorInfo = {
- current: null,
-
- formTag: null,
- aTagInScope: null,
- buttonTagInScope: null,
- nobrTagInScope: null,
- pTagInButtonScope: null,
-
- listItemTagAutoclosing: null,
- dlItemTagAutoclosing: null
- };
-
- var updatedAncestorInfo = function (oldInfo, tag, instance) {
- var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
- var info = { tag: tag, instance: instance };
-
- if (inScopeTags.indexOf(tag) !== -1) {
- ancestorInfo.aTagInScope = null;
- ancestorInfo.buttonTagInScope = null;
- ancestorInfo.nobrTagInScope = null;
- }
- if (buttonScopeTags.indexOf(tag) !== -1) {
- ancestorInfo.pTagInButtonScope = null;
- }
-
- // See rules for 'li', 'dd', 'dt' start tags in
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
- if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
- ancestorInfo.listItemTagAutoclosing = null;
- ancestorInfo.dlItemTagAutoclosing = null;
- }
-
- ancestorInfo.current = info;
-
- if (tag === 'form') {
- ancestorInfo.formTag = info;
- }
- if (tag === 'a') {
- ancestorInfo.aTagInScope = info;
- }
- if (tag === 'button') {
- ancestorInfo.buttonTagInScope = info;
- }
- if (tag === 'nobr') {
- ancestorInfo.nobrTagInScope = info;
- }
- if (tag === 'p') {
- ancestorInfo.pTagInButtonScope = info;
- }
- if (tag === 'li') {
- ancestorInfo.listItemTagAutoclosing = info;
- }
- if (tag === 'dd' || tag === 'dt') {
- ancestorInfo.dlItemTagAutoclosing = info;
- }
-
- return ancestorInfo;
- };
-
- /**
- * Returns whether
- */
- var isTagValidWithParent = function (tag, parentTag) {
- // First, let's check if we're in an unusual parsing mode...
- switch (parentTag) {
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
- case 'select':
- return tag === 'option' || tag === 'optgroup' || tag === '#text';
- case 'optgroup':
- return tag === 'option' || tag === '#text';
- // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
- // but
- case 'option':
- return tag === '#text';
-
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
- // No special behavior since these rules fall back to "in body" mode for
- // all except special table nodes which cause bad parsing behavior anyway.
-
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
- case 'tr':
- return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
-
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
- case 'tbody':
- case 'thead':
- case 'tfoot':
- return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
-
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
- case 'colgroup':
- return tag === 'col' || tag === 'template';
-
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
- case 'table':
- return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
-
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
- case 'head':
- return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
-
- // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
- case 'html':
- return tag === 'head' || tag === 'body';
- case '#document':
- return tag === 'html';
- }
-
- // Probably in the "in body" parsing mode, so we outlaw only tag combos
- // where the parsing rules cause implicit opens or closes to be added.
- // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
- switch (tag) {
- case 'h1':
- case 'h2':
- case 'h3':
- case 'h4':
- case 'h5':
- case 'h6':
- return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
-
- case 'rp':
- case 'rt':
- return impliedEndTags.indexOf(parentTag) === -1;
-
- case 'body':
- case 'caption':
- case 'col':
- case 'colgroup':
- case 'frame':
- case 'head':
- case 'html':
- case 'tbody':
- case 'td':
- case 'tfoot':
- case 'th':
- case 'thead':
- case 'tr':
- // These tags are only valid with a few parents that have special child
- // parsing rules -- if we're down here, then none of those matched and
- // so we allow it only if we don't know what the parent is, as all other
- // cases are invalid.
- return parentTag == null;
- }
-
- return true;
- };
-
- /**
- * Returns whether
- */
- var findInvalidAncestorForTag = function (tag, ancestorInfo) {
- switch (tag) {
- case 'address':
- case 'article':
- case 'aside':
- case 'blockquote':
- case 'center':
- case 'details':
- case 'dialog':
- case 'dir':
- case 'div':
- case 'dl':
- case 'fieldset':
- case 'figcaption':
- case 'figure':
- case 'footer':
- case 'header':
- case 'hgroup':
- case 'main':
- case 'menu':
- case 'nav':
- case 'ol':
- case 'p':
- case 'section':
- case 'summary':
- case 'ul':
-
- case 'pre':
- case 'listing':
-
- case 'table':
-
- case 'hr':
-
- case 'xmp':
-
- case 'h1':
- case 'h2':
- case 'h3':
- case 'h4':
- case 'h5':
- case 'h6':
- return ancestorInfo.pTagInButtonScope;
-
- case 'form':
- return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
-
- case 'li':
- return ancestorInfo.listItemTagAutoclosing;
-
- case 'dd':
- case 'dt':
- return ancestorInfo.dlItemTagAutoclosing;
-
- case 'button':
- return ancestorInfo.buttonTagInScope;
-
- case 'a':
- // Spec says something about storing a list of markers, but it sounds
- // equivalent to this check.
- return ancestorInfo.aTagInScope;
-
- case 'nobr':
- return ancestorInfo.nobrTagInScope;
- }
-
- return null;
- };
-
- /**
- * Given a ReactCompositeComponent instance, return a list of its recursive
- * owners, starting at the root and ending with the instance itself.
- */
- var findOwnerStack = function (instance) {
- if (!instance) {
- return [];
- }
-
- var stack = [];
- do {
- stack.push(instance);
- } while (instance = instance._currentElement._owner);
- stack.reverse();
- return stack;
- };
-
- var didWarn = {};
-
- validateDOMNesting = function (childTag, childText, childInstance, ancestorInfo) {
- ancestorInfo = ancestorInfo || emptyAncestorInfo;
- var parentInfo = ancestorInfo.current;
- var parentTag = parentInfo && parentInfo.tag;
-
- if (childText != null) {
- "development" !== 'production' ? warning(childTag == null, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
- childTag = '#text';
- }
-
- var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
- var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
- var problematic = invalidParent || invalidAncestor;
-
- if (problematic) {
- var ancestorTag = problematic.tag;
- var ancestorInstance = problematic.instance;
-
- var childOwner = childInstance && childInstance._currentElement._owner;
- var ancestorOwner = ancestorInstance && ancestorInstance._currentElement._owner;
-
- var childOwners = findOwnerStack(childOwner);
- var ancestorOwners = findOwnerStack(ancestorOwner);
-
- var minStackLen = Math.min(childOwners.length, ancestorOwners.length);
- var i;
-
- var deepestCommon = -1;
- for (i = 0; i < minStackLen; i++) {
- if (childOwners[i] === ancestorOwners[i]) {
- deepestCommon = i;
- } else {
- break;
- }
- }
-
- var UNKNOWN = '(unknown)';
- var childOwnerNames = childOwners.slice(deepestCommon + 1).map(function (inst) {
- return getComponentName(inst) || UNKNOWN;
- });
- var ancestorOwnerNames = ancestorOwners.slice(deepestCommon + 1).map(function (inst) {
- return getComponentName(inst) || UNKNOWN;
- });
- var ownerInfo = [].concat(
- // If the parent and child instances have a common owner ancestor, start
- // with that -- otherwise we just start with the parent's owners.
- deepestCommon !== -1 ? getComponentName(childOwners[deepestCommon]) || UNKNOWN : [], ancestorOwnerNames, ancestorTag,
- // If we're warning about an invalid (non-parent) ancestry, add '...'
- invalidAncestor ? ['...'] : [], childOwnerNames, childTag).join(' > ');
-
- var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + ownerInfo;
- if (didWarn[warnKey]) {
- return;
- }
- didWarn[warnKey] = true;
-
- var tagDisplayName = childTag;
- var whitespaceInfo = '';
- if (childTag === '#text') {
- if (/\S/.test(childText)) {
- tagDisplayName = 'Text nodes';
- } else {
- tagDisplayName = 'Whitespace text nodes';
- whitespaceInfo = ' Make sure you don\'t have any extra whitespace between tags on ' + 'each line of your source code.';
- }
- } else {
- tagDisplayName = '<' + childTag + '>';
- }
-
- if (invalidParent) {
- var info = '';
- if (ancestorTag === 'table' && childTag === 'tr') {
- info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
- }
- "development" !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s ' + 'See %s.%s', tagDisplayName, ancestorTag, whitespaceInfo, ownerInfo, info) : void 0;
- } else {
- "development" !== 'production' ? warning(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>. See %s.', tagDisplayName, ancestorTag, ownerInfo) : void 0;
- }
- }
- };
-
- validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo;
-
- // For testing
- validateDOMNesting.isTagValidInContext = function (tag, ancestorInfo) {
- ancestorInfo = ancestorInfo || emptyAncestorInfo;
- var parentInfo = ancestorInfo.current;
- var parentTag = parentInfo && parentInfo.tag;
- return isTagValidWithParent(tag, parentTag) && !findInvalidAncestorForTag(tag, ancestorInfo);
- };
-}
-
-module.exports = validateDOMNesting;
-},{"113":113,"146":146,"161":161,"162":162}],136:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/* globals React */
-
-'use strict';
-
-var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
-
-module.exports = ReactInternals.ReactComponentTreeHook;
-},{}],137:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/* globals React */
-
-'use strict';
-
-var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
-
-module.exports = ReactInternals.ReactCurrentOwner;
-},{}],138:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/* globals React */
-
-'use strict';
-
-module.exports = React;
-},{}],139:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- *
- * 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
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * @typechecks
- */
-
-var emptyFunction = _dereq_(146);
-
-/**
- * Upstream version of event listener. Does not take into account specific
- * nature of platform.
- */
-var EventListener = {
- /**
- * Listen to DOM events during the bubble phase.
- *
- * @param {DOMEventTarget} target DOM element to register listener on.
- * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
- * @param {function} callback Callback function.
- * @return {object} Object with a `remove` method.
- */
- listen: function listen(target, eventType, callback) {
- if (target.addEventListener) {
- target.addEventListener(eventType, callback, false);
- return {
- remove: function remove() {
- target.removeEventListener(eventType, callback, false);
- }
- };
- } else if (target.attachEvent) {
- target.attachEvent('on' + eventType, callback);
- return {
- remove: function remove() {
- target.detachEvent('on' + eventType, callback);
- }
- };
- }
- },
-
- /**
- * Listen to DOM events during the capture phase.
- *
- * @param {DOMEventTarget} target DOM element to register listener on.
- * @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
- * @param {function} callback Callback function.
- * @return {object} Object with a `remove` method.
- */
- capture: function capture(target, eventType, callback) {
- if (target.addEventListener) {
- target.addEventListener(eventType, callback, true);
- return {
- remove: function remove() {
- target.removeEventListener(eventType, callback, true);
- }
- };
- } else {
- if ("development" !== 'production') {
- console.error('Attempted to listen to events during the capture phase on a ' + 'browser that does not support the capture phase. Your application ' + 'will not receive some events.');
- }
- return {
- remove: emptyFunction
- };
- }
- },
-
- registerDefault: function registerDefault() {}
-};
-
-module.exports = EventListener;
-},{"146":146}],140:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
-
-/**
- * Simple, lightweight module assisting with the detection and context of
- * Worker. Helps avoid circular dependencies and allows code to reason about
- * whether or not they are in a Worker, even if they never include the main
- * `ReactWorker` dependency.
- */
-var ExecutionEnvironment = {
-
- canUseDOM: canUseDOM,
-
- canUseWorkers: typeof Worker !== 'undefined',
-
- canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),
-
- canUseViewport: canUseDOM && !!window.screen,
-
- isInWorker: !canUseDOM // For now, this is true - might change in the future.
-
-};
-
-module.exports = ExecutionEnvironment;
-},{}],141:[function(_dereq_,module,exports){
-"use strict";
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-var _hyphenPattern = /-(.)/g;
-
-/**
- * Camelcases a hyphenated string, for example:
- *
- * > camelize('background-color')
- * < "backgroundColor"
- *
- * @param {string} string
- * @return {string}
- */
-function camelize(string) {
- return string.replace(_hyphenPattern, function (_, character) {
- return character.toUpperCase();
- });
-}
-
-module.exports = camelize;
-},{}],142:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-'use strict';
-
-var camelize = _dereq_(141);
-
-var msPattern = /^-ms-/;
-
-/**
- * Camelcases a hyphenated CSS property name, for example:
- *
- * > camelizeStyleName('background-color')
- * < "backgroundColor"
- * > camelizeStyleName('-moz-transition')
- * < "MozTransition"
- * > camelizeStyleName('-ms-transition')
- * < "msTransition"
- *
- * As Andi Smith suggests
- * (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
- * is converted to lowercase `ms`.
- *
- * @param {string} string
- * @return {string}
- */
-function camelizeStyleName(string) {
- return camelize(string.replace(msPattern, 'ms-'));
-}
-
-module.exports = camelizeStyleName;
-},{"141":141}],143:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-var isTextNode = _dereq_(156);
-
-/*eslint-disable no-bitwise */
-
-/**
- * Checks if a given DOM node contains or is another DOM node.
- */
-function containsNode(outerNode, innerNode) {
- if (!outerNode || !innerNode) {
- return false;
- } else if (outerNode === innerNode) {
- return true;
- } else if (isTextNode(outerNode)) {
- return false;
- } else if (isTextNode(innerNode)) {
- return containsNode(outerNode, innerNode.parentNode);
- } else if ('contains' in outerNode) {
- return outerNode.contains(innerNode);
- } else if (outerNode.compareDocumentPosition) {
- return !!(outerNode.compareDocumentPosition(innerNode) & 16);
- } else {
- return false;
- }
-}
-
-module.exports = containsNode;
-},{"156":156}],144:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-var invariant = _dereq_(154);
-
-/**
- * Convert array-like objects to arrays.
- *
- * This API assumes the caller knows the contents of the data type. For less
- * well defined inputs use createArrayFromMixed.
- *
- * @param {object|function|filelist} obj
- * @return {array}
- */
-function toArray(obj) {
- var length = obj.length;
-
- // Some browsers builtin objects can report typeof 'function' (e.g. NodeList
- // in old versions of Safari).
- !(!Array.isArray(obj) && (typeof obj === 'object' || typeof obj === 'function')) ? "development" !== 'production' ? invariant(false, 'toArray: Array-like object expected') : invariant(false) : void 0;
-
- !(typeof length === 'number') ? "development" !== 'production' ? invariant(false, 'toArray: Object needs a length property') : invariant(false) : void 0;
-
- !(length === 0 || length - 1 in obj) ? "development" !== 'production' ? invariant(false, 'toArray: Object should have keys for indices') : invariant(false) : void 0;
-
- !(typeof obj.callee !== 'function') ? "development" !== 'production' ? invariant(false, 'toArray: Object can\'t be `arguments`. Use rest params ' + '(function(...args) {}) or Array.from() instead.') : invariant(false) : void 0;
-
- // Old IE doesn't give collections access to hasOwnProperty. Assume inputs
- // without method will throw during the slice call and skip straight to the
- // fallback.
- if (obj.hasOwnProperty) {
- try {
- return Array.prototype.slice.call(obj);
- } catch (e) {
- // IE < 9 does not support Array#slice on collections objects
- }
- }
-
- // Fall back to copying key by key. This assumes all keys have a value,
- // so will not preserve sparsely populated inputs.
- var ret = Array(length);
- for (var ii = 0; ii < length; ii++) {
- ret[ii] = obj[ii];
- }
- return ret;
-}
-
-/**
- * Perform a heuristic test to determine if an object is "array-like".
- *
- * A monk asked Joshu, a Zen master, "Has a dog Buddha nature?"
- * Joshu replied: "Mu."
- *
- * This function determines if its argument has "array nature": it returns
- * true if the argument is an actual array, an `arguments' object, or an
- * HTMLCollection (e.g. node.childNodes or node.getElementsByTagName()).
- *
- * It will return false for other array-like objects like Filelist.
- *
- * @param {*} obj
- * @return {boolean}
- */
-function hasArrayNature(obj) {
- return (
- // not null/false
- !!obj && (
- // arrays are objects, NodeLists are functions in Safari
- typeof obj == 'object' || typeof obj == 'function') &&
- // quacks like an array
- 'length' in obj &&
- // not window
- !('setInterval' in obj) &&
- // no DOM node should be considered an array-like
- // a 'select' element has 'length' and 'item' properties on IE8
- typeof obj.nodeType != 'number' && (
- // a real array
- Array.isArray(obj) ||
- // arguments
- 'callee' in obj ||
- // HTMLCollection/NodeList
- 'item' in obj)
- );
-}
-
-/**
- * Ensure that the argument is an array by wrapping it in an array if it is not.
- * Creates a copy of the argument if it is already an array.
- *
- * This is mostly useful idiomatically:
- *
- * var createArrayFromMixed = require('createArrayFromMixed');
- *
- * function takesOneOrMoreThings(things) {
- * things = createArrayFromMixed(things);
- * ...
- * }
- *
- * This allows you to treat `things' as an array, but accept scalars in the API.
- *
- * If you need to convert an array-like object, like `arguments`, into an array
- * use toArray instead.
- *
- * @param {*} obj
- * @return {array}
- */
-function createArrayFromMixed(obj) {
- if (!hasArrayNature(obj)) {
- return [obj];
- } else if (Array.isArray(obj)) {
- return obj.slice();
- } else {
- return toArray(obj);
- }
-}
-
-module.exports = createArrayFromMixed;
-},{"154":154}],145:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-/*eslint-disable fb-www/unsafe-html*/
-
-var ExecutionEnvironment = _dereq_(140);
-
-var createArrayFromMixed = _dereq_(144);
-var getMarkupWrap = _dereq_(150);
-var invariant = _dereq_(154);
-
-/**
- * Dummy container used to render all markup.
- */
-var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
-
-/**
- * Pattern used by `getNodeName`.
- */
-var nodeNamePattern = /^\s*<(\w+)/;
-
-/**
- * Extracts the `nodeName` of the first element in a string of markup.
- *
- * @param {string} markup String of markup.
- * @return {?string} Node name of the supplied markup.
- */
-function getNodeName(markup) {
- var nodeNameMatch = markup.match(nodeNamePattern);
- return nodeNameMatch && nodeNameMatch[1].toLowerCase();
-}
-
-/**
- * Creates an array containing the nodes rendered from the supplied markup. The
- * optionally supplied `handleScript` function will be invoked once for each
- * <script> element that is rendered. If no `handleScript` function is supplied,
- * an exception is thrown if any <script> elements are rendered.
- *
- * @param {string} markup A string of valid HTML markup.
- * @param {?function} handleScript Invoked once for each rendered <script>.
- * @return {array<DOMElement|DOMTextNode>} An array of rendered nodes.
- */
-function createNodesFromMarkup(markup, handleScript) {
- var node = dummyNode;
- !!!dummyNode ? "development" !== 'production' ? invariant(false, 'createNodesFromMarkup dummy not initialized') : invariant(false) : void 0;
- var nodeName = getNodeName(markup);
-
- var wrap = nodeName && getMarkupWrap(nodeName);
- if (wrap) {
- node.innerHTML = wrap[1] + markup + wrap[2];
-
- var wrapDepth = wrap[0];
- while (wrapDepth--) {
- node = node.lastChild;
- }
- } else {
- node.innerHTML = markup;
- }
-
- var scripts = node.getElementsByTagName('script');
- if (scripts.length) {
- !handleScript ? "development" !== 'production' ? invariant(false, 'createNodesFromMarkup(...): Unexpected <script> element rendered.') : invariant(false) : void 0;
- createArrayFromMixed(scripts).forEach(handleScript);
- }
-
- var nodes = Array.from(node.childNodes);
- while (node.lastChild) {
- node.removeChild(node.lastChild);
- }
- return nodes;
-}
-
-module.exports = createNodesFromMarkup;
-},{"140":140,"144":144,"150":150,"154":154}],146:[function(_dereq_,module,exports){
-"use strict";
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-function makeEmptyFunction(arg) {
- return function () {
- return arg;
- };
-}
-
-/**
- * This function accepts and discards inputs; it has no side effects. This is
- * primarily useful idiomatically for overridable function endpoints which
- * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
- */
-var emptyFunction = function emptyFunction() {};
-
-emptyFunction.thatReturns = makeEmptyFunction;
-emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
-emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
-emptyFunction.thatReturnsNull = makeEmptyFunction(null);
-emptyFunction.thatReturnsThis = function () {
- return this;
-};
-emptyFunction.thatReturnsArgument = function (arg) {
- return arg;
-};
-
-module.exports = emptyFunction;
-},{}],147:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var emptyObject = {};
-
-if ("development" !== 'production') {
- Object.freeze(emptyObject);
-}
-
-module.exports = emptyObject;
-},{}],148:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * @param {DOMElement} node input/textarea to focus
- */
-
-function focusNode(node) {
- // IE8 can throw "Can't move focus to the control because it is invisible,
- // not enabled, or of a type that does not accept the focus." for all kinds of
- // reasons that are too expensive and fragile to test.
- try {
- node.focus();
- } catch (e) {}
-}
-
-module.exports = focusNode;
-},{}],149:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-/* eslint-disable fb-www/typeof-undefined */
-
-/**
- * Same as document.activeElement but wraps in a try-catch block. In IE it is
- * not safe to call document.activeElement if there is nothing focused.
- *
- * The activeElement will be null only if the document or document body is not
- * yet defined.
- */
-function getActiveElement() /*?DOMElement*/{
- if (typeof document === 'undefined') {
- return null;
- }
- try {
- return document.activeElement || document.body;
- } catch (e) {
- return document.body;
- }
-}
-
-module.exports = getActiveElement;
-},{}],150:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/*eslint-disable fb-www/unsafe-html */
-
-var ExecutionEnvironment = _dereq_(140);
-
-var invariant = _dereq_(154);
-
-/**
- * Dummy container used to detect which wraps are necessary.
- */
-var dummyNode = ExecutionEnvironment.canUseDOM ? document.createElement('div') : null;
-
-/**
- * Some browsers cannot use `innerHTML` to render certain elements standalone,
- * so we wrap them, render the wrapped nodes, then extract the desired node.
- *
- * In IE8, certain elements cannot render alone, so wrap all elements ('*').
- */
-
-var shouldWrap = {};
-
-var selectWrap = [1, '<select multiple="true">', '</select>'];
-var tableWrap = [1, '<table>', '</table>'];
-var trWrap = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
-
-var svgWrap = [1, '<svg xmlns="http://www.w3.org/2000/svg">', '</svg>'];
-
-var markupWrap = {
- '*': [1, '?<div>', '</div>'],
-
- 'area': [1, '<map>', '</map>'],
- 'col': [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
- 'legend': [1, '<fieldset>', '</fieldset>'],
- 'param': [1, '<object>', '</object>'],
- 'tr': [2, '<table><tbody>', '</tbody></table>'],
-
- 'optgroup': selectWrap,
- 'option': selectWrap,
-
- 'caption': tableWrap,
- 'colgroup': tableWrap,
- 'tbody': tableWrap,
- 'tfoot': tableWrap,
- 'thead': tableWrap,
-
- 'td': trWrap,
- 'th': trWrap
-};
-
-// Initialize the SVG elements since we know they'll always need to be wrapped
-// consistently. If they are created inside a <div> they will be initialized in
-// the wrong namespace (and will not display).
-var svgElements = ['circle', 'clipPath', 'defs', 'ellipse', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'text', 'tspan'];
-svgElements.forEach(function (nodeName) {
- markupWrap[nodeName] = svgWrap;
- shouldWrap[nodeName] = true;
-});
-
-/**
- * Gets the markup wrap configuration for the supplied `nodeName`.
- *
- * NOTE: This lazily detects which wraps are necessary for the current browser.
- *
- * @param {string} nodeName Lowercase `nodeName`.
- * @return {?array} Markup wrap configuration, if applicable.
- */
-function getMarkupWrap(nodeName) {
- !!!dummyNode ? "development" !== 'production' ? invariant(false, 'Markup wrapping node not initialized') : invariant(false) : void 0;
- if (!markupWrap.hasOwnProperty(nodeName)) {
- nodeName = '*';
- }
- if (!shouldWrap.hasOwnProperty(nodeName)) {
- if (nodeName === '*') {
- dummyNode.innerHTML = '<link />';
- } else {
- dummyNode.innerHTML = '<' + nodeName + '></' + nodeName + '>';
- }
- shouldWrap[nodeName] = !dummyNode.firstChild;
- }
- return shouldWrap[nodeName] ? markupWrap[nodeName] : null;
-}
-
-module.exports = getMarkupWrap;
-},{"140":140,"154":154}],151:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-'use strict';
-
-/**
- * Gets the scroll position of the supplied element or window.
- *
- * The return values are unbounded, unlike `getScrollPosition`. This means they
- * may be negative or exceed the element boundaries (which is possible using
- * inertial scrolling).
- *
- * @param {DOMWindow|DOMElement} scrollable
- * @return {object} Map with `x` and `y` keys.
- */
-
-function getUnboundedScrollPosition(scrollable) {
- if (scrollable === window) {
- return {
- x: window.pageXOffset || document.documentElement.scrollLeft,
- y: window.pageYOffset || document.documentElement.scrollTop
- };
- }
- return {
- x: scrollable.scrollLeft,
- y: scrollable.scrollTop
- };
-}
-
-module.exports = getUnboundedScrollPosition;
-},{}],152:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-var _uppercasePattern = /([A-Z])/g;
-
-/**
- * Hyphenates a camelcased string, for example:
- *
- * > hyphenate('backgroundColor')
- * < "background-color"
- *
- * For CSS style names, use `hyphenateStyleName` instead which works properly
- * with all vendor prefixes, including `ms`.
- *
- * @param {string} string
- * @return {string}
- */
-function hyphenate(string) {
- return string.replace(_uppercasePattern, '-$1').toLowerCase();
-}
-
-module.exports = hyphenate;
-},{}],153:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-'use strict';
-
-var hyphenate = _dereq_(152);
-
-var msPattern = /^ms-/;
-
-/**
- * Hyphenates a camelcased CSS property name, for example:
- *
- * > hyphenateStyleName('backgroundColor')
- * < "background-color"
- * > hyphenateStyleName('MozTransition')
- * < "-moz-transition"
- * > hyphenateStyleName('msTransition')
- * < "-ms-transition"
- *
- * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
- * is converted to `-ms-`.
- *
- * @param {string} string
- * @return {string}
- */
-function hyphenateStyleName(string) {
- return hyphenate(string).replace(msPattern, '-ms-');
-}
-
-module.exports = hyphenateStyleName;
-},{"152":152}],154:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Use invariant() to assert state which your program assumes to be true.
- *
- * Provide sprintf-style format (only %s is supported) and arguments
- * to provide information about what broke and what you were
- * expecting.
- *
- * The invariant message will be stripped in production, but the invariant
- * will remain to ensure logic does not differ in production.
- */
-
-function invariant(condition, format, a, b, c, d, e, f) {
- if ("development" !== 'production') {
- if (format === undefined) {
- throw new Error('invariant requires an error message argument');
- }
- }
-
- if (!condition) {
- var error;
- if (format === undefined) {
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
- } else {
- var args = [a, b, c, d, e, f];
- var argIndex = 0;
- error = new Error(format.replace(/%s/g, function () {
- return args[argIndex++];
- }));
- error.name = 'Invariant Violation';
- }
-
- error.framesToPop = 1; // we don't care about invariant's own frame
- throw error;
- }
-}
-
-module.exports = invariant;
-},{}],155:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-/**
- * @param {*} object The object to check.
- * @return {boolean} Whether or not the object is a DOM node.
- */
-function isNode(object) {
- return !!(object && (typeof Node === 'function' ? object instanceof Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
-}
-
-module.exports = isNode;
-},{}],156:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-var isNode = _dereq_(155);
-
-/**
- * @param {*} object The object to check.
- * @return {boolean} Whether or not the object is a DOM text node.
- */
-function isTextNode(object) {
- return isNode(object) && object.nodeType == 3;
-}
-
-module.exports = isTextNode;
-},{"155":155}],157:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- * @typechecks static-only
- */
-
-'use strict';
-
-/**
- * Memoizes the return value of a function that accepts one string argument.
- */
-
-function memoizeStringOnly(callback) {
- var cache = {};
- return function (string) {
- if (!cache.hasOwnProperty(string)) {
- cache[string] = callback.call(this, string);
- }
- return cache[string];
- };
-}
-
-module.exports = memoizeStringOnly;
-},{}],158:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-'use strict';
-
-var ExecutionEnvironment = _dereq_(140);
-
-var performance;
-
-if (ExecutionEnvironment.canUseDOM) {
- performance = window.performance || window.msPerformance || window.webkitPerformance;
-}
-
-module.exports = performance || {};
-},{"140":140}],159:[function(_dereq_,module,exports){
-'use strict';
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- */
-
-var performance = _dereq_(158);
-
-var performanceNow;
-
-/**
- * Detect if we can use `window.performance.now()` and gracefully fallback to
- * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now
- * because of Facebook's testing infrastructure.
- */
-if (performance.now) {
- performanceNow = function performanceNow() {
- return performance.now();
- };
-} else {
- performanceNow = function performanceNow() {
- return Date.now();
- };
-}
-
-module.exports = performanceNow;
-},{"158":158}],160:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- * @typechecks
- *
- */
-
-/*eslint-disable no-self-compare */
-
-'use strict';
-
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-
-/**
- * inlined Object.is polyfill to avoid requiring consumers ship their own
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
- */
-function is(x, y) {
- // SameValue algorithm
- if (x === y) {
- // Steps 1-5, 7-10
- // Steps 6.b-6.e: +0 != -0
- // Added the nonzero y check to make Flow happy, but it is redundant
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
- } else {
- // Step 6.a: NaN == NaN
- return x !== x && y !== y;
- }
-}
-
-/**
- * Performs equality by iterating through keys on an object and returning false
- * when any key has values which are not strictly equal between the arguments.
- * Returns true when the values of all keys are strictly equal.
- */
-function shallowEqual(objA, objB) {
- if (is(objA, objB)) {
- return true;
- }
-
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
- return false;
- }
-
- var keysA = Object.keys(objA);
- var keysB = Object.keys(objB);
-
- if (keysA.length !== keysB.length) {
- return false;
- }
-
- // Test for A's keys different from B.
- for (var i = 0; i < keysA.length; i++) {
- if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
- return false;
- }
- }
-
- return true;
-}
-
-module.exports = shallowEqual;
-},{}],161:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var emptyFunction = _dereq_(146);
-
-/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
-
-var warning = emptyFunction;
-
-if ("development" !== 'production') {
- (function () {
- var printWarning = function printWarning(format) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message);
- } catch (x) {}
- };
-
- warning = function warning(condition, format) {
- if (format === undefined) {
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
- }
-
- if (format.indexOf('Failed Composite propType: ') === 0) {
- return; // Ignore CompositeComponent proptype check.
- }
-
- if (!condition) {
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
-
- printWarning.apply(undefined, [format].concat(args));
- }
- };
- })();
-}
-
-module.exports = warning;
-},{"146":146}],162:[function(_dereq_,module,exports){
-'use strict';
-/* eslint-disable no-unused-vars */
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-var propIsEnumerable = Object.prototype.propertyIsEnumerable;
-
-function toObject(val) {
- if (val === null || val === undefined) {
- throw new TypeError('Object.assign cannot be called with null or undefined');
- }
-
- return Object(val);
-}
-
-function shouldUseNative() {
- try {
- if (!Object.assign) {
- return false;
- }
-
- // Detect buggy property enumeration order in older V8 versions.
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
- var test1 = new String('abc'); // eslint-disable-line
- test1[5] = 'de';
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test2 = {};
- for (var i = 0; i < 10; i++) {
- test2['_' + String.fromCharCode(i)] = i;
- }
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
- return test2[n];
- });
- if (order2.join('') !== '0123456789') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test3 = {};
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
- test3[letter] = letter;
- });
- if (Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst') {
- return false;
- }
-
- return true;
- } catch (e) {
- // We don't expect any of the above to throw, but better to be safe.
- return false;
- }
-}
-
-module.exports = shouldUseNative() ? Object.assign : function (target, source) {
- var from;
- var to = toObject(target);
- var symbols;
-
- for (var s = 1; s < arguments.length; s++) {
- from = Object(arguments[s]);
-
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key];
- }
- }
-
- if (Object.getOwnPropertySymbols) {
- symbols = Object.getOwnPropertySymbols(from);
- for (var i = 0; i < symbols.length; i++) {
- if (propIsEnumerable.call(from, symbols[i])) {
- to[symbols[i]] = from[symbols[i]];
- }
- }
- }
- }
-
- return to;
-};
-
-},{}]},{},[50])(50)
-});
-});
diff --git a/lib/vendor/react-dom.js b/lib/vendor/react-dom.js
deleted file mode 120000
index 141e77ad1..000000000
--- a/lib/vendor/react-dom.js
+++ /dev/null
@@ -1 +0,0 @@
-react-dom.min.js \ No newline at end of file
diff --git a/lib/vendor/react-dom.min.js b/lib/vendor/react-dom.min.js
deleted file mode 100644
index 02ef0e372..000000000
--- a/lib/vendor/react-dom.min.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * ReactDOM v16.0.0-alpha
- *
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-!function(e){if("object"==typeof exports&&"undefined"!=typeof module)e(require("react"));else if("function"==typeof define&&define.amd)require(["react"],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e(t.React)}}(function(e){!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.ReactDOM=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";var r={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};t.exports=r},{}],2:[function(e,t,n){"use strict";var r=e(34),o=e(134),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};t.exports=i},{134:134,34:34}],3:[function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case"topCompositionStart":return k.compositionStart;case"topCompositionEnd":return k.compositionEnd;case"topCompositionUpdate":return k.compositionUpdate}}function a(e,t){return"topKeyDown"===e&&t.keyCode===_}function s(e,t){switch(e){case"topKeyUp":return y.indexOf(t.keyCode)!==-1;case"topKeyDown":return t.keyCode!==_;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function l(e,t,n,r){var o,l;if(C?o=i(e):P?s(e,n)&&(o=k.compositionEnd):a(e,n)&&(o=k.compositionStart),!o)return null;x&&(P||o!==k.compositionStart?o===k.compositionEnd&&P&&(l=P.getData()):P=m.getPooled(r));var c=v.getPooled(o,t,n,r);if(l)c.data=l;else{var p=u(n);null!==p&&(c.data=p)}return f.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case"topCompositionEnd":return u(t);case"topKeyPress":var n=t.which;return n!==T?null:(S=!0,w);case"topTextInput":var r=t.data;return r===w&&S?null:r;default:return null}}function p(e,t){if(P){if("topCompositionEnd"===e||!C&&s(e,t)){var n=P.getData();return m.release(P),P=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!o(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return x?null:t.data;default:return null}}function d(e,t,n,r){var o;if(o=E?c(e,n):p(e,n),!o)return null;var i=g.getPooled(k.beforeInput,t,n,r);return i.data=o,f.accumulateTwoPhaseDispatches(i),i}var f=e(19),h=e(126),m=e(20),v=e(79),g=e(83),y=[9,13,27,32],_=229,C=h.canUseDOM&&"CompositionEvent"in window,b=null;h.canUseDOM&&"documentMode"in document&&(b=document.documentMode);var E=h.canUseDOM&&"TextEvent"in window&&!b&&!r(),x=h.canUseDOM&&(!C||b&&b>8&&b<=11),T=32,w=String.fromCharCode(T),k={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,P=null,N={eventTypes:k,extractEvents:function(e,t,n,r){return[l(e,t,n,r),d(e,t,n,r)]}};t.exports=N},{126:126,19:19,20:20,79:79,83:83}],4:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:a};t.exports=s},{}],5:[function(e,t,n){"use strict";var r=e(4),o=e(126),i=(e(59),e(128),e(95)),a=(e(100),e(139)),s=e(143),u=(e(145),s(function(e){return a(e)})),l=!1,c="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var d={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];null!=o&&(n+=u(r)+":",n+=i(r,o,t)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=i(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),s)o[a]=s;else{var u=l&&r.shorthandPropertyExpansions[a];if(u)for(var p in u)o[p]="";else o[a]=""}}}};t.exports=d},{100:100,126:126,128:128,139:139,143:143,145:145,4:4,59:59,95:95}],6:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=e(116),i=e(23),a=(e(140),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length?o("24"):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<e.length;r++)e[r].call(t[r],n);e.length=0,t.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}());t.exports=i.addPoolingTo(a)},{116:116,140:140,23:23}],7:[function(e,t,n){"use strict";function r(e,t,n){var r=k.getPooled(I.change,e,t,n);return r.type="change",x.enqueueStateRestore(e),b.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(O,e,P(e));w.batchedUpdates(a,t)}function a(e){C.enqueueEvents(e),C.processEventQueue(!1)}function s(e,t){R=e,O=t,R.attachEvent("onchange",i)}function u(){R&&(R.detachEvent("onchange",i),R=null,O=null)}function l(e){if(S.updateValueIfChanged(e))return e}function c(e,t){if("topChange"===e)return t}function p(e,t,n){"topFocus"===e?(u(),s(t,n)):"topBlur"===e&&u()}function d(e,t){R=e,O=t,R.attachEvent("onpropertychange",h)}function f(){R&&(R.detachEvent("onpropertychange",h),R=null,O=null)}function h(e){"value"===e.propertyName&&l(O)&&i(e)}function m(e,t,n){"topFocus"===e?(f(),d(t,n)):"topBlur"===e&&f()}function v(e,t){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return l(O)}function g(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t){if("topClick"===e)return l(t)}function _(e,t){if("topInput"===e||"topChange"===e)return l(t)}var C=e(16),b=e(19),E=e(126),x=e(29),T=e(34),w=e(55),k=e(81),S=e(111),P=e(104),N=e(113),M=e(114),I={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},R=null,O=null,A=!1;E.canUseDOM&&(A=N("change")&&(!document.documentMode||document.documentMode>8));var D=!1;E.canUseDOM&&(D=N("input")&&(!document.documentMode||document.documentMode>9));var L={eventTypes:I,_isInputEventSupported:D,extractEvents:function(e,t,n,i){var a,s,u=t?T.getNodeFromInstance(t):window;if(o(u)?A?a=c:s=p:M(u)?D?a=_:(a=v,s=m):g(u)&&(a=y),a){var l=a(e,t);if(l){var d=r(l,n,i);return d}}s&&s(e,u,t)}};t.exports=L},{104:104,111:111,113:113,114:114,126:126,16:16,19:19,29:29,34:34,55:55,81:81}],8:[function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){c.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):m(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],u(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var o=t;;){var i=o.nextSibling;if(m(e,o,r),o===n)break;o=i}}function u(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function l(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&m(r,document.createTextNode(n),o):n?(h(o,n),u(r,o,t)):u(r,e,t)}var c=e(10),p=e(14),d=(e(34),e(59),e(94)),f=e(118),h=e(119),m=d(function(e,t,n){e.insertBefore(t,n)}),v=p.dangerouslyReplaceNodeWithMarkup,g={dangerouslyReplaceNodeWithMarkup:v,replaceDelimitedText:l,processUpdates:function(e,t){for(var n=0;n<t.length;n++){var s=t[n];switch(s.type){case"INSERT_MARKUP":o(e,s.content,r(e,s.afterNode));break;case"MOVE_EXISTING":i(e,s.fromNode,r(e,s.afterNode));break;case"SET_MARKUP":f(e,s.content);break;case"TEXT_CONTENT":h(e,s.content);break;case"REMOVE_NODE":a(e,s.fromNode)}}}};t.exports=g},{10:10,118:118,119:119,14:14,34:34,59:59,94:94}],9:[function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=r},{}],10:[function(e,t,n){"use strict";function r(e){if(v){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)g(t,n[r],null);else null!=e.html?p(t,e.html):null!=e.text&&f(t,e.text)}}function o(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){v?e.children.push(t):e.node.appendChild(t.node)}function a(e,t){v?e.html=t:p(e.node,t)}function s(e,t){v?e.text=t:f(e.node,t)}function u(){return this.node.nodeName}function l(e){return{node:e,children:[],html:null,text:null,toString:u}}var c=e(11),p=e(118),d=e(94),f=e(119),h=1,m=11,v="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),g=d(function(e,t,n){t.node.nodeType===m||t.node.nodeType===h&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===c.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});l.insertTreeBefore=g,l.replaceChildWithTree=o,l.queueChild=i,l.queueHTML=a,l.queueText=s,t.exports=l},{11:11,118:118,119:119,94:94}],11:[function(e,t,n){"use strict";var r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};t.exports=r},{}],12:[function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=e(116),i=(e(140),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var p in n){s.properties.hasOwnProperty(p)?o("48",p):void 0;var d=p.toLowerCase(),f=n[p],h={attributeName:d,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:r(f,t.MUST_USE_PROPERTY),hasBooleanValue:r(f,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(f,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(f,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(f,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o("50",p),u.hasOwnProperty(p)){var m=u[p];h.attributeName=m}a.hasOwnProperty(p)&&(h.attributeNamespace=a[p]),l.hasOwnProperty(p)&&(h.propertyName=l[p]),c.hasOwnProperty(p)&&(h.mutationMethod=c[p]),s.properties[p]=h}}}),a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:i};t.exports=s},{116:116,140:140}],13:[function(e,t,n){"use strict";function r(e){return!!l.hasOwnProperty(e)||!u.hasOwnProperty(e)&&(s.test(e)?(l[e]=!0,!0):(u[e]=!0,!1))}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var i=e(12),a=(e(34),e(59),e(115)),s=(e(145),new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$")),u={},l={},c={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+a(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+a(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+a(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+a(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var a=r.mutationMethod;if(a)a(e,n);else{if(o(r,n))return void this.deleteValueForProperty(e,t);if(r.mustUseProperty)e[r.propertyName]=n;else{var s=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}}}else if(i.isCustomAttribute(t))return void c.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseProperty){var o=n.propertyName;n.hasBooleanValue?e[o]=!1:e[o]=""}else e.removeAttribute(n.attributeName)}else i.isCustomAttribute(t)&&e.removeAttribute(t)}};t.exports=c},{115:115,12:12,145:145,34:34,59:59}],14:[function(e,t,n){"use strict";var r=e(116),o=e(10),i=e(126),a=e(131),s=e(132),u=(e(140),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM?void 0:r("56"),t?void 0:r("57"),"HTML"===e.nodeName?r("58"):void 0,"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});t.exports=u},{10:10,116:116,126:126,131:131,132:132,140:140}],15:[function(e,t,n){"use strict";var r=e(19),o=e(34),i=e(85),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,p;if("topMouseOut"===e){c=t;var d=n.relatedTarget||n.toElement;p=d?o.getClosestInstanceFromNode(d):null}else c=null,p=t;if(c===p)return null;var f=null==c?u:o.getNodeFromInstance(c),h=null==p?u:o.getNodeFromInstance(p),m=i.getPooled(a.mouseLeave,c,n,s);m.type="mouseleave",m.target=f,m.relatedTarget=h;var v=i.getPooled(a.mouseEnter,p,n,s);return v.type="mouseenter",v.target=h,v.relatedTarget=f,r.accumulateEnterLeaveDispatches(m,v,c,p),[m,v]}};t.exports=s},{19:19,34:34,85:85}],16:[function(e,t,n){"use strict";var r=e(116),o=e(17),i=e(18),a=e(51),s=e(92),u=e(99),l=(e(140),{}),c=null,p=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return p(e,!0)},f=function(e){return p(e,!1)},h=function(e){return"."+e._rootNodeID},m={injection:{injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?r("94",t,typeof n):void 0;var i=h(e),a=l[t]||(l[t]={});a[i]=n;var s=o.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t],r=h(e);return n&&n[r]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=l[t];if(r){var i=h(e);delete r[i]}},deleteAllListeners:function(e){var t=h(e);for(var n in l)if(l.hasOwnProperty(n)&&l[n][t]){var r=o.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete l[n][t]}},extractEvents:function(e,t,n,r){for(var i,a=o.plugins,u=0;u<a.length;u++){var l=a[u];if(l){var c=l.extractEvents(e,t,n,r);c&&(i=s(i,c))}}return i},enqueueEvents:function(e){e&&(c=s(c,e))},processEventQueue:function(e){var t=c;c=null,e?u(t,d):u(t,f),c?r("95"):void 0,a.rethrowCaughtError()},__purge:function(){l={}},__getListenerBank:function(){return l}};t.exports=m},{116:116,140:140,17:17,18:18,51:51,92:92,99:99}],17:[function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(n>-1?void 0:a("96",e),!l.plugins[n]){t.extractEvents?void 0:a("97",e),l.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)?void 0:a("98",i,e)}}}function o(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){l.registrationNameModules[e]?a("100",e):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e(116),s=(e(140),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?a("102",n):void 0,u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},{116:116,140:140}],18:[function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(o,n,e):m.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)a(e,t,n[o],r[o]);else n&&a(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function u(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function l(e){var t=u(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)?f("103"):void 0,e.currentTarget=t?g.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function p(e){return!!e._dispatchListeners}var d,f=e(116),h=e(70),m=e(51),v=(e(140),e(145),{injectComponentTree:function(e){d=e}}),g={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:l,hasDispatches:p,getInstanceFromNode:function(e){return d.getInstanceFromNode(e)},getNodeFromInstance:function(e){return d.getNodeFromInstance(e)},isAncestor:function(e,t){return h.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return h.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return h.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return h.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,o){return h.traverseEnterLeave(e,t,n,r,o)},injection:v};t.exports=g},{116:116,140:140,145:145,51:51,70:70}],19:[function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return g(e,r)}function o(e,t,n){var o=r(e,n,t);o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,o,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,o,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=g(e,r);o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function l(e){v(e,i)}function c(e){v(e,a)}function p(e,t,n,r){h.traverseEnterLeave(n,r,s,e,t)}function d(e){v(e,u)}var f=e(16),h=e(18),m=e(92),v=e(99),g=(e(145),f.getListener),y={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:p};t.exports=y},{145:145,16:16,18:18,92:92,99:99}],20:[function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=e(146),i=e(23),a=e(109);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},{109:109,146:146,23:23}],21:[function(e,t,n){"use strict";var r=e(12),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,slot:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=l},{12:12}],22:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var i={escape:r,unescape:o};t.exports=i},{}],23:[function(e,t,n){"use strict";var r=e(116),o=(e(140),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},l=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,p=o,d=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=l,n},f={addPoolingTo:d,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:u};t.exports=f},{116:116,140:140}],24:[function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,p[e[m]]={}),p[e[m]]}var o,i=e(146),a=e(17),s=e(52),u=e(91),l=e(110),c=e(113),p={},d=!1,f=0,h={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),i=a.registrationNameDependencies[e],s=0;s<i.length;s++){var u=i[s];o.hasOwnProperty(u)&&o[u]||("topWheel"===u?c("wheel")?v.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):c("mousewheel")?v.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):v.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===u?c("scroll",!0)?v.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):v.ReactEventListener.trapBubbledEvent("topScroll","scroll",v.ReactEventListener.WINDOW_HANDLE):"topFocus"===u||"topBlur"===u?(c("focus",!0)?(v.ReactEventListener.trapCapturedEvent("topFocus","focus",n),v.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):c("focusin")&&(v.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),v.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),o.topBlur=!0,o.topFocus=!0):h.hasOwnProperty(u)&&v.ReactEventListener.trapBubbledEvent(u,h[u],n),o[u]=!0)}},isListeningToAllDependencies:function(e,t){for(var n=r(t),o=a.registrationNameDependencies[e],i=0;i<o.length;i++){var s=o[i];if(!n.hasOwnProperty(s)||!n[s])return!1;
-}return!0},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=v.supportsEventPageXY()),!o&&!d){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),d=!0}}});t.exports=v},{110:110,113:113,146:146,17:17,52:52,91:91}],25:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=i(t,!0))}var o=e(66),i=e(112),a=(e(22),e(120)),s=e(121);e(145);"undefined"!=typeof n&&n.env,1;var u={instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return s(e,r,i),i},updateChildren:function(e,t,n,r,s,u,l,c,p){if(t||e){var d,f;for(d in t)if(t.hasOwnProperty(d)){f=e&&e[d];var h=f&&f._currentElement,m=t[d];if(null!=f&&a(h,m))o.receiveComponent(f,m,s,c),t[d]=f;else{f&&(r[d]=o.getHostNode(f),o.unmountComponent(f,!1,!1));var v=i(m,!0);t[d]=v;var g=o.mountComponent(v,s,u,l,c,p);n.push(g)}}for(d in e)!e.hasOwnProperty(d)||t&&t.hasOwnProperty(d)||(f=e[d],r[d]=o.getHostNode(f),o.unmountComponent(f,!1,!1))}},unmountChildren:function(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];o.unmountComponent(i,t,n)}}};t.exports=u}).call(this,void 0)},{112:112,120:120,121:121,145:145,22:22,66:66}],26:[function(e,t,n){"use strict";var r=e(8),o=e(38),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=i},{38:38,8:8}],27:[function(e,t,n){"use strict";var r=e(116),o=(e(140),!1),i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r("104"):void 0,i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};t.exports=i},{116:116,140:140}],28:[function(e,t,n){"use strict";function r(e){}function o(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var s=e(116),u=e(146),l=e(124),c=e(27),p=e(123),d=e(51),f=e(58),h=(e(59),e(63)),m=e(66),v=e(133),g=(e(140),e(144)),y=e(120),_=(e(145),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return o(e,t),t};var C=1,b={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,u){this._context=u,this._mountOrder=C++,this._hostParent=t,this._hostContainerInfo=n;var c,p=this._currentElement.props,d=this._processContext(u),h=this._currentElement.type,m=e.getUpdateQueue(),g=i(h),y=this._constructComponent(g,p,d,m);g||null!=y&&null!=y.render?a(h)?this._compositeType=_.PureClass:this._compositeType=_.ImpureClass:(c=y,o(h,c),null===y||y===!1||l.isValidElement(y)?void 0:s("105",h.displayName||h.name||"Component"),y=new r(h),this._compositeType=_.StatelessFunctional),y.props=p,y.context=d,y.refs=v,y.updater=m,this._instance=y,f.set(y,this);var b=y.state;void 0===b&&(y.state=b=null),"object"!=typeof b||Array.isArray(b)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,y.componentWillMount&&(y.componentWillMount(),this._pendingStateQueue&&(y.state=this._processPendingState(y.props,y.context)));var E;E=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,u):this.performInitialMount(c,t,n,e,u),y.componentDidMount&&e.getReactMountReady().enqueue(y.componentDidMount,y);var x=this._pendingCallbacks;if(x){this._pendingCallbacks=null;for(var T=0;T<x.length;T++)e.getReactMountReady().enqueue(x[T],y)}return E},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0,!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){void 0===e&&(e=this._renderValidatedComponent());var i=h.getType(e);this._renderedNodeType=i;var a=this._instantiateReactComponent(e,i!==h.EMPTY);this._renderedComponent=a;var s=0,u=m.mountComponent(a,r,t,n,this._processChildContext(o),s);return u},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(e,t){if(this._renderedComponent){var n=this._instance;if(n.componentWillUnmount&&!n._calledComponentWillUnmount)if(n._calledComponentWillUnmount=!0,e){if(!t){var r=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(r,n.componentWillUnmount.bind(n))}}else n.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,e,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(n)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return v;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(t=r.getChildContext()),t){"object"!=typeof n.childContextTypes?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var o in t)o in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",o);return u({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var i=this._instance;null==i?s("136",this.getName()||"ReactCompositeComponent"):void 0;var a,u=!1;this._context===o?a=i.context:(a=this._processContext(o),u=!0);var l=t.props,c=n.props;t!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,a);var p=this._processPendingState(c,a),d=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?d=i.shouldComponentUpdate(c,p,a):this._compositeType===_.PureClass&&(d=!g(l,c)||!g(i.state,p))),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,p,a,e,o)):(this._currentElement=n,this._context=o,i.props=c,i.state=p,i.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=u({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];u(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a,s,u,l=this._instance,c=Boolean(l.componentDidUpdate);c&&(a=l.props,s=l.state,u=l.context),l.componentWillUpdate&&l.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,l.props=t,l.state=n,l.context=r,l.unstable_handleError?this._updateRenderedComponentWithErrorHandling(o,i):this._updateRenderedComponent(o,i),c&&o.getReactMountReady().enqueue(l.componentDidUpdate.bind(l,a,s,u),l)},_updateRenderedComponentWithErrorHandling:function(e,t){var n=e.checkpoint();try{this._updateRenderedComponent(e,t)}catch(r){e.rollback(n),this._instance.unstable_handleError(r),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),n=e.checkpoint(),this._updateRenderedComponentWithNextElement(e,t,null,!0),this._updateRenderedComponent(e,t)}},_updateRenderedComponent:function(e,t){var n=this._renderValidatedComponent();this._updateRenderedComponentWithNextElement(e,t,n,!1)},_updateRenderedComponentWithNextElement:function(e,t,n,r){var o=this._renderedComponent,i=o._currentElement,a=0;if(y(i,n))m.receiveComponent(o,n,e,this._processChildContext(t));else{var s=m.getHostNode(o);m.unmountComponent(o,r,!1);var u=h.getType(n);this._renderedNodeType=u;var l=this._instantiateReactComponent(n,u!==h.EMPTY);this._renderedComponent=l;var c=m.mountComponent(l,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),a);this._replaceNodeWithMarkup(s,c,o)}},_replaceNodeWithMarkup:function(e,t,n){c.replaceNodeWithMarkup(e,t,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e,t=this._instance;return e=t.render()},_renderValidatedComponent:function(){var e;if(this._compositeType!==_.StatelessFunctional){p.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{p.current=null}}else e=this._renderValidatedComponentWithoutOwnerOrContext();return null===e||e===!1||l.isValidElement(e)?void 0:s("109",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?s("110"):void 0;var r=t.getPublicInstance(),o=n.refs===v?n.refs={}:n.refs;o[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===_.StatelessFunctional?null:e},_instantiateReactComponent:null};t.exports=b},{116:116,120:120,123:123,124:124,133:133,140:140,144:144,145:145,146:146,27:27,51:51,58:58,59:59,63:63,66:66}],29:[function(e,t,n){"use strict";function r(e){"number"==typeof e.tag&&(i&&"function"==typeof i.restoreControlledState?void 0:o("146"),i.restoreControlledState(e)),"function"!=typeof e.restoreControlledState?o("147"):void 0,e.restoreControlledState()}var o=e(116),i=(e(140),null),a={injectFiberControlledHostComponent:function(e){i=e}},s=null,u=null,l={injection:a,enqueueStateRestore:function(e){s?u?u.push(e):u=[e]:s=e},restoreStateIfNeeded:function(){if(s){var e=s,t=u;if(s=null,u=null,r(e),t)for(var n=0;n<t.length;n++)r(t[n])}}};t.exports=l},{116:116,140:140}],30:[function(e,t,n){"use strict";function r(e){if(e){var t=i(e);if(t)return" Check the render method of `"+t+"`."}return""}var o=e(124),i=e(100),a=(e(145),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),s={value:function(e,t,n){return!e[t]||a[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:o.PropTypes.func},u={},l={checkPropTypes:function(e,t,n){for(var o in s){if(s.hasOwnProperty(o))var i=s[o](t,o,e,"prop");i instanceof Error&&!(i.message in u)&&(u[i.message]=!0,r(n))}}};t.exports=l},{100:100,124:124,145:145}],31:[function(e,t,n){"use strict";var r=e(34),o=e(39),i=e(44),a=e(61),s=e(66),u=e(72),l=e(73),c=e(97),p=e(105),d=e(117);e(145);o.inject(),i.inject();var f={findDOMNode:c,render:a.render,unmountComponentAtNode:a.unmountComponentAtNode,version:l,unstable_batchedUpdates:u.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=p(e)),e?r.getNodeFromInstance(e):null}},Mount:a,Reconciler:s});t.exports=f},{105:105,117:117,145:145,34:34,39:39,44:44,61:61,66:66,72:72,73:73,97:97}],32:[function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e,t){t&&(J[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML?y("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):void 0),null!=t.dangerouslySetInnerHTML&&(null!=t.children?y("60"):void 0,"object"==typeof t.dangerouslySetInnerHTML&&Y in t.dangerouslySetInnerHTML?void 0:y("61")),null!=t.style&&"object"!=typeof t.style?y("62",r(e)):void 0)}function i(e,t,n,r){if(!(r instanceof L)){var o=e._hostContainerInfo,i=o._node&&o._node.nodeType===Q,a=i?o._node:o._ownerDocument;H(t,a),r.getReactMountReady().enqueue(s,{inst:e,registrationName:t,listener:n})}}function a(e,t,n){if(!(n instanceof L)){var r=e._hostContainerInfo,o=r._node&&r._node.nodeType===Q,i=o?r._node:r._ownerDocument;H(t,i)}}function s(){var e=this;k.putListener(e.inst,e.registrationName,e.listener)}function u(){var e=this;I.postMountWrapper(e)}function l(){var e=this;A.postMountWrapper(e)}function c(){var e=this;R.postMountWrapper(e)}function p(){j.track(this)}function d(){var e=W(this);e.onclick=U}function f(){var e=this;e._rootNodeID?void 0:y("63");var t=W(e);switch(t?void 0:y("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[P.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in G)G.hasOwnProperty(n)&&e._wrapperState.listeners.push(P.trapBubbledEvent(n,G[n],t));break;case"source":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t),P.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[P.trapBubbledEvent("topReset","reset",t),P.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[P.trapBubbledEvent("topInvalid","invalid",t)]}}function h(){O.postUpdateWrapper(this)}function m(e){ne.call(te,e)||(ee.test(e)?void 0:y("65",e),te[e]=!0)}function v(e,t){return e.indexOf("-")>=0||null!=t.is}function g(e){var t=e.type;m(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var y=e(116),_=e(146),C=e(2),b=e(5),E=e(10),x=e(11),T=e(12),w=e(13),k=e(16),S=e(17),P=e(24),N=e(33),M=e(34),I=e(40),R=e(41),O=e(42),A=e(46),D=(e(59),e(62)),L=e(68),U=e(132),F=e(96),j=(e(140),e(113),e(144),e(111)),B=(e(122),e(145),N),V=k.deleteListener,W=M.getNodeFromInstance,H=P.listenTo,q=S.registrationNameModules,K={string:!0,number:!0},z="style",Y="__html",X={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},Q=11,G={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Z={listing:!0,pre:!0,textarea:!0},J=_({menuitem:!0},$),ee=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,te={},ne={}.hasOwnProperty,re=1;g.displayName="ReactDOMComponent",g.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=re++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(f,this);break;case"input":I.mountWrapper(this,i,t),i=I.getHostProps(this,i),e.getReactMountReady().enqueue(p,this),e.getReactMountReady().enqueue(f,this),a(this,"onChange",e);break;case"option":R.mountWrapper(this,i,t),i=R.getHostProps(this,i);break;case"select":O.mountWrapper(this,i,t),i=O.getHostProps(this,i),e.getReactMountReady().enqueue(f,this),a(this,"onChange",e);break;case"textarea":A.mountWrapper(this,i,t),i=A.getHostProps(this,i),e.getReactMountReady().enqueue(p,this),e.getReactMountReady().enqueue(f,this),a(this,"onChange",e)}o(this,i);var s,h;null!=t?(s=t._namespaceURI,h=t._tag):n._tag&&(s=n._namespaceURI,h=n._tag),(null==s||s===x.svg&&"foreignobject"===h)&&(s=x.html),s===x.html&&("svg"===this._tag?s=x.svg:"math"===this._tag&&(s=x.mathml)),this._namespaceURI=s;var m,g=this._currentElement.type;if(e.useCreateElement){var y,_=n._ownerDocument;if(s===x.html)if("script"===this._tag){var b=_.createElement("div");b.innerHTML="<"+g+"></"+g+">",y=b.removeChild(b.firstChild)}else y=i.is?_.createElement(g,i.is):_.createElement(g);else y=_.createElementNS(s,g);var T=v(this._tag,i);M.precacheNode(this,y),this._flags|=B.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(y),this._updateDOMProperties(null,i,e,T);var k=E(y);this._createInitialChildren(e,i,r,k),m=k}else{var S=this._createOpenTagMarkupAndPutListeners(e,i),P=this._createContentMarkup(e,i,r);m=!P&&$[this._tag]?S+"/>":S+">"+P+"</"+g+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(C.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(l,this),i.autoFocus&&e.getReactMountReady().enqueue(C.focusDOMComponent,this);break;case"select":i.autoFocus&&e.getReactMountReady().enqueue(C.focusDOMComponent,this);break;case"button":i.autoFocus&&e.getReactMountReady().enqueue(C.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this);break;default:"function"==typeof i.onClick&&e.getReactMountReady().enqueue(d,this)}return m},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(q.hasOwnProperty(r))o&&i(this,r,o,e);else{r===z&&(o&&(o=this._previousStyleCopy=_({},t.style)),o=b.createMarkupForStyles(o,this));var a=null;null!=this._tag&&v(this._tag,t)?X.hasOwnProperty(r)||(a=w.createMarkupForCustomAttribute(r,o)):a=w.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=K[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=F(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return Z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&E.queueHTML(r,o.__html);else{var i=K[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&E.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u<s.length;u++)E.queueChild(r,s[u])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var i=t.props,a=this._currentElement.props;switch(this._tag){case"input":i=I.getHostProps(this,i),a=I.getHostProps(this,a);break;case"option":i=R.getHostProps(this,i),a=R.getHostProps(this,a);break;case"select":i=O.getHostProps(this,i),a=O.getHostProps(this,a);break;case"textarea":i=A.getHostProps(this,i),a=A.getHostProps(this,a);break;default:"function"!=typeof i.onClick&&"function"==typeof a.onClick&&e.getReactMountReady().enqueue(d,this)}o(this,a);var s=v(this._tag,a);switch(this._updateDOMProperties(i,a,e,s),this._updateDOMChildren(i,a,e,r),this._tag){case"input":I.updateWrapper(this);break;case"textarea":A.updateWrapper(this);break;case"select":e.getReactMountReady().enqueue(h,this)}},_updateDOMProperties:function(e,t,n,r){var o,a,s;for(o in e)if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o)&&null!=e[o])if(o===z){var u=this._previousStyleCopy;for(a in u)u.hasOwnProperty(a)&&(s=s||{},s[a]="");this._previousStyleCopy=null}else q.hasOwnProperty(o)?e[o]&&V(this,o):v(this._tag,e)?X.hasOwnProperty(o)||w.deleteValueForAttribute(W(this),o):(T.properties[o]||T.isCustomAttribute(o))&&w.deleteValueForProperty(W(this),o);for(o in t){var l=t[o],c=o===z?this._previousStyleCopy:null!=e?e[o]:void 0;if(t.hasOwnProperty(o)&&l!==c&&(null!=l||null!=c))if(o===z)if(l?l=this._previousStyleCopy=_({},l):this._previousStyleCopy=null,c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(s=s||{},s[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(s=s||{},s[a]=l[a])}else s=l;else if(q.hasOwnProperty(o))l?i(this,o,l,n):c&&V(this,o);else if(r)X.hasOwnProperty(o)||w.setValueForAttribute(W(this),o,l);else if(T.properties[o]||T.isCustomAttribute(o)){var p=W(this);null!=l?w.setValueForProperty(p,o,l):w.deleteValueForProperty(p,o)}}s&&b.setValueForStyles(W(this),s,this)},_updateDOMChildren:function(e,t,n,r){var o=K[typeof e.children]?e.children:null,i=K[typeof t.children]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,l=null!=i?null:t.children,c=null!=o||null!=a,p=null!=i||null!=s;null!=u&&null==l?this.updateChildren(null,n,r):c&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&this.updateMarkup(""+s):null!=l&&this.updateChildren(l,n,r)},getHostNode:function(){return W(this)},unmountComponent:function(e,t){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var n=this._wrapperState.listeners;if(n)for(var r=0;r<n.length;r++)n[r].remove();break;case"input":case"textarea":j.stopTracking(this);break;case"html":case"head":case"body":y("66",this._tag)}this.unmountChildren(e,t),M.uncacheNode(this),k.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},restoreControlledState:function(){switch(this._tag){case"input":return void I.restoreControlledState(this);case"textarea":return void A.restoreControlledState(this);case"select":return void O.restoreControlledState(this)}},getPublicInstance:function(){return W(this)}},_(g.prototype,g.Mixin,D),t.exports=g},{10:10,11:11,111:111,113:113,116:116,12:12,122:122,13:13,132:132,140:140,144:144,145:145,146:146,16:16,17:17,2:2,24:24,33:33,34:34,40:40,41:41,42:42,46:46,5:5,59:59,62:62,68:68,96:96}],33:[function(e,t,n){"use strict";var r={hasCachedChildNodes:1};t.exports=r},{}],34:[function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(h)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function o(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=o(e);n._hostNode=t,t[v]=n}function a(e){var t=e._hostNode;t&&(delete t[v],e._hostNode=null)}function s(e,t){if(!(e._flags&m.hasCachedChildNodes)){var n=e._renderedChildren,a=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var u=n[s],l=o(u)._domID;if(0!==l){for(;null!==a;a=a.nextSibling)if(r(a,l)){i(u,a);continue e}p("32",l)}}e._flags|=m.hasCachedChildNodes}}function u(e){if(e[v])return e[v];for(var t=[];!e[v];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[v]);e=t.pop())n=r,t.length&&s(r,e);return n}function l(e){var t=u(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode?p("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:p("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var p=e(116),d=e(12),f=e(33),h=(e(140),d.ID_ATTRIBUTE_NAME),m=f,v="__reactInternalInstance$"+Math.random().toString(36).slice(2),g={getClosestInstanceFromNode:u,getInstanceFromNode:l,getNodeFromInstance:c,precacheChildNodes:s,precacheNode:i,uncacheNode:a};t.exports=g},{116:116,12:12,140:140,33:33}],35:[function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var o=(e(122),9);t.exports=r},{122:122}],36:[function(e,t,n){"use strict";var r=e(146),o=e(10),i=e(34),a=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(a.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++;this._domID=a,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var u=n._ownerDocument,l=u.createComment(s);return i.precacheNode(this,l),o(l)}return e.renderToStaticMarkup?"":"<!--"+s+"-->"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),t.exports=a},{10:10,146:146,34:34}],37:[function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};t.exports=r},{}],38:[function(e,t,n){"use strict";var r=e(8),o=e(34),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};t.exports=i},{34:34,8:8}],39:[function(e,t,n){"use strict";function r(){_||(_=!0,f.injection.injectReactEventListener(m),c.injection.injectEventPluginOrder(u),p.injection.injectComponentTree(h),c.injection.injectEventPluginsByName({SimpleEventPlugin:y,EnterLeaveEventPlugin:l,ChangeEventPlugin:s,SelectEventPlugin:g,BeforeInputEventPlugin:i}),a.injection.injectDOMPropertyConfig(o),a.injection.injectDOMPropertyConfig(d),a.injection.injectDOMPropertyConfig(v))}var o=e(1),i=e(3),a=e(12),s=e(7),u=e(9),l=e(15),c=e(16),p=e(18),d=e(21),f=e(24),h=e(34),m=e(53),v=e(74),g=e(75),y=e(76),_=!1;t.exports={inject:r}},{1:1,12:12,15:15,16:16,18:18,21:21,24:24,3:3,34:34,53:53,7:7,74:74,75:75,76:76,9:9}],40:[function(e,t,n){"use strict";function r(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=s.getNodeFromInstance(e),i=r;i.parentNode;)i=i.parentNode;for(var a=i.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),l=0;l<a.length;l++){var c=a[l];if(c!==r&&c.form===r.form){var p=s.getInstanceFromNode(c);p?void 0:o("90"),p._rootNodeID&&u.updateWrapper(p)}}}}var o=e(116),i=e(146),a=e(13),s=(e(30),e(34)),u=(e(140),e(145),{getHostProps:function(e,t){var n=t.value,r=t.checked,o=i({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked});return o},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,listeners:null}},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&a.setValueForProperty(s.getNodeFromInstance(e),"checked",n||!1);var r=s.getNodeFromInstance(e),o=t.value;if(null!=o){var i=""+o;i!==r.value&&(r.value=i)}else null==t.value&&null!=t.defaultValue&&r.defaultValue!==""+t.defaultValue&&(r.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(r.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e);switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)},restoreControlledState:function(e){e._rootNodeID&&u.updateWrapper(e);var t=e._currentElement.props;r(e,t)}});t.exports=u},{116:116,13:13,140:140,145:145,146:146,30:30,34:34}],41:[function(e,t,n){"use strict";function r(e){var t="";return i.Children.forEach(e,function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:u||(u=!0))}),t}var o=e(146),i=e(124),a=e(34),s=e(42),u=(e(145),!1),l={mountWrapper:function(e,t,n){var o=null;if(null!=n){var i=n;"optgroup"===i._tag&&(i=i._hostParent),null!=i&&"select"===i._tag&&(o=s.getSelectValueContext(i))}var a=null;if(null!=o){var u;if(u=null!=t.value?t.value+"":r(t.children),a=!1,Array.isArray(o)){for(var l=0;l<o.length;l++)if(""+o[l]===u){a=!0;break}}else a=""+o===u}e._wrapperState={selected:a}},postMountWrapper:function(e){var t=e._currentElement.props;if(null!=t.value){var n=a.getNodeFromInstance(e);n.setAttribute("value",t.value)}},getHostProps:function(e,t){var n=o({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(n.selected=e._wrapperState.selected);var i=r(t.children);return i&&(n.children=i),n}};t.exports=l},{124:124,145:145,146:146,34:34,42:42}],42:[function(e,t,n){"use strict";function r(e,t,n){var r=i.getNodeFromInstance(e).options;if(t){for(var o={},a=0;a<n.length;a++)o[""+n[a]]=!0;for(var s=0;s<r.length;s++){var u=o.hasOwnProperty(r[s].value);r[s].selected!==u&&(r[s].selected=u)}}else{for(var l=""+n,c=0;c<r.length;c++)if(r[c].value===l)return void(r[c].selected=!0);r.length&&(r[0].selected=!0)}}var o=e(146),i=(e(30),e(34)),a=(e(145),!1),s={getHostProps:function(e,t){return o({},t,{value:void 0})},mountWrapper:function(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,listeners:null,wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||a||(a=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var o=t.value;null!=o?r(e,Boolean(t.multiple),o):n!==Boolean(t.multiple)&&(null!=t.defaultValue?r(e,Boolean(t.multiple),t.defaultValue):r(e,Boolean(t.multiple),t.multiple?[]:""))},restoreControlledState:function(e){if(e._rootNodeID){var t=e._currentElement.props,n=t.value;null!=n&&r(e,Boolean(t.multiple),n)}}};t.exports=s},{145:145,146:146,30:30,34:34}],43:[function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),l=u?0:s.toString().length,c=s.cloneRange();
-c.selectNodeContents(e),c.setEnd(s.startContainer,s.startOffset);var p=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),d=p?0:c.toString().length,f=d+l,h=document.createRange();h.setStart(n,o),h.setEnd(i,a);var m=h.collapsed;return{start:m?f:d,end:m?d:f}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=l(e,o),u=l(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=e(126),l=e(108),c=e(109),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?o:i,setOffsets:p?a:s};t.exports=d},{108:108,109:109,126:126}],44:[function(e,t,n){"use strict";function r(){m||(m=!0,p.injection.injectStackBatchedUpdates(h.batchedUpdates),d.injection.injectGenericComponentClass(a),d.injection.injectTextComponentClass(u),c.injection.injectEmptyComponentFactory(function(e){return new s(e)}),h.injection.injectReconcileTransaction(f),h.injection.injectBatchingStrategy(l),o.injection.injectEnvironment(i))}var o=e(27),i=e(26),a=e(32),s=e(36),u=e(45),l=e(48),c=e(50),p=e(55),d=e(56),f=e(65),h=e(72),m=!1;t.exports={inject:r}},{26:26,27:27,32:32,36:36,45:45,48:48,50:50,55:55,56:56,65:65,72:72}],45:[function(e,t,n){"use strict";var r=e(116),o=e(146),i=e(8),a=e(10),s=e(34),u=e(96),l=(e(140),e(122),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",l=" /react-text ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,p=c.createComment(i),d=c.createComment(l),f=a(c.createDocumentFragment());return a.queueChild(f,a(p)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(d)),s.precacheNode(this,p),this._closingComment=d,f}var h=u(this._stringText);return e.renderToStaticMarkup?h:"<!--"+i+"-->"+h+"<!--"+l+"-->"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=l},{10:10,116:116,122:122,140:140,146:146,34:34,8:8,96:96}],46:[function(e,t,n){"use strict";var r=e(116),o=e(146),i=(e(30),e(34)),a=(e(140),e(145),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?r("91"):void 0;var n=o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue});return n},mountWrapper:function(e,t){var n=t.value,o=n;if(null==n){var i=t.defaultValue,a=t.children;null!=a&&(null!=i?r("92"):void 0,Array.isArray(a)&&(a.length<=1?void 0:r("93"),a=a[0]),i=""+a),null==i&&(i=""),o=i}e._wrapperState={initialValue:""+o,listeners:null}},updateWrapper:function(e){var t=e._currentElement.props,n=i.getNodeFromInstance(e),r=t.value;if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=i.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)},restoreControlledState:function(e){e._rootNodeID&&a.updateWrapper(e)}});t.exports=a},{116:116,140:140,145:145,146:146,30:30,34:34}],47:[function(e,t,n){"use strict";var r=e(146),o=e(31),i=r({__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactInstanceMap:e(58)}},o);t.exports=i},{146:146,31:31,58:58}],48:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=e(146),i=e(72),a=e(90),s=e(132),u={initialize:s,close:function(){d.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];o(r.prototype,a,{getTransactionWrappers:function(){return c}});var p=new r,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?e(t,n,r,o,i):p.perform(e,null,t,n,r,o,i)}};t.exports=d},{132:132,146:146,72:72,90:90}],49:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],50:[function(e,t,n){"use strict";var r,o={injectEmptyComponentFactory:function(e){r=e}},i={create:function(e){return r(e)}};i.injection=o,t.exports=i},{}],51:[function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(e){null===o&&(o=e)}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};t.exports=i},{}],52:[function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=e(16),i={handleTopLevel:function(e,t,n,i){var a=o.extractEvents(e,t,n,i);r(a)}};t.exports=i},{16:16}],53:[function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function o(e,t,n){this.topLevelType=e,this.nativeEvent=t,this.targetInst=n,this.ancestors=[]}function i(e){var t=e.targetInst,n=t;do e.ancestors.push(n),n=n&&r(n);while(n);for(var o=0;o<e.ancestors.length;o++)t=e.ancestors[o],m._handleTopLevel(e.topLevelType,t,e.nativeEvent,f(e.nativeEvent))}function a(e){var t=h(window);e(t)}var s=e(146),u=e(125),l=e(126),c=e(23),p=e(34),d=e(55),f=e(104),h=e(137);s(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.targetInst=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.threeArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:l.canUseDOM?window:null,setHandleTopLevel:function(e){m._handleTopLevel=e},setEnabled:function(e){m._enabled=!!e},isEnabled:function(){return m._enabled},trapBubbledEvent:function(e,t,n){return n?u.listen(n,t,m.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?u.capture(n,t,m.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);u.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(m._enabled){var n=f(t),r=p.getClosestInstanceFromNode(n),a=o.getPooled(e,t,r);try{d.batchedUpdates(i,a)}finally{o.release(a)}}}};t.exports=m},{104:104,125:125,126:126,137:137,146:146,23:23,34:34,55:55}],54:[function(e,t,n){"use strict";var r={logTopLevelRenders:!1};t.exports=r},{}],55:[function(e,t,n){"use strict";function r(e,t){u(e,t)}function o(e,t){s(r,e,t)}function i(e,t){if(l)return void o(e,t);l=!0;try{o(e,t)}finally{l=!1,a.restoreStateIfNeeded()}}var a=e(29),s=function(e,t,n,r,o,i){e(t,n,r,o,i)},u=function(e,t){e(t)},l=!1,c={injectStackBatchedUpdates:function(e){s=e},injectFiberPerformSynchronousWork:function(e){u=e}},p={batchedUpdates:i,injection:c};t.exports=p},{29:29}],56:[function(e,t,n){"use strict";function r(e){return s?void 0:a("111",e.type),new s(e)}function o(e){return new u(e)}function i(e){return e instanceof u}var a=e(116),s=(e(140),null),u=null,l={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){u=e}},c={createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:l};t.exports=c},{116:116,140:140}],57:[function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=e(43),i=e(129),a=e(134),s=e(135),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};t.exports=u},{129:129,134:134,135:135,43:43}],58:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],59:[function(e,t,n){"use strict";var r=null;t.exports={debugTool:r}},{}],60:[function(e,t,n){"use strict";var r=e(93),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};t.exports=a},{93:93}],61:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===A?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(I)||""}function a(e,t,n,r,o){var i;if(b.logTopLevelRenders){var a=e._currentElement.props.child,s=a.type;i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)}var u=T.mountComponent(e,n,null,_(e,t),o,0);i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,j._mountImageIntoNode(u,t,e,r,n)}function s(e,t,n,r){var o=k.ReactReconcileTransaction.getPooled(!n&&C.useCreateElement);o.perform(a,null,e,t,o,n,r),k.ReactReconcileTransaction.release(o)}function u(e,t){for(T.unmountComponent(e,!1,!1),t.nodeType===A&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function l(e){var t=o(e);if(t){var n=y.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function c(e){return!(!e||e.nodeType!==O&&e.nodeType!==A&&e.nodeType!==D)}function p(e){var t=o(e),n=t&&y.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function d(e){var t=p(e);return t?t._hostContainerInfo._topLevelWrapper:null}var f=e(116),h=e(10),m=e(12),v=e(124),g=e(24),y=(e(123),e(34)),_=e(35),C=e(37),b=e(54),E=e(58),x=(e(59),e(60)),T=e(66),w=e(71),k=e(72),S=e(133),P=e(112),N=(e(140),e(118)),M=e(120),I=(e(145),m.ID_ATTRIBUTE_NAME),R=m.ROOT_ATTRIBUTE_NAME,O=1,A=9,D=11,L={},U=1,F=function(){this.rootID=U++};F.prototype.isReactComponent={},F.prototype.render=function(){return this.props.child},F.isReactTopLevelWrapper=!0;var j={TopLevelWrapper:F,_instancesByReactRootID:L,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,o){return j.scrollMonitor(r,function(){w.enqueueElementInternal(e,t,n),o&&w.enqueueCallbackInternal(e,o)}),e},_renderNewRootComponent:function(e,t,n,r,o){c(t)?void 0:f("37"),g.ensureScrollValueMonitoring();var i=P(e,!1);o&&(i._pendingCallbacks=[function(){o.call(i._renderedComponent.getPublicInstance())}]),k.batchedUpdates(s,i,t,n,r);var a=i._instance.rootID;return L[a]=i,i},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&E.has(e)?void 0:f("38"),j._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){w.validateCallback(r,"ReactDOM.render"),v.isValidElement(t)?void 0:f("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=v.createElement(F,{child:t});if(e){var u=E.get(e);a=u._processChildContext(u._context)}else a=S;var c=d(n);if(c){var p=c._currentElement,h=p.props.child;if(M(h,t)){var m=c._renderedComponent.getPublicInstance(),g=r&&function(){r.call(m)};return j._updateRootComponent(c,s,a,n,g),m}j.unmountComponentAtNode(n)}var y=o(n),_=y&&!!i(y),C=l(n),b=_&&!c&&!C,x=j._renderNewRootComponent(s,n,b,a,r)._renderedComponent.getPublicInstance();return x},render:function(e,t,n){return j._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:f("40");var t=d(e);return t?(delete L[t._instance.rootID],k.batchedUpdates(u,t,e),!0):(l(e),1===e.nodeType&&e.hasAttribute(R),!1)},_mountImageIntoNode:function(e,t,n,i,a){if(c(t)?void 0:f("41"),i){var s=o(t);if(x.canReuseMarkup(e,s))return void y.precacheNode(n,s);var u=s.getAttribute(x.CHECKSUM_ATTR_NAME);s.removeAttribute(x.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(x.CHECKSUM_ATTR_NAME,u);var p=e,d=r(p,l),m=" (client) "+p.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);t.nodeType===A?f("42",m):void 0}if(t.nodeType===A?f("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else N(t,e),y.precacheNode(n,t.firstChild)}};t.exports=j},{10:10,112:112,116:116,118:118,12:12,120:120,123:123,124:124,133:133,140:140,145:145,24:24,34:34,35:35,37:37,54:54,58:58,59:59,60:60,66:66,71:71,72:72}],62:[function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:d.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function l(e,t){p.processChildrenUpdates(e,t)}var c=e(116),p=e(27),d=(e(58),e(59),e(123),e(66)),f=e(25),h=(e(132),e(98)),m=(e(140),{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,s=0;return a=h(t,s),f.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=0,l=d.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=i++,o.push(l)}return o},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var r=[s(e)];l(this,r)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var r=[a(e)];l(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var s,c=null,p=0,f=0,h=0,m=null;for(s in a)if(a.hasOwnProperty(s)){var v=r&&r[s],g=a[s];v===g?(c=u(c,this.moveChild(v,m,p,f)),f=Math.max(v._mountIndex,f),v._mountIndex=p):(v&&(f=Math.max(v._mountIndex,f)),c=u(c,this._mountChildAtIndex(g,i[h],m,p,t,n)),h++),p++,m=d.getHostNode(g)}for(s in o)o.hasOwnProperty(s)&&(c=u(c,this._unmountChild(r[s],o[s])));c&&l(this,c),this._renderedChildren=a}},unmountChildren:function(e,t){var n=this._renderedChildren;f.unmountChildren(n,e,t),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex<r)return o(e,t,n)},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return i(e,t)},_mountChildAtIndex:function(e,t,n,r,o,i){return e._mountIndex=r,this.createChild(e,n,t)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}});t.exports=m},{116:116,123:123,132:132,140:140,25:25,27:27,58:58,59:59,66:66,98:98}],63:[function(e,t,n){"use strict";var r=e(116),o=e(124),i=(e(140),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:o.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});t.exports=i},{116:116,124:124,140:140}],64:[function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=e(116),i=(e(140),{addComponentAsRefTo:function(e,t,n){r(n)?void 0:o("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)?void 0:o("120");var i=n.getPublicInstance();i&&i.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});t.exports=i},{116:116,140:140}],65:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=e}var o=e(146),i=e(6),a=e(23),s=e(24),u=e(57),l=(e(59),e(90)),c=e(71),p={initialize:u.getSelectionInformation,close:u.restoreSelection},d={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[p,d,f],m={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return c},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};o(r.prototype,l,m),a.addPoolingTo(r),t.exports=r},{146:146,23:23,24:24,57:57,59:59,6:6,71:71,90:90}],66:[function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=e(67),i=(e(59),e(145),{mountComponent:function(e,t,n,o,i,a){var s=e.mountComponent(t,n,o,i,a);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t,n){o.detachRefs(e,e._currentElement),e.unmountComponent(t,n)},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||i!==e._context){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});t.exports=i},{145:145,59:59,67:67}],67:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=e(64),a={};a.attachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&r(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n=null,r=null;null!==e&&"object"==typeof e&&(n=e.ref,r=e._owner);var o=null,i=null;return null!==t&&"object"==typeof t&&(o=t.ref,i=t._owner),n!==o||"string"==typeof o&&i!==r},a.detachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&o(n,e,t._owner)}},t.exports=a},{64:64}],68:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new s(this)}var o=e(146),i=e(23),a=e(90),s=(e(59),e(69)),u=[],l={enqueue:function(){}},c={getTransactionWrappers:function(){return u},getReactMountReady:function(){return l},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};o(r.prototype,a,c),i.addPoolingTo(r),t.exports=r},{146:146,23:23,59:59,69:69,90:90}],69:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){}var i=e(71),a=(e(145),function(){function e(t){r(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&i.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?i.enqueueForceUpdate(e):o(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?i.enqueueReplaceState(e,t):o(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?i.enqueueSetState(e,t):o(e,"setState")},e}());t.exports=a},{145:145,71:71}],70:[function(e,t,n){"use strict";function r(e,t){for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o<r.length;o++)t(r[o],"bubbled",n)}function s(e,t,n,o,i){for(var a=e&&t?r(e,t):null,s=[];e&&e!==a;)s.push(e),e=e._hostParent;for(var u=[];t&&t!==a;)u.push(t),t=t._hostParent;var l;for(l=0;l<s.length;l++)n(s[l],"bubbled",o);for(l=u.length;l-- >0;)n(u[l],"captured",i)}t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},{}],71:[function(e,t,n){"use strict";function r(e){u.enqueueUpdate(e)}function o(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);return n?n:null}var a=e(116),s=(e(123),e(58)),u=(e(59),e(72)),l=(e(140),e(145),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var o=i(e);return o?(o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],void r(o)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,o(e)):void 0}});t.exports=l},{116:116,123:123,140:140,145:145,58:58,59:59,72:72}],72:[function(e,t,n){"use strict";function r(){E.ReactReconcileTransaction&&g?void 0:l("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.reconcileTransaction=E.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){return r(),g.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==m.length?l("124",t,m.length):void 0,m.sort(a),v++;for(var n=0;n<t;n++){var r=m[n],o=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(d.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(f.performUpdateIfNecessary(r,e.reconcileTransaction,v),i&&console.timeEnd(i),o)for(var u=0;u<o.length;u++)e.reconcileTransaction.getReactMountReady().enqueue(o[u],r.getPublicInstance())}}function u(e){return r(),g.isBatchingUpdates?(m.push(e),void(null==e._updateBatchNumber&&(e._updateBatchNumber=v+1))):void g.batchedUpdates(u,e)}var l=e(116),c=e(146),p=e(23),d=e(54),f=e(66),h=e(90),m=(e(140),[]),v=0,g=null,y={initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),C()):m.length=0}},_=[y];c(o.prototype,h,{getTransactionWrappers:function(){return _},destructor:function(){this.dirtyComponentsLength=null,E.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return h.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var C=function(){for(;m.length;)if(m.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}},b={injectReconcileTransaction:function(e){e?void 0:l("126"),E.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:l("127"),"function"!=typeof e.batchedUpdates?l("128"):void 0,"boolean"!=typeof e.isBatchingUpdates?l("129"):void 0,g=e},getBatchingStrategy:function(){return g}},E={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:C,injection:b};t.exports=E},{116:116,140:140,146:146,23:23,54:54,66:66,90:90}],73:[function(e,t,n){"use strict";t.exports="16.0.0-alpha"},{}],74:[function(e,t,n){"use strict";var r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},i={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){i.Properties[e]=0,o[e]&&(i.DOMAttributeNames[e]=o[e])}),t.exports=i},{}],75:[function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&l.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(C||null==g||g!==p())return null;var n=r(g);if(!_||!f(_,n)){_=n;var o=c.getPooled(v.select,y,e,t);return o.type="select",o.target=g,i.accumulateTwoPhaseDispatches(o),o}return null}var i=e(19),a=e(126),s=e(24),u=e(34),l=e(57),c=e(81),p=e(135),d=e(114),f=e(144),h=11,m=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,v={select:{phasedRegistrationNames:{bubbled:"onSelect",
-captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},g=null,y=null,_=null,C=!1,b=s.isListeningToAllDependencies,E={eventTypes:v,extractEvents:function(e,t,n,r){if(t){var i=t._hostContainerInfo,a=i._node&&i._node.nodeType===h,s=a?i._node:i._ownerDocument;if(!b("onSelect",s))return null}var l=t?u.getNodeFromInstance(t):window;switch(e){case"topFocus":(d(l)||"true"===l.contentEditable)&&(g=l,y=t,_=null);break;case"topBlur":g=null,y=null,_=null;break;case"topMouseDown":C=!0;break;case"topContextMenu":case"topMouseUp":return C=!1,o(n,r);case"topSelectionChange":if(m)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null}};t.exports=E},{114:114,126:126,135:135,144:144,19:19,24:24,34:34,57:57,81:81}],76:[function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function o(e){if(e){var t=e._currentElement&&e._currentElement.props.disabled;if(t)return r(e._tag)}return!1}var i=e(116),a=e(19),s=e(77),u=e(78),l=e(81),c=e(82),p=e(84),d=e(85),f=e(80),h=e(86),m=e(87),v=e(88),g=e(89),y=e(101),_=(e(140),{}),C={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};_[e]=o,C[r]=o});var b={eventTypes:_,extractEvents:function(e,t,n,r){var _=C[e];if(!_)return null;var b;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":b=l;break;case"topKeyPress":if(0===y(n))return null;case"topKeyDown":case"topKeyUp":b=p;break;case"topBlur":case"topFocus":b=c;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":if(o(t))return null;case"topMouseOut":case"topMouseOver":case"topContextMenu":b=d;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":b=f;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":b=h;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":b=s;break;case"topTransitionEnd":b=m;break;case"topScroll":b=v;break;case"topWheel":b=g;break;case"topCopy":case"topCut":case"topPaste":b=u}b?void 0:i("86",e);var E=b.getPooled(_,t,n,r);return a.accumulateTwoPhaseDispatches(E),E}};t.exports=b},{101:101,116:116,140:140,19:19,77:77,78:78,80:80,81:81,82:82,84:84,85:85,86:86,87:87,88:88,89:89}],77:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(81),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},{81:81}],78:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(81),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},{81:81}],79:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(81),i={data:null};o.augmentClass(r,i),t.exports=r},{81:81}],80:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(85),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},{85:85}],81:[function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}var o=e(146),i=e(23),a=e(132),s=(e(145),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var a=new r;o(a,e.prototype),e.prototype=a,e.prototype.constructor=e,e.Interface=o({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),t.exports=r},{132:132,145:145,146:146,23:23}],82:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(88),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},{88:88}],83:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(81),i={data:null};o.augmentClass(r,i),t.exports=r},{81:81}],84:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(88),i=e(101),a=e(102),s=e(103),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),t.exports=r},{101:101,102:102,103:103,88:88}],85:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(88),i=e(91),a=e(103),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,s),t.exports=r},{103:103,88:88,91:91}],86:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(88),i=e(103),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},{103:103,88:88}],87:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(81),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},{81:81}],88:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(81),i=e(104),a={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),t.exports=r},{104:104,81:81}],89:[function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=e(85),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},{85:85}],90:[function(e,t,n){"use strict";var r=e(116),o=(e(140),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,s,u){this.isInTransaction()?r("27"):void 0;var l,c;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,o,i,a,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=o,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()?void 0:r("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,a=t[n],s=this.wrapperInitData[n];try{i=!0,s!==o&&a.close&&a.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};t.exports=i},{116:116,140:140}],91:[function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{}],92:[function(e,t,n){"use strict";function r(e,t){return null==t?o("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=e(116);e(140);t.exports=r},{116:116,140:140}],93:[function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,i=e.length,a=i&-4;r<a;){for(var s=Math.min(r+4096,a);r<s;r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=o,n%=o}for(;r<i;r++)n+=t+=e.charCodeAt(r);return t%=o,n%=o,t|n<<16}var o=65521;t.exports=r},{}],94:[function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};t.exports=r},{}],95:[function(e,t,n){"use strict";function r(e,t,n){var r=null==t||"boolean"==typeof t||""===t;return r?"":"number"!=typeof t||0===t||i.hasOwnProperty(e)&&i[e]?(""+t).trim():t+"px"}var o=e(4),i=o.isUnitlessNumber;t.exports=r},{4:4}],96:[function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,o="",a=0,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#x27;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}s!==a&&(o+=t.substring(s,a)),s=a+1,o+=r}return s!==a?o+t.substring(s,a):o}function o(e){return"boolean"==typeof e||"number"==typeof e?""+e:r(e)}var i=/["'&<>]/;t.exports=o},{}],97:[function(e,t,n){"use strict";function r(e){if(null==e)return null;if(1===e.nodeType)return e;var t=a.get(e);return t?(t=s(t),t?i.getNodeFromInstance(t):null):void("function"==typeof e.render?o("44"):o("45",Object.keys(e)))}var o=e(116),i=(e(123),e(34)),a=e(58),s=e(105);e(140),e(145);t.exports=r},{105:105,116:116,123:123,140:140,145:145,34:34,58:58}],98:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e,i=void 0===o[n];i&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(e(22),e(121));e(145);"undefined"!=typeof n&&n.env,t.exports=o}).call(this,void 0)},{121:121,145:145,22:22}],99:[function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}t.exports=r},{}],100:[function(e,t,n){"use strict";function r(e){return null}t.exports=r},{}],101:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],102:[function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=e(101),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{101:101}],103:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],104:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}t.exports=r},{}],105:[function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=e(63);t.exports=r},{63:63}],106:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],107:[function(e,t,n){"use strict";function r(){return o++}var o=1;t.exports=r},{}],108:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}t.exports=i},{}],109:[function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=e(126),i=null;t.exports=r},{126:126}],110:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=e(126),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},{126:126}],111:[function(e,t,n){"use strict";function r(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function o(e){return e._wrapperState.valueTracker}function i(e,t){e._wrapperState.valueTracker=t}function a(e){delete e._wrapperState.valueTracker}function s(e){var t;return e&&(t=r(e)?""+e.checked:e.value),t}var u=e(34),l={_getTrackerFromNode:function(e){return o(u.getInstanceFromNode(e))},track:function(e){if(!o(e)){var t=u.getNodeFromInstance(e),n=r(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),l=""+t[n];t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){l=""+e,s.set.call(this,e)}}),i(e,{getValue:function(){return l},setValue:function(e){l=""+e},stopTracking:function(){a(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=o(e);if(!t)return l.track(e),!0;var n=t.getValue(),r=s(u.getNodeFromInstance(e));return r!==n&&(t.setValue(r),!0)},stopTracking:function(e){var t=o(e);t&&t.stopTracking()}};t.exports=l},{34:34}],112:[function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||e===!1)n=l.create(i);else if("object"==typeof e){var s=e;!s||"function"!=typeof s.type&&"string"!=typeof s.type?a("130",null==s.type?s.type:typeof s.type,r(s._owner)):void 0,"string"==typeof s.type?n=c.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=e(116),s=e(146),u=e(28),l=e(50),c=e(56),p=(e(107),e(140),e(145),function(e){this.construct(e)});s(p.prototype,u,{_instantiateReactComponent:i}),t.exports=i},{107:107,116:116,140:140,145:145,146:146,28:28,50:50,56:56}],113:[function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=e(126);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{126:126}],114:[function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],115:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e(96);t.exports=r},{96:96}],116:[function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=r},{}],117:[function(e,t,n){"use strict";var r=e(61);t.exports=r.renderSubtreeIntoContainer},{61:61}],118:[function(e,t,n){"use strict";var r,o=e(126),i=e(11),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=e(94),l=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}t.exports=l},{11:11,126:126,94:94}],119:[function(e,t,n){"use strict";var r=e(126),o=e(96),i=e(118),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void i(e,o(t))})),t.exports=a},{118:118,126:126,96:96}],120:[function(e,t,n){"use strict";function r(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}t.exports=r},{}],121:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,i){var d=typeof e;if("undefined"!==d&&"boolean"!==d||(e=null),null===e||"string"===d||"number"===d||"object"===d&&e.$$typeof===s)return n(i,e,""===t?c+r(e,0):t),1;var f,h,m=0,v=""===t?c:t+p;if(Array.isArray(e))for(var g=0;g<e.length;g++)f=e[g],h=v+r(f,g),m+=o(f,h,n,i);else{var y=u(e);if(y){var _,C=y.call(e);if(y!==e.entries)for(var b=0;!(_=C.next()).done;)f=_.value,h=v+r(f,b++),m+=o(f,h,n,i);else for(;!(_=C.next()).done;){var E=_.value;E&&(f=E[1],h=v+l.escape(E[0])+p+r(f,0),m+=o(f,h,n,i))}}else if("object"===d){var x="",T=String(e);a("31","[object Object]"===T?"object with keys {"+Object.keys(e).join(", ")+"}":T,x)}}return m}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(116),s=(e(123),e(49)),u=e(106),l=(e(140),e(22)),c=(e(145),"."),p=":";t.exports=i},{106:106,116:116,123:123,140:140,145:145,22:22,49:49}],122:[function(e,t,n){"use strict";var r=(e(146),e(132)),o=(e(100),e(145),r);t.exports=o},{100:100,132:132,145:145,146:146}],123:[function(t,n,r){"use strict";var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;n.exports=o.ReactCurrentOwner},{}],124:[function(t,n,r){"use strict";n.exports=e},{}],125:[function(e,t,n){"use strict";var r=e(132),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},{132:132}],126:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],127:[function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;t.exports=r},{}],128:[function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=e(127),i=/^-ms-/;t.exports=r},{127:127}],129:[function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=e(142);t.exports=r},{142:142}],130:[function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?a(!1):void 0,"number"!=typeof t?a(!1):void 0,0===t||t-1 in e?void 0:a(!1),"function"==typeof e.callee?a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return o(e)?Array.isArray(e)?e.slice():r(e):[e]}var a=e(140);t.exports=i},{140:140}],131:[function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=l;l?void 0:u(!1);var o=r(e),i=o&&s(o);if(i){n.innerHTML=i[1]+e+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t?void 0:u(!1),a(p).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=e(126),a=e(130),s=e(136),u=e(140),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=o},{126:126,130:130,136:136,140:140}],132:[function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],133:[function(e,t,n){"use strict";var r={};t.exports=r},{}],134:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}t.exports=r},{}],135:[function(e,t,n){"use strict";function r(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],136:[function(e,t,n){"use strict";function r(e){return a?void 0:i(!1),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="<link />":a.innerHTML="<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?d[e]:null}var o=e(126),i=e(140),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=p,s[e]=!0}),t.exports=r},{126:126,140:140}],137:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],138:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],139:[function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=e(138),i=/^ms-/;t.exports=r},{138:138}],140:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}t.exports=r},{}],141:[function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],142:[function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=e(141);t.exports=r},{141:141}],143:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],144:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=o},{}],145:[function(e,t,n){"use strict";var r=e(132),o=r;t.exports=o},{132:132}],146:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var l in n)i.call(n,l)&&(s[l]=n[l]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var c=0;c<o.length;c++)a.call(n,o[c])&&(s[o[c]]=n[o[c]])}}return s}},{}]},{},[47])(47)})}); \ No newline at end of file
diff --git a/lib/vendor/react.dev.js b/lib/vendor/react.dev.js
deleted file mode 100644
index 55264d350..000000000
--- a/lib/vendor/react.dev.js
+++ /dev/null
@@ -1,3783 +0,0 @@
- /**
- * React v16.0.0-alpha
- */
-(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-/**
- * Escape and wrap key so it is safe to use as a reactid
- *
- * @param {string} key to be escaped.
- * @return {string} the escaped key.
- */
-
-function escape(key) {
- var escapeRegex = /[=:]/g;
- var escaperLookup = {
- '=': '=0',
- ':': '=2'
- };
- var escapedString = ('' + key).replace(escapeRegex, function (match) {
- return escaperLookup[match];
- });
-
- return '$' + escapedString;
-}
-
-/**
- * Unescape and unwrap key for human-readable display
- *
- * @param {string} key to unescape.
- * @return {string} the unescaped key.
- */
-function unescape(key) {
- var unescapeRegex = /(=0|=2)/g;
- var unescaperLookup = {
- '=0': '=',
- '=2': ':'
- };
- var keySubstring = key[0] === '.' && key[1] === '$' ? key.substring(2) : key.substring(1);
-
- return ('' + keySubstring).replace(unescapeRegex, function (match) {
- return unescaperLookup[match];
- });
-}
-
-var KeyEscapeUtils = {
- escape: escape,
- unescape: unescape
-};
-
-module.exports = KeyEscapeUtils;
-},{}],2:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(24);
-
-var invariant = _dereq_(28);
-
-/**
- * Static poolers. Several custom versions for each potential number of
- * arguments. A completely generic pooler is easy to implement, but would
- * require accessing the `arguments` object. In each of these, `this` refers to
- * the Class itself, not an instance. If any others are needed, simply add them
- * here, or in their own files.
- */
-var oneArgumentPooler = function (copyFieldsFrom) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, copyFieldsFrom);
- return instance;
- } else {
- return new Klass(copyFieldsFrom);
- }
-};
-
-var twoArgumentPooler = function (a1, a2) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2);
- return instance;
- } else {
- return new Klass(a1, a2);
- }
-};
-
-var threeArgumentPooler = function (a1, a2, a3) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2, a3);
- return instance;
- } else {
- return new Klass(a1, a2, a3);
- }
-};
-
-var fourArgumentPooler = function (a1, a2, a3, a4) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2, a3, a4);
- return instance;
- } else {
- return new Klass(a1, a2, a3, a4);
- }
-};
-
-var fiveArgumentPooler = function (a1, a2, a3, a4, a5) {
- var Klass = this;
- if (Klass.instancePool.length) {
- var instance = Klass.instancePool.pop();
- Klass.call(instance, a1, a2, a3, a4, a5);
- return instance;
- } else {
- return new Klass(a1, a2, a3, a4, a5);
- }
-};
-
-var standardReleaser = function (instance) {
- var Klass = this;
- !(instance instanceof Klass) ? "development" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
- instance.destructor();
- if (Klass.instancePool.length < Klass.poolSize) {
- Klass.instancePool.push(instance);
- }
-};
-
-var DEFAULT_POOL_SIZE = 10;
-var DEFAULT_POOLER = oneArgumentPooler;
-
-/**
- * Augments `CopyConstructor` to be a poolable class, augmenting only the class
- * itself (statically) not adding any prototypical fields. Any CopyConstructor
- * you give this may have a `poolSize` property, and will look for a
- * prototypical `destructor` on instances.
- *
- * @param {Function} CopyConstructor Constructor that can be used to reset.
- * @param {Function} pooler Customizable pooler.
- */
-var addPoolingTo = function (CopyConstructor, pooler) {
- // Casting as any so that flow ignores the actual implementation and trusts
- // it to match the type we declared
- var NewKlass = CopyConstructor;
- NewKlass.instancePool = [];
- NewKlass.getPooled = pooler || DEFAULT_POOLER;
- if (!NewKlass.poolSize) {
- NewKlass.poolSize = DEFAULT_POOL_SIZE;
- }
- NewKlass.release = standardReleaser;
- return NewKlass;
-};
-
-var PooledClass = {
- addPoolingTo: addPoolingTo,
- oneArgumentPooler: oneArgumentPooler,
- twoArgumentPooler: twoArgumentPooler,
- threeArgumentPooler: threeArgumentPooler,
- fourArgumentPooler: fourArgumentPooler,
- fiveArgumentPooler: fiveArgumentPooler
-};
-
-module.exports = PooledClass;
-},{"24":24,"28":28}],3:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(30);
-
-var ReactChildren = _dereq_(4);
-var ReactComponent = _dereq_(6);
-var ReactPureComponent = _dereq_(16);
-var ReactClass = _dereq_(5);
-var ReactDOMFactories = _dereq_(9);
-var ReactElement = _dereq_(10);
-var ReactPropTypes = _dereq_(15);
-var ReactVersion = _dereq_(18);
-
-var onlyChild = _dereq_(23);
-var warning = _dereq_(29);
-
-var createElement = ReactElement.createElement;
-var createFactory = ReactElement.createFactory;
-var cloneElement = ReactElement.cloneElement;
-
-if ("development" !== 'production') {
- var ReactElementValidator = _dereq_(12);
- createElement = ReactElementValidator.createElement;
- createFactory = ReactElementValidator.createFactory;
- cloneElement = ReactElementValidator.cloneElement;
-}
-
-var __spread = _assign;
-
-if ("development" !== 'production') {
- var warned = false;
- __spread = function () {
- "development" !== 'production' ? warning(warned, 'React.__spread is deprecated and should not be used. Use ' + 'Object.assign directly or another helper function with similar ' + 'semantics. You may be seeing this warning due to your compiler. ' + 'See https://fb.me/react-spread-deprecation for more details.') : void 0;
- warned = true;
- return _assign.apply(null, arguments);
- };
-}
-
-var React = {
-
- // Modern
-
- Children: {
- map: ReactChildren.map,
- forEach: ReactChildren.forEach,
- count: ReactChildren.count,
- toArray: ReactChildren.toArray,
- only: onlyChild
- },
-
- Component: ReactComponent,
- PureComponent: ReactPureComponent,
-
- createElement: createElement,
- cloneElement: cloneElement,
- isValidElement: ReactElement.isValidElement,
-
- // Classic
-
- PropTypes: ReactPropTypes,
- createClass: ReactClass.createClass,
- createFactory: createFactory,
- createMixin: function (mixin) {
- // Currently a noop. Will be used to validate and trace mixins.
- return mixin;
- },
-
- // This looks DOM specific but these are actually isomorphic helpers
- // since they are just generating DOM strings.
- DOM: ReactDOMFactories,
-
- version: ReactVersion,
-
- // Deprecated hook for JSX spread, don't use this for anything.
- __spread: __spread
-};
-
-module.exports = React;
-},{"10":10,"12":12,"15":15,"16":16,"18":18,"23":23,"29":29,"30":30,"4":4,"5":5,"6":6,"9":9}],4:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var PooledClass = _dereq_(2);
-var ReactElement = _dereq_(10);
-
-var emptyFunction = _dereq_(26);
-var traverseAllChildren = _dereq_(25);
-
-var twoArgumentPooler = PooledClass.twoArgumentPooler;
-var fourArgumentPooler = PooledClass.fourArgumentPooler;
-
-var userProvidedKeyEscapeRegex = /\/+/g;
-function escapeUserProvidedKey(text) {
- return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
-}
-
-/**
- * PooledClass representing the bookkeeping associated with performing a child
- * traversal. Allows avoiding binding callbacks.
- *
- * @constructor ForEachBookKeeping
- * @param {!function} forEachFunction Function to perform traversal with.
- * @param {?*} forEachContext Context to perform context with.
- */
-function ForEachBookKeeping(forEachFunction, forEachContext) {
- this.func = forEachFunction;
- this.context = forEachContext;
- this.count = 0;
-}
-ForEachBookKeeping.prototype.destructor = function () {
- this.func = null;
- this.context = null;
- this.count = 0;
-};
-PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler);
-
-function forEachSingleChild(bookKeeping, child, name) {
- var func = bookKeeping.func;
- var context = bookKeeping.context;
-
- func.call(context, child, bookKeeping.count++);
-}
-
-/**
- * Iterates through children that are typically specified as `props.children`.
- *
- * See https://facebook.github.io/react/docs/react-api.html#react.children.foreach
- *
- * The provided forEachFunc(child, index) will be called for each
- * leaf child.
- *
- * @param {?*} children Children tree container.
- * @param {function(*, int)} forEachFunc
- * @param {*} forEachContext Context for forEachContext.
- */
-function forEachChildren(children, forEachFunc, forEachContext) {
- if (children == null) {
- return children;
- }
- var traverseContext = ForEachBookKeeping.getPooled(forEachFunc, forEachContext);
- traverseAllChildren(children, forEachSingleChild, traverseContext);
- ForEachBookKeeping.release(traverseContext);
-}
-
-/**
- * PooledClass representing the bookkeeping associated with performing a child
- * mapping. Allows avoiding binding callbacks.
- *
- * @constructor MapBookKeeping
- * @param {!*} mapResult Object containing the ordered map of results.
- * @param {!function} mapFunction Function to perform mapping with.
- * @param {?*} mapContext Context to perform mapping with.
- */
-function MapBookKeeping(mapResult, keyPrefix, mapFunction, mapContext) {
- this.result = mapResult;
- this.keyPrefix = keyPrefix;
- this.func = mapFunction;
- this.context = mapContext;
- this.count = 0;
-}
-MapBookKeeping.prototype.destructor = function () {
- this.result = null;
- this.keyPrefix = null;
- this.func = null;
- this.context = null;
- this.count = 0;
-};
-PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler);
-
-function mapSingleChildIntoContext(bookKeeping, child, childKey) {
- var result = bookKeeping.result;
- var keyPrefix = bookKeeping.keyPrefix;
- var func = bookKeeping.func;
- var context = bookKeeping.context;
-
-
- var mappedChild = func.call(context, child, bookKeeping.count++);
- if (Array.isArray(mappedChild)) {
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument);
- } else if (mappedChild != null) {
- if (ReactElement.isValidElement(mappedChild)) {
- mappedChild = ReactElement.cloneAndReplaceKey(mappedChild,
- // Keep both the (mapped) and old keys if they differ, just as
- // traverseAllChildren used to do for objects as children
- keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
- }
- result.push(mappedChild);
- }
-}
-
-function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
- var escapedPrefix = '';
- if (prefix != null) {
- escapedPrefix = escapeUserProvidedKey(prefix) + '/';
- }
- var traverseContext = MapBookKeeping.getPooled(array, escapedPrefix, func, context);
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
- MapBookKeeping.release(traverseContext);
-}
-
-/**
- * Maps children that are typically specified as `props.children`.
- *
- * See https://facebook.github.io/react/docs/react-api.html#react.children.map
- *
- * The provided mapFunction(child, key, index) will be called for each
- * leaf child.
- *
- * @param {?*} children Children tree container.
- * @param {function(*, int)} func The map function.
- * @param {*} context Context for mapFunction.
- * @return {object} Object containing the ordered map of results.
- */
-function mapChildren(children, func, context) {
- if (children == null) {
- return children;
- }
- var result = [];
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
- return result;
-}
-
-function forEachSingleChildDummy(traverseContext, child, name) {
- return null;
-}
-
-/**
- * Count the number of children that are typically specified as
- * `props.children`.
- *
- * See https://facebook.github.io/react/docs/react-api.html#react.children.count
- *
- * @param {?*} children Children tree container.
- * @return {number} The number of children.
- */
-function countChildren(children, context) {
- return traverseAllChildren(children, forEachSingleChildDummy, null);
-}
-
-/**
- * Flatten a children object (typically specified as `props.children`) and
- * return an array with appropriately re-keyed children.
- *
- * See https://facebook.github.io/react/docs/react-api.html#react.children.toarray
- */
-function toArray(children) {
- var result = [];
- mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
- return result;
-}
-
-var ReactChildren = {
- forEach: forEachChildren,
- map: mapChildren,
- mapIntoWithKeyPrefixInternal: mapIntoWithKeyPrefixInternal,
- count: countChildren,
- toArray: toArray
-};
-
-module.exports = ReactChildren;
-},{"10":10,"2":2,"25":25,"26":26}],5:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(24),
- _assign = _dereq_(30);
-
-var ReactComponent = _dereq_(6);
-var ReactElement = _dereq_(10);
-var ReactPropTypeLocationNames = _dereq_(14);
-var ReactNoopUpdateQueue = _dereq_(13);
-
-var emptyObject = _dereq_(27);
-var invariant = _dereq_(28);
-var warning = _dereq_(29);
-
-var MIXINS_KEY = 'mixins';
-
-// Helper function to allow the creation of anonymous functions which do not
-// have .name set to the name of the variable being assigned to.
-function identity(fn) {
- return fn;
-}
-
-/**
- * Policies that describe methods in `ReactClassInterface`.
- */
-
-
-/**
- * Composite components are higher-level components that compose other composite
- * or host components.
- *
- * To create a new type of `ReactClass`, pass a specification of
- * your new class to `React.createClass`. The only requirement of your class
- * specification is that you implement a `render` method.
- *
- * var MyComponent = React.createClass({
- * render: function() {
- * return <div>Hello World</div>;
- * }
- * });
- *
- * The class specification supports a specific protocol of methods that have
- * special meaning (e.g. `render`). See `ReactClassInterface` for
- * more the comprehensive protocol. Any other properties and methods in the
- * class specification will be available on the prototype.
- *
- * @interface ReactClassInterface
- * @internal
- */
-var ReactClassInterface = {
-
- /**
- * An array of Mixin objects to include when defining your component.
- *
- * @type {array}
- * @optional
- */
- mixins: 'DEFINE_MANY',
-
- /**
- * An object containing properties and methods that should be defined on
- * the component's constructor instead of its prototype (static methods).
- *
- * @type {object}
- * @optional
- */
- statics: 'DEFINE_MANY',
-
- /**
- * Definition of prop types for this component.
- *
- * @type {object}
- * @optional
- */
- propTypes: 'DEFINE_MANY',
-
- /**
- * Definition of context types for this component.
- *
- * @type {object}
- * @optional
- */
- contextTypes: 'DEFINE_MANY',
-
- /**
- * Definition of context types this component sets for its children.
- *
- * @type {object}
- * @optional
- */
- childContextTypes: 'DEFINE_MANY',
-
- // ==== Definition methods ====
-
- /**
- * Invoked when the component is mounted. Values in the mapping will be set on
- * `this.props` if that prop is not specified (i.e. using an `in` check).
- *
- * This method is invoked before `getInitialState` and therefore cannot rely
- * on `this.state` or use `this.setState`.
- *
- * @return {object}
- * @optional
- */
- getDefaultProps: 'DEFINE_MANY_MERGED',
-
- /**
- * Invoked once before the component is mounted. The return value will be used
- * as the initial value of `this.state`.
- *
- * getInitialState: function() {
- * return {
- * isOn: false,
- * fooBaz: new BazFoo()
- * }
- * }
- *
- * @return {object}
- * @optional
- */
- getInitialState: 'DEFINE_MANY_MERGED',
-
- /**
- * @return {object}
- * @optional
- */
- getChildContext: 'DEFINE_MANY_MERGED',
-
- /**
- * Uses props from `this.props` and state from `this.state` to render the
- * structure of the component.
- *
- * No guarantees are made about when or how often this method is invoked, so
- * it must not have side effects.
- *
- * render: function() {
- * var name = this.props.name;
- * return <div>Hello, {name}!</div>;
- * }
- *
- * @return {ReactComponent}
- * @nosideeffects
- * @required
- */
- render: 'DEFINE_ONCE',
-
- // ==== Delegate methods ====
-
- /**
- * Invoked when the component is initially created and about to be mounted.
- * This may have side effects, but any external subscriptions or data created
- * by this method must be cleaned up in `componentWillUnmount`.
- *
- * @optional
- */
- componentWillMount: 'DEFINE_MANY',
-
- /**
- * Invoked when the component has been mounted and has a DOM representation.
- * However, there is no guarantee that the DOM node is in the document.
- *
- * Use this as an opportunity to operate on the DOM when the component has
- * been mounted (initialized and rendered) for the first time.
- *
- * @param {DOMElement} rootNode DOM element representing the component.
- * @optional
- */
- componentDidMount: 'DEFINE_MANY',
-
- /**
- * Invoked before the component receives new props.
- *
- * Use this as an opportunity to react to a prop transition by updating the
- * state using `this.setState`. Current props are accessed via `this.props`.
- *
- * componentWillReceiveProps: function(nextProps, nextContext) {
- * this.setState({
- * likesIncreasing: nextProps.likeCount > this.props.likeCount
- * });
- * }
- *
- * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop
- * transition may cause a state change, but the opposite is not true. If you
- * need it, you are probably looking for `componentWillUpdate`.
- *
- * @param {object} nextProps
- * @optional
- */
- componentWillReceiveProps: 'DEFINE_MANY',
-
- /**
- * Invoked while deciding if the component should be updated as a result of
- * receiving new props, state and/or context.
- *
- * Use this as an opportunity to `return false` when you're certain that the
- * transition to the new props/state/context will not require a component
- * update.
- *
- * shouldComponentUpdate: function(nextProps, nextState, nextContext) {
- * return !equal(nextProps, this.props) ||
- * !equal(nextState, this.state) ||
- * !equal(nextContext, this.context);
- * }
- *
- * @param {object} nextProps
- * @param {?object} nextState
- * @param {?object} nextContext
- * @return {boolean} True if the component should update.
- * @optional
- */
- shouldComponentUpdate: 'DEFINE_ONCE',
-
- /**
- * Invoked when the component is about to update due to a transition from
- * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`
- * and `nextContext`.
- *
- * Use this as an opportunity to perform preparation before an update occurs.
- *
- * NOTE: You **cannot** use `this.setState()` in this method.
- *
- * @param {object} nextProps
- * @param {?object} nextState
- * @param {?object} nextContext
- * @param {ReactReconcileTransaction} transaction
- * @optional
- */
- componentWillUpdate: 'DEFINE_MANY',
-
- /**
- * Invoked when the component's DOM representation has been updated.
- *
- * Use this as an opportunity to operate on the DOM when the component has
- * been updated.
- *
- * @param {object} prevProps
- * @param {?object} prevState
- * @param {?object} prevContext
- * @param {DOMElement} rootNode DOM element representing the component.
- * @optional
- */
- componentDidUpdate: 'DEFINE_MANY',
-
- /**
- * Invoked when the component is about to be removed from its parent and have
- * its DOM representation destroyed.
- *
- * Use this as an opportunity to deallocate any external resources.
- *
- * NOTE: There is no `componentDidUnmount` since your component will have been
- * destroyed by that point.
- *
- * @optional
- */
- componentWillUnmount: 'DEFINE_MANY',
-
- // ==== Advanced methods ====
-
- /**
- * Updates the component's currently mounted DOM representation.
- *
- * By default, this implements React's rendering and reconciliation algorithm.
- * Sophisticated clients may wish to override this.
- *
- * @param {ReactReconcileTransaction} transaction
- * @internal
- * @overridable
- */
- updateComponent: 'OVERRIDE_BASE'
-
-};
-
-/**
- * Mapping from class specification keys to special processing functions.
- *
- * Although these are declared like instance properties in the specification
- * when defining classes using `React.createClass`, they are actually static
- * and are accessible on the constructor instead of the prototype. Despite
- * being static, they must be defined outside of the "statics" key under
- * which all other static methods are defined.
- */
-var RESERVED_SPEC_KEYS = {
- displayName: function (Constructor, displayName) {
- Constructor.displayName = displayName;
- },
- mixins: function (Constructor, mixins) {
- if (mixins) {
- for (var i = 0; i < mixins.length; i++) {
- mixSpecIntoComponent(Constructor, mixins[i]);
- }
- }
- },
- childContextTypes: function (Constructor, childContextTypes) {
- if ("development" !== 'production') {
- validateTypeDef(Constructor, childContextTypes, 'childContext');
- }
- Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
- },
- contextTypes: function (Constructor, contextTypes) {
- if ("development" !== 'production') {
- validateTypeDef(Constructor, contextTypes, 'context');
- }
- Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes);
- },
- /**
- * Special case getDefaultProps which should move into statics but requires
- * automatic merging.
- */
- getDefaultProps: function (Constructor, getDefaultProps) {
- if (Constructor.getDefaultProps) {
- Constructor.getDefaultProps = createMergedResultFunction(Constructor.getDefaultProps, getDefaultProps);
- } else {
- Constructor.getDefaultProps = getDefaultProps;
- }
- },
- propTypes: function (Constructor, propTypes) {
- if ("development" !== 'production') {
- validateTypeDef(Constructor, propTypes, 'prop');
- }
- Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);
- },
- statics: function (Constructor, statics) {
- mixStaticSpecIntoComponent(Constructor, statics);
- },
- autobind: function () {} };
-
-// noop
-function validateTypeDef(Constructor, typeDef, location) {
- for (var propName in typeDef) {
- if (typeDef.hasOwnProperty(propName)) {
- // use a warning instead of an invariant so components
- // don't show up in prod but only in __DEV__
- "development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', ReactPropTypeLocationNames[location], propName) : void 0;
- }
- }
-}
-
-function validateMethodOverride(isAlreadyDefined, name) {
- var specPolicy = ReactClassInterface.hasOwnProperty(name) ? ReactClassInterface[name] : null;
-
- // Disallow overriding of base class methods unless explicitly allowed.
- if (ReactClassMixin.hasOwnProperty(name)) {
- !(specPolicy === 'OVERRIDE_BASE') ? "development" !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0;
- }
-
- // Disallow defining methods more than once unless explicitly allowed.
- if (isAlreadyDefined) {
- !(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED') ? "development" !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0;
- }
-}
-
-/**
- * Mixin helper which handles policy validation and reserved
- * specification keys when building React classes.
- */
-function mixSpecIntoComponent(Constructor, spec) {
- if (!spec) {
- if ("development" !== 'production') {
- var typeofSpec = typeof spec;
- var isMixinValid = typeofSpec === 'object' && spec !== null;
-
- "development" !== 'production' ? warning(isMixinValid, '%s: You\'re attempting to include a mixin that is either null ' + 'or not an object. Check the mixins included by the component, ' + 'as well as any mixins they include themselves. ' + 'Expected object but got %s.', Constructor.displayName || 'ReactClass', spec === null ? null : typeofSpec) : void 0;
- }
-
- return;
- }
-
- !(typeof spec !== 'function') ? "development" !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component class or function as a mixin. Instead, just use a regular object.') : _prodInvariant('75') : void 0;
- !!ReactElement.isValidElement(spec) ? "development" !== 'production' ? invariant(false, 'ReactClass: You\'re attempting to use a component as a mixin. Instead, just use a regular object.') : _prodInvariant('76') : void 0;
-
- var proto = Constructor.prototype;
- var autoBindPairs = proto.__reactAutoBindPairs;
-
- // By handling mixins before any other properties, we ensure the same
- // chaining order is applied to methods with DEFINE_MANY policy, whether
- // mixins are listed before or after these methods in the spec.
- if (spec.hasOwnProperty(MIXINS_KEY)) {
- RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);
- }
-
- for (var name in spec) {
- if (!spec.hasOwnProperty(name)) {
- continue;
- }
-
- if (name === MIXINS_KEY) {
- // We have already handled mixins in a special case above.
- continue;
- }
-
- var property = spec[name];
- var isAlreadyDefined = proto.hasOwnProperty(name);
- validateMethodOverride(isAlreadyDefined, name);
-
- if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
- RESERVED_SPEC_KEYS[name](Constructor, property);
- } else {
- // Setup methods on prototype:
- // The following member methods should not be automatically bound:
- // 1. Expected ReactClass methods (in the "interface").
- // 2. Overridden methods (that were mixed in).
- var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);
- var isFunction = typeof property === 'function';
- var shouldAutoBind = isFunction && !isReactClassMethod && !isAlreadyDefined && spec.autobind !== false;
-
- if (shouldAutoBind) {
- autoBindPairs.push(name, property);
- proto[name] = property;
- } else {
- if (isAlreadyDefined) {
- var specPolicy = ReactClassInterface[name];
-
- // These cases should already be caught by validateMethodOverride.
- !(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY')) ? "development" !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0;
-
- // For methods which are defined more than once, call the existing
- // methods before calling the new property, merging if appropriate.
- if (specPolicy === 'DEFINE_MANY_MERGED') {
- proto[name] = createMergedResultFunction(proto[name], property);
- } else if (specPolicy === 'DEFINE_MANY') {
- proto[name] = createChainedFunction(proto[name], property);
- }
- } else {
- proto[name] = property;
- if ("development" !== 'production') {
- // Add verbose displayName to the function, which helps when looking
- // at profiling tools.
- if (typeof property === 'function' && spec.displayName) {
- proto[name].displayName = spec.displayName + '_' + name;
- }
- }
- }
- }
- }
- }
-}
-
-function mixStaticSpecIntoComponent(Constructor, statics) {
- if (!statics) {
- return;
- }
- for (var name in statics) {
- var property = statics[name];
- if (!statics.hasOwnProperty(name)) {
- continue;
- }
-
- var isReserved = name in RESERVED_SPEC_KEYS;
- !!isReserved ? "development" !== 'production' ? invariant(false, 'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.', name) : _prodInvariant('78', name) : void 0;
-
- var isInherited = name in Constructor;
- !!isInherited ? "development" !== 'production' ? invariant(false, 'ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('79', name) : void 0;
- Constructor[name] = property;
- }
-}
-
-/**
- * Merge two objects, but throw if both contain the same key.
- *
- * @param {object} one The first object, which is mutated.
- * @param {object} two The second object
- * @return {object} one after it has been mutated to contain everything in two.
- */
-function mergeIntoWithNoDuplicateKeys(one, two) {
- !(one && two && typeof one === 'object' && typeof two === 'object') ? "development" !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;
-
- for (var key in two) {
- if (two.hasOwnProperty(key)) {
- !(one[key] === undefined) ? "development" !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;
- one[key] = two[key];
- }
- }
- return one;
-}
-
-/**
- * Creates a function that invokes two functions and merges their return values.
- *
- * @param {function} one Function to invoke first.
- * @param {function} two Function to invoke second.
- * @return {function} Function that invokes the two argument functions.
- * @private
- */
-function createMergedResultFunction(one, two) {
- return function mergedResult() {
- var a = one.apply(this, arguments);
- var b = two.apply(this, arguments);
- if (a == null) {
- return b;
- } else if (b == null) {
- return a;
- }
- var c = {};
- mergeIntoWithNoDuplicateKeys(c, a);
- mergeIntoWithNoDuplicateKeys(c, b);
- return c;
- };
-}
-
-/**
- * Creates a function that invokes two functions and ignores their return vales.
- *
- * @param {function} one Function to invoke first.
- * @param {function} two Function to invoke second.
- * @return {function} Function that invokes the two argument functions.
- * @private
- */
-function createChainedFunction(one, two) {
- return function chainedFunction() {
- one.apply(this, arguments);
- two.apply(this, arguments);
- };
-}
-
-/**
- * Binds a method to the component.
- *
- * @param {object} component Component whose method is going to be bound.
- * @param {function} method Method to be bound.
- * @return {function} The bound method.
- */
-function bindAutoBindMethod(component, method) {
- var boundMethod = method.bind(component);
- if ("development" !== 'production') {
- boundMethod.__reactBoundContext = component;
- boundMethod.__reactBoundMethod = method;
- boundMethod.__reactBoundArguments = null;
- var componentName = component.constructor.displayName;
- var _bind = boundMethod.bind;
- boundMethod.bind = function (newThis) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- // User is trying to bind() an autobound method; we effectively will
- // ignore the value of "this" that the user is trying to use, so
- // let's warn.
- if (newThis !== component && newThis !== null) {
- "development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance. See %s', componentName) : void 0;
- } else if (!args.length) {
- "development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call. See %s', componentName) : void 0;
- return boundMethod;
- }
- var reboundMethod = _bind.apply(boundMethod, arguments);
- reboundMethod.__reactBoundContext = component;
- reboundMethod.__reactBoundMethod = method;
- reboundMethod.__reactBoundArguments = args;
- return reboundMethod;
- };
- }
- return boundMethod;
-}
-
-/**
- * Binds all auto-bound methods in a component.
- *
- * @param {object} component Component whose method is going to be bound.
- */
-function bindAutoBindMethods(component) {
- var pairs = component.__reactAutoBindPairs;
- for (var i = 0; i < pairs.length; i += 2) {
- var autoBindKey = pairs[i];
- var method = pairs[i + 1];
- component[autoBindKey] = bindAutoBindMethod(component, method);
- }
-}
-
-/**
- * Add more to the ReactClass base class. These are all legacy features and
- * therefore not already part of the modern ReactComponent.
- */
-var ReactClassMixin = {
-
- /**
- * TODO: This will be deprecated because state should always keep a consistent
- * type signature and the only use case for this, is to avoid that.
- */
- replaceState: function (newState, callback) {
- this.updater.enqueueReplaceState(this, newState);
- if (callback) {
- this.updater.enqueueCallback(this, callback, 'replaceState');
- }
- },
-
- /**
- * Checks whether or not this composite component is mounted.
- * @return {boolean} True if mounted, false otherwise.
- * @protected
- * @final
- */
- isMounted: function () {
- return this.updater.isMounted(this);
- }
-};
-
-var ReactClassComponent = function () {};
-_assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
-
-/**
- * Module for creating composite components.
- *
- * @class ReactClass
- */
-var ReactClass = {
-
- /**
- * Creates a composite component class given a class specification.
- * See https://facebook.github.io/react/docs/react-api.html#createclass
- *
- * @param {object} spec Class specification (which must define `render`).
- * @return {function} Component constructor function.
- * @public
- */
- createClass: function (spec) {
- // To keep our warnings more understandable, we'll use a little hack here to
- // ensure that Constructor.name !== 'Constructor'. This makes sure we don't
- // unnecessarily identify a class without displayName as 'Constructor'.
- var Constructor = identity(function (props, context, updater) {
- // This constructor gets overridden by mocks. The argument is used
- // by mocks to assert on what gets mounted.
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(this instanceof Constructor, 'Something is calling a React component directly. Use a factory or ' + 'JSX instead. See: https://fb.me/react-legacyfactory') : void 0;
- }
-
- // Wire up auto-binding
- if (this.__reactAutoBindPairs.length) {
- bindAutoBindMethods(this);
- }
-
- this.props = props;
- this.context = context;
- this.refs = emptyObject;
- this.updater = updater || ReactNoopUpdateQueue;
-
- this.state = null;
-
- // ReactClasses doesn't have constructors. Instead, they use the
- // getInitialState and componentWillMount methods for initialization.
-
- var initialState = this.getInitialState ? this.getInitialState() : null;
- if ("development" !== 'production') {
- // We allow auto-mocks to proceed as if they're returning null.
- if (initialState === undefined && this.getInitialState._isMockFunction) {
- // This is probably bad practice. Consider warning here and
- // deprecating this convenience.
- initialState = null;
- }
- }
- !(typeof initialState === 'object' && !Array.isArray(initialState)) ? "development" !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0;
-
- this.state = initialState;
- });
- Constructor.prototype = new ReactClassComponent();
- Constructor.prototype.constructor = Constructor;
- Constructor.prototype.__reactAutoBindPairs = [];
-
- mixSpecIntoComponent(Constructor, spec);
-
- // Initialize the defaultProps property after all mixins have been merged.
- if (Constructor.getDefaultProps) {
- Constructor.defaultProps = Constructor.getDefaultProps();
- }
-
- if ("development" !== 'production') {
- // This is a tag to indicate that the use of these method names is ok,
- // since it's used with createClass. If it's not, then it's likely a
- // mistake so we'll warn you to use the static property, property
- // initializer or constructor respectively.
- if (Constructor.getDefaultProps) {
- Constructor.getDefaultProps.isReactClassApproved = {};
- }
- if (Constructor.prototype.getInitialState) {
- Constructor.prototype.getInitialState.isReactClassApproved = {};
- }
- }
-
- !Constructor.prototype.render ? "development" !== 'production' ? invariant(false, 'createClass(...): Class specification must implement a `render` method.') : _prodInvariant('83') : void 0;
-
- if ("development" !== 'production') {
- "development" !== 'production' ? warning(!Constructor.prototype.componentShouldUpdate, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', spec.displayName || 'A component') : void 0;
- "development" !== 'production' ? warning(!Constructor.prototype.componentWillRecieveProps, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', spec.displayName || 'A component') : void 0;
- }
-
- // Reduce time spent doing lookups by setting these on the prototype.
- for (var methodName in ReactClassInterface) {
- if (!Constructor.prototype[methodName]) {
- Constructor.prototype[methodName] = null;
- }
- }
-
- return Constructor;
- }
-
-};
-
-module.exports = ReactClass;
-},{"10":10,"13":13,"14":14,"24":24,"27":27,"28":28,"29":29,"30":30,"6":6}],6:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(24);
-
-var ReactNoopUpdateQueue = _dereq_(13);
-
-var canDefineProperty = _dereq_(19);
-var emptyObject = _dereq_(27);
-var invariant = _dereq_(28);
-var warning = _dereq_(29);
-
-/**
- * Base class helpers for the updating state of a component.
- */
-function ReactComponent(props, context, updater) {
- this.props = props;
- this.context = context;
- this.refs = emptyObject;
- // We initialize the default updater but the real one gets injected by the
- // renderer.
- this.updater = updater || ReactNoopUpdateQueue;
-}
-
-ReactComponent.prototype.isReactComponent = {};
-
-/**
- * Sets a subset of the state. Always use this to mutate
- * state. You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * There is no guarantee that calls to `setState` will run synchronously,
- * as they may eventually be batched together. You can provide an optional
- * callback that will be executed when the call to setState is actually
- * completed.
- *
- * When a function is provided to setState, it will be called at some point in
- * the future (not synchronously). It will be called with the up to date
- * component arguments (state, props, context). These values can be different
- * from this.* because your function may be called after receiveProps but before
- * shouldComponentUpdate, and this new state, props, and context will not yet be
- * assigned to this.
- *
- * @param {object|function} partialState Next partial state or function to
- * produce next partial state to be merged with current state.
- * @param {?function} callback Called after state is updated.
- * @final
- * @protected
- */
-ReactComponent.prototype.setState = function (partialState, callback) {
- !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? "development" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
- this.updater.enqueueSetState(this, partialState);
- if (callback) {
- this.updater.enqueueCallback(this, callback, 'setState');
- }
-};
-
-/**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {?function} callback Called after update is complete.
- * @final
- * @protected
- */
-ReactComponent.prototype.forceUpdate = function (callback) {
- this.updater.enqueueForceUpdate(this);
- if (callback) {
- this.updater.enqueueCallback(this, callback, 'forceUpdate');
- }
-};
-
-/**
- * Deprecated APIs. These APIs used to exist on classic React classes but since
- * we would like to deprecate them, we're not going to move them over to this
- * modern base class. Instead, we define a getter that warns if it's accessed.
- */
-if ("development" !== 'production') {
- var deprecatedAPIs = {
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
- };
- var defineDeprecationWarning = function (methodName, info) {
- if (canDefineProperty) {
- Object.defineProperty(ReactComponent.prototype, methodName, {
- get: function () {
- "development" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
- return undefined;
- }
- });
- }
- };
- for (var fnName in deprecatedAPIs) {
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
- }
- }
-}
-
-module.exports = ReactComponent;
-},{"13":13,"19":19,"24":24,"27":27,"28":28,"29":29}],7:[function(_dereq_,module,exports){
-/**
- * Copyright 2016-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(24);
-
-var ReactCurrentOwner = _dereq_(8);
-
-var getComponentName = _dereq_(21);
-var invariant = _dereq_(28);
-var warning = _dereq_(29);
-
-function isNative(fn) {
- // Based on isNative() from Lodash
- var funcToString = Function.prototype.toString;
- var hasOwnProperty = Object.prototype.hasOwnProperty;
- var reIsNative = RegExp('^' + funcToString
- // Take an example native function source for comparison
- .call(hasOwnProperty)
- // Strip regex characters so we can use it for regex
- .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
- // Remove hasOwnProperty from the template to make it generic
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
- try {
- var source = funcToString.call(fn);
- return reIsNative.test(source);
- } catch (err) {
- return false;
- }
-}
-
-var canUseCollections =
-// Array.from
-typeof Array.from === 'function' &&
-// Map
-typeof Map === 'function' && isNative(Map) &&
-// Map.prototype.keys
-Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) &&
-// Set
-typeof Set === 'function' && isNative(Set) &&
-// Set.prototype.keys
-Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys);
-
-if (canUseCollections) {
- var itemMap = new Map();
- var rootIDSet = new Set();
-
- var setItem = function (id, item) {
- itemMap.set(id, item);
- };
- var getItem = function (id) {
- return itemMap.get(id);
- };
- var removeItem = function (id) {
- itemMap['delete'](id);
- };
- var getItemIDs = function () {
- return Array.from(itemMap.keys());
- };
-
- var addRoot = function (id) {
- rootIDSet.add(id);
- };
- var removeRoot = function (id) {
- rootIDSet['delete'](id);
- };
- var getRootIDs = function () {
- return Array.from(rootIDSet.keys());
- };
-} else {
- var itemByKey = {};
- var rootByKey = {};
-
- // Use non-numeric keys to prevent V8 performance issues:
- // https://github.com/facebook/react/pull/7232
- var getKeyFromID = function (id) {
- return '.' + id;
- };
- var getIDFromKey = function (key) {
- return parseInt(key.substr(1), 10);
- };
-
- var setItem = function (id, item) {
- var key = getKeyFromID(id);
- itemByKey[key] = item;
- };
- var getItem = function (id) {
- var key = getKeyFromID(id);
- return itemByKey[key];
- };
- var removeItem = function (id) {
- var key = getKeyFromID(id);
- delete itemByKey[key];
- };
- var getItemIDs = function () {
- return Object.keys(itemByKey).map(getIDFromKey);
- };
-
- var addRoot = function (id) {
- var key = getKeyFromID(id);
- rootByKey[key] = true;
- };
- var removeRoot = function (id) {
- var key = getKeyFromID(id);
- delete rootByKey[key];
- };
- var getRootIDs = function () {
- return Object.keys(rootByKey).map(getIDFromKey);
- };
-}
-
-var unmountedIDs = [];
-
-function purgeDeep(id) {
- var item = getItem(id);
- if (item) {
- var childIDs = item.childIDs;
-
- removeItem(id);
- childIDs.forEach(purgeDeep);
- }
-}
-
-function describeComponentFrame(name, source, ownerName) {
- return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
-}
-
-function getDisplayName(element) {
- if (element == null) {
- return '#empty';
- } else if (typeof element === 'string' || typeof element === 'number') {
- return '#text';
- } else if (typeof element.type === 'string') {
- return element.type;
- } else {
- return element.type.displayName || element.type.name || 'Unknown';
- }
-}
-
-function describeID(id) {
- var name = ReactComponentTreeHook.getDisplayName(id);
- var element = ReactComponentTreeHook.getElement(id);
- var ownerID = ReactComponentTreeHook.getOwnerID(id);
- var ownerName;
- if (ownerID) {
- ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
- }
- "development" !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;
- return describeComponentFrame(name, element && element._source, ownerName);
-}
-
-var ReactComponentTreeHook = {
- onSetChildren: function (id, nextChildIDs) {
- var item = getItem(id);
- !item ? "development" !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
- item.childIDs = nextChildIDs;
-
- for (var i = 0; i < nextChildIDs.length; i++) {
- var nextChildID = nextChildIDs[i];
- var nextChild = getItem(nextChildID);
- !nextChild ? "development" !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0;
- !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? "development" !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0;
- !nextChild.isMounted ? "development" !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0;
- if (nextChild.parentID == null) {
- nextChild.parentID = id;
- // TODO: This shouldn't be necessary but mounting a new root during in
- // componentWillMount currently causes not-yet-mounted components to
- // be purged from our tree data so their parent id is missing.
- }
- !(nextChild.parentID === id) ? "development" !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0;
- }
- },
- onBeforeMountComponent: function (id, element, parentID) {
- var item = {
- element: element,
- parentID: parentID,
- text: null,
- childIDs: [],
- isMounted: false,
- updateCount: 0
- };
- setItem(id, item);
- },
- onBeforeUpdateComponent: function (id, element) {
- var item = getItem(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.element = element;
- },
- onMountComponent: function (id) {
- var item = getItem(id);
- !item ? "development" !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0;
- item.isMounted = true;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- addRoot(id);
- }
- },
- onUpdateComponent: function (id) {
- var item = getItem(id);
- if (!item || !item.isMounted) {
- // We may end up here as a result of setState() in componentWillUnmount().
- // In this case, ignore the element.
- return;
- }
- item.updateCount++;
- },
- onUnmountComponent: function (id) {
- var item = getItem(id);
- if (item) {
- // We need to check if it exists.
- // `item` might not exist if it is inside an error boundary, and a sibling
- // error boundary child threw while mounting. Then this instance never
- // got a chance to mount, but it still gets an unmounting event during
- // the error boundary cleanup.
- item.isMounted = false;
- var isRoot = item.parentID === 0;
- if (isRoot) {
- removeRoot(id);
- }
- }
- unmountedIDs.push(id);
- },
- purgeUnmountedComponents: function () {
- if (ReactComponentTreeHook._preventPurging) {
- // Should only be used for testing.
- return;
- }
-
- for (var i = 0; i < unmountedIDs.length; i++) {
- var id = unmountedIDs[i];
- purgeDeep(id);
- }
- unmountedIDs.length = 0;
- },
- isMounted: function (id) {
- var item = getItem(id);
- return item ? item.isMounted : false;
- },
- getCurrentStackAddendum: function (topElement) {
- var info = '';
- if (topElement) {
- var name = getDisplayName(topElement);
- var owner = topElement._owner;
- info += describeComponentFrame(name, topElement._source, owner && getComponentName(owner));
- }
-
- var currentOwner = ReactCurrentOwner.current;
- if (currentOwner && typeof currentOwner._debugID === 'number') {
- var id = currentOwner && currentOwner._debugID;
- info += ReactComponentTreeHook.getStackAddendumByID(id);
- }
- return info;
- },
- getStackAddendumByID: function (id) {
- var info = '';
- while (id) {
- info += describeID(id);
- id = ReactComponentTreeHook.getParentID(id);
- }
- return info;
- },
- getChildIDs: function (id) {
- var item = getItem(id);
- return item ? item.childIDs : [];
- },
- getDisplayName: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element) {
- return null;
- }
- return getDisplayName(element);
- },
- getElement: function (id) {
- var item = getItem(id);
- return item ? item.element : null;
- },
- getOwnerID: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (!element || !element._owner) {
- return null;
- }
- return element._owner._debugID;
- },
- getParentID: function (id) {
- var item = getItem(id);
- return item ? item.parentID : null;
- },
- getSource: function (id) {
- var item = getItem(id);
- var element = item ? item.element : null;
- var source = element != null ? element._source : null;
- return source;
- },
- getText: function (id) {
- var element = ReactComponentTreeHook.getElement(id);
- if (typeof element === 'string') {
- return element;
- } else if (typeof element === 'number') {
- return '' + element;
- } else {
- return null;
- }
- },
- getUpdateCount: function (id) {
- var item = getItem(id);
- return item ? item.updateCount : 0;
- },
-
-
- getRootIDs: getRootIDs,
- getRegisteredIDs: getItemIDs
-};
-
-module.exports = ReactComponentTreeHook;
-},{"21":21,"24":24,"28":28,"29":29,"8":8}],8:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-/**
- * Keeps track of the current owner.
- *
- * The current owner is the component who should own any components that are
- * currently being constructed.
- */
-var ReactCurrentOwner = {
-
- /**
- * @internal
- * @type {ReactComponent}
- */
- current: null
-
-};
-
-module.exports = ReactCurrentOwner;
-},{}],9:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var ReactElement = _dereq_(10);
-
-/**
- * Create a factory that creates HTML tag elements.
- *
- * @private
- */
-var createDOMFactory = ReactElement.createFactory;
-if ("development" !== 'production') {
- var ReactElementValidator = _dereq_(12);
- createDOMFactory = ReactElementValidator.createFactory;
-}
-
-/**
- * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.
- * This is also accessible via `React.DOM`.
- *
- * @public
- */
-var ReactDOMFactories = {
- a: createDOMFactory('a'),
- abbr: createDOMFactory('abbr'),
- address: createDOMFactory('address'),
- area: createDOMFactory('area'),
- article: createDOMFactory('article'),
- aside: createDOMFactory('aside'),
- audio: createDOMFactory('audio'),
- b: createDOMFactory('b'),
- base: createDOMFactory('base'),
- bdi: createDOMFactory('bdi'),
- bdo: createDOMFactory('bdo'),
- big: createDOMFactory('big'),
- blockquote: createDOMFactory('blockquote'),
- body: createDOMFactory('body'),
- br: createDOMFactory('br'),
- button: createDOMFactory('button'),
- canvas: createDOMFactory('canvas'),
- caption: createDOMFactory('caption'),
- cite: createDOMFactory('cite'),
- code: createDOMFactory('code'),
- col: createDOMFactory('col'),
- colgroup: createDOMFactory('colgroup'),
- data: createDOMFactory('data'),
- datalist: createDOMFactory('datalist'),
- dd: createDOMFactory('dd'),
- del: createDOMFactory('del'),
- details: createDOMFactory('details'),
- dfn: createDOMFactory('dfn'),
- dialog: createDOMFactory('dialog'),
- div: createDOMFactory('div'),
- dl: createDOMFactory('dl'),
- dt: createDOMFactory('dt'),
- em: createDOMFactory('em'),
- embed: createDOMFactory('embed'),
- fieldset: createDOMFactory('fieldset'),
- figcaption: createDOMFactory('figcaption'),
- figure: createDOMFactory('figure'),
- footer: createDOMFactory('footer'),
- form: createDOMFactory('form'),
- h1: createDOMFactory('h1'),
- h2: createDOMFactory('h2'),
- h3: createDOMFactory('h3'),
- h4: createDOMFactory('h4'),
- h5: createDOMFactory('h5'),
- h6: createDOMFactory('h6'),
- head: createDOMFactory('head'),
- header: createDOMFactory('header'),
- hgroup: createDOMFactory('hgroup'),
- hr: createDOMFactory('hr'),
- html: createDOMFactory('html'),
- i: createDOMFactory('i'),
- iframe: createDOMFactory('iframe'),
- img: createDOMFactory('img'),
- input: createDOMFactory('input'),
- ins: createDOMFactory('ins'),
- kbd: createDOMFactory('kbd'),
- keygen: createDOMFactory('keygen'),
- label: createDOMFactory('label'),
- legend: createDOMFactory('legend'),
- li: createDOMFactory('li'),
- link: createDOMFactory('link'),
- main: createDOMFactory('main'),
- map: createDOMFactory('map'),
- mark: createDOMFactory('mark'),
- menu: createDOMFactory('menu'),
- menuitem: createDOMFactory('menuitem'),
- meta: createDOMFactory('meta'),
- meter: createDOMFactory('meter'),
- nav: createDOMFactory('nav'),
- noscript: createDOMFactory('noscript'),
- object: createDOMFactory('object'),
- ol: createDOMFactory('ol'),
- optgroup: createDOMFactory('optgroup'),
- option: createDOMFactory('option'),
- output: createDOMFactory('output'),
- p: createDOMFactory('p'),
- param: createDOMFactory('param'),
- picture: createDOMFactory('picture'),
- pre: createDOMFactory('pre'),
- progress: createDOMFactory('progress'),
- q: createDOMFactory('q'),
- rp: createDOMFactory('rp'),
- rt: createDOMFactory('rt'),
- ruby: createDOMFactory('ruby'),
- s: createDOMFactory('s'),
- samp: createDOMFactory('samp'),
- script: createDOMFactory('script'),
- section: createDOMFactory('section'),
- select: createDOMFactory('select'),
- small: createDOMFactory('small'),
- source: createDOMFactory('source'),
- span: createDOMFactory('span'),
- strong: createDOMFactory('strong'),
- style: createDOMFactory('style'),
- sub: createDOMFactory('sub'),
- summary: createDOMFactory('summary'),
- sup: createDOMFactory('sup'),
- table: createDOMFactory('table'),
- tbody: createDOMFactory('tbody'),
- td: createDOMFactory('td'),
- textarea: createDOMFactory('textarea'),
- tfoot: createDOMFactory('tfoot'),
- th: createDOMFactory('th'),
- thead: createDOMFactory('thead'),
- time: createDOMFactory('time'),
- title: createDOMFactory('title'),
- tr: createDOMFactory('tr'),
- track: createDOMFactory('track'),
- u: createDOMFactory('u'),
- ul: createDOMFactory('ul'),
- 'var': createDOMFactory('var'),
- video: createDOMFactory('video'),
- wbr: createDOMFactory('wbr'),
-
- // SVG
- circle: createDOMFactory('circle'),
- clipPath: createDOMFactory('clipPath'),
- defs: createDOMFactory('defs'),
- ellipse: createDOMFactory('ellipse'),
- g: createDOMFactory('g'),
- image: createDOMFactory('image'),
- line: createDOMFactory('line'),
- linearGradient: createDOMFactory('linearGradient'),
- mask: createDOMFactory('mask'),
- path: createDOMFactory('path'),
- pattern: createDOMFactory('pattern'),
- polygon: createDOMFactory('polygon'),
- polyline: createDOMFactory('polyline'),
- radialGradient: createDOMFactory('radialGradient'),
- rect: createDOMFactory('rect'),
- stop: createDOMFactory('stop'),
- svg: createDOMFactory('svg'),
- text: createDOMFactory('text'),
- tspan: createDOMFactory('tspan')
-};
-
-module.exports = ReactDOMFactories;
-},{"10":10,"12":12}],10:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(30);
-
-var ReactCurrentOwner = _dereq_(8);
-
-var warning = _dereq_(29);
-var canDefineProperty = _dereq_(19);
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-
-var REACT_ELEMENT_TYPE = _dereq_(11);
-
-var RESERVED_PROPS = {
- key: true,
- ref: true,
- __self: true,
- __source: true
-};
-
-var specialPropKeyWarningShown, specialPropRefWarningShown;
-
-function hasValidRef(config) {
- if ("development" !== 'production') {
- if (hasOwnProperty.call(config, 'ref')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
- if (getter && getter.isReactWarning) {
- return false;
- }
- }
- }
- return config.ref !== undefined;
-}
-
-function hasValidKey(config) {
- if ("development" !== 'production') {
- if (hasOwnProperty.call(config, 'key')) {
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
- if (getter && getter.isReactWarning) {
- return false;
- }
- }
- }
- return config.key !== undefined;
-}
-
-function defineKeyPropWarningGetter(props, displayName) {
- var warnAboutAccessingKey = function () {
- if (!specialPropKeyWarningShown) {
- specialPropKeyWarningShown = true;
- "development" !== 'production' ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
- }
- };
- warnAboutAccessingKey.isReactWarning = true;
- Object.defineProperty(props, 'key', {
- get: warnAboutAccessingKey,
- configurable: true
- });
-}
-
-function defineRefPropWarningGetter(props, displayName) {
- var warnAboutAccessingRef = function () {
- if (!specialPropRefWarningShown) {
- specialPropRefWarningShown = true;
- "development" !== 'production' ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
- }
- };
- warnAboutAccessingRef.isReactWarning = true;
- Object.defineProperty(props, 'ref', {
- get: warnAboutAccessingRef,
- configurable: true
- });
-}
-
-/**
- * Factory method to create a new React element. This no longer adheres to
- * the class pattern, so do not use new to call it. Also, no instanceof check
- * will work. Instead test $$typeof field against Symbol.for('react.element') to check
- * if something is a React Element.
- *
- * @param {*} type
- * @param {*} key
- * @param {string|object} ref
- * @param {*} self A *temporary* helper to detect places where `this` is
- * different from the `owner` when React.createElement is called, so that we
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
- * functions, and as long as `this` and owner are the same, there will be no
- * change in behavior.
- * @param {*} source An annotation object (added by a transpiler or otherwise)
- * indicating filename, line number, and/or other information.
- * @param {*} owner
- * @param {*} props
- * @internal
- */
-var ReactElement = function (type, key, ref, self, source, owner, props) {
- var element = {
- // This tag allow us to uniquely identify this as a React Element
- $$typeof: REACT_ELEMENT_TYPE,
-
- // Built-in properties that belong on the element
- type: type,
- key: key,
- ref: ref,
- props: props,
-
- // Record the component responsible for creating this element.
- _owner: owner
- };
-
- if ("development" !== 'production') {
- // The validation flag is currently mutative. We put it on
- // an external backing store so that we can freeze the whole object.
- // This can be replaced with a WeakMap once they are implemented in
- // commonly used development environments.
- element._store = {};
-
- // To make comparing ReactElements easier for testing purposes, we make
- // the validation flag non-enumerable (where possible, which should
- // include every environment we run tests in), so the test framework
- // ignores it.
- if (canDefineProperty) {
- Object.defineProperty(element._store, 'validated', {
- configurable: false,
- enumerable: false,
- writable: true,
- value: false
- });
- // self and source are DEV only properties.
- Object.defineProperty(element, '_self', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: self
- });
- // Two elements created in two different places should be considered
- // equal for testing purposes and therefore we hide it from enumeration.
- Object.defineProperty(element, '_source', {
- configurable: false,
- enumerable: false,
- writable: false,
- value: source
- });
- } else {
- element._store.validated = false;
- element._self = self;
- element._source = source;
- }
- if (Object.freeze) {
- Object.freeze(element.props);
- Object.freeze(element);
- }
- }
-
- return element;
-};
-
-/**
- * Create and return a new ReactElement of the given type.
- * See https://facebook.github.io/react/docs/react-api.html#createelement
- */
-ReactElement.createElement = function (type, config, children) {
- var propName;
-
- // Reserved names are extracted
- var props = {};
-
- var key = null;
- var ref = null;
- var self = null;
- var source = null;
-
- if (config != null) {
- if (hasValidRef(config)) {
- ref = config.ref;
- }
- if (hasValidKey(config)) {
- key = '' + config.key;
- }
-
- self = config.__self === undefined ? null : config.__self;
- source = config.__source === undefined ? null : config.__source;
- // Remaining properties are added to a new props object
- for (propName in config) {
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
- props[propName] = config[propName];
- }
- }
- }
-
- // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
- var childrenLength = arguments.length - 2;
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength);
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2];
- }
- if ("development" !== 'production') {
- if (Object.freeze) {
- Object.freeze(childArray);
- }
- }
- props.children = childArray;
- }
-
- // Resolve default props
- if (type && type.defaultProps) {
- var defaultProps = type.defaultProps;
- for (propName in defaultProps) {
- if (props[propName] === undefined) {
- props[propName] = defaultProps[propName];
- }
- }
- }
- if ("development" !== 'production') {
- if (key || ref) {
- if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
- if (key) {
- defineKeyPropWarningGetter(props, displayName);
- }
- if (ref) {
- defineRefPropWarningGetter(props, displayName);
- }
- }
- }
- }
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
-};
-
-/**
- * Return a function that produces ReactElements of a given type.
- * See https://facebook.github.io/react/docs/react-api.html#createfactory
- */
-ReactElement.createFactory = function (type) {
- var factory = ReactElement.createElement.bind(null, type);
- // Expose the type on the factory and the prototype so that it can be
- // easily accessed on elements. E.g. `<Foo />.type === Foo`.
- // This should not be named `constructor` since this may not be the function
- // that created the element, and it may not even be a constructor.
- // Legacy hook TODO: Warn if this is accessed
- factory.type = type;
- return factory;
-};
-
-ReactElement.cloneAndReplaceKey = function (oldElement, newKey) {
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
-
- return newElement;
-};
-
-/**
- * Clone and return a new ReactElement using element as the starting point.
- * See https://facebook.github.io/react/docs/react-api.html#cloneelement
- */
-ReactElement.cloneElement = function (element, config, children) {
- var propName;
-
- // Original props are copied
- var props = _assign({}, element.props);
-
- // Reserved names are extracted
- var key = element.key;
- var ref = element.ref;
- // Self is preserved since the owner is preserved.
- var self = element._self;
- // Source is preserved since cloneElement is unlikely to be targeted by a
- // transpiler, and the original source is probably a better indicator of the
- // true owner.
- var source = element._source;
-
- // Owner will be preserved, unless ref is overridden
- var owner = element._owner;
-
- if (config != null) {
- if (hasValidRef(config)) {
- // Silently steal the ref from the parent.
- ref = config.ref;
- owner = ReactCurrentOwner.current;
- }
- if (hasValidKey(config)) {
- key = '' + config.key;
- }
-
- // Remaining properties override existing props
- var defaultProps;
- if (element.type && element.type.defaultProps) {
- defaultProps = element.type.defaultProps;
- }
- for (propName in config) {
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
- if (config[propName] === undefined && defaultProps !== undefined) {
- // Resolve default props
- props[propName] = defaultProps[propName];
- } else {
- props[propName] = config[propName];
- }
- }
- }
- }
-
- // Children can be more than one argument, and those are transferred onto
- // the newly allocated props object.
- var childrenLength = arguments.length - 2;
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = Array(childrenLength);
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 2];
- }
- props.children = childArray;
- }
-
- return ReactElement(element.type, key, ref, self, source, owner, props);
-};
-
-/**
- * Verifies the object is a ReactElement.
- * See https://facebook.github.io/react/docs/react-api.html#isvalidelement
- * @param {?object} object
- * @return {boolean} True if `object` is a valid component.
- * @final
- */
-ReactElement.isValidElement = function (object) {
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
-};
-
-module.exports = ReactElement;
-},{"11":11,"19":19,"29":29,"30":30,"8":8}],11:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-// The Symbol used to tag the ReactElement type. If there is no native Symbol
-// nor polyfill, then a plain number is used for performance.
-
-var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
-
-module.exports = REACT_ELEMENT_TYPE;
-},{}],12:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-/**
- * ReactElementValidator provides a wrapper around a element factory
- * which validates the props passed to the element. This is intended to be
- * used only in DEV and could be replaced by a static type checker for languages
- * that support it.
- */
-
-'use strict';
-
-var ReactCurrentOwner = _dereq_(8);
-var ReactComponentTreeHook = _dereq_(7);
-var ReactElement = _dereq_(10);
-
-var checkReactTypeSpec = _dereq_(20);
-
-var canDefineProperty = _dereq_(19);
-var getComponentName = _dereq_(21);
-var getIteratorFn = _dereq_(22);
-var warning = _dereq_(29);
-
-function getDeclarationErrorAddendum() {
- if (ReactCurrentOwner.current) {
- var name = getComponentName(ReactCurrentOwner.current);
- if (name) {
- return ' Check the render method of `' + name + '`.';
- }
- }
- return '';
-}
-
-/**
- * Warn if there's no key explicitly set on dynamic arrays of children or
- * object keys are not valid. This allows us to keep track of children between
- * updates.
- */
-var ownerHasKeyUseWarning = {};
-
-function getCurrentComponentErrorInfo(parentType) {
- var info = getDeclarationErrorAddendum();
-
- if (!info) {
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
- if (parentName) {
- info = ' Check the top-level render call using <' + parentName + '>.';
- }
- }
- return info;
-}
-
-/**
- * Warn if the element doesn't have an explicit key assigned to it.
- * This element is in an array. The array could grow and shrink or be
- * reordered. All children that haven't already been validated are required to
- * have a "key" property assigned to it. Error statuses are cached so a warning
- * will only be shown once.
- *
- * @internal
- * @param {ReactElement} element Element that requires a key.
- * @param {*} parentType element's parent's type.
- */
-function validateExplicitKey(element, parentType) {
- if (!element._store || element._store.validated || element.key != null) {
- return;
- }
- element._store.validated = true;
-
- var memoizer = ownerHasKeyUseWarning.uniqueKey || (ownerHasKeyUseWarning.uniqueKey = {});
-
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
- if (memoizer[currentComponentErrorInfo]) {
- return;
- }
- memoizer[currentComponentErrorInfo] = true;
-
- // Usually the current owner is the offender, but if it accepts children as a
- // property, it may be the creator of the child that's responsible for
- // assigning it a key.
- var childOwner = '';
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
- // Give the component that originally created this child.
- childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.';
- }
-
- "development" !== 'production' ? warning(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, ReactComponentTreeHook.getCurrentStackAddendum(element)) : void 0;
-}
-
-/**
- * Ensure that every element either is passed in a static location, in an
- * array with an explicit keys property defined, or in an object literal
- * with valid key property.
- *
- * @internal
- * @param {ReactNode} node Statically passed child of any type.
- * @param {*} parentType node's parent's type.
- */
-function validateChildKeys(node, parentType) {
- if (typeof node !== 'object') {
- return;
- }
- if (Array.isArray(node)) {
- for (var i = 0; i < node.length; i++) {
- var child = node[i];
- if (ReactElement.isValidElement(child)) {
- validateExplicitKey(child, parentType);
- }
- }
- } else if (ReactElement.isValidElement(node)) {
- // This element was passed in a valid location.
- if (node._store) {
- node._store.validated = true;
- }
- } else if (node) {
- var iteratorFn = getIteratorFn(node);
- // Entry iterators provide implicit keys.
- if (iteratorFn) {
- if (iteratorFn !== node.entries) {
- var iterator = iteratorFn.call(node);
- var step;
- while (!(step = iterator.next()).done) {
- if (ReactElement.isValidElement(step.value)) {
- validateExplicitKey(step.value, parentType);
- }
- }
- }
- }
- }
-}
-
-/**
- * Given an element, validate that its props follow the propTypes definition,
- * provided by the type.
- *
- * @param {ReactElement} element
- */
-function validatePropTypes(element) {
- var componentClass = element.type;
- if (typeof componentClass !== 'function') {
- return;
- }
- var name = componentClass.displayName || componentClass.name;
- if (componentClass.propTypes) {
- checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);
- }
- if (typeof componentClass.getDefaultProps === 'function') {
- "development" !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
- }
-}
-
-var ReactElementValidator = {
-
- createElement: function (type, props, children) {
- var validType = typeof type === 'string' || typeof type === 'function' || type !== null && typeof type === 'object' && typeof type.tag === 'number';
- // We warn in this case but don't throw. We expect the element creation to
- // succeed and there will likely be errors in render.
- if (!validType) {
- "development" !== 'production' ? warning(false, 'React.createElement: type should not be null, undefined, boolean, or ' + 'number. It should be a string (for DOM elements) or a ReactClass ' + '(for composite components).%s', getDeclarationErrorAddendum()) : void 0;
- }
-
- var element = ReactElement.createElement.apply(this, arguments);
-
- // The result can be nullish if a mock or a custom function is used.
- // TODO: Drop this when these are no longer allowed as the type argument.
- if (element == null) {
- return element;
- }
-
- // Skip key warning if the type isn't valid since our key validation logic
- // doesn't expect a non-string/function type and can throw confusing errors.
- // We don't want exception behavior to differ between dev and prod.
- // (Rendering will throw with a helpful message and as soon as the type is
- // fixed, the key warnings will appear.)
- if (validType) {
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], type);
- }
- }
-
- validatePropTypes(element);
-
- return element;
- },
-
- createFactory: function (type) {
- var validatedFactory = ReactElementValidator.createElement.bind(null, type);
- // Legacy hook TODO: Warn if this is accessed
- validatedFactory.type = type;
-
- if ("development" !== 'production') {
- if (canDefineProperty) {
- Object.defineProperty(validatedFactory, 'type', {
- enumerable: false,
- get: function () {
- "development" !== 'production' ? warning(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.') : void 0;
- Object.defineProperty(this, 'type', {
- value: type
- });
- return type;
- }
- });
- }
- }
-
- return validatedFactory;
- },
-
- cloneElement: function (element, props, children) {
- var newElement = ReactElement.cloneElement.apply(this, arguments);
- for (var i = 2; i < arguments.length; i++) {
- validateChildKeys(arguments[i], newElement.type);
- }
- validatePropTypes(newElement);
- return newElement;
- }
-
-};
-
-module.exports = ReactElementValidator;
-},{"10":10,"19":19,"20":20,"21":21,"22":22,"29":29,"7":7,"8":8}],13:[function(_dereq_,module,exports){
-/**
- * Copyright 2015-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var warning = _dereq_(29);
-
-function warnNoop(publicInstance, callerName) {
- if ("development" !== 'production') {
- var constructor = publicInstance.constructor;
- "development" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
- }
-}
-
-/**
- * This is the abstract API for an update queue.
- */
-var ReactNoopUpdateQueue = {
-
- /**
- * Checks whether or not this composite component is mounted.
- * @param {ReactClass} publicInstance The instance we want to test.
- * @return {boolean} True if mounted, false otherwise.
- * @protected
- * @final
- */
- isMounted: function (publicInstance) {
- return false;
- },
-
- /**
- * Enqueue a callback that will be executed after all the pending updates
- * have processed.
- *
- * @param {ReactClass} publicInstance The instance to use as `this` context.
- * @param {?function} callback Called after state is updated.
- * @internal
- */
- enqueueCallback: function (publicInstance, callback) {},
-
- /**
- * Forces an update. This should only be invoked when it is known with
- * certainty that we are **not** in a DOM transaction.
- *
- * You may want to call this when you know that some deeper aspect of the
- * component's state has changed but `setState` was not called.
- *
- * This will not invoke `shouldComponentUpdate`, but it will invoke
- * `componentWillUpdate` and `componentDidUpdate`.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @internal
- */
- enqueueForceUpdate: function (publicInstance) {
- warnNoop(publicInstance, 'forceUpdate');
- },
-
- /**
- * Replaces all of the state. Always use this or `setState` to mutate state.
- * You should treat `this.state` as immutable.
- *
- * There is no guarantee that `this.state` will be immediately updated, so
- * accessing `this.state` after calling this method may return the old value.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} completeState Next state.
- * @internal
- */
- enqueueReplaceState: function (publicInstance, completeState) {
- warnNoop(publicInstance, 'replaceState');
- },
-
- /**
- * Sets a subset of the state. This only exists because _pendingState is
- * internal. This provides a merging strategy that is not available to deep
- * properties which is confusing. TODO: Expose pendingState or don't use it
- * during the merge.
- *
- * @param {ReactClass} publicInstance The instance that should rerender.
- * @param {object} partialState Next partial state to be merged with state.
- * @internal
- */
- enqueueSetState: function (publicInstance, partialState) {
- warnNoop(publicInstance, 'setState');
- }
-};
-
-module.exports = ReactNoopUpdateQueue;
-},{"29":29}],14:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var ReactPropTypeLocationNames = {};
-
-if ("development" !== 'production') {
- ReactPropTypeLocationNames = {
- prop: 'prop',
- context: 'context',
- childContext: 'child context'
- };
-}
-
-module.exports = ReactPropTypeLocationNames;
-},{}],15:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(24);
-
-var ReactElement = _dereq_(10);
-var ReactPropTypeLocationNames = _dereq_(14);
-
-var emptyFunction = _dereq_(26);
-var getIteratorFn = _dereq_(22);
-var invariant = _dereq_(28);
-var warning = _dereq_(29);
-
-/**
- * Collection of methods that allow declaration and validation of props that are
- * supplied to React components. Example usage:
- *
- * var Props = require('ReactPropTypes');
- * var MyArticle = React.createClass({
- * propTypes: {
- * // An optional string prop named "description".
- * description: Props.string,
- *
- * // A required enum prop named "category".
- * category: Props.oneOf(['News','Photos']).isRequired,
- *
- * // A prop named "dialog" that requires an instance of Dialog.
- * dialog: Props.instanceOf(Dialog).isRequired
- * },
- * render: function() { ... }
- * });
- *
- * A more formal specification of how these methods are used:
- *
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
- * decl := ReactPropTypes.{type}(.isRequired)?
- *
- * Each and every declaration produces a function with the same signature. This
- * allows the creation of custom validation functions. For example:
- *
- * var MyLink = React.createClass({
- * propTypes: {
- * // An optional string or URI prop named "href".
- * href: function(props, propName, componentName) {
- * var propValue = props[propName];
- * if (propValue != null && typeof propValue !== 'string' &&
- * !(propValue instanceof URI)) {
- * return new Error(
- * 'Expected a string or an URI for ' + propName + ' in ' +
- * componentName
- * );
- * }
- * }
- * },
- * render: function() {...}
- * });
- *
- * @internal
- */
-
-var ANONYMOUS = '<<anonymous>>';
-
-if ("development" !== 'production') {
- // Keep in sync with production version below
- var ReactPropTypes = {
- array: createPrimitiveTypeChecker('array'),
- bool: createPrimitiveTypeChecker('boolean'),
- func: createPrimitiveTypeChecker('function'),
- number: createPrimitiveTypeChecker('number'),
- object: createPrimitiveTypeChecker('object'),
- string: createPrimitiveTypeChecker('string'),
- symbol: createPrimitiveTypeChecker('symbol'),
-
- any: createAnyTypeChecker(),
- arrayOf: createArrayOfTypeChecker,
- element: createElementTypeChecker(),
- instanceOf: createInstanceTypeChecker,
- node: createNodeChecker(),
- objectOf: createObjectOfTypeChecker,
- oneOf: createEnumTypeChecker,
- oneOfType: createUnionTypeChecker,
- shape: createShapeTypeChecker
- };
-} else {
- var productionTypeChecker = function () {
- !false ? "development" !== 'production' ? invariant(false, 'React.PropTypes type checking code is stripped in production.') : _prodInvariant('145') : void 0;
- };
- productionTypeChecker.isRequired = productionTypeChecker;
- var getProductionTypeChecker = function () {
- return productionTypeChecker;
- };
- // Keep in sync with development version above
- var ReactPropTypes = {
- array: productionTypeChecker,
- bool: productionTypeChecker,
- func: productionTypeChecker,
- number: productionTypeChecker,
- object: productionTypeChecker,
- string: productionTypeChecker,
- symbol: productionTypeChecker,
-
- any: productionTypeChecker,
- arrayOf: getProductionTypeChecker,
- element: productionTypeChecker,
- instanceOf: getProductionTypeChecker,
- node: productionTypeChecker,
- objectOf: getProductionTypeChecker,
- oneOf: getProductionTypeChecker,
- oneOfType: getProductionTypeChecker,
- shape: getProductionTypeChecker
- };
-}
-
-/**
- * inlined Object.is polyfill to avoid requiring consumers ship their own
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
- */
-/*eslint-disable no-self-compare*/
-function is(x, y) {
- // SameValue algorithm
- if (x === y) {
- // Steps 1-5, 7-10
- // Steps 6.b-6.e: +0 != -0
- return x !== 0 || 1 / x === 1 / y;
- } else {
- // Step 6.a: NaN == NaN
- return x !== x && y !== y;
- }
-}
-/*eslint-enable no-self-compare*/
-
-/**
- * We use an Error-like object for backward compatibility as people may call
- * PropTypes directly and inspect their output. However we don't use real
- * Errors anymore. We don't inspect their stack anyway, and creating them
- * is prohibitively expensive if they are created too often, such as what
- * happens in oneOfType() for any type before the one that matched.
- */
-function PropTypeError(message) {
- this.message = message;
- this.stack = '';
-}
-// Make `instanceof Error` still work for returned errors.
-PropTypeError.prototype = Error.prototype;
-
-function createChainableTypeChecker(validate) {
- function checkType(isRequired, props, propName, componentName, location, propFullName) {
- componentName = componentName || ANONYMOUS;
- propFullName = propFullName || propName;
- if (props[propName] == null) {
- var locationName = ReactPropTypeLocationNames[location];
- if (isRequired) {
- if (props[propName] === null) {
- return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
- }
- return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
- }
- return null;
- } else {
- return validate(props, propName, componentName, location, propFullName);
- }
- }
-
- var chainedCheckType = checkType.bind(null, false);
- chainedCheckType.isRequired = checkType.bind(null, true);
-
- return chainedCheckType;
-}
-
-function createPrimitiveTypeChecker(expectedType) {
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- var propType = getPropType(propValue);
- if (propType !== expectedType) {
- var locationName = ReactPropTypeLocationNames[location];
- // `propValue` being instance of, say, date/regexp, pass the 'object'
- // check, but we can offer a more precise error message here rather than
- // 'of type `object`'.
- var preciseType = getPreciseType(propValue);
-
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
-}
-
-function createAnyTypeChecker() {
- return createChainableTypeChecker(emptyFunction.thatReturns(null));
-}
-
-function createArrayOfTypeChecker(typeChecker) {
- function validate(props, propName, componentName, location, propFullName) {
- if (typeof typeChecker !== 'function') {
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
- }
- var propValue = props[propName];
- if (!Array.isArray(propValue)) {
- var locationName = ReactPropTypeLocationNames[location];
- var propType = getPropType(propValue);
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
- }
- for (var i = 0; i < propValue.length; i++) {
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']');
- if (error instanceof Error) {
- return error;
- }
- }
- return null;
- }
- return createChainableTypeChecker(validate);
-}
-
-function createElementTypeChecker() {
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- if (!ReactElement.isValidElement(propValue)) {
- var locationName = ReactPropTypeLocationNames[location];
- var propType = getPropType(propValue);
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
-}
-
-function createInstanceTypeChecker(expectedClass) {
- function validate(props, propName, componentName, location, propFullName) {
- if (!(props[propName] instanceof expectedClass)) {
- var locationName = ReactPropTypeLocationNames[location];
- var expectedClassName = expectedClass.name || ANONYMOUS;
- var actualClassName = getClassName(props[propName]);
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
-}
-
-function createEnumTypeChecker(expectedValues) {
- if (!Array.isArray(expectedValues)) {
- "development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
- return emptyFunction.thatReturnsNull;
- }
-
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- for (var i = 0; i < expectedValues.length; i++) {
- if (is(propValue, expectedValues[i])) {
- return null;
- }
- }
-
- var locationName = ReactPropTypeLocationNames[location];
- var valuesString = JSON.stringify(expectedValues);
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
- }
- return createChainableTypeChecker(validate);
-}
-
-function createObjectOfTypeChecker(typeChecker) {
- function validate(props, propName, componentName, location, propFullName) {
- if (typeof typeChecker !== 'function') {
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
- }
- var propValue = props[propName];
- var propType = getPropType(propValue);
- if (propType !== 'object') {
- var locationName = ReactPropTypeLocationNames[location];
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
- }
- for (var key in propValue) {
- if (propValue.hasOwnProperty(key)) {
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key);
- if (error instanceof Error) {
- return error;
- }
- }
- }
- return null;
- }
- return createChainableTypeChecker(validate);
-}
-
-function createUnionTypeChecker(arrayOfTypeCheckers) {
- if (!Array.isArray(arrayOfTypeCheckers)) {
- "development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
- return emptyFunction.thatReturnsNull;
- }
-
- function validate(props, propName, componentName, location, propFullName) {
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
- var checker = arrayOfTypeCheckers[i];
- if (checker(props, propName, componentName, location, propFullName) == null) {
- return null;
- }
- }
-
- var locationName = ReactPropTypeLocationNames[location];
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
- }
- return createChainableTypeChecker(validate);
-}
-
-function createNodeChecker() {
- function validate(props, propName, componentName, location, propFullName) {
- if (!isNode(props[propName])) {
- var locationName = ReactPropTypeLocationNames[location];
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
- }
- return null;
- }
- return createChainableTypeChecker(validate);
-}
-
-function createShapeTypeChecker(shapeTypes) {
- function validate(props, propName, componentName, location, propFullName) {
- var propValue = props[propName];
- var propType = getPropType(propValue);
- if (propType !== 'object') {
- var locationName = ReactPropTypeLocationNames[location];
- return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
- }
- for (var key in shapeTypes) {
- var checker = shapeTypes[key];
- if (!checker) {
- continue;
- }
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key);
- if (error) {
- return error;
- }
- }
- return null;
- }
- return createChainableTypeChecker(validate);
-}
-
-function isNode(propValue) {
- switch (typeof propValue) {
- case 'number':
- case 'string':
- case 'undefined':
- return true;
- case 'boolean':
- return !propValue;
- case 'object':
- if (Array.isArray(propValue)) {
- return propValue.every(isNode);
- }
- if (propValue === null || ReactElement.isValidElement(propValue)) {
- return true;
- }
-
- var iteratorFn = getIteratorFn(propValue);
- if (iteratorFn) {
- var iterator = iteratorFn.call(propValue);
- var step;
- if (iteratorFn !== propValue.entries) {
- while (!(step = iterator.next()).done) {
- if (!isNode(step.value)) {
- return false;
- }
- }
- } else {
- // Iterator will provide entry [k,v] tuples rather than values.
- while (!(step = iterator.next()).done) {
- var entry = step.value;
- if (entry) {
- if (!isNode(entry[1])) {
- return false;
- }
- }
- }
- }
- } else {
- return false;
- }
-
- return true;
- default:
- return false;
- }
-}
-
-function isSymbol(propType, propValue) {
- // Native Symbol.
- if (propType === 'symbol') {
- return true;
- }
-
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
- if (propValue['@@toStringTag'] === 'Symbol') {
- return true;
- }
-
- // Fallback for non-spec compliant Symbols which are polyfilled.
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
- return true;
- }
-
- return false;
-}
-
-// Equivalent of `typeof` but with special handling for array and regexp.
-function getPropType(propValue) {
- var propType = typeof propValue;
- if (Array.isArray(propValue)) {
- return 'array';
- }
- if (propValue instanceof RegExp) {
- // Old webkits (at least until Android 4.0) return 'function' rather than
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
- // passes PropTypes.object.
- return 'object';
- }
- if (isSymbol(propType, propValue)) {
- return 'symbol';
- }
- return propType;
-}
-
-// This handles more types than `getPropType`. Only used for error messages.
-// See `createPrimitiveTypeChecker`.
-function getPreciseType(propValue) {
- var propType = getPropType(propValue);
- if (propType === 'object') {
- if (propValue instanceof Date) {
- return 'date';
- } else if (propValue instanceof RegExp) {
- return 'regexp';
- }
- }
- return propType;
-}
-
-// Returns class name of the object, if any.
-function getClassName(propValue) {
- if (!propValue.constructor || !propValue.constructor.name) {
- return ANONYMOUS;
- }
- return propValue.constructor.name;
-}
-
-module.exports = ReactPropTypes;
-},{"10":10,"14":14,"22":22,"24":24,"26":26,"28":28,"29":29}],16:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(30);
-
-var ReactComponent = _dereq_(6);
-var ReactNoopUpdateQueue = _dereq_(13);
-
-var emptyObject = _dereq_(27);
-
-/**
- * Base class helpers for the updating state of a component.
- */
-function ReactPureComponent(props, context, updater) {
- // Duplicated from ReactComponent.
- this.props = props;
- this.context = context;
- this.refs = emptyObject;
- // We initialize the default updater but the real one gets injected by the
- // renderer.
- this.updater = updater || ReactNoopUpdateQueue;
-}
-
-function ComponentDummy() {}
-ComponentDummy.prototype = ReactComponent.prototype;
-ReactPureComponent.prototype = new ComponentDummy();
-ReactPureComponent.prototype.constructor = ReactPureComponent;
-// Avoid an extra prototype jump for these methods.
-_assign(ReactPureComponent.prototype, ReactComponent.prototype);
-ReactPureComponent.prototype.isPureReactComponent = true;
-
-module.exports = ReactPureComponent;
-},{"13":13,"27":27,"30":30,"6":6}],17:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _assign = _dereq_(30);
-
-var React = _dereq_(3);
-
-// `version` will be added here by the React module.
-var ReactUMDEntry = _assign({
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
- ReactCurrentOwner: _dereq_(8)
- }
-}, React);
-
-if ("development" !== 'production') {
- _assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
- // ReactComponentTreeHook should not be included in production.
- ReactComponentTreeHook: _dereq_(7)
- });
-}
-
-module.exports = ReactUMDEntry;
-},{"3":3,"30":30,"7":7,"8":8}],18:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-module.exports = '16.0.0-alpha';
-},{}],19:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-var canDefineProperty = false;
-if ("development" !== 'production') {
- try {
- // $FlowFixMe https://github.com/facebook/flow/issues/285
- Object.defineProperty({}, 'x', { get: function () {} });
- canDefineProperty = true;
- } catch (x) {
- // IE will fail on defineProperty
- }
-}
-
-module.exports = canDefineProperty;
-},{}],20:[function(_dereq_,module,exports){
-(function (process){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(24);
-
-var ReactPropTypeLocationNames = _dereq_(14);
-
-var invariant = _dereq_(28);
-var warning = _dereq_(29);
-
-var ReactComponentTreeHook;
-
-if (typeof process !== 'undefined' && process.env && "development" === 'test') {
- // Temporary hack.
- // Inline requires don't work well with Jest:
- // https://github.com/facebook/react/issues/7240
- // Remove the inline requires when we don't need them anymore:
- // https://github.com/facebook/react/pull/7178
- ReactComponentTreeHook = _dereq_(7);
-}
-
-var loggedTypeFailures = {};
-
-/**
- * Assert that the values match with the type specs.
- * Error messages are memorized and will only be shown once.
- *
- * @param {object} typeSpecs Map of name to a ReactPropType
- * @param {object} values Runtime values that need to be type-checked
- * @param {string} location e.g. "prop", "context", "child context"
- * @param {string} componentName Name of the component for error messages.
- * @param {?object} element The React element that is being type-checked
- * @param {?number} debugID The React component instance that is being type-checked
- * @private
- */
-function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) {
- for (var typeSpecName in typeSpecs) {
- if (typeSpecs.hasOwnProperty(typeSpecName)) {
- var error;
- // Prop type validation may throw. In case they do, we don't want to
- // fail the render phase where it didn't fail before. So we log it.
- // After these have been cleaned up, we'll let them throw.
- try {
- // This is intentionally an invariant that gets caught. It's the same
- // behavior as without this statement except with a better message.
- !(typeof typeSpecs[typeSpecName] === 'function') ? "development" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0;
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location);
- } catch (ex) {
- error = ex;
- }
- "development" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0;
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
- // Only monitor this failure once because there tends to be a lot of the
- // same error.
- loggedTypeFailures[error.message] = true;
-
- var componentStackInfo = '';
-
- if ("development" !== 'production') {
- if (!ReactComponentTreeHook) {
- ReactComponentTreeHook = _dereq_(7);
- }
- if (debugID !== null) {
- componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
- } else if (element !== null) {
- componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
- }
- }
-
- "development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
- }
- }
- }
-}
-
-module.exports = checkReactTypeSpec;
-}).call(this,undefined)
-},{"14":14,"24":24,"28":28,"29":29,"7":7}],21:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-function getComponentName(instanceOrFiber) {
- if ("development" !== 'production') {
- if (typeof instanceOrFiber.getName === 'function') {
- // Stack reconciler
- var instance = instanceOrFiber;
- return instance.getName() || 'Component';
- }
- if (typeof instanceOrFiber.tag === 'number') {
- // Fiber reconciler
- var fiber = instanceOrFiber;
- var type = fiber.type;
-
- if (typeof type === 'string') {
- return type;
- }
- if (typeof type === 'function') {
- return type.displayName || type.name || null;
- }
- }
- }
- return null;
-}
-
-module.exports = getComponentName;
-},{}],22:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-'use strict';
-
-/* global Symbol */
-
-var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
-var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
-
-/**
- * Returns the iterator method function contained on the iterable object.
- *
- * Be sure to invoke the function with the iterable as context:
- *
- * var iteratorFn = getIteratorFn(myIterable);
- * if (iteratorFn) {
- * var iterator = iteratorFn.call(myIterable);
- * ...
- * }
- *
- * @param {?object} maybeIterable
- * @return {?function}
- */
-function getIteratorFn(maybeIterable) {
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
- if (typeof iteratorFn === 'function') {
- return iteratorFn;
- }
-}
-
-module.exports = getIteratorFn;
-},{}],23:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-'use strict';
-
-var _prodInvariant = _dereq_(24);
-
-var ReactElement = _dereq_(10);
-
-var invariant = _dereq_(28);
-
-/**
- * Returns the first child in a collection of children and verifies that there
- * is only one child in the collection.
- *
- * See https://facebook.github.io/react/docs/react-api.html#react.children.only
- *
- * The current implementation of this function assumes that a single child gets
- * passed without a wrapper, but the purpose of this helper function is to
- * abstract away the particular structure of children.
- *
- * @param {?object} children Child collection structure.
- * @return {ReactElement} The first and only `ReactElement` contained in the
- * structure.
- */
-function onlyChild(children) {
- !ReactElement.isValidElement(children) ? "development" !== 'production' ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;
- return children;
-}
-
-module.exports = onlyChild;
-},{"10":10,"24":24,"28":28}],24:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-'use strict';
-
-/**
- * WARNING: DO NOT manually require this module.
- * This is a replacement for `invariant(...)` used by the error code system
- * and will _only_ be required by the corresponding babel pass.
- * It always throws.
- */
-
-function reactProdInvariant(code) {
- var argCount = arguments.length - 1;
-
- var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
-
- for (var argIdx = 0; argIdx < argCount; argIdx++) {
- message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
- }
-
- message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
-
- var error = new Error(message);
- error.name = 'Invariant Violation';
- error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
-
- throw error;
-}
-
-module.exports = reactProdInvariant;
-},{}],25:[function(_dereq_,module,exports){
-/**
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var _prodInvariant = _dereq_(24);
-
-var ReactCurrentOwner = _dereq_(8);
-var REACT_ELEMENT_TYPE = _dereq_(11);
-
-var getIteratorFn = _dereq_(22);
-var invariant = _dereq_(28);
-var KeyEscapeUtils = _dereq_(1);
-var warning = _dereq_(29);
-
-var SEPARATOR = '.';
-var SUBSEPARATOR = ':';
-
-/**
- * This is inlined from ReactElement since this file is shared between
- * isomorphic and renderers. We could extract this to a
- *
- */
-
-/**
- * TODO: Test that a single child and an array with one item have the same key
- * pattern.
- */
-
-var didWarnAboutMaps = false;
-
-/**
- * Generate a key string that identifies a component within a set.
- *
- * @param {*} component A component that could contain a manual key.
- * @param {number} index Index that is used if a manual key is not provided.
- * @return {string}
- */
-function getComponentKey(component, index) {
- // Do some typechecking here since we call this blindly. We want to ensure
- // that we don't block potential future ES APIs.
- if (component && typeof component === 'object' && component.key != null) {
- // Explicit key
- return KeyEscapeUtils.escape(component.key);
- }
- // Implicit key determined by the index in the set
- return index.toString(36);
-}
-
-/**
- * @param {?*} children Children tree container.
- * @param {!string} nameSoFar Name of the key path so far.
- * @param {!function} callback Callback to invoke with each child found.
- * @param {?*} traverseContext Used to pass information throughout the traversal
- * process.
- * @return {!number} The number of children in this subtree.
- */
-function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
- var type = typeof children;
-
- if (type === 'undefined' || type === 'boolean') {
- // All of the above are perceived as null.
- children = null;
- }
-
- if (children === null || type === 'string' || type === 'number' ||
- // The following is inlined from ReactElement. This means we can optimize
- // some checks. React Fiber also inlines this logic for similar purposes.
- type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) {
- callback(traverseContext, children,
- // If it's the only child, treat the name as if it was wrapped in an array
- // so that it's consistent if the number of children grows.
- nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
- return 1;
- }
-
- var child;
- var nextName;
- var subtreeCount = 0; // Count of children found in the current subtree.
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
-
- if (Array.isArray(children)) {
- for (var i = 0; i < children.length; i++) {
- child = children[i];
- nextName = nextNamePrefix + getComponentKey(child, i);
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
- }
- } else {
- var iteratorFn = getIteratorFn(children);
- if (iteratorFn) {
- var iterator = iteratorFn.call(children);
- var step;
- if (iteratorFn !== children.entries) {
- var ii = 0;
- while (!(step = iterator.next()).done) {
- child = step.value;
- nextName = nextNamePrefix + getComponentKey(child, ii++);
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
- }
- } else {
- if ("development" !== 'production') {
- var mapsAsChildrenAddendum = '';
- if (ReactCurrentOwner.current) {
- var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
- if (mapsAsChildrenOwnerName) {
- mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
- }
- }
- "development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
- didWarnAboutMaps = true;
- }
- // Iterator will provide entry [k,v] tuples rather than values.
- while (!(step = iterator.next()).done) {
- var entry = step.value;
- if (entry) {
- child = entry[1];
- nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0);
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
- }
- }
- }
- } else if (type === 'object') {
- var addendum = '';
- if ("development" !== 'production') {
- addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
- if (children._isReactElement) {
- addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
- }
- if (ReactCurrentOwner.current) {
- var name = ReactCurrentOwner.current.getName();
- if (name) {
- addendum += ' Check the render method of `' + name + '`.';
- }
- }
- }
- var childrenString = String(children);
- !false ? "development" !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
- }
- }
-
- return subtreeCount;
-}
-
-/**
- * Traverses children that are typically specified as `props.children`, but
- * might also be specified through attributes:
- *
- * - `traverseAllChildren(this.props.children, ...)`
- * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
- *
- * The `traverseContext` is an optional argument that is passed through the
- * entire traversal. It can be used to store accumulations or anything else that
- * the callback might find relevant.
- *
- * @param {?*} children Children tree object.
- * @param {!function} callback To invoke upon traversing each child.
- * @param {?*} traverseContext Context for traversal.
- * @return {!number} The number of children in this subtree.
- */
-function traverseAllChildren(children, callback, traverseContext) {
- if (children == null) {
- return 0;
- }
-
- return traverseAllChildrenImpl(children, '', callback, traverseContext);
-}
-
-module.exports = traverseAllChildren;
-},{"1":1,"11":11,"22":22,"24":24,"28":28,"29":29,"8":8}],26:[function(_dereq_,module,exports){
-"use strict";
-
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- *
- */
-
-function makeEmptyFunction(arg) {
- return function () {
- return arg;
- };
-}
-
-/**
- * This function accepts and discards inputs; it has no side effects. This is
- * primarily useful idiomatically for overridable function endpoints which
- * always need to be callable, since JS lacks a null-call idiom ala Cocoa.
- */
-var emptyFunction = function emptyFunction() {};
-
-emptyFunction.thatReturns = makeEmptyFunction;
-emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
-emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
-emptyFunction.thatReturnsNull = makeEmptyFunction(null);
-emptyFunction.thatReturnsThis = function () {
- return this;
-};
-emptyFunction.thatReturnsArgument = function (arg) {
- return arg;
-};
-
-module.exports = emptyFunction;
-},{}],27:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var emptyObject = {};
-
-if ("development" !== 'production') {
- Object.freeze(emptyObject);
-}
-
-module.exports = emptyObject;
-},{}],28:[function(_dereq_,module,exports){
-/**
- * Copyright (c) 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-/**
- * Use invariant() to assert state which your program assumes to be true.
- *
- * Provide sprintf-style format (only %s is supported) and arguments
- * to provide information about what broke and what you were
- * expecting.
- *
- * The invariant message will be stripped in production, but the invariant
- * will remain to ensure logic does not differ in production.
- */
-
-function invariant(condition, format, a, b, c, d, e, f) {
- if ("development" !== 'production') {
- if (format === undefined) {
- throw new Error('invariant requires an error message argument');
- }
- }
-
- if (!condition) {
- var error;
- if (format === undefined) {
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
- } else {
- var args = [a, b, c, d, e, f];
- var argIndex = 0;
- error = new Error(format.replace(/%s/g, function () {
- return args[argIndex++];
- }));
- error.name = 'Invariant Violation';
- }
-
- error.framesToPop = 1; // we don't care about invariant's own frame
- throw error;
- }
-}
-
-module.exports = invariant;
-},{}],29:[function(_dereq_,module,exports){
-/**
- * Copyright 2014-2015, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-'use strict';
-
-var emptyFunction = _dereq_(26);
-
-/**
- * Similar to invariant but only logs a warning if the condition is not met.
- * This can be used to log issues in development environments in critical
- * paths. Removing the logging code for production environments will keep the
- * same logic and follow the same code paths.
- */
-
-var warning = emptyFunction;
-
-if ("development" !== 'production') {
- (function () {
- var printWarning = function printWarning(format) {
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- var argIndex = 0;
- var message = 'Warning: ' + format.replace(/%s/g, function () {
- return args[argIndex++];
- });
- if (typeof console !== 'undefined') {
- console.error(message);
- }
- try {
- // --- Welcome to debugging React ---
- // This error was thrown as a convenience so that you can use this stack
- // to find the callsite that caused this warning to fire.
- throw new Error(message);
- } catch (x) {}
- };
-
- warning = function warning(condition, format) {
- if (format === undefined) {
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
- }
-
- if (format.indexOf('Failed Composite propType: ') === 0) {
- return; // Ignore CompositeComponent proptype check.
- }
-
- if (!condition) {
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
- args[_key2 - 2] = arguments[_key2];
- }
-
- printWarning.apply(undefined, [format].concat(args));
- }
- };
- })();
-}
-
-module.exports = warning;
-},{"26":26}],30:[function(_dereq_,module,exports){
-'use strict';
-/* eslint-disable no-unused-vars */
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-var propIsEnumerable = Object.prototype.propertyIsEnumerable;
-
-function toObject(val) {
- if (val === null || val === undefined) {
- throw new TypeError('Object.assign cannot be called with null or undefined');
- }
-
- return Object(val);
-}
-
-function shouldUseNative() {
- try {
- if (!Object.assign) {
- return false;
- }
-
- // Detect buggy property enumeration order in older V8 versions.
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
- var test1 = new String('abc'); // eslint-disable-line
- test1[5] = 'de';
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test2 = {};
- for (var i = 0; i < 10; i++) {
- test2['_' + String.fromCharCode(i)] = i;
- }
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
- return test2[n];
- });
- if (order2.join('') !== '0123456789') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test3 = {};
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
- test3[letter] = letter;
- });
- if (Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst') {
- return false;
- }
-
- return true;
- } catch (e) {
- // We don't expect any of the above to throw, but better to be safe.
- return false;
- }
-}
-
-module.exports = shouldUseNative() ? Object.assign : function (target, source) {
- var from;
- var to = toObject(target);
- var symbols;
-
- for (var s = 1; s < arguments.length; s++) {
- from = Object(arguments[s]);
-
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key];
- }
- }
-
- if (Object.getOwnPropertySymbols) {
- symbols = Object.getOwnPropertySymbols(from);
- for (var i = 0; i < symbols.length; i++) {
- if (propIsEnumerable.call(from, symbols[i])) {
- to[symbols[i]] = from[symbols[i]];
- }
- }
- }
- }
-
- return to;
-};
-
-},{}]},{},[17])(17)
-}); \ No newline at end of file
diff --git a/lib/vendor/react.js b/lib/vendor/react.js
deleted file mode 120000
index 606718197..000000000
--- a/lib/vendor/react.js
+++ /dev/null
@@ -1 +0,0 @@
-react.min.js \ No newline at end of file
diff --git a/lib/vendor/react.min.js b/lib/vendor/react.min.js
deleted file mode 100644
index 842954fe7..000000000
--- a/lib/vendor/react.min.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * React v16.0.0-alpha
- *
- * Copyright 2013-present, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.React=t()}}(function(){return function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";function r(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+t).replace(e,function(t){return n[t]});return"$"+r}function o(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+r).replace(e,function(t){return n[t]})}var i={escape:r,unescape:o};e.exports=i},{}],2:[function(t,e,n){"use strict";var r=t(20),o=(t(24),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},u=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},s=function(t,e,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,t,e,n,r,o),a}return new i(t,e,n,r,o)},c=function(t){var e=this;t instanceof e?void 0:r("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},l=10,p=o,f=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||p,n.poolSize||(n.poolSize=l),n.release=c,n},d={addPoolingTo:f,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u,fiveArgumentPooler:s};e.exports=d},{20:20,24:24}],3:[function(t,e,n){"use strict";var r=t(26),o=t(4),i=t(6),a=t(14),u=t(5),s=t(8),c=t(9),l=t(13),p=t(16),f=t(19),d=(t(25),c.createElement),h=c.createFactory,y=c.cloneElement,v=r,m={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:y,isValidElement:c.isValidElement,PropTypes:l,createClass:u.createClass,createFactory:h,createMixin:function(t){return t},DOM:s,version:p,__spread:v};e.exports=m},{13:13,14:14,16:16,19:19,25:25,26:26,4:4,5:5,6:6,8:8,9:9}],4:[function(t,e,n){"use strict";function r(t){return(""+t).replace(E,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var r=t.func,o=t.context;r.call(o,e,t.count++)}function a(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);m(t,i,r),o.release(r)}function u(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function s(t,e,n){var o=t.result,i=t.keyPrefix,a=t.func,u=t.context,s=a.call(u,e,t.count++);Array.isArray(s)?c(s,o,n,v.thatReturnsArgument):null!=s&&(y.isValidElement(s)&&(s=y.cloneAndReplaceKey(s,i+(!s.key||e&&e.key===s.key?"":r(s.key)+"/")+n)),o.push(s))}function c(t,e,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=u.getPooled(e,a,o,i);m(t,s,c),u.release(c)}function l(t,e,n){if(null==t)return t;var r=[];return c(t,r,null,e,n),r}function p(t,e,n){return null}function f(t,e){return m(t,p,null)}function d(t){var e=[];return c(t,e,null,v.thatReturnsArgument),e}var h=t(2),y=t(9),v=t(22),m=t(21),g=h.twoArgumentPooler,b=h.fourArgumentPooler,E=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,g),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(u,b);var _={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};e.exports=_},{2:2,21:21,22:22,9:9}],5:[function(t,e,n){"use strict";function r(t){return t}function o(t,e){var n=b.hasOwnProperty(e)?b[e]:null;_.hasOwnProperty(e)&&("OVERRIDE_BASE"!==n?f("73",e):void 0),t&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?f("74",e):void 0)}function i(t,e){if(e){"function"==typeof e?f("75"):void 0,y.isValidElement(e)?f("76"):void 0;var n=t.prototype,r=n.__reactAutoBindPairs;e.hasOwnProperty(g)&&E.mixins(t,e.mixins);for(var i in e)if(e.hasOwnProperty(i)&&i!==g){var a=e[i],u=n.hasOwnProperty(i);if(o(u,i),E.hasOwnProperty(i))E[i](t,a);else{var l=b.hasOwnProperty(i),p="function"==typeof a,d=p&&!l&&!u&&e.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(u){var h=b[i];!l||"DEFINE_MANY_MERGED"!==h&&"DEFINE_MANY"!==h?f("77",h,i):void 0,"DEFINE_MANY_MERGED"===h?n[i]=s(n[i],a):"DEFINE_MANY"===h&&(n[i]=c(n[i],a))}else n[i]=a}}}}function a(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in E;o?f("78",n):void 0;var i=n in t;i?f("79",n):void 0,t[n]=r}}}function u(t,e){t&&e&&"object"==typeof t&&"object"==typeof e?void 0:f("80");for(var n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?f("81",n):void 0,t[n]=e[n]);return t}function s(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return u(o,n),u(o,r),o}}function c(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function l(t,e){var n=e.bind(t);return n}function p(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=l(t,o)}}var f=t(20),d=t(26),h=t(6),y=t(9),v=(t(12),t(11)),m=t(23),g=(t(24),t(25),"mixins"),b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},E={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)i(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=d({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=d({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=s(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=d({},t.propTypes,e)},statics:function(t,e){a(t,e)},autobind:function(){}},_={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},P=function(){};d(P.prototype,h.prototype,_);var x={createClass:function(t){var e=r(function(t,n,r){this.__reactAutoBindPairs.length&&p(this),this.props=t,this.context=n,this.refs=m,this.updater=r||v,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?f("82",e.displayName||"ReactCompositeComponent"):void 0,this.state=o});e.prototype=new P,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],i(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.prototype.render?void 0:f("83");for(var n in b)e.prototype[n]||(e.prototype[n]=null);return e}};e.exports=x},{11:11,12:12,20:20,23:23,24:24,25:25,26:26,6:6,9:9}],6:[function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}var o=t(20),i=t(11),a=(t(17),t(23));t(24),t(25);r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t?o("85"):void 0,this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};e.exports=r},{11:11,17:17,20:20,23:23,24:24,25:25}],7:[function(t,e,n){"use strict";var r={current:null};e.exports=r},{}],8:[function(t,e,n){"use strict";var r=t(9),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};e.exports=i},{9:9}],9:[function(t,e,n){"use strict";function r(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var i=t(26),a=t(7),u=(t(25),t(17),Object.prototype.hasOwnProperty),s=t(10),c={key:!0,ref:!0,__self:!0,__source:!0},l=function(t,e,n,r,o,i,a){var u={$$typeof:s,type:t,key:e,ref:n,props:a,_owner:i};return u};l.createElement=function(t,e,n){var i,s={},p=null,f=null,d=null,h=null;if(null!=e){r(e)&&(f=e.ref),o(e)&&(p=""+e.key),d=void 0===e.__self?null:e.__self,h=void 0===e.__source?null:e.__source;for(i in e)u.call(e,i)&&!c.hasOwnProperty(i)&&(s[i]=e[i])}var y=arguments.length-2;if(1===y)s.children=n;else if(y>1){for(var v=Array(y),m=0;m<y;m++)v[m]=arguments[m+2];s.children=v}if(t&&t.defaultProps){var g=t.defaultProps;for(i in g)void 0===s[i]&&(s[i]=g[i])}return l(t,p,f,d,h,a.current,s)},l.createFactory=function(t){var e=l.createElement.bind(null,t);return e.type=t,e},l.cloneAndReplaceKey=function(t,e){var n=l(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},l.cloneElement=function(t,e,n){var s,p=i({},t.props),f=t.key,d=t.ref,h=t._self,y=t._source,v=t._owner;if(null!=e){r(e)&&(d=e.ref,v=a.current),o(e)&&(f=""+e.key);var m;t.type&&t.type.defaultProps&&(m=t.type.defaultProps);for(s in e)u.call(e,s)&&!c.hasOwnProperty(s)&&(void 0===e[s]&&void 0!==m?p[s]=m[s]:p[s]=e[s])}var g=arguments.length-2;if(1===g)p.children=n;else if(g>1){for(var b=Array(g),E=0;E<g;E++)b[E]=arguments[E+2];p.children=b}return l(t.type,f,d,h,y,v,p)},l.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===s},e.exports=l},{10:10,17:17,25:25,26:26,7:7}],10:[function(t,e,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},{}],11:[function(t,e,n){"use strict";function r(t,e){}var o=(t(25),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t,e){r(t,"replaceState")},enqueueSetState:function(t,e){r(t,"setState")}});e.exports=o},{25:25}],12:[function(t,e,n){"use strict";var r={};e.exports=r},{}],13:[function(t,e,n){"use strict";function r(t){this.message=t,this.stack=""}var o,i=t(20),a=(t(9),t(12),t(22),t(18),t(24),t(25),function(){i("145")});a.isRequired=a;var u=function(){return a},o={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:u,element:a,instanceOf:u,node:a,objectOf:u,oneOf:u,oneOfType:u,shape:u};r.prototype=Error.prototype,e.exports=o},{12:12,18:18,20:20,22:22,24:24,25:25,9:9}],14:[function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=s,this.updater=n||u}function o(){}var i=t(26),a=t(6),u=t(11),s=t(23);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,e.exports=r},{11:11,23:23,26:26,6:6}],15:[function(t,e,n){"use strict";var r=t(26),o=t(3),i=r({__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:t(7)}},o);e.exports=i},{26:26,3:3,7:7}],16:[function(t,e,n){"use strict";e.exports="16.0.0-alpha"},{}],17:[function(t,e,n){"use strict";var r=!1;e.exports=r},{}],18:[function(t,e,n){"use strict";function r(t){var e=t&&(o&&t[o]||t[i]);if("function"==typeof e)return e}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";e.exports=r},{}],19:[function(t,e,n){"use strict";function r(t){return i.isValidElement(t)?void 0:o("143"),t}var o=t(20),i=t(9);t(24);e.exports=r},{20:20,24:24,9:9}],20:[function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=r},{}],21:[function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function o(t,e,n,i){var f=typeof t;if("undefined"!==f&&"boolean"!==f||(t=null),null===t||"string"===f||"number"===f||"object"===f&&t.$$typeof===u)return n(i,t,""===e?l+r(t,0):e),1;var d,h,y=0,v=""===e?l:e+p;if(Array.isArray(t))for(var m=0;m<t.length;m++)d=t[m],h=v+r(d,m),y+=o(d,h,n,i);else{var g=s(t);if(g){var b,E=g.call(t);if(g!==t.entries)for(var _=0;!(b=E.next()).done;)d=b.value,h=v+r(d,_++),y+=o(d,h,n,i);else for(;!(b=E.next()).done;){var P=b.value;P&&(d=P[1],h=v+c.escape(P[0])+p+r(d,0),y+=o(d,h,n,i))}}else if("object"===f){var x="",N=String(t);a("31","[object Object]"===N?"object with keys {"+Object.keys(t).join(", ")+"}":N,x)}}return y}function i(t,e,n){return null==t?0:o(t,"",e,n)}var a=t(20),u=(t(7),t(10)),s=t(18),c=(t(24),t(1)),l=(t(25),"."),p=":";e.exports=i},{1:1,10:10,18:18,20:20,24:24,25:25,7:7}],22:[function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},e.exports=o},{}],23:[function(t,e,n){"use strict";var r={};e.exports=r},{}],24:[function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;s=new Error(e.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}e.exports=r},{}],25:[function(t,e,n){"use strict";var r=t(22),o=r;e.exports=o},{22:22}],26:[function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(t,e){for(var n,o,u=r(t),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var c in n)i.call(n,c)&&(u[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var l=0;l<o.length;l++)a.call(n,o[l])&&(u[o[l]]=n[o[l]])}}return u}},{}]},{},[15])(15)}); \ No newline at end of file
diff --git a/lib/vendor/system-csp-production.src.js b/lib/vendor/system-csp-production.src.js
deleted file mode 100644
index 9c5e56532..000000000
--- a/lib/vendor/system-csp-production.src.js
+++ /dev/null
@@ -1,4536 +0,0 @@
-/*
- * SystemJS v0.19.39
- */
-(function() {
-function bootstrap() {// from https://gist.github.com/Yaffle/1088850
-(function(global) {
-function URLPolyfill(url, baseURL) {
- if (typeof url != 'string')
- throw new TypeError('URL must be a string');
- var m = String(url).replace(/^\s+|\s+$/g, "").match(/^([^:\/?#]+:)?(?:\/\/(?:([^:@\/?#]*)(?::([^:@\/?#]*))?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);
- if (!m)
- throw new RangeError('Invalid URL format');
- var protocol = m[1] || "";
- var username = m[2] || "";
- var password = m[3] || "";
- var host = m[4] || "";
- var hostname = m[5] || "";
- var port = m[6] || "";
- var pathname = m[7] || "";
- var search = m[8] || "";
- var hash = m[9] || "";
- if (baseURL !== undefined) {
- var base = baseURL instanceof URLPolyfill ? baseURL : new URLPolyfill(baseURL);
- var flag = !protocol && !host && !username;
- if (flag && !pathname && !search)
- search = base.search;
- if (flag && pathname[0] !== "/")
- pathname = (pathname ? (((base.host || base.username) && !base.pathname ? "/" : "") + base.pathname.slice(0, base.pathname.lastIndexOf("/") + 1) + pathname) : base.pathname);
- // dot segments removal
- var output = [];
- pathname.replace(/^(\.\.?(\/|$))+/, "")
- .replace(/\/(\.(\/|$))+/g, "/")
- .replace(/\/\.\.$/, "/../")
- .replace(/\/?[^\/]*/g, function (p) {
- if (p === "/..")
- output.pop();
- else
- output.push(p);
- });
- pathname = output.join("").replace(/^\//, pathname[0] === "/" ? "/" : "");
- if (flag) {
- port = base.port;
- hostname = base.hostname;
- host = base.host;
- password = base.password;
- username = base.username;
- }
- if (!protocol)
- protocol = base.protocol;
- }
-
- // convert URLs to use / always
- pathname = pathname.replace(/\\/g, '/');
-
- this.origin = host ? protocol + (protocol !== "" || host !== "" ? "//" : "") + host : "";
- this.href = protocol + (protocol && host || protocol == "file:" ? "//" : "") + (username !== "" ? username + (password !== "" ? ":" + password : "") + "@" : "") + host + pathname + search + hash;
- this.protocol = protocol;
- this.username = username;
- this.password = password;
- this.host = host;
- this.hostname = hostname;
- this.port = port;
- this.pathname = pathname;
- this.search = search;
- this.hash = hash;
-}
-global.URLPolyfill = URLPolyfill;
-})(typeof self != 'undefined' ? self : global);(function(__global) {
-
- var isWorker = typeof window == 'undefined' && typeof self != 'undefined' && typeof importScripts != 'undefined';
- var isBrowser = typeof window != 'undefined' && typeof document != 'undefined';
- var isWindows = typeof process != 'undefined' && typeof process.platform != 'undefined' && !!process.platform.match(/^win/);
-
- if (!__global.console)
- __global.console = { assert: function() {} };
-
- // IE8 support
- var indexOf = Array.prototype.indexOf || function(item) {
- for (var i = 0, thisLen = this.length; i < thisLen; i++) {
- if (this[i] === item) {
- return i;
- }
- }
- return -1;
- };
-
- var defineProperty;
- (function () {
- try {
- if (!!Object.defineProperty({}, 'a', {}))
- defineProperty = Object.defineProperty;
- }
- catch (e) {
- defineProperty = function(obj, prop, opt) {
- try {
- obj[prop] = opt.value || opt.get.call(obj);
- }
- catch(e) {}
- }
- }
- })();
-
- var errArgs = new Error(0, '_').fileName == '_';
-
- function addToError(err, msg) {
- // parse the stack removing loader code lines for simplification
- if (!err.originalErr) {
- var stack = ((err.message || err) + (err.stack ? '\n' + err.stack : '')).toString().split('\n');
- var newStack = [];
- for (var i = 0; i < stack.length; i++) {
- if (typeof $__curScript == 'undefined' || stack[i].indexOf($__curScript.src) == -1)
- newStack.push(stack[i]);
- }
- }
-
- var newMsg = '(SystemJS) ' + (newStack ? newStack.join('\n\t') : err.message.substr(11)) + '\n\t' + msg;
-
- // Convert file:/// URLs to paths in Node
- if (!isBrowser)
- newMsg = newMsg.replace(isWindows ? /file:\/\/\//g : /file:\/\//g, '');
-
- var newErr = errArgs ? new Error(newMsg, err.fileName, err.lineNumber) : new Error(newMsg);
-
- newErr.stack = newMsg;
-
- // track the original error
- newErr.originalErr = err.originalErr || err;
-
- return newErr;
- }
-
- function __eval(source, debugName, context) {
- try {
- new Function(source).call(context);
- }
- catch(e) {
- throw addToError(e, 'Evaluating ' + debugName);
- }
- }
-
- var baseURI;
-
- // environent baseURI detection
- if (typeof document != 'undefined' && document.getElementsByTagName) {
- baseURI = document.baseURI;
-
- if (!baseURI) {
- var bases = document.getElementsByTagName('base');
- baseURI = bases[0] && bases[0].href || window.location.href;
- }
- }
- else if (typeof location != 'undefined') {
- baseURI = __global.location.href;
- }
-
- // sanitize out the hash and querystring
- if (baseURI) {
- baseURI = baseURI.split('#')[0].split('?')[0];
- baseURI = baseURI.substr(0, baseURI.lastIndexOf('/') + 1);
- }
- else if (typeof process != 'undefined' && process.cwd) {
- baseURI = 'file://' + (isWindows ? '/' : '') + process.cwd() + '/';
- if (isWindows)
- baseURI = baseURI.replace(/\\/g, '/');
- }
- else {
- throw new TypeError('No environment baseURI');
- }
-
- try {
- var nativeURL = new __global.URL('test:///').protocol == 'test:';
- }
- catch(e) {}
-
- var URL = nativeURL ? __global.URL : __global.URLPolyfill;
-
-/*
-*********************************************************************************************
-
- Dynamic Module Loader Polyfill
-
- - Implemented exactly to the former 2014-08-24 ES6 Specification Draft Rev 27, Section 15
- http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#august_24_2014_draft_rev_27
-
- - Functions are commented with their spec numbers, with spec differences commented.
-
- - Spec bugs are commented in this code with links.
-
- - Abstract functions have been combined where possible, and their associated functions
- commented.
-
- - Realm implementation is entirely omitted.
-
-*********************************************************************************************
-*/
-
-function Module() {}
-// http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag
-defineProperty(Module.prototype, 'toString', {
- value: function() {
- return 'Module';
- }
-});
-function Loader(options) {
- this._loader = {
- loaderObj: this,
- loads: [],
- modules: {},
- importPromises: {},
- moduleRecords: {}
- };
-
- // 26.3.3.6
- defineProperty(this, 'global', {
- get: function() {
- return __global;
- }
- });
-
- // 26.3.3.13 realm not implemented
-}
-
-(function() {
-
-// Some Helpers
-
-// logs a linkset snapshot for debugging
-/* function snapshot(loader) {
- console.log('---Snapshot---');
- for (var i = 0; i < loader.loads.length; i++) {
- var load = loader.loads[i];
- var linkSetLog = ' ' + load.name + ' (' + load.status + '): ';
-
- for (var j = 0; j < load.linkSets.length; j++) {
- linkSetLog += '{' + logloads(load.linkSets[j].loads) + '} ';
- }
- console.log(linkSetLog);
- }
- console.log('');
-}
-function logloads(loads) {
- var log = '';
- for (var k = 0; k < loads.length; k++)
- log += loads[k].name + (k != loads.length - 1 ? ' ' : '');
- return log;
-} */
-
-
-/* function checkInvariants() {
- // see https://bugs.ecmascript.org/show_bug.cgi?id=2603#c1
-
- var loads = System._loader.loads;
- var linkSets = [];
-
- for (var i = 0; i < loads.length; i++) {
- var load = loads[i];
- console.assert(load.status == 'loading' || load.status == 'loaded', 'Each load is loading or loaded');
-
- for (var j = 0; j < load.linkSets.length; j++) {
- var linkSet = load.linkSets[j];
-
- for (var k = 0; k < linkSet.loads.length; k++)
- console.assert(loads.indexOf(linkSet.loads[k]) != -1, 'linkSet loads are a subset of loader loads');
-
- if (linkSets.indexOf(linkSet) == -1)
- linkSets.push(linkSet);
- }
- }
-
- for (var i = 0; i < loads.length; i++) {
- var load = loads[i];
- for (var j = 0; j < linkSets.length; j++) {
- var linkSet = linkSets[j];
-
- if (linkSet.loads.indexOf(load) != -1)
- console.assert(load.linkSets.indexOf(linkSet) != -1, 'linkSet contains load -> load contains linkSet');
-
- if (load.linkSets.indexOf(linkSet) != -1)
- console.assert(linkSet.loads.indexOf(load) != -1, 'load contains linkSet -> linkSet contains load');
- }
- }
-
- for (var i = 0; i < linkSets.length; i++) {
- var linkSet = linkSets[i];
- for (var j = 0; j < linkSet.loads.length; j++) {
- var load = linkSet.loads[j];
-
- for (var k = 0; k < load.dependencies.length; k++) {
- var depName = load.dependencies[k].value;
- var depLoad;
- for (var l = 0; l < loads.length; l++) {
- if (loads[l].name != depName)
- continue;
- depLoad = loads[l];
- break;
- }
-
- // loading records are allowed not to have their dependencies yet
- // if (load.status != 'loading')
- // console.assert(depLoad, 'depLoad found');
-
- // console.assert(linkSet.loads.indexOf(depLoad) != -1, 'linkset contains all dependencies');
- }
- }
- }
-} */
-
- // 15.2.3 - Runtime Semantics: Loader State
-
- // 15.2.3.11
- function createLoaderLoad(object) {
- return {
- // modules is an object for ES5 implementation
- modules: {},
- loads: [],
- loaderObj: object
- };
- }
-
- // 15.2.3.2 Load Records and LoadRequest Objects
-
- var anonCnt = 0;
-
- // 15.2.3.2.1
- function createLoad(name) {
- return {
- status: 'loading',
- name: name || '<Anonymous' + ++anonCnt + '>',
- linkSets: [],
- dependencies: [],
- metadata: {}
- };
- }
-
- // 15.2.3.2.2 createLoadRequestObject, absorbed into calling functions
-
- // 15.2.4
-
- // 15.2.4.1
- function loadModule(loader, name, options) {
- return new Promise(asyncStartLoadPartwayThrough({
- step: options.address ? 'fetch' : 'locate',
- loader: loader,
- moduleName: name,
- // allow metadata for import https://bugs.ecmascript.org/show_bug.cgi?id=3091
- moduleMetadata: options && options.metadata || {},
- moduleSource: options.source,
- moduleAddress: options.address
- }));
- }
-
- // 15.2.4.2
- function requestLoad(loader, request, refererName, refererAddress) {
- // 15.2.4.2.1 CallNormalize
- return new Promise(function(resolve, reject) {
- resolve(loader.loaderObj.normalize(request, refererName, refererAddress));
- })
- // 15.2.4.2.2 GetOrCreateLoad
- .then(function(name) {
- var load;
- if (loader.modules[name]) {
- load = createLoad(name);
- load.status = 'linked';
- // https://bugs.ecmascript.org/show_bug.cgi?id=2795
- load.module = loader.modules[name];
- return load;
- }
-
- for (var i = 0, l = loader.loads.length; i < l; i++) {
- load = loader.loads[i];
- if (load.name != name)
- continue;
- return load;
- }
-
- load = createLoad(name);
- loader.loads.push(load);
-
- proceedToLocate(loader, load);
-
- return load;
- });
- }
-
- // 15.2.4.3
- function proceedToLocate(loader, load) {
- proceedToFetch(loader, load,
- Promise.resolve()
- // 15.2.4.3.1 CallLocate
- .then(function() {
- return loader.loaderObj.locate({ name: load.name, metadata: load.metadata });
- })
- );
- }
-
- // 15.2.4.4
- function proceedToFetch(loader, load, p) {
- proceedToTranslate(loader, load,
- p
- // 15.2.4.4.1 CallFetch
- .then(function(address) {
- // adjusted, see https://bugs.ecmascript.org/show_bug.cgi?id=2602
- if (load.status != 'loading')
- return;
- load.address = address;
-
- return loader.loaderObj.fetch({ name: load.name, metadata: load.metadata, address: address });
- })
- );
- }
-
- // 15.2.4.5
- function proceedToTranslate(loader, load, p) {
- p
- // 15.2.4.5.1 CallTranslate
- .then(function(source) {
- if (load.status != 'loading')
- return;
-
- load.address = load.address || load.name;
-
- return Promise.resolve(loader.loaderObj.translate({ name: load.name, metadata: load.metadata, address: load.address, source: source }))
-
- // 15.2.4.5.2 CallInstantiate
- .then(function(source) {
- load.source = source;
- return loader.loaderObj.instantiate({ name: load.name, metadata: load.metadata, address: load.address, source: source });
- })
-
- // 15.2.4.5.3 InstantiateSucceeded
- .then(function(instantiateResult) {
- if (instantiateResult === undefined)
- throw new TypeError('Declarative modules unsupported in the polyfill.');
-
- if (typeof instantiateResult != 'object')
- throw new TypeError('Invalid instantiate return value');
-
- load.depsList = instantiateResult.deps || [];
- load.execute = instantiateResult.execute;
- })
- // 15.2.4.6 ProcessLoadDependencies
- .then(function() {
- load.dependencies = [];
- var depsList = load.depsList;
-
- var loadPromises = [];
- for (var i = 0, l = depsList.length; i < l; i++) (function(request, index) {
- loadPromises.push(
- requestLoad(loader, request, load.name, load.address)
-
- // 15.2.4.6.1 AddDependencyLoad (load is parentLoad)
- .then(function(depLoad) {
-
- // adjusted from spec to maintain dependency order
- // this is due to the System.register internal implementation needs
- load.dependencies[index] = {
- key: request,
- value: depLoad.name
- };
-
- if (depLoad.status != 'linked') {
- var linkSets = load.linkSets.concat([]);
- for (var i = 0, l = linkSets.length; i < l; i++)
- addLoadToLinkSet(linkSets[i], depLoad);
- }
-
- // console.log('AddDependencyLoad ' + depLoad.name + ' for ' + load.name);
- // snapshot(loader);
- })
- );
- })(depsList[i], i);
-
- return Promise.all(loadPromises);
- })
-
- // 15.2.4.6.2 LoadSucceeded
- .then(function() {
- // console.log('LoadSucceeded ' + load.name);
- // snapshot(loader);
-
- load.status = 'loaded';
-
- var linkSets = load.linkSets.concat([]);
- for (var i = 0, l = linkSets.length; i < l; i++)
- updateLinkSetOnLoad(linkSets[i], load);
- });
- })
- // 15.2.4.5.4 LoadFailed
- ['catch'](function(exc) {
- load.status = 'failed';
- load.exception = exc;
-
- var linkSets = load.linkSets.concat([]);
- for (var i = 0, l = linkSets.length; i < l; i++) {
- linkSetFailed(linkSets[i], load, exc);
- }
-
- console.assert(load.linkSets.length == 0, 'linkSets not removed');
- });
- }
-
- // 15.2.4.7 PromiseOfStartLoadPartwayThrough absorbed into calling functions
-
- // 15.2.4.7.1
- function asyncStartLoadPartwayThrough(stepState) {
- return function(resolve, reject) {
- var loader = stepState.loader;
- var name = stepState.moduleName;
- var step = stepState.step;
-
- if (loader.modules[name])
- throw new TypeError('"' + name + '" already exists in the module table');
-
- // adjusted to pick up existing loads
- var existingLoad;
- for (var i = 0, l = loader.loads.length; i < l; i++) {
- if (loader.loads[i].name == name) {
- existingLoad = loader.loads[i];
-
- if (step == 'translate' && !existingLoad.source) {
- existingLoad.address = stepState.moduleAddress;
- proceedToTranslate(loader, existingLoad, Promise.resolve(stepState.moduleSource));
- }
-
- // a primary load -> use that existing linkset if it is for the direct load here
- // otherwise create a new linkset unit
- if (existingLoad.linkSets.length && existingLoad.linkSets[0].loads[0].name == existingLoad.name)
- return existingLoad.linkSets[0].done.then(function() {
- resolve(existingLoad);
- });
- }
- }
-
- var load = existingLoad || createLoad(name);
-
- load.metadata = stepState.moduleMetadata;
-
- var linkSet = createLinkSet(loader, load);
-
- loader.loads.push(load);
-
- resolve(linkSet.done);
-
- if (step == 'locate')
- proceedToLocate(loader, load);
-
- else if (step == 'fetch')
- proceedToFetch(loader, load, Promise.resolve(stepState.moduleAddress));
-
- else {
- console.assert(step == 'translate', 'translate step');
- load.address = stepState.moduleAddress;
- proceedToTranslate(loader, load, Promise.resolve(stepState.moduleSource));
- }
- }
- }
-
- // Declarative linking functions run through alternative implementation:
- // 15.2.5.1.1 CreateModuleLinkageRecord not implemented
- // 15.2.5.1.2 LookupExport not implemented
- // 15.2.5.1.3 LookupModuleDependency not implemented
-
- // 15.2.5.2.1
- function createLinkSet(loader, startingLoad) {
- var linkSet = {
- loader: loader,
- loads: [],
- startingLoad: startingLoad, // added see spec bug https://bugs.ecmascript.org/show_bug.cgi?id=2995
- loadingCount: 0
- };
- linkSet.done = new Promise(function(resolve, reject) {
- linkSet.resolve = resolve;
- linkSet.reject = reject;
- });
- addLoadToLinkSet(linkSet, startingLoad);
- return linkSet;
- }
- // 15.2.5.2.2
- function addLoadToLinkSet(linkSet, load) {
- if (load.status == 'failed')
- return;
-
- for (var i = 0, l = linkSet.loads.length; i < l; i++)
- if (linkSet.loads[i] == load)
- return;
-
- linkSet.loads.push(load);
- load.linkSets.push(linkSet);
-
- // adjustment, see https://bugs.ecmascript.org/show_bug.cgi?id=2603
- if (load.status != 'loaded') {
- linkSet.loadingCount++;
- }
-
- var loader = linkSet.loader;
-
- for (var i = 0, l = load.dependencies.length; i < l; i++) {
- if (!load.dependencies[i])
- continue;
-
- var name = load.dependencies[i].value;
-
- if (loader.modules[name])
- continue;
-
- for (var j = 0, d = loader.loads.length; j < d; j++) {
- if (loader.loads[j].name != name)
- continue;
-
- addLoadToLinkSet(linkSet, loader.loads[j]);
- break;
- }
- }
- // console.log('add to linkset ' + load.name);
- // snapshot(linkSet.loader);
- }
-
- // linking errors can be generic or load-specific
- // this is necessary for debugging info
- function doLink(linkSet) {
- var error = false;
- try {
- link(linkSet, function(load, exc) {
- linkSetFailed(linkSet, load, exc);
- error = true;
- });
- }
- catch(e) {
- linkSetFailed(linkSet, null, e);
- error = true;
- }
- return error;
- }
-
- // 15.2.5.2.3
- function updateLinkSetOnLoad(linkSet, load) {
- // console.log('update linkset on load ' + load.name);
- // snapshot(linkSet.loader);
-
- console.assert(load.status == 'loaded' || load.status == 'linked', 'loaded or linked');
-
- linkSet.loadingCount--;
-
- if (linkSet.loadingCount > 0)
- return;
-
- // adjusted for spec bug https://bugs.ecmascript.org/show_bug.cgi?id=2995
- var startingLoad = linkSet.startingLoad;
-
- // non-executing link variation for loader tracing
- // on the server. Not in spec.
- /***/
- if (linkSet.loader.loaderObj.execute === false) {
- var loads = [].concat(linkSet.loads);
- for (var i = 0, l = loads.length; i < l; i++) {
- var load = loads[i];
- load.module = {
- name: load.name,
- module: _newModule({}),
- evaluated: true
- };
- load.status = 'linked';
- finishLoad(linkSet.loader, load);
- }
- return linkSet.resolve(startingLoad);
- }
- /***/
-
- var abrupt = doLink(linkSet);
-
- if (abrupt)
- return;
-
- console.assert(linkSet.loads.length == 0, 'loads cleared');
-
- linkSet.resolve(startingLoad);
- }
-
- // 15.2.5.2.4
- function linkSetFailed(linkSet, load, exc) {
- var loader = linkSet.loader;
- var requests;
-
- checkError:
- if (load) {
- if (linkSet.loads[0].name == load.name) {
- exc = addToError(exc, 'Error loading ' + load.name);
- }
- else {
- for (var i = 0; i < linkSet.loads.length; i++) {
- var pLoad = linkSet.loads[i];
- for (var j = 0; j < pLoad.dependencies.length; j++) {
- var dep = pLoad.dependencies[j];
- if (dep.value == load.name) {
- exc = addToError(exc, 'Error loading ' + load.name + ' as "' + dep.key + '" from ' + pLoad.name);
- break checkError;
- }
- }
- }
- exc = addToError(exc, 'Error loading ' + load.name + ' from ' + linkSet.loads[0].name);
- }
- }
- else {
- exc = addToError(exc, 'Error linking ' + linkSet.loads[0].name);
- }
-
-
- var loads = linkSet.loads.concat([]);
- for (var i = 0, l = loads.length; i < l; i++) {
- var load = loads[i];
-
- // store all failed load records
- loader.loaderObj.failed = loader.loaderObj.failed || [];
- if (indexOf.call(loader.loaderObj.failed, load) == -1)
- loader.loaderObj.failed.push(load);
-
- var linkIndex = indexOf.call(load.linkSets, linkSet);
- console.assert(linkIndex != -1, 'link not present');
- load.linkSets.splice(linkIndex, 1);
- if (load.linkSets.length == 0) {
- var globalLoadsIndex = indexOf.call(linkSet.loader.loads, load);
- if (globalLoadsIndex != -1)
- linkSet.loader.loads.splice(globalLoadsIndex, 1);
- }
- }
- linkSet.reject(exc);
- }
-
- // 15.2.5.2.5
- function finishLoad(loader, load) {
- // add to global trace if tracing
- if (loader.loaderObj.trace) {
- if (!loader.loaderObj.loads)
- loader.loaderObj.loads = {};
- var depMap = {};
- load.dependencies.forEach(function(dep) {
- depMap[dep.key] = dep.value;
- });
- loader.loaderObj.loads[load.name] = {
- name: load.name,
- deps: load.dependencies.map(function(dep){ return dep.key }),
- depMap: depMap,
- address: load.address,
- metadata: load.metadata,
- source: load.source
- };
- }
- // if not anonymous, add to the module table
- if (load.name) {
- console.assert(!loader.modules[load.name] || loader.modules[load.name].module === load.module.module, 'load not in module table');
- loader.modules[load.name] = load.module;
- }
- var loadIndex = indexOf.call(loader.loads, load);
- if (loadIndex != -1)
- loader.loads.splice(loadIndex, 1);
- for (var i = 0, l = load.linkSets.length; i < l; i++) {
- loadIndex = indexOf.call(load.linkSets[i].loads, load);
- if (loadIndex != -1)
- load.linkSets[i].loads.splice(loadIndex, 1);
- }
- load.linkSets.splice(0, load.linkSets.length);
- }
-
- function doDynamicExecute(linkSet, load, linkError) {
- try {
- var module = load.execute();
- }
- catch(e) {
- linkError(load, e);
- return;
- }
- if (!module || !(module instanceof Module))
- linkError(load, new TypeError('Execution must define a Module instance'));
- else
- return module;
- }
-
- // 26.3 Loader
-
- // 26.3.1.1
- // defined at top
-
- // importPromises adds ability to import a module twice without error - https://bugs.ecmascript.org/show_bug.cgi?id=2601
- function createImportPromise(loader, name, promise) {
- var importPromises = loader._loader.importPromises;
- return importPromises[name] = promise.then(function(m) {
- importPromises[name] = undefined;
- return m;
- }, function(e) {
- importPromises[name] = undefined;
- throw e;
- });
- }
-
- Loader.prototype = {
- // 26.3.3.1
- constructor: Loader,
- // 26.3.3.2
- define: function(name, source, options) {
- // check if already defined
- if (this._loader.importPromises[name])
- throw new TypeError('Module is already loading.');
- return createImportPromise(this, name, new Promise(asyncStartLoadPartwayThrough({
- step: 'translate',
- loader: this._loader,
- moduleName: name,
- moduleMetadata: options && options.metadata || {},
- moduleSource: source,
- moduleAddress: options && options.address
- })));
- },
- // 26.3.3.3
- 'delete': function(name) {
- var loader = this._loader;
- delete loader.importPromises[name];
- delete loader.moduleRecords[name];
- return loader.modules[name] ? delete loader.modules[name] : false;
- },
- // 26.3.3.4 entries not implemented
- // 26.3.3.5
- get: function(key) {
- if (!this._loader.modules[key])
- return;
- return this._loader.modules[key].module;
- },
- // 26.3.3.7
- has: function(name) {
- return !!this._loader.modules[name];
- },
- // 26.3.3.8
- 'import': function(name, parentName, parentAddress) {
- if (typeof parentName == 'object')
- parentName = parentName.name;
-
- // run normalize first
- var loaderObj = this;
-
- // added, see https://bugs.ecmascript.org/show_bug.cgi?id=2659
- return Promise.resolve(loaderObj.normalize(name, parentName))
- .then(function(name) {
- var loader = loaderObj._loader;
-
- if (loader.modules[name])
- return loader.modules[name].module;
-
- return loader.importPromises[name] || createImportPromise(loaderObj, name,
- loadModule(loader, name, {})
- .then(function(load) {
- delete loader.importPromises[name];
- return load.module.module;
- }));
- });
- },
- // 26.3.3.9 keys not implemented
- // 26.3.3.10
- load: function(name) {
- var loader = this._loader;
- if (loader.modules[name])
- return Promise.resolve();
- return loader.importPromises[name] || createImportPromise(this, name, new Promise(asyncStartLoadPartwayThrough({
- step: 'locate',
- loader: loader,
- moduleName: name,
- moduleMetadata: {},
- moduleSource: undefined,
- moduleAddress: undefined
- }))
- .then(function() {
- delete loader.importPromises[name];
- }));
- },
- // 26.3.3.11
- module: function(source, options) {
- var load = createLoad();
- load.address = options && options.address;
- var linkSet = createLinkSet(this._loader, load);
- var sourcePromise = Promise.resolve(source);
- var loader = this._loader;
- var p = linkSet.done.then(function() {
- return load.module.module;
- });
- proceedToTranslate(loader, load, sourcePromise);
- return p;
- },
- // 26.3.3.12
- newModule: function (obj) {
- if (typeof obj != 'object')
- throw new TypeError('Expected object');
-
- var m = new Module();
-
- var pNames = [];
- if (Object.getOwnPropertyNames && obj != null)
- pNames = Object.getOwnPropertyNames(obj);
- else
- for (var key in obj)
- pNames.push(key);
-
- for (var i = 0; i < pNames.length; i++) (function(key) {
- defineProperty(m, key, {
- configurable: false,
- enumerable: true,
- get: function () {
- return obj[key];
- },
- set: function() {
- throw new Error('Module exports cannot be changed externally.');
- }
- });
- })(pNames[i]);
-
- if (Object.freeze)
- Object.freeze(m);
-
- return m;
- },
- // 26.3.3.14
- set: function(name, module) {
- if (!(module instanceof Module))
- throw new TypeError('Loader.set(' + name + ', module) must be a module');
- this._loader.modules[name] = {
- module: module
- };
- },
- // 26.3.3.15 values not implemented
- // 26.3.3.16 @@iterator not implemented
- // 26.3.3.17 @@toStringTag not implemented
-
- // 26.3.3.18.1
- normalize: function(name, referrerName, referrerAddress) {},
- // 26.3.3.18.2
- locate: function(load) {
- return load.name;
- },
- // 26.3.3.18.3
- fetch: function(load) {
- },
- // 26.3.3.18.4
- translate: function(load) {
- return load.source;
- },
- // 26.3.3.18.5
- instantiate: function(load) {
- }
- };
-
- var _newModule = Loader.prototype.newModule;
-
-/*
- * ES6 Module Declarative Linking Code
- */
- function link(linkSet, linkError) {
-
- var loader = linkSet.loader;
-
- if (!linkSet.loads.length)
- return;
-
- var loads = linkSet.loads.concat([]);
-
- for (var i = 0; i < loads.length; i++) {
- var load = loads[i];
-
- var module = doDynamicExecute(linkSet, load, linkError);
- if (!module)
- return;
- load.module = {
- name: load.name,
- module: module
- };
- load.status = 'linked';
-
- finishLoad(loader, load);
- }
- }
-
-})();
-
-var System;
-
-// SystemJS Loader Class and Extension helpers
-function SystemJSLoader() {
- Loader.call(this);
-
- this.paths = {};
- this._loader.paths = {};
-
- systemJSConstructor.call(this);
-}
-
-// inline Object.create-style class extension
-function SystemProto() {};
-SystemProto.prototype = Loader.prototype;
-SystemJSLoader.prototype = new SystemProto();
-SystemJSLoader.prototype.constructor = SystemJSLoader;
-
-var systemJSConstructor;
-
-function hook(name, hook) {
- SystemJSLoader.prototype[name] = hook(SystemJSLoader.prototype[name] || function() {});
-}
-function hookConstructor(hook) {
- systemJSConstructor = hook(systemJSConstructor || function() {});
-}
-
-
-var absURLRegEx = /^[^\/]+:\/\//;
-function isAbsolute(name) {
- return name.match(absURLRegEx);
-}
-function isRel(name) {
- return (name[0] == '.' && (!name[1] || name[1] == '/' || name[1] == '.')) || name[0] == '/';
-}
-function isPlain(name) {
- return !isRel(name) && !isAbsolute(name);
-}
-
-var baseURIObj = new URL(baseURI);
-
-function urlResolve(name, parent) {
- // url resolution shortpaths
- if (name[0] == '.') {
- // dot-relative url normalization
- if (name[1] == '/' && name[2] != '.')
- return (parent && parent.substr(0, parent.lastIndexOf('/') + 1) || baseURI) + name.substr(2);
- }
- else if (name[0] != '/' && name.indexOf(':') == -1) {
- // plain parent normalization
- return (parent && parent.substr(0, parent.lastIndexOf('/') + 1) || baseURI) + name;
- }
-
- return new URL(name, parent && parent.replace(/#/g, '%05') || baseURIObj).href.replace(/%05/g, '#');
-}
-
-// NB no specification provided for System.paths, used ideas discussed in https://github.com/jorendorff/js-loaders/issues/25
-function applyPaths(loader, name) {
- // most specific (most number of slashes in path) match wins
- var pathMatch = '', wildcard, maxWildcardPrefixLen = 0;
-
- var paths = loader.paths;
- var pathsCache = loader._loader.paths;
-
- // check to see if we have a paths entry
- for (var p in paths) {
- if (paths.hasOwnProperty && !paths.hasOwnProperty(p))
- continue;
-
- // paths sanitization
- var path = paths[p];
- if (path !== pathsCache[p])
- path = paths[p] = pathsCache[p] = urlResolve(paths[p], isRel(paths[p]) ? baseURI : loader.baseURL);
-
- // exact path match
- if (p.indexOf('*') === -1) {
- if (name == p)
- return paths[p];
-
- // support trailing / in paths rules
- else if (name.substr(0, p.length - 1) == p.substr(0, p.length - 1) && (name.length < p.length || name[p.length - 1] == p[p.length - 1]) && (paths[p][paths[p].length - 1] == '/' || paths[p] == '')) {
- return paths[p].substr(0, paths[p].length - 1) + (name.length > p.length ? (paths[p] && '/' || '') + name.substr(p.length) : '');
- }
- }
- // wildcard path match
- else {
- var pathParts = p.split('*');
- if (pathParts.length > 2)
- throw new TypeError('Only one wildcard in a path is permitted');
-
- var wildcardPrefixLen = pathParts[0].length;
- if (wildcardPrefixLen >= maxWildcardPrefixLen &&
- name.substr(0, pathParts[0].length) == pathParts[0] &&
- name.substr(name.length - pathParts[1].length) == pathParts[1]) {
- maxWildcardPrefixLen = wildcardPrefixLen;
- pathMatch = p;
- wildcard = name.substr(pathParts[0].length, name.length - pathParts[1].length - pathParts[0].length);
- }
- }
- }
-
- var outPath = paths[pathMatch];
- if (typeof wildcard == 'string')
- outPath = outPath.replace('*', wildcard);
-
- return outPath;
-}
-
-function dedupe(deps) {
- var newDeps = [];
- for (var i = 0, l = deps.length; i < l; i++)
- if (indexOf.call(newDeps, deps[i]) == -1)
- newDeps.push(deps[i])
- return newDeps;
-}
-
-function group(deps) {
- var names = [];
- var indices = [];
- for (var i = 0, l = deps.length; i < l; i++) {
- var index = indexOf.call(names, deps[i]);
- if (index === -1) {
- names.push(deps[i]);
- indices.push([i]);
- }
- else {
- indices[index].push(i);
- }
- }
- return { names: names, indices: indices };
-}
-
-var getOwnPropertyDescriptor = true;
-try {
- Object.getOwnPropertyDescriptor({ a: 0 }, 'a');
-}
-catch(e) {
- getOwnPropertyDescriptor = false;
-}
-
-// converts any module.exports object into an object ready for SystemJS.newModule
-function getESModule(exports) {
- var esModule = {};
- // don't trigger getters/setters in environments that support them
- if ((typeof exports == 'object' || typeof exports == 'function') && exports !== __global) {
- if (getOwnPropertyDescriptor) {
- for (var p in exports) {
- // The default property is copied to esModule later on
- if (p === 'default')
- continue;
- defineOrCopyProperty(esModule, exports, p);
- }
- }
- else {
- extend(esModule, exports);
- }
- }
- esModule['default'] = exports;
- defineProperty(esModule, '__useDefault', {
- value: true
- });
- return esModule;
-}
-
-function defineOrCopyProperty(targetObj, sourceObj, propName) {
- try {
- var d;
- if (d = Object.getOwnPropertyDescriptor(sourceObj, propName))
- defineProperty(targetObj, propName, d);
- }
- catch (ex) {
- // Object.getOwnPropertyDescriptor threw an exception, fall back to normal set property
- // we dont need hasOwnProperty here because getOwnPropertyDescriptor would have returned undefined above
- targetObj[propName] = sourceObj[propName];
- return false;
- }
-}
-
-function extend(a, b, prepend) {
- var hasOwnProperty = b && b.hasOwnProperty;
- for (var p in b) {
- if (hasOwnProperty && !b.hasOwnProperty(p))
- continue;
- if (!prepend || !(p in a))
- a[p] = b[p];
- }
- return a;
-}
-
-// meta first-level extends where:
-// array + array appends
-// object + object extends
-// other properties replace
-function extendMeta(a, b, prepend) {
- var hasOwnProperty = b && b.hasOwnProperty;
- for (var p in b) {
- if (hasOwnProperty && !b.hasOwnProperty(p))
- continue;
- var val = b[p];
- if (!(p in a))
- a[p] = val;
- else if (val instanceof Array && a[p] instanceof Array)
- a[p] = [].concat(prepend ? val : a[p]).concat(prepend ? a[p] : val);
- else if (typeof val == 'object' && val !== null && typeof a[p] == 'object')
- a[p] = extend(extend({}, a[p]), val, prepend);
- else if (!prepend)
- a[p] = val;
- }
-}
-
-function extendPkgConfig(pkgCfgA, pkgCfgB, pkgName, loader, warnInvalidProperties) {
- for (var prop in pkgCfgB) {
- if (indexOf.call(['main', 'format', 'defaultExtension', 'basePath'], prop) != -1) {
- pkgCfgA[prop] = pkgCfgB[prop];
- }
- else if (prop == 'map') {
- extend(pkgCfgA.map = pkgCfgA.map || {}, pkgCfgB.map);
- }
- else if (prop == 'meta') {
- extend(pkgCfgA.meta = pkgCfgA.meta || {}, pkgCfgB.meta);
- }
- else if (prop == 'depCache') {
- for (var d in pkgCfgB.depCache) {
- var dNormalized;
-
- if (d.substr(0, 2) == './')
- dNormalized = pkgName + '/' + d.substr(2);
- else
- dNormalized = coreResolve.call(loader, d);
- loader.depCache[dNormalized] = (loader.depCache[dNormalized] || []).concat(pkgCfgB.depCache[d]);
- }
- }
- else if (warnInvalidProperties && indexOf.call(['browserConfig', 'nodeConfig', 'devConfig', 'productionConfig'], prop) == -1 &&
- (!pkgCfgB.hasOwnProperty || pkgCfgB.hasOwnProperty(prop))) {
- warn.call(loader, '"' + prop + '" is not a valid package configuration option in package ' + pkgName);
- }
- }
-}
-
-// deeply-merge (to first level) config with any existing package config
-function setPkgConfig(loader, pkgName, cfg, prependConfig) {
- var pkg;
-
- // first package is config by reference for fast path, cloned after that
- if (!loader.packages[pkgName]) {
- pkg = loader.packages[pkgName] = cfg;
- }
- else {
- var basePkg = loader.packages[pkgName];
- pkg = loader.packages[pkgName] = {};
-
- extendPkgConfig(pkg, prependConfig ? cfg : basePkg, pkgName, loader, prependConfig);
- extendPkgConfig(pkg, prependConfig ? basePkg : cfg, pkgName, loader, !prependConfig);
- }
-
- // main object becomes main map
- if (typeof pkg.main == 'object') {
- pkg.map = pkg.map || {};
- pkg.map['./@main'] = pkg.main;
- pkg.main['default'] = pkg.main['default'] || './';
- pkg.main = '@main';
- }
-
- return pkg;
-}
-
-function warn(msg) {
- if (this.warnings && typeof console != 'undefined' && console.warn)
- console.warn(msg);
-}
- var fetchTextFromURL;
- if (typeof XMLHttpRequest != 'undefined') {
- fetchTextFromURL = function(url, authorization, fulfill, reject) {
- var xhr = new XMLHttpRequest();
- var sameDomain = true;
- var doTimeout = false;
- if (!('withCredentials' in xhr)) {
- // check if same domain
- var domainCheck = /^(\w+:)?\/\/([^\/]+)/.exec(url);
- if (domainCheck) {
- sameDomain = domainCheck[2] === window.location.host;
- if (domainCheck[1])
- sameDomain &= domainCheck[1] === window.location.protocol;
- }
- }
- if (!sameDomain && typeof XDomainRequest != 'undefined') {
- xhr = new XDomainRequest();
- xhr.onload = load;
- xhr.onerror = error;
- xhr.ontimeout = error;
- xhr.onprogress = function() {};
- xhr.timeout = 0;
- doTimeout = true;
- }
- function load() {
- fulfill(xhr.responseText);
- }
- function error() {
- reject(new Error('XHR error' + (xhr.status ? ' (' + xhr.status + (xhr.statusText ? ' ' + xhr.statusText : '') + ')' : '') + ' loading ' + url));
- }
-
- xhr.onreadystatechange = function () {
- if (xhr.readyState === 4) {
- // in Chrome on file:/// URLs, status is 0
- if (xhr.status == 0) {
- if (xhr.responseText) {
- load();
- }
- else {
- // when responseText is empty, wait for load or error event
- // to inform if it is a 404 or empty file
- xhr.addEventListener('error', error);
- xhr.addEventListener('load', load);
- }
- }
- else if (xhr.status === 200) {
- load();
- }
- else {
- error();
- }
- }
- };
- xhr.open("GET", url, true);
-
- if (xhr.setRequestHeader) {
- xhr.setRequestHeader('Accept', 'application/x-es-module, */*');
- // can set "authorization: true" to enable withCredentials only
- if (authorization) {
- if (typeof authorization == 'string')
- xhr.setRequestHeader('Authorization', authorization);
- xhr.withCredentials = true;
- }
- }
-
- if (doTimeout) {
- setTimeout(function() {
- xhr.send();
- }, 0);
- } else {
- xhr.send(null);
- }
- };
- }
- else if (typeof require != 'undefined' && typeof process != 'undefined') {
- var fs;
- fetchTextFromURL = function(url, authorization, fulfill, reject) {
- if (url.substr(0, 8) != 'file:///')
- throw new Error('Unable to fetch "' + url + '". Only file URLs of the form file:/// allowed running in Node.');
- fs = fs || require('fs');
- if (isWindows)
- url = url.replace(/\//g, '\\').substr(8);
- else
- url = url.substr(7);
- return fs.readFile(url, function(err, data) {
- if (err) {
- return reject(err);
- }
- else {
- // Strip Byte Order Mark out if it's the leading char
- var dataString = data + '';
- if (dataString[0] === '\ufeff')
- dataString = dataString.substr(1);
-
- fulfill(dataString);
- }
- });
- };
- }
- else if (typeof self != 'undefined' && typeof self.fetch != 'undefined') {
- fetchTextFromURL = function(url, authorization, fulfill, reject) {
- var opts = {
- headers: {'Accept': 'application/x-es-module, */*'}
- };
-
- if (authorization) {
- if (typeof authorization == 'string')
- opts.headers['Authorization'] = authorization;
- opts.credentials = 'include';
- }
-
- fetch(url, opts)
- .then(function (r) {
- if (r.ok) {
- return r.text();
- } else {
- throw new Error('Fetch error: ' + r.status + ' ' + r.statusText);
- }
- })
- .then(fulfill, reject);
- }
- }
- else {
- throw new TypeError('No environment fetch API available.');
- }
-function readMemberExpression(p, value) {
- var pParts = p.split('.');
- while (pParts.length)
- value = value[pParts.shift()];
- return value;
-}
-
-function getMapMatch(map, name) {
- var bestMatch, bestMatchLength = 0;
-
- for (var p in map) {
- if (name.substr(0, p.length) == p && (name.length == p.length || name[p.length] == '/')) {
- var curMatchLength = p.split('/').length;
- if (curMatchLength <= bestMatchLength)
- continue;
- bestMatch = p;
- bestMatchLength = curMatchLength;
- }
- }
-
- return bestMatch;
-}
-
-function prepareBaseURL(loader) {
- // ensure baseURl is fully normalized
- if (this._loader.baseURL !== this.baseURL) {
- if (this.baseURL[this.baseURL.length - 1] != '/')
- this.baseURL += '/';
-
- this._loader.baseURL = this.baseURL = new URL(this.baseURL, baseURIObj).href;
- }
-}
-
-var envModule;
-function setProduction(isProduction, isBuilder) {
- this.set('@system-env', envModule = this.newModule({
- browser: isBrowser,
- node: !!this._nodeRequire,
- production: !isBuilder && isProduction,
- dev: isBuilder || !isProduction,
- build: isBuilder,
- 'default': true
- }));
-}
-
-hookConstructor(function(constructor) {
- return function() {
- constructor.call(this);
-
- // support baseURL
- this.baseURL = baseURI;
-
- // support map and paths
- this.map = {};
-
- // make the location of the system.js script accessible
- if (typeof $__curScript != 'undefined')
- this.scriptSrc = $__curScript.src;
-
- // global behaviour flags
- this.warnings = false;
- this.defaultJSExtensions = false;
- this.pluginFirst = false;
- this.loaderErrorStack = false;
-
- // by default load ".json" files as json
- // leading * meta doesn't need normalization
- // NB add this in next breaking release
- // this.meta['*.json'] = { format: 'json' };
-
- // support the empty module, as a concept
- this.set('@empty', this.newModule({}));
-
- setProduction.call(this, false, false);
- };
-});
-
-// include the node require since we're overriding it
-if (typeof require != 'undefined' && typeof process != 'undefined' && !process.browser)
- SystemJSLoader.prototype._nodeRequire = require;
-
-/*
- Core SystemJS Normalization
-
- If a name is relative, we apply URL normalization to the page
- If a name is an absolute URL, we leave it as-is
-
- Plain names (neither of the above) run through the map and paths
- normalization phases.
-
- The paths normalization phase applies last (paths extension), which
- defines the `decanonicalize` function and normalizes everything into
- a URL.
- */
-
-var parentModuleContext;
-function getNodeModule(name, baseURL) {
- if (!isPlain(name))
- throw new Error('Node module ' + name + ' can\'t be loaded as it is not a package require.');
-
- if (!parentModuleContext) {
- var Module = this._nodeRequire('module');
- var base = baseURL.substr(isWindows ? 8 : 7);
- parentModuleContext = new Module(base);
- parentModuleContext.paths = Module._nodeModulePaths(base);
- }
- return parentModuleContext.require(name);
-}
-
-function coreResolve(name, parentName) {
- // standard URL resolution
- if (isRel(name))
- return urlResolve(name, parentName);
- else if (isAbsolute(name))
- return name;
-
- // plain names not starting with './', '://' and '/' go through custom resolution
- var mapMatch = getMapMatch(this.map, name);
-
- if (mapMatch) {
- name = this.map[mapMatch] + name.substr(mapMatch.length);
-
- if (isRel(name))
- return urlResolve(name);
- else if (isAbsolute(name))
- return name;
- }
-
- if (this.has(name))
- return name;
-
- // dynamically load node-core modules when requiring `@node/fs` for example
- if (name.substr(0, 6) == '@node/') {
- if (!this._nodeRequire)
- throw new TypeError('Error loading ' + name + '. Can only load node core modules in Node.');
- if (this.builder)
- this.set(name, this.newModule({}));
- else
- this.set(name, this.newModule(getESModule(getNodeModule.call(this, name.substr(6), this.baseURL))));
- return name;
- }
-
- // prepare the baseURL to ensure it is normalized
- prepareBaseURL.call(this);
-
- return applyPaths(this, name) || this.baseURL + name;
-}
-
-hook('normalize', function(normalize) {
- return function(name, parentName, skipExt) {
- var resolved = coreResolve.call(this, name, parentName);
- if (this.defaultJSExtensions && !skipExt && resolved.substr(resolved.length - 3, 3) != '.js' && !isPlain(resolved))
- resolved += '.js';
- return resolved;
- };
-});
-
-// percent encode just '#' in urls if using HTTP requests
-var httpRequest = typeof XMLHttpRequest != 'undefined';
-hook('locate', function(locate) {
- return function(load) {
- return Promise.resolve(locate.call(this, load))
- .then(function(address) {
- if (httpRequest)
- return address.replace(/#/g, '%23');
- return address;
- });
- };
-});
-
-/*
- * Fetch with authorization
- */
-hook('fetch', function() {
- return function(load) {
- return new Promise(function(resolve, reject) {
- fetchTextFromURL(load.address, load.metadata.authorization, resolve, reject);
- });
- };
-});
-
-/*
- __useDefault
-
- When a module object looks like:
- newModule(
- __useDefault: true,
- default: 'some-module'
- })
-
- Then importing that module provides the 'some-module'
- result directly instead of the full module.
-
- Useful for eg module.exports = function() {}
-*/
-hook('import', function(systemImport) {
- return function(name, parentName, parentAddress) {
- if (parentName && parentName.name)
- warn.call(this, 'SystemJS.import(name, { name: parentName }) is deprecated for SystemJS.import(name, parentName), while importing ' + name + ' from ' + parentName.name);
- return systemImport.call(this, name, parentName, parentAddress).then(function(module) {
- return module.__useDefault ? module['default'] : module;
- });
- };
-});
-
-/*
- * Allow format: 'detect' meta to enable format detection
- */
-hook('translate', function(systemTranslate) {
- return function(load) {
- if (load.metadata.format == 'detect')
- load.metadata.format = undefined;
- return systemTranslate.apply(this, arguments);
- };
-});
-
-
-/*
- * JSON format support
- *
- * Supports loading JSON files as a module format itself
- *
- * Usage:
- *
- * SystemJS.config({
- * meta: {
- * '*.json': { format: 'json' }
- * }
- * });
- *
- * Module is returned as if written:
- *
- * export default {JSON}
- *
- * No named exports are provided
- *
- * Files ending in ".json" are treated as json automatically by SystemJS
- */
-hook('instantiate', function(instantiate) {
- return function(load) {
- if (load.metadata.format == 'json' && !this.builder) {
- var entry = load.metadata.entry = createEntry();
- entry.deps = [];
- entry.execute = function() {
- try {
- return JSON.parse(load.source);
- }
- catch(e) {
- throw new Error("Invalid JSON file " + load.name);
- }
- };
- }
- };
-})
-
-/*
- Extend config merging one deep only
-
- loader.config({
- some: 'random',
- config: 'here',
- deep: {
- config: { too: 'too' }
- }
- });
-
- <=>
-
- loader.some = 'random';
- loader.config = 'here'
- loader.deep = loader.deep || {};
- loader.deep.config = { too: 'too' };
-
-
- Normalizes meta and package configs allowing for:
-
- SystemJS.config({
- meta: {
- './index.js': {}
- }
- });
-
- To become
-
- SystemJS.meta['https://thissite.com/index.js'] = {};
-
- For easy normalization canonicalization with latest URL support.
-
-*/
-function envSet(loader, cfg, envCallback) {
- if (envModule.browser && cfg.browserConfig)
- envCallback(cfg.browserConfig);
- if (envModule.node && cfg.nodeConfig)
- envCallback(cfg.nodeConfig);
- if (envModule.dev && cfg.devConfig)
- envCallback(cfg.devConfig);
- if (envModule.build && cfg.buildConfig)
- envCallback(cfg.buildConfig);
- if (envModule.production && cfg.productionConfig)
- envCallback(cfg.productionConfig);
-}
-
-SystemJSLoader.prototype.getConfig = function(name) {
- var cfg = {};
- var loader = this;
- for (var p in loader) {
- if (loader.hasOwnProperty && !loader.hasOwnProperty(p) || p in SystemJSLoader.prototype && p != 'transpiler')
- continue;
- if (indexOf.call(['_loader', 'amdDefine', 'amdRequire', 'defined', 'failed', 'version', 'loads'], p) == -1)
- cfg[p] = loader[p];
- }
- cfg.production = envModule.production;
- return cfg;
-};
-
-var curCurScript;
-SystemJSLoader.prototype.config = function(cfg, isEnvConfig) {
- var loader = this;
-
- if ('loaderErrorStack' in cfg) {
- curCurScript = $__curScript;
- if (cfg.loaderErrorStack)
- $__curScript = undefined;
- else
- $__curScript = curCurScript;
- }
-
- if ('warnings' in cfg)
- loader.warnings = cfg.warnings;
-
- // transpiler deprecation path
- if (cfg.transpilerRuntime === false)
- loader._loader.loadedTranspilerRuntime = true;
-
- if ('production' in cfg || 'build' in cfg)
- setProduction.call(loader, !!cfg.production, !!(cfg.build || envModule && envModule.build));
-
- if (!isEnvConfig) {
- // if using nodeConfig / browserConfig / productionConfig, take baseURL from there
- // these exceptions will be unnecessary when we can properly implement config queuings
- var baseURL;
- envSet(loader, cfg, function(cfg) {
- baseURL = baseURL || cfg.baseURL;
- });
- baseURL = baseURL || cfg.baseURL;
-
- // always configure baseURL first
- if (baseURL) {
- var hasConfig = false;
- function checkHasConfig(obj) {
- for (var p in obj)
- if (obj.hasOwnProperty(p))
- return true;
- }
- if (checkHasConfig(loader.packages) || checkHasConfig(loader.meta) || checkHasConfig(loader.depCache) || checkHasConfig(loader.bundles) || checkHasConfig(loader.packageConfigPaths))
- throw new TypeError('Incorrect configuration order. The baseURL must be configured with the first SystemJS.config call.');
-
- this.baseURL = baseURL;
- prepareBaseURL.call(this);
- }
-
- if (cfg.paths)
- extend(loader.paths, cfg.paths);
-
- envSet(loader, cfg, function(cfg) {
- if (cfg.paths)
- extend(loader.paths, cfg.paths);
- });
-
- // warn on wildcard path deprecations
- if (this.warnings) {
- for (var p in loader.paths)
- if (p.indexOf('*') != -1)
- warn.call(loader, 'Paths configuration "' + p + '" -> "' + loader.paths[p] + '" uses wildcards which are being deprecated for simpler trailing "/" folder paths.');
- }
- }
-
- if (cfg.defaultJSExtensions) {
- loader.defaultJSExtensions = cfg.defaultJSExtensions;
- warn.call(loader, 'The defaultJSExtensions configuration option is deprecated, use packages configuration instead.');
- }
-
- if (cfg.pluginFirst)
- loader.pluginFirst = cfg.pluginFirst;
-
- if (cfg.map) {
- var objMaps = '';
- for (var p in cfg.map) {
- var v = cfg.map[p];
-
- // object map backwards-compat into packages configuration
- if (typeof v !== 'string') {
- objMaps += (objMaps.length ? ', ' : '') + '"' + p + '"';
-
- var defaultJSExtension = loader.defaultJSExtensions && p.substr(p.length - 3, 3) != '.js';
- var prop = loader.decanonicalize(p);
- if (defaultJSExtension && prop.substr(prop.length - 3, 3) == '.js')
- prop = prop.substr(0, prop.length - 3);
-
- // if a package main, revert it
- var pkgMatch = '';
- for (var pkg in loader.packages) {
- if (prop.substr(0, pkg.length) == pkg
- && (!prop[pkg.length] || prop[pkg.length] == '/')
- && pkgMatch.split('/').length < pkg.split('/').length)
- pkgMatch = pkg;
- }
- if (pkgMatch && loader.packages[pkgMatch].main)
- prop = prop.substr(0, prop.length - loader.packages[pkgMatch].main.length - 1);
-
- var pkg = loader.packages[prop] = loader.packages[prop] || {};
- pkg.map = v;
- }
- else {
- loader.map[p] = v;
- }
- }
- if (objMaps)
- warn.call(loader, 'The map configuration for ' + objMaps + ' uses object submaps, which is deprecated in global map.\nUpdate this to use package contextual map with configs like SystemJS.config({ packages: { "' + p + '": { map: {...} } } }).');
- }
-
- if (cfg.packageConfigPaths) {
- var packageConfigPaths = [];
- for (var i = 0; i < cfg.packageConfigPaths.length; i++) {
- var path = cfg.packageConfigPaths[i];
- var packageLength = Math.max(path.lastIndexOf('*') + 1, path.lastIndexOf('/'));
- var normalized = coreResolve.call(loader, path.substr(0, packageLength));
- packageConfigPaths[i] = normalized + path.substr(packageLength);
- }
- loader.packageConfigPaths = packageConfigPaths;
- }
-
- if (cfg.bundles) {
- for (var p in cfg.bundles) {
- var bundle = [];
- for (var i = 0; i < cfg.bundles[p].length; i++) {
- var defaultJSExtension = loader.defaultJSExtensions && cfg.bundles[p][i].substr(cfg.bundles[p][i].length - 3, 3) != '.js';
- var normalizedBundleDep = loader.decanonicalize(cfg.bundles[p][i]);
- if (defaultJSExtension && normalizedBundleDep.substr(normalizedBundleDep.length - 3, 3) == '.js')
- normalizedBundleDep = normalizedBundleDep.substr(0, normalizedBundleDep.length - 3);
- bundle.push(normalizedBundleDep);
- }
- loader.bundles[p] = bundle;
- }
- }
-
- if (cfg.packages) {
- for (var p in cfg.packages) {
- if (p.match(/^([^\/]+:)?\/\/$/))
- throw new TypeError('"' + p + '" is not a valid package name.');
-
- var prop = coreResolve.call(loader, p);
-
- // allow trailing slash in packages
- if (prop[prop.length - 1] == '/')
- prop = prop.substr(0, prop.length - 1);
-
- setPkgConfig(loader, prop, cfg.packages[p], false);
- }
- }
-
- for (var c in cfg) {
- var v = cfg[c];
-
- if (indexOf.call(['baseURL', 'map', 'packages', 'bundles', 'paths', 'warnings', 'packageConfigPaths',
- 'loaderErrorStack', 'browserConfig', 'nodeConfig', 'devConfig', 'buildConfig', 'productionConfig'], c) != -1)
- continue;
-
- if (typeof v != 'object' || v instanceof Array) {
- loader[c] = v;
- }
- else {
- loader[c] = loader[c] || {};
-
- for (var p in v) {
- // base-level wildcard meta does not normalize to retain catch-all quality
- if (c == 'meta' && p[0] == '*') {
- extend(loader[c][p] = loader[c][p] || {}, v[p]);
- }
- else if (c == 'meta') {
- // meta can go through global map, with defaultJSExtensions adding
- var resolved = coreResolve.call(loader, p);
- if (loader.defaultJSExtensions && resolved.substr(resolved.length - 3, 3) != '.js' && !isPlain(resolved))
- resolved += '.js';
- extend(loader[c][resolved] = loader[c][resolved] || {}, v[p]);
- }
- else if (c == 'depCache') {
- var defaultJSExtension = loader.defaultJSExtensions && p.substr(p.length - 3, 3) != '.js';
- var prop = loader.decanonicalize(p);
- if (defaultJSExtension && prop.substr(prop.length - 3, 3) == '.js')
- prop = prop.substr(0, prop.length - 3);
- loader[c][prop] = [].concat(v[p]);
- }
- else {
- loader[c][p] = v[p];
- }
- }
- }
- }
-
- envSet(loader, cfg, function(cfg) {
- loader.config(cfg, true);
- });
-};/*
- * Package Configuration Extension
- *
- * Example:
- *
- * SystemJS.packages = {
- * jquery: {
- * main: 'index.js', // when not set, package name is requested directly
- * format: 'amd',
- * defaultExtension: 'ts', // defaults to 'js', can be set to false
- * modules: {
- * '*.ts': {
- * loader: 'typescript'
- * },
- * 'vendor/sizzle.js': {
- * format: 'global'
- * }
- * },
- * map: {
- * // map internal require('sizzle') to local require('./vendor/sizzle')
- * sizzle: './vendor/sizzle.js',
- * // map any internal or external require of 'jquery/vendor/another' to 'another/index.js'
- * './vendor/another.js': './another/index.js',
- * // test.js / test -> lib/test.js
- * './test.js': './lib/test.js',
- *
- * // environment-specific map configurations
- * './index.js': {
- * '~browser': './index-node.js',
- * './custom-condition.js|~export': './index-custom.js'
- * }
- * },
- * // allows for setting package-prefixed depCache
- * // keys are normalized module names relative to the package itself
- * depCache: {
- * // import 'package/index.js' loads in parallel package/lib/test.js,package/vendor/sizzle.js
- * './index.js': ['./test'],
- * './test.js': ['external-dep'],
- * 'external-dep/path.js': ['./another.js']
- * }
- * }
- * };
- *
- * Then:
- * import 'jquery' -> jquery/index.js
- * import 'jquery/submodule' -> jquery/submodule.js
- * import 'jquery/submodule.ts' -> jquery/submodule.ts loaded as typescript
- * import 'jquery/vendor/another' -> another/index.js
- *
- * Detailed Behaviours
- * - main can have a leading "./" can be added optionally
- * - map and defaultExtension are applied to the main
- * - defaultExtension adds the extension only if the exact extension is not present
- * - defaultJSExtensions applies after map when defaultExtension is not set
- * - if a meta value is available for a module, map and defaultExtension are skipped
- * - like global map, package map also applies to subpaths (sizzle/x, ./vendor/another/sub)
- * - condition module map is '@env' module in package or '@system-env' globally
- * - map targets support conditional interpolation ('./x': './x.#{|env}.js')
- * - internal package map targets cannot use boolean conditionals
- *
- * Package Configuration Loading
- *
- * Not all packages may already have their configuration present in the System config
- * For these cases, a list of packageConfigPaths can be provided, which when matched against
- * a request, will first request a ".json" file by the package name to derive the package
- * configuration from. This allows dynamic loading of non-predetermined code, a key use
- * case in SystemJS.
- *
- * Example:
- *
- * SystemJS.packageConfigPaths = ['packages/test/package.json', 'packages/*.json'];
- *
- * // will first request 'packages/new-package/package.json' for the package config
- * // before completing the package request to 'packages/new-package/path'
- * SystemJS.import('packages/new-package/path');
- *
- * // will first request 'packages/test/package.json' before the main
- * SystemJS.import('packages/test');
- *
- * When a package matches packageConfigPaths, it will always send a config request for
- * the package configuration.
- * The package name itself is taken to be the match up to and including the last wildcard
- * or trailing slash.
- * The most specific package config path will be used.
- * Any existing package configurations for the package will deeply merge with the
- * package config, with the existing package configurations taking preference.
- * To opt-out of the package configuration request for a package that matches
- * packageConfigPaths, use the { configured: true } package config option.
- *
- */
-(function() {
-
- hookConstructor(function(constructor) {
- return function() {
- constructor.call(this);
- this.packages = {};
- this.packageConfigPaths = [];
- };
- });
-
- function getPackage(loader, normalized) {
- // use most specific package
- var curPkg, curPkgLen = 0, pkgLen;
- for (var p in loader.packages) {
- if (normalized.substr(0, p.length) === p && (normalized.length === p.length || normalized[p.length] === '/')) {
- pkgLen = p.split('/').length;
- if (pkgLen > curPkgLen) {
- curPkg = p;
- curPkgLen = pkgLen;
- }
- }
- }
- return curPkg;
- }
-
- function addDefaultExtension(loader, pkg, pkgName, subPath, skipExtensions) {
- // don't apply extensions to folders or if defaultExtension = false
- if (!subPath || subPath[subPath.length - 1] == '/' || skipExtensions || pkg.defaultExtension === false)
- return subPath;
-
- var metaMatch = false;
-
- // exact meta or meta with any content after the last wildcard skips extension
- if (pkg.meta)
- getMetaMatches(pkg.meta, subPath, function(metaPattern, matchMeta, matchDepth) {
- if (matchDepth == 0 || metaPattern.lastIndexOf('*') != metaPattern.length - 1)
- return metaMatch = true;
- });
-
- // exact global meta or meta with any content after the last wildcard skips extension
- if (!metaMatch && loader.meta)
- getMetaMatches(loader.meta, pkgName + '/' + subPath, function(metaPattern, matchMeta, matchDepth) {
- if (matchDepth == 0 || metaPattern.lastIndexOf('*') != metaPattern.length - 1)
- return metaMatch = true;
- });
-
- if (metaMatch)
- return subPath;
-
- // work out what the defaultExtension is and add if not there already
- // NB reconsider if default should really be ".js"?
- var defaultExtension = '.' + (pkg.defaultExtension || 'js');
- if (subPath.substr(subPath.length - defaultExtension.length) != defaultExtension)
- return subPath + defaultExtension;
- else
- return subPath;
- }
-
- function applyPackageConfigSync(loader, pkg, pkgName, subPath, skipExtensions) {
- // main
- if (!subPath) {
- if (pkg.main)
- subPath = pkg.main.substr(0, 2) == './' ? pkg.main.substr(2) : pkg.main;
- // also no submap if name is package itself (import 'pkg' -> 'path/to/pkg.js')
- else
- // NB can add a default package main convention here when defaultJSExtensions is deprecated
- // if it becomes internal to the package then it would no longer be an exit path
- return pkgName + (loader.defaultJSExtensions ? '.js' : '');
- }
-
- // map config checking without then with extensions
- if (pkg.map) {
- var mapPath = './' + subPath;
-
- var mapMatch = getMapMatch(pkg.map, mapPath);
-
- // we then check map with the default extension adding
- if (!mapMatch) {
- mapPath = './' + addDefaultExtension(loader, pkg, pkgName, subPath, skipExtensions);
- if (mapPath != './' + subPath)
- mapMatch = getMapMatch(pkg.map, mapPath);
- }
- if (mapMatch) {
- var mapped = doMapSync(loader, pkg, pkgName, mapMatch, mapPath, skipExtensions);
- if (mapped)
- return mapped;
- }
- }
-
- // normal package resolution
- return pkgName + '/' + addDefaultExtension(loader, pkg, pkgName, subPath, skipExtensions);
- }
-
- function validMapping(mapMatch, mapped, pkgName, path) {
- // disallow internal to subpath maps
- if (mapMatch == '.')
- throw new Error('Package ' + pkgName + ' has a map entry for "." which is not permitted.');
-
- // allow internal ./x -> ./x/y or ./x/ -> ./x/y recursive maps
- // but only if the path is exactly ./x and not ./x/z
- if (mapped.substr(0, mapMatch.length) == mapMatch && path.length > mapMatch.length)
- return false;
-
- return true;
- }
-
- function doMapSync(loader, pkg, pkgName, mapMatch, path, skipExtensions) {
- if (path[path.length - 1] == '/')
- path = path.substr(0, path.length - 1);
- var mapped = pkg.map[mapMatch];
-
- if (typeof mapped == 'object')
- throw new Error('Synchronous conditional normalization not supported sync normalizing ' + mapMatch + ' in ' + pkgName);
-
- if (!validMapping(mapMatch, mapped, pkgName, path) || typeof mapped != 'string')
- return;
-
- // package map to main / base-level
- if (mapped == '.')
- mapped = pkgName;
-
- // internal package map
- else if (mapped.substr(0, 2) == './')
- return pkgName + '/' + addDefaultExtension(loader, pkg, pkgName, mapped.substr(2) + path.substr(mapMatch.length), skipExtensions);
-
- // external map reference
- return loader.normalizeSync(mapped + path.substr(mapMatch.length), pkgName + '/');
- }
-
- function applyPackageConfig(loader, pkg, pkgName, subPath, skipExtensions) {
- // main
- if (!subPath) {
- if (pkg.main)
- subPath = pkg.main.substr(0, 2) == './' ? pkg.main.substr(2) : pkg.main;
- // also no submap if name is package itself (import 'pkg' -> 'path/to/pkg.js')
- else
- // NB can add a default package main convention here when defaultJSExtensions is deprecated
- // if it becomes internal to the package then it would no longer be an exit path
- return Promise.resolve(pkgName + (loader.defaultJSExtensions ? '.js' : ''));
- }
-
- // map config checking without then with extensions
- var mapPath, mapMatch;
-
- if (pkg.map) {
- mapPath = './' + subPath;
- mapMatch = getMapMatch(pkg.map, mapPath);
-
- // we then check map with the default extension adding
- if (!mapMatch) {
- mapPath = './' + addDefaultExtension(loader, pkg, pkgName, subPath, skipExtensions);
- if (mapPath != './' + subPath)
- mapMatch = getMapMatch(pkg.map, mapPath);
- }
- }
-
- return (mapMatch ? doMap(loader, pkg, pkgName, mapMatch, mapPath, skipExtensions) : Promise.resolve())
- .then(function(mapped) {
- if (mapped)
- return Promise.resolve(mapped);
-
- // normal package resolution / fallback resolution for no conditional match
- return Promise.resolve(pkgName + '/' + addDefaultExtension(loader, pkg, pkgName, subPath, skipExtensions));
- });
- }
-
- function doStringMap(loader, pkg, pkgName, mapMatch, mapped, path, skipExtensions) {
- // NB the interpolation cases should strictly skip subsequent interpolation
- // package map to main / base-level
- if (mapped == '.')
- mapped = pkgName;
-
- // internal package map
- else if (mapped.substr(0, 2) == './')
- return Promise.resolve(pkgName + '/' + addDefaultExtension(loader, pkg, pkgName, mapped.substr(2) + path.substr(mapMatch.length), skipExtensions))
- .then(function(name) {
- return interpolateConditional.call(loader, name, pkgName + '/');
- });
-
- // external map reference
- return loader.normalize(mapped + path.substr(mapMatch.length), pkgName + '/');
- }
-
- function doMap(loader, pkg, pkgName, mapMatch, path, skipExtensions) {
- if (path[path.length - 1] == '/')
- path = path.substr(0, path.length - 1);
-
- var mapped = pkg.map[mapMatch];
-
- if (typeof mapped == 'string') {
- if (!validMapping(mapMatch, mapped, pkgName, path))
- return Promise.resolve();
- return doStringMap(loader, pkg, pkgName, mapMatch, mapped, path, skipExtensions);
- }
-
- // we use a special conditional syntax to allow the builder to handle conditional branch points further
- if (loader.builder)
- return Promise.resolve(pkgName + '/#:' + path);
-
- // we load all conditions upfront
- var conditionPromises = [];
- var conditions = [];
- for (var e in mapped) {
- var c = parseCondition(e);
- conditions.push({
- condition: c,
- map: mapped[e]
- });
- conditionPromises.push(loader['import'](c.module, pkgName));
- }
-
- // map object -> conditional map
- return Promise.all(conditionPromises)
- .then(function(conditionValues) {
- // first map condition to match is used
- for (var i = 0; i < conditions.length; i++) {
- var c = conditions[i].condition;
- var value = readMemberExpression(c.prop, conditionValues[i]);
- if (!c.negate && value || c.negate && !value)
- return conditions[i].map;
- }
- })
- .then(function(mapped) {
- if (mapped) {
- if (!validMapping(mapMatch, mapped, pkgName, path))
- return;
- return doStringMap(loader, pkg, pkgName, mapMatch, mapped, path, skipExtensions);
- }
-
- // no environment match -> fallback to original subPath by returning undefined
- });
- }
-
- // normalizeSync = decanonicalize + package resolution
- SystemJSLoader.prototype.normalizeSync = SystemJSLoader.prototype.decanonicalize = SystemJSLoader.prototype.normalize;
-
- // decanonicalize must JUST handle package defaultExtension: false case when defaultJSExtensions is set
- // to be deprecated!
- hook('decanonicalize', function(decanonicalize) {
- return function(name, parentName) {
- if (this.builder)
- return decanonicalize.call(this, name, parentName, true);
-
- var decanonicalized = decanonicalize.call(this, name, parentName, false);
-
- if (!this.defaultJSExtensions)
- return decanonicalized;
-
- var pkgName = getPackage(this, decanonicalized);
-
- var pkg = this.packages[pkgName];
- var defaultExtension = pkg && pkg.defaultExtension;
-
- if (defaultExtension == undefined && pkg && pkg.meta)
- getMetaMatches(pkg.meta, decanonicalized.substr(pkgName), function(metaPattern, matchMeta, matchDepth) {
- if (matchDepth == 0 || metaPattern.lastIndexOf('*') != metaPattern.length - 1) {
- defaultExtension = false;
- return true;
- }
- });
-
- if ((defaultExtension === false || defaultExtension && defaultExtension != '.js') && name.substr(name.length - 3, 3) != '.js' && decanonicalized.substr(decanonicalized.length - 3, 3) == '.js')
- decanonicalized = decanonicalized.substr(0, decanonicalized.length - 3);
-
- return decanonicalized;
- };
- });
-
- hook('normalizeSync', function(normalizeSync) {
- return function(name, parentName, isPlugin) {
- var loader = this;
- isPlugin = isPlugin === true;
-
- // apply contextual package map first
- // (we assume the parent package config has already been loaded)
- if (parentName)
- var parentPackageName = getPackage(loader, parentName) ||
- loader.defaultJSExtensions && parentName.substr(parentName.length - 3, 3) == '.js' &&
- getPackage(loader, parentName.substr(0, parentName.length - 3));
-
- var parentPackage = parentPackageName && loader.packages[parentPackageName];
-
- // ignore . since internal maps handled by standard package resolution
- if (parentPackage && name[0] != '.') {
- var parentMap = parentPackage.map;
- var parentMapMatch = parentMap && getMapMatch(parentMap, name);
-
- if (parentMapMatch && typeof parentMap[parentMapMatch] == 'string') {
- var mapped = doMapSync(loader, parentPackage, parentPackageName, parentMapMatch, name, isPlugin);
- if (mapped)
- return mapped;
- }
- }
-
- var defaultJSExtension = loader.defaultJSExtensions && name.substr(name.length - 3, 3) != '.js';
-
- // apply map, core, paths, contextual package map
- var normalized = normalizeSync.call(loader, name, parentName, false);
-
- // undo defaultJSExtension
- if (defaultJSExtension && normalized.substr(normalized.length - 3, 3) != '.js')
- defaultJSExtension = false;
- if (defaultJSExtension)
- normalized = normalized.substr(0, normalized.length - 3);
-
- var pkgConfigMatch = getPackageConfigMatch(loader, normalized);
- var pkgName = pkgConfigMatch && pkgConfigMatch.packageName || getPackage(loader, normalized);
-
- if (!pkgName)
- return normalized + (defaultJSExtension ? '.js' : '');
-
- var subPath = normalized.substr(pkgName.length + 1);
-
- return applyPackageConfigSync(loader, loader.packages[pkgName] || {}, pkgName, subPath, isPlugin);
- };
- });
-
- hook('normalize', function(normalize) {
- return function(name, parentName, isPlugin) {
- var loader = this;
- isPlugin = isPlugin === true;
-
- return Promise.resolve()
- .then(function() {
- // apply contextual package map first
- // (we assume the parent package config has already been loaded)
- if (parentName)
- var parentPackageName = getPackage(loader, parentName) ||
- loader.defaultJSExtensions && parentName.substr(parentName.length - 3, 3) == '.js' &&
- getPackage(loader, parentName.substr(0, parentName.length - 3));
-
- var parentPackage = parentPackageName && loader.packages[parentPackageName];
-
- // ignore . since internal maps handled by standard package resolution
- if (parentPackage && name.substr(0, 2) != './') {
- var parentMap = parentPackage.map;
- var parentMapMatch = parentMap && getMapMatch(parentMap, name);
-
- if (parentMapMatch)
- return doMap(loader, parentPackage, parentPackageName, parentMapMatch, name, isPlugin);
- }
-
- return Promise.resolve();
- })
- .then(function(mapped) {
- if (mapped)
- return mapped;
-
- var defaultJSExtension = loader.defaultJSExtensions && name.substr(name.length - 3, 3) != '.js';
-
- // apply map, core, paths, contextual package map
- var normalized = normalize.call(loader, name, parentName, false);
-
- // undo defaultJSExtension
- if (defaultJSExtension && normalized.substr(normalized.length - 3, 3) != '.js')
- defaultJSExtension = false;
- if (defaultJSExtension)
- normalized = normalized.substr(0, normalized.length - 3);
-
- var pkgConfigMatch = getPackageConfigMatch(loader, normalized);
- var pkgName = pkgConfigMatch && pkgConfigMatch.packageName || getPackage(loader, normalized);
-
- if (!pkgName)
- return Promise.resolve(normalized + (defaultJSExtension ? '.js' : ''));
-
- var pkg = loader.packages[pkgName];
-
- // if package is already configured or not a dynamic config package, use existing package config
- var isConfigured = pkg && (pkg.configured || !pkgConfigMatch);
- return (isConfigured ? Promise.resolve(pkg) : loadPackageConfigPath(loader, pkgName, pkgConfigMatch.configPath))
- .then(function(pkg) {
- var subPath = normalized.substr(pkgName.length + 1);
-
- return applyPackageConfig(loader, pkg, pkgName, subPath, isPlugin);
- });
- });
- };
- });
-
- // check if the given normalized name matches a packageConfigPath
- // if so, loads the config
- var packageConfigPaths = {};
-
- // data object for quick checks against package paths
- function createPkgConfigPathObj(path) {
- var lastWildcard = path.lastIndexOf('*');
- var length = Math.max(lastWildcard + 1, path.lastIndexOf('/'));
- return {
- length: length,
- regEx: new RegExp('^(' + path.substr(0, length).replace(/[.+?^${}()|[\]\\]/g, '\\$&').replace(/\*/g, '[^\\/]+') + ')(\\/|$)'),
- wildcard: lastWildcard != -1
- };
- }
-
- // most specific match wins
- function getPackageConfigMatch(loader, normalized) {
- var pkgName, exactMatch = false, configPath;
- for (var i = 0; i < loader.packageConfigPaths.length; i++) {
- var packageConfigPath = loader.packageConfigPaths[i];
- var p = packageConfigPaths[packageConfigPath] || (packageConfigPaths[packageConfigPath] = createPkgConfigPathObj(packageConfigPath));
- if (normalized.length < p.length)
- continue;
- var match = normalized.match(p.regEx);
- if (match && (!pkgName || (!(exactMatch && p.wildcard) && pkgName.length < match[1].length))) {
- pkgName = match[1];
- exactMatch = !p.wildcard;
- configPath = pkgName + packageConfigPath.substr(p.length);
- }
- }
-
- if (!pkgName)
- return;
-
- return {
- packageName: pkgName,
- configPath: configPath
- };
- }
-
- function loadPackageConfigPath(loader, pkgName, pkgConfigPath) {
- var configLoader = loader.pluginLoader || loader;
-
- // NB remove this when json is default
- (configLoader.meta[pkgConfigPath] = configLoader.meta[pkgConfigPath] || {}).format = 'json';
- configLoader.meta[pkgConfigPath].loader = null;
-
- return configLoader.load(pkgConfigPath)
- .then(function() {
- var cfg = configLoader.get(pkgConfigPath)['default'];
-
- // support "systemjs" prefixing
- if (cfg.systemjs)
- cfg = cfg.systemjs;
-
- // modules backwards compatibility
- if (cfg.modules) {
- cfg.meta = cfg.modules;
- warn.call(loader, 'Package config file ' + pkgConfigPath + ' is configured with "modules", which is deprecated as it has been renamed to "meta".');
- }
-
- return setPkgConfig(loader, pkgName, cfg, true);
- });
- }
-
- function getMetaMatches(pkgMeta, subPath, matchFn) {
- // wildcard meta
- var meta = {};
- var wildcardIndex;
- for (var module in pkgMeta) {
- // allow meta to start with ./ for flexibility
- var dotRel = module.substr(0, 2) == './' ? './' : '';
- if (dotRel)
- module = module.substr(2);
-
- wildcardIndex = module.indexOf('*');
- if (wildcardIndex === -1)
- continue;
-
- if (module.substr(0, wildcardIndex) == subPath.substr(0, wildcardIndex)
- && module.substr(wildcardIndex + 1) == subPath.substr(subPath.length - module.length + wildcardIndex + 1)) {
- // alow match function to return true for an exit path
- if (matchFn(module, pkgMeta[dotRel + module], module.split('/').length))
- return;
- }
- }
- // exact meta
- var exactMeta = pkgMeta[subPath] && pkgMeta.hasOwnProperty && pkgMeta.hasOwnProperty(subPath) ? pkgMeta[subPath] : pkgMeta['./' + subPath];
- if (exactMeta)
- matchFn(exactMeta, exactMeta, 0);
- }
-
- hook('locate', function(locate) {
- return function(load) {
- var loader = this;
- return Promise.resolve(locate.call(this, load))
- .then(function(address) {
- var pkgName = getPackage(loader, load.name);
- if (pkgName) {
- var pkg = loader.packages[pkgName];
- var subPath = load.name.substr(pkgName.length + 1);
-
- var meta = {};
- if (pkg.meta) {
- var bestDepth = 0;
-
- // NB support a main shorthand in meta here?
- getMetaMatches(pkg.meta, subPath, function(metaPattern, matchMeta, matchDepth) {
- if (matchDepth > bestDepth)
- bestDepth = matchDepth;
- extendMeta(meta, matchMeta, matchDepth && bestDepth > matchDepth);
- });
-
- extendMeta(load.metadata, meta);
- }
-
- // format
- if (pkg.format && !load.metadata.loader)
- load.metadata.format = load.metadata.format || pkg.format;
- }
-
- return address;
- });
- };
- });
-
-})();
-/*
- * Script tag fetch
- *
- * When load.metadata.scriptLoad is true, we load via script tag injection.
- */
-(function() {
-
- if (typeof document != 'undefined')
- var head = document.getElementsByTagName('head')[0];
-
- var curSystem;
- var curRequire;
-
- // if doing worker executing, this is set to the load record being executed
- var workerLoad = null;
-
- // interactive mode handling method courtesy RequireJS
- var ieEvents = head && (function() {
- var s = document.createElement('script');
- var isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]';
- return s.attachEvent && !(s.attachEvent.toString && s.attachEvent.toString().indexOf('[native code') < 0) && !isOpera;
- })();
-
- // IE interactive-only part
- // we store loading scripts array as { script: <script>, load: {...} }
- var interactiveLoadingScripts = [];
- var interactiveScript;
- function getInteractiveScriptLoad() {
- if (interactiveScript && interactiveScript.script.readyState === 'interactive')
- return interactiveScript.load;
-
- for (var i = 0; i < interactiveLoadingScripts.length; i++)
- if (interactiveLoadingScripts[i].script.readyState == 'interactive') {
- interactiveScript = interactiveLoadingScripts[i];
- return interactiveScript.load;
- }
- }
-
- // System.register, System.registerDynamic, AMD define pipeline
- // this is called by the above methods when they execute
- // we then run the reduceRegister_ collection function either immediately
- // if we are in IE and know the currently executing script (interactive)
- // or later if we need to wait for the synchronous load callback to know the script
- var loadingCnt = 0;
- var registerQueue = [];
- hook('pushRegister_', function(pushRegister) {
- return function(register) {
- // if using eval-execution then skip
- if (pushRegister.call(this, register))
- return false;
-
- // if using worker execution, then we're done
- if (workerLoad)
- this.reduceRegister_(workerLoad, register);
-
- // detect if we know the currently executing load (IE)
- // if so, immediately call reduceRegister
- else if (ieEvents)
- this.reduceRegister_(getInteractiveScriptLoad(), register);
-
- // otherwise, add to our execution queue
- // to call reduceRegister on sync script load event
- else if (loadingCnt)
- registerQueue.push(register);
-
- // if we're not currently loading anything though
- // then do the reduction against a null load
- // (out of band named define or named register)
- // note even in non-script environments, this catch is used
- else
- this.reduceRegister_(null, register);
-
- return true;
- };
- });
-
- function webWorkerImport(loader, load) {
- return new Promise(function(resolve, reject) {
- if (load.metadata.integrity)
- reject(new Error('Subresource integrity checking is not supported in web workers.'));
-
- workerLoad = load;
- try {
- importScripts(load.address);
- }
- catch(e) {
- workerLoad = null;
- reject(e);
- }
- workerLoad = null;
-
- // if nothing registered, then something went wrong
- if (!load.metadata.entry)
- reject(new Error(load.address + ' did not call System.register or AMD define. If loading a global, ensure the meta format is set to global.'));
-
- resolve('');
- });
- }
-
- // override fetch to use script injection
- hook('fetch', function(fetch) {
- return function(load) {
- var loader = this;
-
- if (load.metadata.format == 'json' || !load.metadata.scriptLoad || (!isBrowser && !isWorker))
- return fetch.call(this, load);
-
- if (isWorker)
- return webWorkerImport(loader, load);
-
- return new Promise(function(resolve, reject) {
- var s = document.createElement('script');
-
- s.async = true;
-
- if (load.metadata.crossOrigin)
- s.crossOrigin = load.metadata.crossOrigin;
-
- if (load.metadata.integrity)
- s.setAttribute('integrity', load.metadata.integrity);
-
- if (ieEvents) {
- s.attachEvent('onreadystatechange', complete);
- interactiveLoadingScripts.push({
- script: s,
- load: load
- });
- }
- else {
- s.addEventListener('load', complete, false);
- s.addEventListener('error', error, false);
- }
-
- loadingCnt++;
-
- curSystem = __global.System;
- curRequire = __global.require;
-
- s.src = load.address;
- head.appendChild(s);
-
- function complete(evt) {
- if (s.readyState && s.readyState != 'loaded' && s.readyState != 'complete')
- return;
-
- loadingCnt--;
-
- // complete call is sync on execution finish
- // (in ie already done reductions)
- if (!load.metadata.entry && !registerQueue.length) {
- loader.reduceRegister_(load);
- }
- else if (!ieEvents) {
- for (var i = 0; i < registerQueue.length; i++)
- loader.reduceRegister_(load, registerQueue[i]);
- registerQueue = [];
- }
-
- cleanup();
-
- // if nothing registered, then something went wrong
- if (!load.metadata.entry && !load.metadata.bundle)
- reject(new Error(load.name + ' did not call System.register or AMD define. If loading a global module configure the global name via the meta exports property for script injection support.'));
-
- resolve('');
- }
-
- function error(evt) {
- cleanup();
- reject(new Error('Unable to load script ' + load.address));
- }
-
- function cleanup() {
- __global.System = curSystem;
- __global.require = curRequire;
-
- if (s.detachEvent) {
- s.detachEvent('onreadystatechange', complete);
- for (var i = 0; i < interactiveLoadingScripts.length; i++)
- if (interactiveLoadingScripts[i].script == s) {
- if (interactiveScript && interactiveScript.script == s)
- interactiveScript = null;
- interactiveLoadingScripts.splice(i, 1);
- }
- }
- else {
- s.removeEventListener('load', complete, false);
- s.removeEventListener('error', error, false);
- }
-
- head.removeChild(s);
- }
- });
- };
- });
-})();
-/*
- * Instantiate registry extension
- *
- * Supports Traceur System.register 'instantiate' output for loading ES6 as ES5.
- *
- * - Creates the loader.register function
- * - Also supports metadata.format = 'register' in instantiate for anonymous register modules
- * - Also supports metadata.deps, metadata.execute and metadata.executingRequire
- * for handling dynamic modules alongside register-transformed ES6 modules
- *
- *
- * The code here replicates the ES6 linking groups algorithm to ensure that
- * circular ES6 compiled into System.register can work alongside circular AMD
- * and CommonJS, identically to the actual ES6 loader.
- *
- */
-
-
-/*
- * Registry side table entries in loader.defined
- * Registry Entry Contains:
- * - name
- * - deps
- * - declare for declarative modules
- * - execute for dynamic modules, different to declarative execute on module
- * - executingRequire indicates require drives execution for circularity of dynamic modules
- * - declarative optional boolean indicating which of the above
- *
- * Can preload modules directly on SystemJS.defined['my/module'] = { deps, execute, executingRequire }
- *
- * Then the entry gets populated with derived information during processing:
- * - normalizedDeps derived from deps, created in instantiate
- * - groupIndex used by group linking algorithm
- * - evaluated indicating whether evaluation has happend
- * - module the module record object, containing:
- * - exports actual module exports
- *
- * For dynamic we track the es module with:
- * - esModule actual es module value
- * - esmExports whether to extend the esModule with named exports
- *
- * Then for declarative only we track dynamic bindings with the 'module' records:
- * - name
- * - exports
- * - setters declarative setter functions
- * - dependencies, module records of dependencies
- * - importers, module records of dependents
- *
- * After linked and evaluated, entries are removed, declarative module records remain in separate
- * module binding table
- *
- */
-
-var leadingCommentAndMetaRegEx = /^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)*\s*/;
-function detectRegisterFormat(source) {
- var leadingCommentAndMeta = source.match(leadingCommentAndMetaRegEx);
- return leadingCommentAndMeta && source.substr(leadingCommentAndMeta[0].length, 15) == 'System.register';
-}
-
-function createEntry() {
- return {
- name: null,
- deps: null,
- originalIndices: null,
- declare: null,
- execute: null,
- executingRequire: false,
- declarative: false,
- normalizedDeps: null,
- groupIndex: null,
- evaluated: false,
- module: null,
- esModule: null,
- esmExports: false
- };
-}
-
-(function() {
-
- /*
- * There are two variations of System.register:
- * 1. System.register for ES6 conversion (2-3 params) - System.register([name, ]deps, declare)
- * see https://github.com/ModuleLoader/es6-module-loader/wiki/System.register-Explained
- *
- * 2. System.registerDynamic for dynamic modules (3-4 params) - System.registerDynamic([name, ]deps, executingRequire, execute)
- * the true or false statement
- *
- * this extension implements the linking algorithm for the two variations identical to the spec
- * allowing compiled ES6 circular references to work alongside AMD and CJS circular references.
- *
- */
- SystemJSLoader.prototype.register = function(name, deps, declare) {
- if (typeof name != 'string') {
- declare = deps;
- deps = name;
- name = null;
- }
-
- // dynamic backwards-compatibility
- // can be deprecated eventually
- if (typeof declare == 'boolean')
- return this.registerDynamic.apply(this, arguments);
-
- var entry = createEntry();
- // ideally wouldn't apply map config to bundle names but
- // dependencies go through map regardless so we can't restrict
- // could reconsider in shift to new spec
- entry.name = name && (this.decanonicalize || this.normalize).call(this, name);
- entry.declarative = true;
- entry.deps = deps;
- entry.declare = declare;
-
- this.pushRegister_({
- amd: false,
- entry: entry
- });
- };
- SystemJSLoader.prototype.registerDynamic = function(name, deps, declare, execute) {
- if (typeof name != 'string') {
- execute = declare;
- declare = deps;
- deps = name;
- name = null;
- }
-
- // dynamic
- var entry = createEntry();
- entry.name = name && (this.decanonicalize || this.normalize).call(this, name);
- entry.deps = deps;
- entry.execute = execute;
- entry.executingRequire = declare;
-
- this.pushRegister_({
- amd: false,
- entry: entry
- });
- };
- hook('reduceRegister_', function() {
- return function(load, register) {
- if (!register)
- return;
-
- var entry = register.entry;
- var curMeta = load && load.metadata;
-
- // named register
- if (entry.name) {
- if (!(entry.name in this.defined))
- this.defined[entry.name] = entry;
-
- if (curMeta)
- curMeta.bundle = true;
- }
- // anonymous register
- if (!entry.name || load && !curMeta.entry && entry.name == load.name) {
- if (!curMeta)
- throw new TypeError('Invalid System.register call. Anonymous System.register calls can only be made by modules loaded by SystemJS.import and not via script tags.');
- if (curMeta.entry) {
- if (curMeta.format == 'register')
- throw new Error('Multiple anonymous System.register calls in module ' + load.name + '. If loading a bundle, ensure all the System.register calls are named.');
- else
- throw new Error('Module ' + load.name + ' interpreted as ' + curMeta.format + ' module format, but called System.register.');
- }
- if (!curMeta.format)
- curMeta.format = 'register';
- curMeta.entry = entry;
- }
- };
- });
-
- hookConstructor(function(constructor) {
- return function() {
- constructor.call(this);
-
- this.defined = {};
- this._loader.moduleRecords = {};
- };
- });
-
- function buildGroups(entry, loader, groups) {
- groups[entry.groupIndex] = groups[entry.groupIndex] || [];
-
- if (indexOf.call(groups[entry.groupIndex], entry) != -1)
- return;
-
- groups[entry.groupIndex].push(entry);
-
- for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
- var depName = entry.normalizedDeps[i];
- var depEntry = loader.defined[depName];
-
- // not in the registry means already linked / ES6
- if (!depEntry || depEntry.evaluated)
- continue;
-
- // now we know the entry is in our unlinked linkage group
- var depGroupIndex = entry.groupIndex + (depEntry.declarative != entry.declarative);
-
- // the group index of an entry is always the maximum
- if (depEntry.groupIndex === null || depEntry.groupIndex < depGroupIndex) {
-
- // if already in a group, remove from the old group
- if (depEntry.groupIndex !== null) {
- groups[depEntry.groupIndex].splice(indexOf.call(groups[depEntry.groupIndex], depEntry), 1);
-
- // if the old group is empty, then we have a mixed depndency cycle
- if (groups[depEntry.groupIndex].length == 0)
- throw new Error("Mixed dependency cycle detected");
- }
-
- depEntry.groupIndex = depGroupIndex;
- }
-
- buildGroups(depEntry, loader, groups);
- }
- }
-
- function link(name, startEntry, loader) {
- // skip if already linked
- if (startEntry.module)
- return;
-
- startEntry.groupIndex = 0;
-
- var groups = [];
-
- buildGroups(startEntry, loader, groups);
-
- var curGroupDeclarative = !!startEntry.declarative == groups.length % 2;
- for (var i = groups.length - 1; i >= 0; i--) {
- var group = groups[i];
- for (var j = 0; j < group.length; j++) {
- var entry = group[j];
-
- // link each group
- if (curGroupDeclarative)
- linkDeclarativeModule(entry, loader);
- else
- linkDynamicModule(entry, loader);
- }
- curGroupDeclarative = !curGroupDeclarative;
- }
- }
-
- // module binding records
- function ModuleRecord() {}
- defineProperty(ModuleRecord, 'toString', {
- value: function() {
- return 'Module';
- }
- });
-
- function getOrCreateModuleRecord(name, moduleRecords) {
- return moduleRecords[name] || (moduleRecords[name] = {
- name: name,
- dependencies: [],
- exports: new ModuleRecord(), // start from an empty module and extend
- importers: []
- });
- }
-
- function linkDeclarativeModule(entry, loader) {
- // only link if already not already started linking (stops at circular)
- if (entry.module)
- return;
-
- var moduleRecords = loader._loader.moduleRecords;
- var module = entry.module = getOrCreateModuleRecord(entry.name, moduleRecords);
- var exports = entry.module.exports;
-
- var declaration = entry.declare.call(__global, function(name, value) {
- module.locked = true;
-
- if (typeof name == 'object') {
- for (var p in name)
- exports[p] = name[p];
- }
- else {
- exports[name] = value;
- }
-
- for (var i = 0, l = module.importers.length; i < l; i++) {
- var importerModule = module.importers[i];
- if (!importerModule.locked) {
- var importerIndex = indexOf.call(importerModule.dependencies, module);
- var setter = importerModule.setters[importerIndex];
- if (setter)
- setter(exports);
- }
- }
-
- module.locked = false;
- return value;
- }, { id: entry.name });
-
- if (typeof declaration == 'function')
- declaration = { setters: [], execute: declaration };
-
- // allowing undefined declaration was a mistake! To be deprecated.
- declaration = declaration || { setters: [], execute: function() {} };
-
- module.setters = declaration.setters;
- module.execute = declaration.execute;
-
- if (!module.setters || !module.execute) {
- throw new TypeError('Invalid System.register form for ' + entry.name);
- }
-
- // now link all the module dependencies
- for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
- var depName = entry.normalizedDeps[i];
- var depEntry = loader.defined[depName];
- var depModule = moduleRecords[depName];
-
- // work out how to set depExports based on scenarios...
- var depExports;
-
- if (depModule) {
- depExports = depModule.exports;
- }
- // dynamic, already linked in our registry
- else if (depEntry && !depEntry.declarative) {
- depExports = depEntry.esModule;
- }
- // in the loader registry
- else if (!depEntry) {
- depExports = loader.get(depName);
- }
- // we have an entry -> link
- else {
- linkDeclarativeModule(depEntry, loader);
- depModule = depEntry.module;
- depExports = depModule.exports;
- }
-
- // only declarative modules have dynamic bindings
- if (depModule && depModule.importers) {
- depModule.importers.push(module);
- module.dependencies.push(depModule);
- }
- else {
- module.dependencies.push(null);
- }
-
- // run setters for all entries with the matching dependency name
- var originalIndices = entry.originalIndices[i];
- for (var j = 0, len = originalIndices.length; j < len; ++j) {
- var index = originalIndices[j];
- if (module.setters[index]) {
- module.setters[index](depExports);
- }
- }
- }
- }
-
- // An analog to loader.get covering execution of all three layers (real declarative, simulated declarative, simulated dynamic)
- function getModule(name, loader) {
- var exports;
- var entry = loader.defined[name];
-
- if (!entry) {
- exports = loader.get(name);
- if (!exports)
- throw new Error('Unable to load dependency ' + name + '.');
- }
-
- else {
- if (entry.declarative)
- ensureEvaluated(name, entry, [], loader);
-
- else if (!entry.evaluated)
- linkDynamicModule(entry, loader);
-
- exports = entry.module.exports;
- }
-
- if ((!entry || entry.declarative) && exports && exports.__useDefault)
- return exports['default'];
-
- return exports;
- }
-
- function linkDynamicModule(entry, loader) {
- if (entry.module)
- return;
-
- var exports = {};
-
- var module = entry.module = { exports: exports, id: entry.name };
-
- // AMD requires execute the tree first
- if (!entry.executingRequire) {
- for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
- var depName = entry.normalizedDeps[i];
- // we know we only need to link dynamic due to linking algorithm
- var depEntry = loader.defined[depName];
- if (depEntry)
- linkDynamicModule(depEntry, loader);
- }
- }
-
- // now execute
- entry.evaluated = true;
- var output = entry.execute.call(__global, function(name) {
- for (var i = 0, l = entry.deps.length; i < l; i++) {
- if (entry.deps[i] != name)
- continue;
- return getModule(entry.normalizedDeps[i], loader);
- }
- // try and normalize the dependency to see if we have another form
- var nameNormalized = loader.normalizeSync(name, entry.name);
- if (indexOf.call(entry.normalizedDeps, nameNormalized) != -1)
- return getModule(nameNormalized, loader);
-
- throw new Error('Module ' + name + ' not declared as a dependency of ' + entry.name);
- }, exports, module);
-
- if (output !== undefined)
- module.exports = output;
-
- // create the esModule object, which allows ES6 named imports of dynamics
- exports = module.exports;
-
- // __esModule flag treats as already-named
- if (exports && (exports.__esModule || exports instanceof Module))
- entry.esModule = loader.newModule(exports);
- // set module as 'default' export, then fake named exports by iterating properties
- else if (entry.esmExports && exports !== __global)
- entry.esModule = loader.newModule(getESModule(exports));
- // just use the 'default' export
- else
- entry.esModule = loader.newModule({ 'default': exports, __useDefault: true });
- }
-
- /*
- * Given a module, and the list of modules for this current branch,
- * ensure that each of the dependencies of this module is evaluated
- * (unless one is a circular dependency already in the list of seen
- * modules, in which case we execute it)
- *
- * Then we evaluate the module itself depth-first left to right
- * execution to match ES6 modules
- */
- function ensureEvaluated(moduleName, entry, seen, loader) {
- // if already seen, that means it's an already-evaluated non circular dependency
- if (!entry || entry.evaluated || !entry.declarative)
- return;
-
- // this only applies to declarative modules which late-execute
-
- seen.push(moduleName);
-
- for (var i = 0, l = entry.normalizedDeps.length; i < l; i++) {
- var depName = entry.normalizedDeps[i];
- if (indexOf.call(seen, depName) == -1) {
- if (!loader.defined[depName])
- loader.get(depName);
- else
- ensureEvaluated(depName, loader.defined[depName], seen, loader);
- }
- }
-
- if (entry.evaluated)
- return;
-
- entry.evaluated = true;
- entry.module.execute.call(__global);
- }
-
- // override the delete method to also clear the register caches
- hook('delete', function(del) {
- return function(name) {
- delete this._loader.moduleRecords[name];
- delete this.defined[name];
- return del.call(this, name);
- };
- });
-
- hook('fetch', function(fetch) {
- return function(load) {
- if (this.defined[load.name]) {
- load.metadata.format = 'defined';
- return '';
- }
-
- load.metadata.deps = load.metadata.deps || [];
-
- return fetch.call(this, load);
- };
- });
-
- hook('translate', function(translate) {
- // we run the meta detection here (register is after meta)
- return function(load) {
- load.metadata.deps = load.metadata.deps || [];
- return Promise.resolve(translate.apply(this, arguments)).then(function(source) {
- // run detection for register format
- if (load.metadata.format == 'register' || !load.metadata.format && detectRegisterFormat(load.source))
- load.metadata.format = 'register';
- return source;
- });
- };
- });
-
- // implement a perforance shortpath for System.load with no deps
- hook('load', function(doLoad) {
- return function(normalized) {
- var loader = this;
- var entry = loader.defined[normalized];
-
- if (!entry || entry.deps.length)
- return doLoad.apply(this, arguments);
-
- entry.originalIndices = entry.normalizedDeps = [];
-
- // recursively ensure that the module and all its
- // dependencies are linked (with dependency group handling)
- link(normalized, entry, loader);
-
- // now handle dependency execution in correct order
- ensureEvaluated(normalized, entry, [], loader);
- if (!entry.esModule)
- entry.esModule = loader.newModule(entry.module.exports);
-
- // remove from the registry
- if (!loader.trace)
- loader.defined[normalized] = undefined;
-
- // return the defined module object
- loader.set(normalized, entry.esModule);
-
- return Promise.resolve();
- };
- });
-
- hook('instantiate', function(instantiate) {
- return function(load) {
- if (load.metadata.format == 'detect')
- load.metadata.format = undefined;
-
- // assumes previous instantiate is sync
- // (core json support)
- instantiate.call(this, load);
-
- var loader = this;
-
- var entry;
-
- // first we check if this module has already been defined in the registry
- if (loader.defined[load.name]) {
- entry = loader.defined[load.name];
- // don't support deps for ES modules
- if (!entry.declarative)
- entry.deps = entry.deps.concat(load.metadata.deps);
- entry.deps = entry.deps.concat(load.metadata.deps);
- }
-
- // picked up already by an anonymous System.register script injection
- // or via the dynamic formats
- else if (load.metadata.entry) {
- entry = load.metadata.entry;
- entry.deps = entry.deps.concat(load.metadata.deps);
- }
-
- // Contains System.register calls
- // (dont run bundles in the builder)
- else if (!(loader.builder && load.metadata.bundle)
- && (load.metadata.format == 'register' || load.metadata.format == 'esm' || load.metadata.format == 'es6')) {
-
- if (typeof __exec != 'undefined')
- __exec.call(loader, load);
-
- if (!load.metadata.entry && !load.metadata.bundle)
- throw new Error(load.name + ' detected as ' + load.metadata.format + ' but didn\'t execute.');
-
- entry = load.metadata.entry;
-
- // support metadata deps for System.register
- if (entry && load.metadata.deps)
- entry.deps = entry.deps.concat(load.metadata.deps);
- }
-
- // named bundles are just an empty module
- if (!entry) {
- entry = createEntry();
- entry.deps = load.metadata.deps;
- entry.execute = function() {};
- }
-
- // place this module onto defined for circular references
- loader.defined[load.name] = entry;
-
- var grouped = group(entry.deps);
-
- entry.deps = grouped.names;
- entry.originalIndices = grouped.indices;
- entry.name = load.name;
- entry.esmExports = load.metadata.esmExports !== false;
-
- // first, normalize all dependencies
- var normalizePromises = [];
- for (var i = 0, l = entry.deps.length; i < l; i++)
- normalizePromises.push(Promise.resolve(loader.normalize(entry.deps[i], load.name)));
-
- return Promise.all(normalizePromises).then(function(normalizedDeps) {
-
- entry.normalizedDeps = normalizedDeps;
-
- return {
- deps: entry.deps,
- execute: function() {
- // recursively ensure that the module and all its
- // dependencies are linked (with dependency group handling)
- link(load.name, entry, loader);
-
- // now handle dependency execution in correct order
- ensureEvaluated(load.name, entry, [], loader);
-
- if (!entry.esModule)
- entry.esModule = loader.newModule(entry.module.exports);
-
- // remove from the registry
- if (!loader.trace)
- loader.defined[load.name] = undefined;
-
- // return the defined module object
- return entry.esModule;
- }
- };
- });
- };
- });
-})();
-
-
-function getGlobalValue(exports) {
- if (typeof exports == 'string')
- return readMemberExpression(exports, __global);
-
- if (!(exports instanceof Array))
- throw new Error('Global exports must be a string or array.');
-
- var globalValue = {};
- var first = true;
- for (var i = 0; i < exports.length; i++) {
- var val = readMemberExpression(exports[i], __global);
- if (first) {
- globalValue['default'] = val;
- first = false;
- }
- globalValue[exports[i].split('.').pop()] = val;
- }
- return globalValue;
-}
-
-hook('reduceRegister_', function(reduceRegister) {
- return function(load, register) {
- if (register || (!load.metadata.exports && !(isWorker && load.metadata.format == 'global')))
- return reduceRegister.call(this, load, register);
-
- load.metadata.format = 'global';
- var entry = load.metadata.entry = createEntry();
- entry.deps = load.metadata.deps;
- var globalValue = getGlobalValue(load.metadata.exports);
- entry.execute = function() {
- return globalValue;
- };
- };
-});
-
-hookConstructor(function(constructor) {
- return function() {
- var loader = this;
- constructor.call(loader);
-
- var hasOwnProperty = Object.prototype.hasOwnProperty;
-
- // bare minimum ignores
- var ignoredGlobalProps = ['_g', 'sessionStorage', 'localStorage', 'clipboardData', 'frames', 'frameElement', 'external',
- 'mozAnimationStartTime', 'webkitStorageInfo', 'webkitIndexedDB', 'mozInnerScreenY', 'mozInnerScreenX'];
-
- var globalSnapshot;
-
- function forEachGlobal(callback) {
- if (Object.keys)
- Object.keys(__global).forEach(callback);
- else
- for (var g in __global) {
- if (!hasOwnProperty.call(__global, g))
- continue;
- callback(g);
- }
- }
-
- function forEachGlobalValue(callback) {
- forEachGlobal(function(globalName) {
- if (indexOf.call(ignoredGlobalProps, globalName) != -1)
- return;
- try {
- var value = __global[globalName];
- }
- catch (e) {
- ignoredGlobalProps.push(globalName);
- }
- callback(globalName, value);
- });
- }
-
- loader.set('@@global-helpers', loader.newModule({
- prepareGlobal: function(moduleName, exports, globals, encapsulate) {
- // disable module detection
- var curDefine = __global.define;
-
- __global.define = undefined;
-
- // set globals
- var oldGlobals;
- if (globals) {
- oldGlobals = {};
- for (var g in globals) {
- oldGlobals[g] = __global[g];
- __global[g] = globals[g];
- }
- }
-
- // store a complete copy of the global object in order to detect changes
- if (!exports) {
- globalSnapshot = {};
-
- forEachGlobalValue(function(name, value) {
- globalSnapshot[name] = value;
- });
- }
-
- // return function to retrieve global
- return function() {
- var globalValue = exports ? getGlobalValue(exports) : {};
-
- var singleGlobal;
- var multipleExports = !!exports;
-
- if (!exports || encapsulate)
- forEachGlobalValue(function(name, value) {
- if (globalSnapshot[name] === value)
- return;
- if (typeof value == 'undefined')
- return;
-
- // allow global encapsulation where globals are removed
- if (encapsulate)
- __global[name] = undefined;
-
- if (!exports) {
- globalValue[name] = value;
-
- if (typeof singleGlobal != 'undefined') {
- if (!multipleExports && singleGlobal !== value)
- multipleExports = true;
- }
- else {
- singleGlobal = value;
- }
- }
- });
-
- globalValue = multipleExports ? globalValue : singleGlobal;
-
- // revert globals
- if (oldGlobals) {
- for (var g in oldGlobals)
- __global[g] = oldGlobals[g];
- }
- __global.define = curDefine;
-
- return globalValue;
- };
- }
- }));
- };
-});
-hookConstructor(function(constructor) {
- return function() {
- var loader = this;
- constructor.call(loader);
-
- if (typeof window != 'undefined' && typeof document != 'undefined' && window.location)
- var windowOrigin = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '');
-
- function stripOrigin(path) {
- if (path.substr(0, 8) == 'file:///')
- return path.substr(7 + !!isWindows);
-
- if (windowOrigin && path.substr(0, windowOrigin.length) == windowOrigin)
- return path.substr(windowOrigin.length);
-
- return path;
- }
-
- loader.set('@@cjs-helpers', loader.newModule({
- requireResolve: function(request, parentId) {
- return stripOrigin(loader.normalizeSync(request, parentId));
- },
- getPathVars: function(moduleId) {
- // remove any plugin syntax
- var pluginIndex = moduleId.lastIndexOf('!');
- var filename;
- if (pluginIndex != -1)
- filename = moduleId.substr(0, pluginIndex);
- else
- filename = moduleId;
-
- var dirname = filename.split('/');
- dirname.pop();
- dirname = dirname.join('/');
-
- return {
- filename: stripOrigin(filename),
- dirname: stripOrigin(dirname)
- };
- }
- }))
- };
-});/*
- * AMD Helper function module
- * Separated into its own file as this is the part needed for full AMD support in SFX builds
- * NB since implementations have now diverged this can be merged back with amd.js
- */
-
-hook('fetch', function(fetch) {
- return function(load) {
- // script load implies define global leak
- if (load.metadata.scriptLoad && isBrowser)
- __global.define = this.amdDefine;
- return fetch.call(this, load);
- };
-});
-
-hookConstructor(function(constructor) {
- return function() {
- var loader = this;
- constructor.call(this);
-
- var commentRegEx = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg;
- var cjsRequirePre = "(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])";
- var cjsRequirePost = "\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)";
- var fnBracketRegEx = /\(([^\)]*)\)/;
- var wsRegEx = /^\s+|\s+$/g;
-
- var requireRegExs = {};
-
- function getCJSDeps(source, requireIndex) {
-
- // remove comments
- source = source.replace(commentRegEx, '');
-
- // determine the require alias
- var params = source.match(fnBracketRegEx);
- var requireAlias = (params[1].split(',')[requireIndex] || 'require').replace(wsRegEx, '');
-
- // find or generate the regex for this requireAlias
- var requireRegEx = requireRegExs[requireAlias] || (requireRegExs[requireAlias] = new RegExp(cjsRequirePre + requireAlias + cjsRequirePost, 'g'));
-
- requireRegEx.lastIndex = 0;
-
- var deps = [];
-
- var match;
- while (match = requireRegEx.exec(source))
- deps.push(match[2] || match[3]);
-
- return deps;
- }
-
- /*
- AMD-compatible require
- To copy RequireJS, set window.require = window.requirejs = loader.amdRequire
- */
- function require(names, callback, errback, referer) {
- // in amd, first arg can be a config object... we just ignore
- if (typeof names == 'object' && !(names instanceof Array))
- return require.apply(null, Array.prototype.splice.call(arguments, 1, arguments.length - 1));
-
- // amd require
- if (typeof names == 'string' && typeof callback == 'function')
- names = [names];
- if (names instanceof Array) {
- var dynamicRequires = [];
- for (var i = 0; i < names.length; i++)
- dynamicRequires.push(loader['import'](names[i], referer));
- Promise.all(dynamicRequires).then(function(modules) {
- if (callback)
- callback.apply(null, modules);
- }, errback);
- }
-
- // commonjs require
- else if (typeof names == 'string') {
- var defaultJSExtension = loader.defaultJSExtensions && names.substr(names.length - 3, 3) != '.js';
- var normalized = loader.decanonicalize(names, referer);
- if (defaultJSExtension && normalized.substr(normalized.length - 3, 3) == '.js')
- normalized = normalized.substr(0, normalized.length - 3);
- var module = loader.get(normalized);
- if (!module)
- throw new Error('Module not already loaded loading "' + names + '" as ' + normalized + (referer ? ' from "' + referer + '".' : '.'));
- return module.__useDefault ? module['default'] : module;
- }
-
- else
- throw new TypeError('Invalid require');
- }
-
- function define(name, deps, factory) {
- if (typeof name != 'string') {
- factory = deps;
- deps = name;
- name = null;
- }
- if (!(deps instanceof Array)) {
- factory = deps;
- deps = ['require', 'exports', 'module'].splice(0, factory.length);
- }
-
- if (typeof factory != 'function')
- factory = (function(factory) {
- return function() { return factory; }
- })(factory);
-
- // in IE8, a trailing comma becomes a trailing undefined entry
- if (deps[deps.length - 1] === undefined)
- deps.pop();
-
- // remove system dependencies
- var requireIndex, exportsIndex, moduleIndex;
-
- if ((requireIndex = indexOf.call(deps, 'require')) != -1) {
-
- deps.splice(requireIndex, 1);
-
- // only trace cjs requires for non-named
- // named defines assume the trace has already been done
- if (!name)
- deps = deps.concat(getCJSDeps(factory.toString(), requireIndex));
- }
-
- if ((exportsIndex = indexOf.call(deps, 'exports')) != -1)
- deps.splice(exportsIndex, 1);
-
- if ((moduleIndex = indexOf.call(deps, 'module')) != -1)
- deps.splice(moduleIndex, 1);
-
- function execute(req, exports, module) {
- var depValues = [];
- for (var i = 0; i < deps.length; i++)
- depValues.push(req(deps[i]));
-
- module.uri = module.id;
-
- module.config = function() {};
-
- // add back in system dependencies
- if (moduleIndex != -1)
- depValues.splice(moduleIndex, 0, module);
-
- if (exportsIndex != -1)
- depValues.splice(exportsIndex, 0, exports);
-
- if (requireIndex != -1) {
- function contextualRequire(names, callback, errback) {
- if (typeof names == 'string' && typeof callback != 'function')
- return req(names);
- return require.call(loader, names, callback, errback, module.id);
- }
- contextualRequire.toUrl = function(name) {
- // normalize without defaultJSExtensions
- var defaultJSExtension = loader.defaultJSExtensions && name.substr(name.length - 3, 3) != '.js';
- var url = loader.decanonicalize(name, module.id);
- if (defaultJSExtension && url.substr(url.length - 3, 3) == '.js')
- url = url.substr(0, url.length - 3);
- return url;
- };
- depValues.splice(requireIndex, 0, contextualRequire);
- }
-
- // set global require to AMD require
- var curRequire = __global.require;
- __global.require = require;
-
- var output = factory.apply(exportsIndex == -1 ? __global : exports, depValues);
-
- __global.require = curRequire;
-
- if (typeof output == 'undefined' && module)
- output = module.exports;
-
- if (typeof output != 'undefined')
- return output;
- }
-
- var entry = createEntry();
- entry.name = name && (loader.decanonicalize || loader.normalize).call(loader, name);
- entry.deps = deps;
- entry.execute = execute;
-
- loader.pushRegister_({
- amd: true,
- entry: entry
- });
- }
- define.amd = {};
-
- // reduction function to attach defines to a load record
- hook('reduceRegister_', function(reduceRegister) {
- return function(load, register) {
- // only handle AMD registers here
- if (!register || !register.amd)
- return reduceRegister.call(this, load, register);
-
- var curMeta = load && load.metadata;
- var entry = register.entry;
-
- if (curMeta) {
- if (!curMeta.format || curMeta.format == 'detect')
- curMeta.format = 'amd';
- else if (!entry.name && curMeta.format != 'amd')
- throw new Error('AMD define called while executing ' + curMeta.format + ' module ' + load.name);
- }
-
- // anonymous define
- if (!entry.name) {
- if (!curMeta)
- throw new TypeError('Unexpected anonymous AMD define.');
-
- if (curMeta.entry && !curMeta.entry.name)
- throw new Error('Multiple anonymous defines in module ' + load.name);
-
- curMeta.entry = entry;
- }
- // named define
- else {
- // if we don't have any other defines,
- // then let this be an anonymous define
- // this is just to support single modules of the form:
- // define('jquery')
- // still loading anonymously
- // because it is done widely enough to be useful
- // as soon as there is more than one define, this gets removed though
- if (curMeta) {
- if (!curMeta.entry && !curMeta.bundle)
- curMeta.entry = entry;
- else if (curMeta.entry && curMeta.entry.name && curMeta.entry.name != load.name)
- curMeta.entry = undefined;
-
- // note this is now a bundle
- curMeta.bundle = true;
- }
-
- // define the module through the register registry
- if (!(entry.name in this.defined))
- this.defined[entry.name] = entry;
- }
- };
- });
-
- loader.amdDefine = define;
- loader.amdRequire = require;
- };
-});/*
- SystemJS Loader Plugin Support
-
- Supports plugin loader syntax with "!", or via metadata.loader
-
- The plugin name is loaded as a module itself, and can override standard loader hooks
- for the plugin resource. See the plugin section of the systemjs readme.
-*/
-
-(function() {
- function getParentName(loader, parentName) {
- // if parent is a plugin, normalize against the parent plugin argument only
- if (parentName) {
- var parentPluginIndex;
- if (loader.pluginFirst) {
- if ((parentPluginIndex = parentName.lastIndexOf('!')) != -1)
- return parentName.substr(parentPluginIndex + 1);
- }
- else {
- if ((parentPluginIndex = parentName.indexOf('!')) != -1)
- return parentName.substr(0, parentPluginIndex);
- }
-
- return parentName;
- }
- }
-
- function parsePlugin(loader, name) {
- var argumentName;
- var pluginName;
-
- var pluginIndex = name.lastIndexOf('!');
-
- if (pluginIndex == -1)
- return;
-
- if (loader.pluginFirst) {
- argumentName = name.substr(pluginIndex + 1);
- pluginName = name.substr(0, pluginIndex);
- }
- else {
- argumentName = name.substr(0, pluginIndex);
- pluginName = name.substr(pluginIndex + 1) || argumentName.substr(argumentName.lastIndexOf('.') + 1);
- }
-
- return {
- argument: argumentName,
- plugin: pluginName
- };
- }
-
- // put name back together after parts have been normalized
- function combinePluginParts(loader, argumentName, pluginName, defaultExtension) {
- if (defaultExtension && argumentName.substr(argumentName.length - 3, 3) == '.js')
- argumentName = argumentName.substr(0, argumentName.length - 3);
-
- if (loader.pluginFirst) {
- return pluginName + '!' + argumentName;
- }
- else {
- return argumentName + '!' + pluginName;
- }
- }
-
- // note if normalize will add a default js extension
- // if so, remove for backwards compat
- // this is strange and sucks, but will be deprecated
- function checkDefaultExtension(loader, arg) {
- return loader.defaultJSExtensions && arg.substr(arg.length - 3, 3) != '.js';
- }
-
- function createNormalizeSync(normalizeSync) {
- return function(name, parentName, isPlugin) {
- var loader = this;
-
- var parsed = parsePlugin(loader, name);
- parentName = getParentName(this, parentName);
-
- if (!parsed)
- return normalizeSync.call(this, name, parentName, isPlugin);
-
- // if this is a plugin, normalize the plugin name and the argument
- var argumentName = loader.normalizeSync(parsed.argument, parentName, true);
- var pluginName = loader.normalizeSync(parsed.plugin, parentName, true);
- return combinePluginParts(loader, argumentName, pluginName, checkDefaultExtension(loader, parsed.argument));
- };
- }
-
- hook('decanonicalize', createNormalizeSync);
- hook('normalizeSync', createNormalizeSync);
-
- hook('normalize', function(normalize) {
- return function(name, parentName, isPlugin) {
- var loader = this;
-
- parentName = getParentName(this, parentName);
-
- var parsed = parsePlugin(loader, name);
-
- if (!parsed)
- return normalize.call(loader, name, parentName, isPlugin);
-
- return Promise.all([
- loader.normalize(parsed.argument, parentName, true),
- loader.normalize(parsed.plugin, parentName, false)
- ])
- .then(function(normalized) {
- return combinePluginParts(loader, normalized[0], normalized[1], checkDefaultExtension(loader, parsed.argument));
- });
- }
- });
-
- hook('locate', function(locate) {
- return function(load) {
- var loader = this;
-
- var name = load.name;
-
- // plugin syntax
- var pluginSyntaxIndex;
- if (loader.pluginFirst) {
- if ((pluginSyntaxIndex = name.indexOf('!')) != -1) {
- load.metadata.loader = name.substr(0, pluginSyntaxIndex);
- load.name = name.substr(pluginSyntaxIndex + 1);
- }
- }
- else {
- if ((pluginSyntaxIndex = name.lastIndexOf('!')) != -1) {
- load.metadata.loader = name.substr(pluginSyntaxIndex + 1);
- load.name = name.substr(0, pluginSyntaxIndex);
- }
- }
-
- return locate.call(loader, load)
- .then(function(address) {
- if (pluginSyntaxIndex != -1 || !load.metadata.loader)
- return address;
-
- // normalize plugin relative to parent in locate here when
- // using plugin via loader metadata
- return (loader.pluginLoader || loader).normalize(load.metadata.loader, load.name)
- .then(function(loaderNormalized) {
- load.metadata.loader = loaderNormalized;
- return address;
- });
- })
- .then(function(address) {
- var plugin = load.metadata.loader;
-
- if (!plugin)
- return address;
-
- // don't allow a plugin to load itself
- if (load.name == plugin)
- throw new Error('Plugin ' + plugin + ' cannot load itself, make sure it is excluded from any wildcard meta configuration via a custom loader: false rule.');
-
- // only fetch the plugin itself if this name isn't defined
- if (loader.defined && loader.defined[name])
- return address;
-
- var pluginLoader = loader.pluginLoader || loader;
-
- // load the plugin module and run standard locate
- return pluginLoader['import'](plugin)
- .then(function(loaderModule) {
- // store the plugin module itself on the metadata
- load.metadata.loaderModule = loaderModule;
-
- load.address = address;
- if (loaderModule.locate)
- return loaderModule.locate.call(loader, load);
-
- return address;
- });
- });
- };
- });
-
- hook('fetch', function(fetch) {
- return function(load) {
- var loader = this;
- if (load.metadata.loaderModule && load.metadata.loaderModule.fetch && load.metadata.format != 'defined') {
- load.metadata.scriptLoad = false;
- return load.metadata.loaderModule.fetch.call(loader, load, function(load) {
- return fetch.call(loader, load);
- });
- }
- else {
- return fetch.call(loader, load);
- }
- };
- });
-
- hook('translate', function(translate) {
- return function(load) {
- var loader = this;
- var args = arguments;
- if (load.metadata.loaderModule && load.metadata.loaderModule.translate && load.metadata.format != 'defined') {
- return Promise.resolve(load.metadata.loaderModule.translate.apply(loader, args)).then(function(result) {
- var sourceMap = load.metadata.sourceMap;
-
- // sanitize sourceMap if an object not a JSON string
- if (sourceMap) {
- if (typeof sourceMap != 'object')
- throw new Error('load.metadata.sourceMap must be set to an object.');
-
- var originalName = load.address.split('!')[0];
-
- // force set the filename of the original file
- if (!sourceMap.file || sourceMap.file == load.address)
- sourceMap.file = originalName + '!transpiled';
-
- // force set the sources list if only one source
- if (!sourceMap.sources || sourceMap.sources.length <= 1 && (!sourceMap.sources[0] || sourceMap.sources[0] == load.address))
- sourceMap.sources = [originalName];
- }
-
- // if running on file:/// URLs, sourcesContent is necessary
- // load.metadata.sourceMap.sourcesContent = [load.source];
-
- if (typeof result == 'string')
- load.source = result;
- else
- warn.call(this, 'Plugin ' + load.metadata.loader + ' should return the source in translate, instead of setting load.source directly. This support will be deprecated.');
-
- return translate.apply(loader, args);
- });
- }
- else {
- return translate.apply(loader, args);
- }
- };
- });
-
- hook('instantiate', function(instantiate) {
- return function(load) {
- var loader = this;
- var calledInstantiate = false;
-
- if (load.metadata.loaderModule && load.metadata.loaderModule.instantiate && !loader.builder && load.metadata.format != 'defined')
- return Promise.resolve(load.metadata.loaderModule.instantiate.call(loader, load, function(load) {
- if (calledInstantiate)
- throw new Error('Instantiate must only be called once.');
- calledInstantiate = true;
- return instantiate.call(loader, load);
- })).then(function(result) {
- if (calledInstantiate)
- return result;
-
- load.metadata.entry = createEntry();
- load.metadata.entry.execute = function() {
- return result;
- }
- load.metadata.entry.deps = load.metadata.deps;
- load.metadata.format = 'defined';
- return instantiate.call(loader, load);
- });
- else
- return instantiate.call(loader, load);
- };
- });
-
-})();/*
- * Conditions Extension
- *
- * Allows a condition module to alter the resolution of an import via syntax:
- *
- * import $ from 'jquery/#{browser}';
- *
- * Will first load the module 'browser' via `SystemJS.import('browser')` and
- * take the default export of that module.
- * If the default export is not a string, an error is thrown.
- *
- * We then substitute the string into the require to get the conditional resolution
- * enabling environment-specific variations like:
- *
- * import $ from 'jquery/ie'
- * import $ from 'jquery/firefox'
- * import $ from 'jquery/chrome'
- * import $ from 'jquery/safari'
- *
- * It can be useful for a condition module to define multiple conditions.
- * This can be done via the `|` modifier to specify an export member expression:
- *
- * import 'jquery/#{./browser.js|grade.version}'
- *
- * Where the `grade` export `version` member in the `browser.js` module is substituted.
- *
- *
- * Boolean Conditionals
- *
- * For polyfill modules, that are used as imports but have no module value,
- * a binary conditional allows a module not to be loaded at all if not needed:
- *
- * import 'es5-shim#?./conditions.js|needs-es5shim'
- *
- * These conditions can also be negated via:
- *
- * import 'es5-shim#?./conditions.js|~es6'
- *
- */
-
- var sysConditions = ['browser', 'node', 'dev', 'build', 'production', 'default'];
-
- function parseCondition(condition) {
- var conditionExport, conditionModule, negation;
-
- var negation = condition[0] == '~';
- var conditionExportIndex = condition.lastIndexOf('|');
- if (conditionExportIndex != -1) {
- conditionExport = condition.substr(conditionExportIndex + 1);
- conditionModule = condition.substr(negation, conditionExportIndex - negation);
-
- if (negation)
- warn.call(this, 'Condition negation form "' + condition + '" is deprecated for "' + conditionModule + '|~' + conditionExport + '"');
-
- if (conditionExport[0] == '~') {
- negation = true;
- conditionExport = conditionExport.substr(1);
- }
- }
- else {
- conditionExport = 'default';
- conditionModule = condition.substr(negation);
- if (sysConditions.indexOf(conditionModule) != -1) {
- conditionExport = conditionModule;
- conditionModule = null;
- }
- }
-
- return {
- module: conditionModule || '@system-env',
- prop: conditionExport,
- negate: negation
- };
- }
-
- function serializeCondition(conditionObj) {
- return conditionObj.module + '|' + (conditionObj.negate ? '~' : '') + conditionObj.prop;
- }
-
- function resolveCondition(conditionObj, parentName, bool) {
- var self = this;
- return this.normalize(conditionObj.module, parentName)
- .then(function(normalizedCondition) {
- return self.load(normalizedCondition)
- .then(function(q) {
- var m = readMemberExpression(conditionObj.prop, self.get(normalizedCondition));
-
- if (bool && typeof m != 'boolean')
- throw new TypeError('Condition ' + serializeCondition(conditionObj) + ' did not resolve to a boolean.');
-
- return conditionObj.negate ? !m : m;
- });
- });
- }
-
- var interpolationRegEx = /#\{[^\}]+\}/;
- function interpolateConditional(name, parentName) {
- // first we normalize the conditional
- var conditionalMatch = name.match(interpolationRegEx);
-
- if (!conditionalMatch)
- return Promise.resolve(name);
-
- var conditionObj = parseCondition.call(this, conditionalMatch[0].substr(2, conditionalMatch[0].length - 3));
-
- // in builds, return normalized conditional
- if (this.builder)
- return this['normalize'](conditionObj.module, parentName)
- .then(function(conditionModule) {
- conditionObj.module = conditionModule;
- return name.replace(interpolationRegEx, '#{' + serializeCondition(conditionObj) + '}');
- });
-
- return resolveCondition.call(this, conditionObj, parentName, false)
- .then(function(conditionValue) {
- if (typeof conditionValue !== 'string')
- throw new TypeError('The condition value for ' + name + ' doesn\'t resolve to a string.');
-
- if (conditionValue.indexOf('/') != -1)
- throw new TypeError('Unabled to interpolate conditional ' + name + (parentName ? ' in ' + parentName : '') + '\n\tThe condition value ' + conditionValue + ' cannot contain a "/" separator.');
-
- return name.replace(interpolationRegEx, conditionValue);
- });
- }
-
- function booleanConditional(name, parentName) {
- // first we normalize the conditional
- var booleanIndex = name.lastIndexOf('#?');
-
- if (booleanIndex == -1)
- return Promise.resolve(name);
-
- var conditionObj = parseCondition.call(this, name.substr(booleanIndex + 2));
-
- // in builds, return normalized conditional
- if (this.builder)
- return this['normalize'](conditionObj.module, parentName)
- .then(function(conditionModule) {
- conditionObj.module = conditionModule;
- return name.substr(0, booleanIndex) + '#?' + serializeCondition(conditionObj);
- });
-
- return resolveCondition.call(this, conditionObj, parentName, true)
- .then(function(conditionValue) {
- return conditionValue ? name.substr(0, booleanIndex) : '@empty';
- });
- }
-
- // normalizeSync does not parse conditionals at all although it could
- hook('normalize', function(normalize) {
- return function(name, parentName, skipExt) {
- var loader = this;
- return booleanConditional.call(loader, name, parentName)
- .then(function(name) {
- return normalize.call(loader, name, parentName, skipExt);
- })
- .then(function(normalized) {
- return interpolateConditional.call(loader, normalized, parentName);
- });
- };
- });
-/*
- * Alias Extension
- *
- * Allows a module to be a plain copy of another module by module name
- *
- * SystemJS.meta['mybootstrapalias'] = { alias: 'bootstrap' };
- *
- */
-(function() {
- // aliases
- hook('fetch', function(fetch) {
- return function(load) {
- var alias = load.metadata.alias;
- var aliasDeps = load.metadata.deps || [];
- if (alias) {
- load.metadata.format = 'defined';
- var entry = createEntry();
- this.defined[load.name] = entry;
- entry.declarative = true;
- entry.deps = aliasDeps.concat([alias]);
- entry.declare = function(_export) {
- return {
- setters: [function(module) {
- for (var p in module)
- _export(p, module[p]);
- if (module.__useDefault)
- entry.module.exports.__useDefault = true;
- }],
- execute: function() {}
- };
- };
- return '';
- }
-
- return fetch.call(this, load);
- };
- });
-})();/*
- * Meta Extension
- *
- * Sets default metadata on a load record (load.metadata) from
- * loader.metadata via SystemJS.meta function.
- *
- *
- * Also provides an inline meta syntax for module meta in source.
- *
- * Eg:
- *
- * loader.meta({
- * 'my/module': { deps: ['jquery'] }
- * 'my/*': { format: 'amd' }
- * });
- *
- * Which in turn populates loader.metadata.
- *
- * load.metadata.deps and load.metadata.format will then be set
- * for 'my/module'
- *
- * The same meta could be set with a my/module.js file containing:
- *
- * my/module.js
- * "format amd";
- * "deps[] jquery";
- * "globals.some value"
- * console.log('this is my/module');
- *
- * Configuration meta always takes preference to inline meta.
- *
- * Multiple matches in wildcards are supported and ammend the meta.
- *
- *
- * The benefits of the function form is that paths are URL-normalized
- * supporting say
- *
- * loader.meta({ './app': { format: 'cjs' } });
- *
- * Instead of needing to set against the absolute URL (https://site.com/app.js)
- *
- */
-
-(function() {
-
- hookConstructor(function(constructor) {
- return function() {
- this.meta = {};
- constructor.call(this);
- };
- });
-
- hook('locate', function(locate) {
- return function(load) {
- var meta = this.meta;
- var name = load.name;
-
- // NB for perf, maybe introduce a fast-path wildcard lookup cache here
- // which is checked first
-
- // apply wildcard metas
- var bestDepth = 0;
- var wildcardIndex;
- for (var module in meta) {
- wildcardIndex = module.indexOf('*');
- if (wildcardIndex === -1)
- continue;
- if (module.substr(0, wildcardIndex) === name.substr(0, wildcardIndex)
- && module.substr(wildcardIndex + 1) === name.substr(name.length - module.length + wildcardIndex + 1)) {
- var depth = module.split('/').length;
- if (depth > bestDepth)
- bestDepth = depth;
- extendMeta(load.metadata, meta[module], bestDepth != depth);
- }
- }
-
- // apply exact meta
- if (meta[name])
- extendMeta(load.metadata, meta[name]);
-
- return locate.call(this, load);
- };
- });
-
- // detect any meta header syntax
- // only set if not already set
- var metaRegEx = /^(\s*\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/;
- var metaPartRegEx = /\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;
-
- function setMetaProperty(target, p, value) {
- var pParts = p.split('.');
- var curPart;
- while (pParts.length > 1) {
- curPart = pParts.shift();
- target = target[curPart] = target[curPart] || {};
- }
- curPart = pParts.shift();
- if (!(curPart in target))
- target[curPart] = value;
- }
-
- hook('translate', function(translate) {
- return function(load) {
- // shortpath for bundled
- if (load.metadata.format == 'defined') {
- load.metadata.deps = load.metadata.deps || [];
- return Promise.resolve(load.source);
- }
-
- // NB meta will be post-translate pending transpiler conversion to plugins
- var meta = load.source.match(metaRegEx);
- if (meta) {
- var metaParts = meta[0].match(metaPartRegEx);
-
- for (var i = 0; i < metaParts.length; i++) {
- var curPart = metaParts[i];
- var len = curPart.length;
-
- var firstChar = curPart.substr(0, 1);
- if (curPart.substr(len - 1, 1) == ';')
- len--;
-
- if (firstChar != '"' && firstChar != "'")
- continue;
-
- var metaString = curPart.substr(1, curPart.length - 3);
- var metaName = metaString.substr(0, metaString.indexOf(' '));
-
- if (metaName) {
- var metaValue = metaString.substr(metaName.length + 1, metaString.length - metaName.length - 1);
-
- if (metaName.substr(metaName.length - 2, 2) == '[]') {
- metaName = metaName.substr(0, metaName.length - 2);
- load.metadata[metaName] = load.metadata[metaName] || [];
- load.metadata[metaName].push(metaValue);
- }
- else if (load.metadata[metaName] instanceof Array) {
- // temporary backwards compat for previous "deps" syntax
- warn.call(this, 'Module ' + load.name + ' contains deprecated "deps ' + metaValue + '" meta syntax.\nThis should be updated to "deps[] ' + metaValue + '" for pushing to array meta.');
- load.metadata[metaName].push(metaValue);
- }
- else {
- setMetaProperty(load.metadata, metaName, metaValue);
- }
- }
- else {
- load.metadata[metaString] = true;
- }
- }
- }
-
- return translate.apply(this, arguments);
- };
- });
-})();
-/*
- System bundles
-
- Allows a bundle module to be specified which will be dynamically
- loaded before trying to load a given module.
-
- For example:
- SystemJS.bundles['mybundle'] = ['jquery', 'bootstrap/js/bootstrap']
-
- Will result in a load to "mybundle" whenever a load to "jquery"
- or "bootstrap/js/bootstrap" is made.
-
- In this way, the bundle becomes the request that provides the module
-*/
-
-(function() {
- // bundles support (just like RequireJS)
- // bundle name is module name of bundle itself
- // bundle is array of modules defined by the bundle
- // when a module in the bundle is requested, the bundle is loaded instead
- // of the form SystemJS.bundles['mybundle'] = ['jquery', 'bootstrap/js/bootstrap']
- hookConstructor(function(constructor) {
- return function() {
- constructor.call(this);
- this.bundles = {};
- this._loader.loadedBundles = {};
- };
- });
-
- // assign bundle metadata for bundle loads
- hook('locate', function(locate) {
- return function(load) {
- var loader = this;
- var matched = false;
-
- if (!(load.name in loader.defined))
- for (var b in loader.bundles) {
- for (var i = 0; i < loader.bundles[b].length; i++) {
- var curModule = loader.bundles[b][i];
-
- if (curModule == load.name) {
- matched = true;
- break;
- }
-
- // wildcard in bundles does not include / boundaries
- if (curModule.indexOf('*') != -1) {
- var parts = curModule.split('*');
- if (parts.length != 2) {
- loader.bundles[b].splice(i--, 1);
- continue;
- }
-
- if (load.name.substring(0, parts[0].length) == parts[0] &&
- load.name.substr(load.name.length - parts[1].length, parts[1].length) == parts[1] &&
- load.name.substr(parts[0].length, load.name.length - parts[1].length - parts[0].length).indexOf('/') == -1) {
- matched = true;
- break;
- }
- }
- }
-
- if (matched)
- return loader['import'](b)
- .then(function() {
- return locate.call(loader, load);
- });
- }
-
- return locate.call(loader, load);
- };
- });
-})();
-/*
- * Dependency Tree Cache
- *
- * Allows a build to pre-populate a dependency trace tree on the loader of
- * the expected dependency tree, to be loaded upfront when requesting the
- * module, avoinding the n round trips latency of module loading, where
- * n is the dependency tree depth.
- *
- * eg:
- * SystemJS.depCache = {
- * 'app': ['normalized', 'deps'],
- * 'normalized': ['another'],
- * 'deps': ['tree']
- * };
- *
- * SystemJS.import('app')
- * // simultaneously starts loading all of:
- * // 'normalized', 'deps', 'another', 'tree'
- * // before "app" source is even loaded
- *
- */
-
-(function() {
- hookConstructor(function(constructor) {
- return function() {
- constructor.call(this);
- this.depCache = {};
- }
- });
-
- hook('locate', function(locate) {
- return function(load) {
- var loader = this;
- // load direct deps, in turn will pick up their trace trees
- var deps = loader.depCache[load.name];
- if (deps)
- for (var i = 0; i < deps.length; i++)
- loader['import'](deps[i], load.name);
-
- return locate.call(loader, load);
- };
- });
-})();
-
-/*
- * Script-only addition used for production loader
- *
- */
-hookConstructor(function(constructor) {
- return function() {
- constructor.apply(this, arguments);
- __global.define = this.amdDefine;
- };
-});
-
-hook('fetch', function(fetch) {
- return function(load) {
- load.metadata.scriptLoad = true;
- return fetch.call(this, load);
- };
-});System = new SystemJSLoader();
-
-__global.SystemJS = System;
-System.version = '0.19.39 CSP';
- if (typeof module == 'object' && module.exports && typeof exports == 'object')
- module.exports = System;
-
- __global.System = System;
-
-})(typeof self != 'undefined' ? self : global);}
-
-// auto-load Promise polyfill if needed in the browser
-var doPolyfill = typeof Promise === 'undefined';
-
-// document.write
-if (typeof document !== 'undefined') {
- var scripts = document.getElementsByTagName('script');
- $__curScript = scripts[scripts.length - 1];
- if (document.currentScript && ($__curScript.defer || $__curScript.async))
- $__curScript = document.currentScript;
- if (doPolyfill) {
- var curPath = $__curScript.src;
- var basePath = curPath.substr(0, curPath.lastIndexOf('/') + 1);
- window.systemJSBootstrap = bootstrap;
- document.write(
- '<' + 'script type="text/javascript" src="' + basePath + 'system-polyfills.js">' + '<' + '/script>'
- );
- }
- else {
- bootstrap();
- }
-}
-// importScripts
-else if (typeof importScripts !== 'undefined') {
- var basePath = '';
- try {
- throw new Error('_');
- } catch (e) {
- e.stack.replace(/(?:at|@).*(http.+):[\d]+:[\d]+/, function(m, url) {
- $__curScript = { src: url };
- basePath = url.replace(/\/[^\/]*$/, '/');
- });
- }
- if (doPolyfill)
- importScripts(basePath + 'system-polyfills.js');
- bootstrap();
-}
-else {
- $__curScript = typeof __filename != 'undefined' ? { src: __filename } : null;
- bootstrap();
-}
-
-
-})(); \ No newline at end of file
diff --git a/manifest.json b/manifest.json
index f4681d627..90d414e3d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -36,28 +36,27 @@
"32": "img/icon.png"
},
"default_title": "Taler",
- "default_popup": "popup/popup.html"
+ "default_popup": "src/popup/popup.html"
},
"content_scripts": [
{
"matches": ["*://*/*"],
"js": [
- "lib/vendor/URI.js",
- "lib/taler-wallet-lib.js",
- "content_scripts/notify.js"
+ "src/vendor/URI.js",
+ "src/taler-wallet-lib.js",
+ "src/content_scripts/notify.js"
],
"run_at": "document_start"
}
],
"web_accessible_resources": [
- "pages/*",
- "lib/*"
+ "src/*"
],
"background": {
- "page": "background/background.html",
+ "page": "src/background/background.html",
"persistent": true
}
}
diff --git a/pages/tree.html b/pages/tree.html
deleted file mode 100644
index 05022e158..000000000
--- a/pages/tree.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>Taler Wallet: Tree View</title>
-
- <link rel="stylesheet" type="text/css" href="../style/lang.css">
- <link rel="stylesheet" type="text/css" href="../style/wallet.css">
-
- <link rel="icon" href="../img/icon.png">
-
- <script src="../lib/vendor/URI.js"></script>
- <script src="../lib/vendor/react.js"></script>
- <script src="../lib/vendor/react-dom.js"></script>
-
- <!-- i18n -->
- <script src="../lib/vendor/jed.js"></script>
- <script src="../lib/i18n.js"></script>
- <script src="../i18n/strings.js"></script>
-
- <script src="../lib/vendor/system-csp-production.src.js"></script>
- <script src="../lib/module-trampoline.js"></script>
-
- <style>
- .tree-item {
- margin: 2em;
- border-radius: 5px;
- border: 1px solid gray;
- padding: 1em;
- }
- </style>
-
- <body>
- <div id="container"></div>
- </body>
-</html>
diff --git a/popup/popup.html b/popup/popup.html
deleted file mode 100644
index 9059c0da1..000000000
--- a/popup/popup.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-
-<head>
- <meta charset="utf-8">
-
- <link rel="stylesheet" type="text/css" href="../style/lang.css">
- <link rel="stylesheet" type="text/css" href="popup.css">
-
- <script src="../lib/vendor/react.js"></script>
- <script src="../lib/vendor/react-dom.js"></script>
- <script src="../lib/vendor/URI.js"></script>
-
- <script src="../lib/vendor/jed.js"></script>
- <script src="../lib/i18n.js"></script>
- <script src="../i18n/strings.js"></script>
-
- <script src="../lib/vendor/system-csp-production.src.js"></script>
- <script src="../lib/module-trampoline.js"></script>
-</head>
-
-<body>
-<div id="content" style="margin:0;padding:0"></div>
-</body>
-
-</html>
diff --git a/src/background/background.html b/src/background/background.html
new file mode 100644
index 000000000..621e0fbb9
--- /dev/null
+++ b/src/background/background.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <script src="../vendor/URI.js"></script>
+ <script src="../vendor/system-csp-production.src.js"></script>
+ <script src="background.js"></script>
+ <meta charset="UTF-8">
+ <title>(wallet bg page)</title>
+</head>
+<body>
+ <img id="taler-logo" src="/img/icon.png">
+</body>
+</html>
diff --git a/background/main.ts b/src/background/background.ts
index f039f9aea..57335e023 100644
--- a/background/main.ts
+++ b/src/background/background.ts
@@ -30,12 +30,12 @@ window.addEventListener("load", () => {
defaultJSExtensions: true,
});
- System.import("../lib/wallet/wxMessaging")
- .then((wxMessaging) => {
+ System.import("../wxMessaging")
+ .then((wxMessaging: any) => {
// Export as global for debugger
(window as any).wxMessaging = wxMessaging;
wxMessaging.wxMain();
- }).catch((e) => {
+ }).catch((e: Error) => {
console.log("wallet failed");
console.error(e.stack);
});
diff --git a/lib/wallet/checkable.ts b/src/checkable.ts
index 89d0c7150..89d0c7150 100644
--- a/lib/wallet/checkable.ts
+++ b/src/checkable.ts
diff --git a/lib/wallet/chromeBadge.ts b/src/chromeBadge.ts
index df12fba83..df12fba83 100644
--- a/lib/wallet/chromeBadge.ts
+++ b/src/chromeBadge.ts
diff --git a/lib/components.ts b/src/components.ts
index 066e6d07f..066e6d07f 100644
--- a/lib/components.ts
+++ b/src/components.ts
diff --git a/src/content_scripts/notify.js b/src/content_scripts/notify.js
new file mode 100644
index 000000000..74447386b
--- /dev/null
+++ b/src/content_scripts/notify.js
@@ -0,0 +1,325 @@
+/*
+ This file is part of TALER
+ (C) 2015 GNUnet e.V.
+
+ TALER is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ TALER is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ */
+/**
+ * Script that is injected into (all!) pages to allow them
+ * to interact with the GNU Taler wallet via DOM Events.
+ *
+ * @author Florian Dold
+ */
+"use strict";
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments)).next());
+ });
+};
+// Make sure we don't pollute the namespace too much.
+var TalerNotify;
+(function (TalerNotify) {
+ const PROTOCOL_VERSION = 1;
+ let logVerbose = false;
+ try {
+ logVerbose = !!localStorage.getItem("taler-log-verbose");
+ }
+ catch (e) {
+ }
+ if (!taler) {
+ console.error("Taler wallet lib not included, HTTP 402 payments not" +
+ " supported");
+ }
+ function subst(url, H_contract) {
+ url = url.replace("${H_contract}", H_contract);
+ url = url.replace("${$}", "$");
+ return url;
+ }
+ const handlers = [];
+ function hashContract(contract) {
+ let walletHashContractMsg = {
+ type: "hash-contract",
+ detail: { contract }
+ };
+ return new Promise((resolve, reject) => {
+ chrome.runtime.sendMessage(walletHashContractMsg, (resp) => {
+ if (!resp.hash) {
+ console.log("error", resp);
+ reject(Error("hashing failed"));
+ }
+ resolve(resp.hash);
+ });
+ });
+ }
+ function checkRepurchase(contract) {
+ const walletMsg = {
+ type: "check-repurchase",
+ detail: {
+ contract: contract
+ },
+ };
+ return new Promise((resolve, reject) => {
+ chrome.runtime.sendMessage(walletMsg, (resp) => {
+ resolve(resp);
+ });
+ });
+ }
+ function putHistory(historyEntry) {
+ const walletMsg = {
+ type: "put-history-entry",
+ detail: {
+ historyEntry,
+ },
+ };
+ return new Promise((resolve, reject) => {
+ chrome.runtime.sendMessage(walletMsg, (resp) => {
+ resolve();
+ });
+ });
+ }
+ function saveOffer(offer) {
+ const walletMsg = {
+ type: "save-offer",
+ detail: {
+ offer: {
+ contract: offer.contract,
+ merchant_sig: offer.merchant_sig,
+ H_contract: offer.H_contract,
+ offer_time: new Date().getTime() / 1000
+ },
+ },
+ };
+ return new Promise((resolve, reject) => {
+ chrome.runtime.sendMessage(walletMsg, (resp) => {
+ resolve(resp);
+ });
+ });
+ }
+ function init() {
+ chrome.runtime.sendMessage({ type: "get-tab-cookie" }, (resp) => {
+ if (chrome.runtime.lastError) {
+ logVerbose && console.log("extension not yet ready");
+ window.setTimeout(init, 200);
+ return;
+ }
+ registerHandlers();
+ // Hack to know when the extension is unloaded
+ let port = chrome.runtime.connect();
+ port.onDisconnect.addListener(() => {
+ logVerbose && console.log("chrome runtime disconnected, removing handlers");
+ for (let handler of handlers) {
+ document.removeEventListener(handler.type, handler.listener);
+ }
+ });
+ if (resp && resp.type === "fetch") {
+ logVerbose && console.log("it's fetch");
+ taler.internalOfferContractFrom(resp.contractUrl);
+ document.documentElement.style.visibility = "hidden";
+ }
+ else if (resp && resp.type === "execute") {
+ logVerbose && console.log("it's execute");
+ document.documentElement.style.visibility = "hidden";
+ taler.internalExecutePayment(resp.contractHash, resp.payUrl, resp.offerUrl);
+ }
+ });
+ }
+ logVerbose && console.log("loading Taler content script");
+ init();
+ function registerHandlers() {
+ /**
+ * Add a handler for a DOM event, which automatically
+ * handles adding sequence numbers to responses.
+ */
+ function addHandler(type, handler) {
+ let handlerWrap = (e) => {
+ if (e.type != type) {
+ throw Error(`invariant violated`);
+ }
+ let callId = undefined;
+ if (e.detail && e.detail.callId != undefined) {
+ callId = e.detail.callId;
+ }
+ let responder = (msg) => {
+ let fullMsg = Object.assign({}, msg, { callId });
+ let opts = { detail: fullMsg };
+ if ("function" == typeof cloneInto) {
+ opts = cloneInto(opts, document.defaultView);
+ }
+ let evt = new CustomEvent(type + "-result", opts);
+ document.dispatchEvent(evt);
+ };
+ handler(e.detail, responder);
+ };
+ document.addEventListener(type, handlerWrap);
+ handlers.push({ type, listener: handlerWrap });
+ }
+ addHandler("taler-query-id", (msg, sendResponse) => {
+ // FIXME: maybe include this info in taoer-probe?
+ sendResponse({ id: chrome.runtime.id });
+ });
+ addHandler("taler-probe", (msg, sendResponse) => {
+ sendResponse();
+ });
+ addHandler("taler-create-reserve", (msg) => {
+ let params = {
+ amount: JSON.stringify(msg.amount),
+ callback_url: URI(msg.callback_url)
+ .absoluteTo(document.location.href),
+ bank_url: document.location.href,
+ wt_types: JSON.stringify(msg.wt_types),
+ };
+ let uri = URI(chrome.extension.getURL("/src/pages/confirm-create-reserve.html"));
+ let redirectUrl = uri.query(params).href();
+ window.location.href = redirectUrl;
+ });
+ addHandler("taler-confirm-reserve", (msg, sendResponse) => {
+ let walletMsg = {
+ type: "confirm-reserve",
+ detail: {
+ reservePub: msg.reserve_pub
+ }
+ };
+ chrome.runtime.sendMessage(walletMsg, (resp) => {
+ sendResponse();
+ });
+ });
+ addHandler("taler-confirm-contract", (msg) => __awaiter(this, void 0, void 0, function* () {
+ if (!msg.contract_wrapper) {
+ console.error("contract wrapper missing");
+ return;
+ }
+ const offer = msg.contract_wrapper;
+ if (!offer.contract) {
+ console.error("contract field missing");
+ return;
+ }
+ if (!offer.H_contract) {
+ console.error("H_contract field missing");
+ return;
+ }
+ let walletHashContractMsg = {
+ type: "hash-contract",
+ detail: { contract: offer.contract }
+ };
+ let contractHash = yield hashContract(offer.contract);
+ if (contractHash != offer.H_contract) {
+ console.error("merchant-supplied contract hash is wrong");
+ return;
+ }
+ let resp = yield checkRepurchase(offer.contract);
+ if (resp.error) {
+ console.error("wallet backend error", resp);
+ return;
+ }
+ if (resp.isRepurchase) {
+ logVerbose && console.log("doing repurchase");
+ console.assert(resp.existingFulfillmentUrl);
+ console.assert(resp.existingContractHash);
+ window.location.href = subst(resp.existingFulfillmentUrl, resp.existingContractHash);
+ }
+ else {
+ let merchantName = "(unknown)";
+ try {
+ merchantName = offer.contract.merchant.name;
+ }
+ catch (e) {
+ }
+ let historyEntry = {
+ timestamp: (new Date).getTime(),
+ subjectId: `contract-${contractHash}`,
+ type: "offer-contract",
+ detail: {
+ contractHash,
+ merchantName,
+ }
+ };
+ yield putHistory(historyEntry);
+ let offerId = yield saveOffer(offer);
+ const uri = URI(chrome.extension.getURL("/src/pages/confirm-contract.html"));
+ const params = {
+ offerId: offerId.toString(),
+ };
+ const target = uri.query(params).href();
+ if (msg.replace_navigation === true) {
+ document.location.replace(target);
+ }
+ else {
+ document.location.href = target;
+ }
+ }
+ }));
+ addHandler("taler-payment-failed", (msg, sendResponse) => {
+ const walletMsg = {
+ type: "payment-failed",
+ detail: {
+ contractHash: msg.H_contract
+ },
+ };
+ chrome.runtime.sendMessage(walletMsg, (resp) => {
+ sendResponse();
+ });
+ });
+ addHandler("taler-payment-succeeded", (msg, sendResponse) => {
+ if (!msg.H_contract) {
+ console.error("H_contract missing in taler-payment-succeeded");
+ return;
+ }
+ logVerbose && console.log("got taler-payment-succeeded");
+ const walletMsg = {
+ type: "payment-succeeded",
+ detail: {
+ contractHash: msg.H_contract,
+ },
+ };
+ chrome.runtime.sendMessage(walletMsg, (resp) => {
+ sendResponse();
+ });
+ });
+ addHandler("taler-get-payment", (msg, sendResponse) => {
+ const walletMsg = {
+ type: "execute-payment",
+ detail: {
+ H_contract: msg.H_contract,
+ },
+ };
+ chrome.runtime.sendMessage(walletMsg, (resp) => {
+ if (resp.rateLimitExceeded) {
+ console.error("rate limit exceeded, check for redirect loops");
+ }
+ if (!resp.success) {
+ if (msg.offering_url) {
+ window.location.href = msg.offering_url;
+ }
+ else {
+ console.error("execute-payment failed", resp);
+ }
+ return;
+ }
+ let contract = resp.contract;
+ if (!contract) {
+ throw Error("contract missing");
+ }
+ // We have the details for then payment, the merchant page
+ // is responsible to give it to the merchant.
+ sendResponse({
+ H_contract: msg.H_contract,
+ contract: resp.contract,
+ payment: resp.payReq,
+ });
+ });
+ });
+ }
+})(TalerNotify || (TalerNotify = {}));
+//# sourceMappingURL=notify.js.map \ No newline at end of file
diff --git a/content_scripts/notify.ts b/src/content_scripts/notify.ts
index 93fd520b3..6fb4eae47 100644
--- a/content_scripts/notify.ts
+++ b/src/content_scripts/notify.ts
@@ -23,9 +23,6 @@
*/
-/// <reference path="../lib/decl/chrome/chrome.d.ts" />
-/// <reference path="../lib/decl/urijs/URIjs.d.ts" />
-
"use strict";
declare var cloneInto: any;
@@ -208,7 +205,7 @@ namespace TalerNotify {
bank_url: document.location.href,
wt_types: JSON.stringify(msg.wt_types),
};
- let uri = URI(chrome.extension.getURL("pages/confirm-create-reserve.html"));
+ let uri = URI(chrome.extension.getURL("/src/pages/confirm-create-reserve.html"));
let redirectUrl = uri.query(params).href();
window.location.href = redirectUrl;
});
@@ -292,7 +289,7 @@ namespace TalerNotify {
let offerId = await saveOffer(offer);
const uri = URI(chrome.extension.getURL(
- "pages/confirm-contract.html"));
+ "/src/pages/confirm-contract.html"));
const params = {
offerId: offerId.toString(),
};
diff --git a/lib/wallet/cryptoApi-test.ts b/src/cryptoApi-test.ts
index 38ecdb634..d764ea5dd 100644
--- a/lib/wallet/cryptoApi-test.ts
+++ b/src/cryptoApi-test.ts
@@ -1,5 +1,5 @@
import {CryptoApi} from "./cryptoApi";
-import {ReserveRecord, Denomination} from "lib/wallet/types";
+import {ReserveRecord, Denomination} from "src/types";
import {test, TestLib} from "testlib/talertest";
let masterPub1: string = "CQQZ9DY3MZ1ARMN5K1VKDETS04Y2QCKMMCFHZSWJWWVN82BTTH00";
diff --git a/lib/wallet/cryptoApi.ts b/src/cryptoApi.ts
index 31407b74a..41f6c9593 100644
--- a/lib/wallet/cryptoApi.ts
+++ b/src/cryptoApi.ts
@@ -84,7 +84,7 @@ export class CryptoApi {
ws.currentWorkItem = work;
this.numBusy++;
if (!ws.w) {
- let w = new Worker("/lib/wallet/cryptoWorker.js");
+ let w = new Worker("/src/cryptoWorker.js");
w.onmessage = (m: MessageEvent) => this.handleWorkerMessage(ws, m);
w.onerror = (e: ErrorEvent) => this.handleWorkerError(ws, e);
ws.w = w;
diff --git a/lib/wallet/cryptoLib.ts b/src/cryptoLib.ts
index 6cb5b79d1..1db686756 100644
--- a/lib/wallet/cryptoLib.ts
+++ b/src/cryptoLib.ts
@@ -29,10 +29,9 @@ import {
import create = chrome.alarms.create;
import {Offer} from "./wallet";
import {CoinWithDenom} from "./wallet";
-import {CoinPaySig} from "./types";
+import {CoinPaySig, Coin} from "./types";
import {Denomination, Amounts} from "./types";
import {Amount} from "./emscriptif";
-import {Coin} from "../../background/lib/wallet/types";
import {HashContext} from "./emscriptif";
import {RefreshMeltCoinAffirmationPS} from "./emscriptif";
import {EddsaPublicKey} from "./emscriptif";
diff --git a/lib/wallet/cryptoWorker.ts b/src/cryptoWorker.ts
index 0689c910e..661b6e174 100644
--- a/lib/wallet/cryptoWorker.ts
+++ b/src/cryptoWorker.ts
@@ -22,15 +22,18 @@
"use strict";
-importScripts("../emscripten/taler-emscripten-lib.js",
- "../vendor/system-csp-production.src.js");
+importScripts("/src/emscripten/taler-emscripten-lib.js",
+ "/src/vendor/system-csp-production.src.js");
// TypeScript does not allow ".js" extensions in the
// module name, so SystemJS must add it.
System.config({
- defaultJSExtensions: true,
- });
+ defaultJSExtensions: true,
+ map: {
+ "src": "/src",
+ },
+});
// We expect that in the manifest, the emscripten js is loaded
// becore the background page.
@@ -46,16 +49,16 @@ if ("object" !== typeof Module) {
{
let mod = System.newModule({Module: Module, default: Module});
- let modName = System.normalizeSync("../emscripten/taler-emscripten-lib");
+ let modName = System.normalizeSync("/src/emscripten/taler-emscripten-lib");
console.log("registering", modName);
System.set(modName, mod);
}
-System.import("./cryptoLib")
- .then((m) => {
+System.import("/src/cryptoLib")
+ .then((m: any) => {
m.main(self);
})
- .catch((e) => {
+ .catch((e: Error) => {
console.log("crypto worker failed");
console.error(e.stack);
});
diff --git a/lib/wallet/db.ts b/src/db.ts
index 9cffc164c..9cffc164c 100644
--- a/lib/wallet/db.ts
+++ b/src/db.ts
diff --git a/lib/emscripten/taler-emscripten-lib.d.ts b/src/emscripten/taler-emscripten-lib.d.ts
index 97821d9ef..97821d9ef 100644
--- a/lib/emscripten/taler-emscripten-lib.d.ts
+++ b/src/emscripten/taler-emscripten-lib.d.ts
diff --git a/lib/wallet/emscriptif-test.ts b/src/emscriptif-test.ts
index ddafa32bc..ddafa32bc 100644
--- a/lib/wallet/emscriptif-test.ts
+++ b/src/emscriptif-test.ts
diff --git a/lib/wallet/emscriptif.ts b/src/emscriptif.ts
index b26f35ebd..afb689b4d 100644
--- a/lib/wallet/emscriptif.ts
+++ b/src/emscriptif.ts
@@ -15,7 +15,7 @@
*/
import {AmountJson} from "./types";
-import Module, {EmscFunGen} from "../emscripten/taler-emscripten-lib";
+import Module, {EmscFunGen} from "src/emscripten/taler-emscripten-lib";
/**
* High-level interface to emscripten-compiled modules used
@@ -692,8 +692,7 @@ function makeFromCrock(decodeFn: (p: number, s: number) => number) {
function fromCrock(s: string, a?: Arena) {
let obj = new this(a);
let buf = ByteArray.fromCrock(s);
- obj.setNative(decodeFn(buf.nativePtr,
- buf.size()));
+ obj.nativePtr = decodeFn(buf.nativePtr, buf.size());
buf.destroy();
return obj;
}
diff --git a/lib/wallet/helpers.ts b/src/helpers.ts
index 26cd350ee..26cd350ee 100644
--- a/lib/wallet/helpers.ts
+++ b/src/helpers.ts
diff --git a/lib/wallet/http.ts b/src/http.ts
index 1d22c4eb2..1d22c4eb2 100644
--- a/lib/wallet/http.ts
+++ b/src/http.ts
diff --git a/lib/i18n.ts b/src/i18n.ts
index c91b385a7..c91b385a7 100644
--- a/lib/i18n.ts
+++ b/src/i18n.ts
diff --git a/i18n/de.po b/src/i18n/de.po
index 0a5c1397f..0a5c1397f 100644
--- a/i18n/de.po
+++ b/src/i18n/de.po
diff --git a/i18n/en-US.po b/src/i18n/en-US.po
index befaf6974..befaf6974 100644
--- a/i18n/en-US.po
+++ b/src/i18n/en-US.po
diff --git a/i18n/fr.po b/src/i18n/fr.po
index 7a8422002..7a8422002 100644
--- a/i18n/fr.po
+++ b/src/i18n/fr.po
diff --git a/i18n/it.po b/src/i18n/it.po
index 7a8422002..7a8422002 100644
--- a/i18n/it.po
+++ b/src/i18n/it.po
diff --git a/i18n/poheader b/src/i18n/poheader
index 3ec704932..3ec704932 100644
--- a/i18n/poheader
+++ b/src/i18n/poheader
diff --git a/i18n/taler-wallet-webex.pot b/src/i18n/taler-wallet-webex.pot
index 7a8422002..7a8422002 100644
--- a/i18n/taler-wallet-webex.pot
+++ b/src/i18n/taler-wallet-webex.pot
diff --git a/lib/module-trampoline.js b/src/module-trampoline.js
index 4815fdfb8..20ed91638 100644
--- a/lib/module-trampoline.js
+++ b/src/module-trampoline.js
@@ -30,6 +30,9 @@ if (typeof System === "undefined") {
System.config({
defaultJSExtensions: true,
+ map: {
+ src: "/src/",
+ },
});
let me = window.location.protocol
diff --git a/pages/confirm-contract.html b/src/pages/confirm-contract.html
index 5c6c9a446..54a4d618d 100644
--- a/pages/confirm-contract.html
+++ b/src/pages/confirm-contract.html
@@ -4,19 +4,19 @@
<head>
<title>Taler Wallet: Confirm Reserve Creation</title>
- <link rel="stylesheet" type="text/css" href="../style/lang.css">
- <link rel="stylesheet" type="text/css" href="../style/wallet.css">
+ <link rel="stylesheet" type="text/css" href="/src/style/lang.css">
+ <link rel="stylesheet" type="text/css" href="/src/style/wallet.css">
- <link rel="icon" href="../img/icon.png">
+ <link rel="icon" href="/img/icon.png">
- <script src="../lib/vendor/URI.js"></script>
- <script src="../lib/vendor/react.js"></script>
- <script src="../lib/vendor/react-dom.js"></script>
- <script src="../lib/vendor/system-csp-production.src.js"></script>
- <!-- <script src="../lib/vendor/jed.js"></script> -->
- <script src="../lib/i18n.js"></script>
- <script src="../i18n/strings.js"></script>
- <script src="../lib/module-trampoline.js"></script>
+ <script src="/src/vendor/URI.js"></script>
+ <script src="/src/vendor/react.js"></script>
+ <script src="/src/vendor/react-dom.js"></script>
+ <script src="/src/vendor/system-csp-production.src.js"></script>
+ <!-- <script src="/src/vendor/jed.js"></script> -->
+ <script src="/src/i18n.js"></script>
+ <script src="/src/i18n/strings.js"></script>
+ <script src="/src/module-trampoline.js"></script>
<style>
button.accept {
diff --git a/pages/confirm-contract.tsx b/src/pages/confirm-contract.tsx
index b5ada6045..7bae691b1 100644
--- a/pages/confirm-contract.tsx
+++ b/src/pages/confirm-contract.tsx
@@ -21,13 +21,13 @@
* @author Florian Dold
*/
-
-import {substituteFulfillmentUrl} from "../lib/wallet/helpers";
-import {Contract, AmountJson, IExchangeInfo} from "../lib/wallet/types";
-import {Offer} from "../lib/wallet/wallet";
-import {renderContract, prettyAmount} from "../lib/wallet/renderHtml";
"use strict";
-import {getExchanges} from "../lib/wallet/wxApi";
+
+import {substituteFulfillmentUrl} from "src/helpers";
+import {Contract, AmountJson, IExchangeInfo} from "src/types";
+import {Offer} from "src/wallet";
+import {renderContract, prettyAmount} from "src/renderHtml";
+import {getExchanges} from "src/wxApi";
interface DetailState {
@@ -61,8 +61,6 @@ class Details extends React.Component<DetailProps, DetailState> {
}
render() {
- console.log("details collapsed (state)", this.state.collapsed);
- console.log("details collapsed (prop)", this.props.collapsed);
if (this.state.collapsed) {
return (
<div>
@@ -119,7 +117,6 @@ class ContractPrompt extends React.Component<ContractPromptProps, ContractPrompt
componentWillMount() {
this.update();
- this.checkPayment();
}
componentWillUnmount() {
diff --git a/pages/confirm-create-reserve.html b/src/pages/confirm-create-reserve.html
index c31a4aa8a..c67c7e960 100644
--- a/pages/confirm-create-reserve.html
+++ b/src/pages/confirm-create-reserve.html
@@ -4,20 +4,20 @@
<head>
<title>Taler Wallet: Select Taler Provider</title>
- <link rel="icon" href="../img/icon.png">
+ <link rel="icon" href="/img/icon.png">
- <script src="../lib/vendor/URI.js"></script>
- <script src="../lib/vendor/react.js"></script>
- <script src="../lib/vendor/react-dom.js"></script>
+ <script src="/src/vendor/URI.js"></script>
+ <script src="/src/vendor/react.js"></script>
+ <script src="/src/vendor/react-dom.js"></script>
<!-- i18n -->
- <script src="../lib/vendor/jed.js"></script>
- <script src="../lib/i18n.js"></script>
- <script src="../i18n/strings.js"></script>
+ <script src="/src/vendor/jed.js"></script>
+ <script src="/src/i18n.js"></script>
+ <script src="/src/i18n/strings.js"></script>
<!-- module loading -->
- <script src="../lib/vendor/system-csp-production.src.js"></script>
- <script src="../lib/module-trampoline.js"></script>
+ <script src="/src/vendor/system-csp-production.src.js"></script>
+ <script src="/src/module-trampoline.js"></script>
<style>
diff --git a/pages/confirm-create-reserve.tsx b/src/pages/confirm-create-reserve.tsx
index 833bfed27..372f11a4b 100644
--- a/pages/confirm-create-reserve.tsx
+++ b/src/pages/confirm-create-reserve.tsx
@@ -22,12 +22,14 @@
* @author Florian Dold
*/
-import {amountToPretty, canonicalizeBaseUrl} from "../lib/wallet/helpers";
-import {AmountJson, CreateReserveResponse} from "../lib/wallet/types";
-import {ReserveCreationInfo, Amounts} from "../lib/wallet/types";
-import {Denomination} from "../lib/wallet/types";
-import {getReserveCreationInfo} from "../lib/wallet/wxApi";
-import {ImplicitStateComponent, StateHolder} from "../lib/components";
+import {amountToPretty, canonicalizeBaseUrl} from "src/helpers";
+import {
+ AmountJson, CreateReserveResponse,
+ ReserveCreationInfo, Amounts,
+ Denomination,
+} from "src/types";
+import {getReserveCreationInfo} from "src/wxApi";
+import {ImplicitStateComponent, StateHolder} from "src/components";
"use strict";
diff --git a/pages/debug.html b/src/pages/debug.html
index 221c7380c..b8ddc7ccb 100644
--- a/pages/debug.html
+++ b/src/pages/debug.html
@@ -7,7 +7,7 @@
<body>
<h1>Debug Pages</h1>
<a href="show-db.html">Show DB</a> <br>
- <a href="../popup/balance-overview.html">Show balance</a>
+ <a href="/src/popup/balance-overview.html">Show balance</a>
</body>
</html>
diff --git a/pages/help/empty-wallet.html b/src/pages/help/empty-wallet.html
index 952bd92b7..dd29d9689 100644
--- a/pages/help/empty-wallet.html
+++ b/src/pages/help/empty-wallet.html
@@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<title>GNU Taler Help - Empty Wallet</title>
- <link rel="icon" href="../../img/icon.png">
+ <link rel="icon" href="/img/icon.png">
<meta name="description" content="">
- <link rel="stylesheet" type="text/css" href="../../style/wallet.css">
+ <link rel="stylesheet" type="text/css" href="/src/style/wallet.css">
</head>
<body>
<div class="container" id="main">
diff --git a/pages/show-db.html b/src/pages/show-db.html
index 024e844ee..af8ca6eb1 100644
--- a/pages/show-db.html
+++ b/src/pages/show-db.html
@@ -5,7 +5,7 @@
<head>
<title>Taler Wallet: Reserve Created</title>
<link rel="stylesheet" type="text/css" href="../style/wallet.css">
- <link rel="icon" href="../img/icon.png">
+ <link rel="icon" href="/img/icon.png">
<script src="show-db.js"></script>
</head>
<body>
diff --git a/pages/show-db.ts b/src/pages/show-db.ts
index 71e74388b..71e74388b 100644
--- a/pages/show-db.ts
+++ b/src/pages/show-db.ts
diff --git a/src/pages/tree.html b/src/pages/tree.html
new file mode 100644
index 000000000..306044159
--- /dev/null
+++ b/src/pages/tree.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <title>Taler Wallet: Tree View</title>
+
+ <link rel="stylesheet" type="text/css" href="../style/lang.css">
+ <link rel="stylesheet" type="text/css" href="../style/wallet.css">
+
+ <link rel="icon" href="/img/icon.png">
+
+ <script src="/src/vendor/URI.js"></script>
+ <script src="/src/vendor/react.js"></script>
+ <script src="/src/vendor/react-dom.js"></script>
+
+ <!-- i18n -->
+ <script src="/src/vendor/jed.js"></script>
+ <script src="/src/i18n.js"></script>
+ <script src="/src/i18n/strings.js"></script>
+
+ <script src="/src/vendor/system-csp-production.src.js"></script>
+ <script src="/src/module-trampoline.js"></script>
+
+ <style>
+ .tree-item {
+ margin: 2em;
+ border-radius: 5px;
+ border: 1px solid gray;
+ padding: 1em;
+ }
+ </style>
+
+ <body>
+ <div id="container"></div>
+ </body>
+</html>
diff --git a/pages/tree.tsx b/src/pages/tree.tsx
index 6ff15600f..e368ffe9b 100644
--- a/pages/tree.tsx
+++ b/src/pages/tree.tsx
@@ -21,15 +21,15 @@
*/
-import { IExchangeInfo } from "../lib/wallet/types";
-import { ReserveRecord, Coin, PreCoin, Denomination } from "../lib/wallet/types";
-import { ImplicitStateComponent, StateHolder } from "../lib/components";
+import { IExchangeInfo } from "src/types";
+import { ReserveRecord, Coin, PreCoin, Denomination } from "src/types";
+import { ImplicitStateComponent, StateHolder } from "src/components";
import {
getReserves, getExchanges, getCoins, getPreCoins,
refresh
-} from "../lib/wallet/wxApi";
-import { prettyAmount, abbrev } from "../lib/wallet/renderHtml";
-import { getTalerStampDate } from "../lib/wallet/helpers";
+} from "src/wxApi";
+import { prettyAmount, abbrev } from "src/renderHtml";
+import { getTalerStampDate } from "src/helpers";
interface ReserveViewProps {
reserve: ReserveRecord;
diff --git a/popup/popup.css b/src/popup/popup.css
index 675412c11..675412c11 100644
--- a/popup/popup.css
+++ b/src/popup/popup.css
diff --git a/src/popup/popup.html b/src/popup/popup.html
new file mode 100644
index 000000000..30b11aaea
--- /dev/null
+++ b/src/popup/popup.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="utf-8">
+
+ <link rel="stylesheet" type="text/css" href="../style/lang.css">
+ <link rel="stylesheet" type="text/css" href="popup.css">
+
+ <script src="/src/vendor/react.js"></script>
+ <script src="/src/vendor/react-dom.js"></script>
+ <script src="/src/vendor/URI.js"></script>
+
+ <script src="/src/vendor/jed.js"></script>
+ <script src="/src/i18n.js"></script>
+ <script src="/src/i18n/strings.js"></script>
+
+ <script src="/src/vendor/system-csp-production.src.js"></script>
+ <script src="/src/module-trampoline.js"></script>
+</head>
+
+<body>
+<div id="content" style="margin:0;padding:0"></div>
+</body>
+
+</html>
diff --git a/popup/popup.tsx b/src/popup/popup.tsx
index fa21d76e3..c59ee3ea8 100644
--- a/popup/popup.tsx
+++ b/src/popup/popup.tsx
@@ -25,14 +25,14 @@
"use strict";
-import {substituteFulfillmentUrl} from "../lib/wallet/helpers";
+import {substituteFulfillmentUrl} from "src/helpers";
import BrowserClickedEvent = chrome.browserAction.BrowserClickedEvent;
-import {HistoryRecord, HistoryLevel} from "../lib/wallet/wallet";
+import {HistoryRecord, HistoryLevel} from "src/wallet";
import {
AmountJson, WalletBalance, Amounts,
WalletBalanceEntry
-} from "../lib/wallet/types";
-import {abbrev, prettyAmount} from "../lib/wallet/renderHtml";
+} from "src/types";
+import {abbrev, prettyAmount} from "src/renderHtml";
declare var i18n: any;
diff --git a/lib/wallet/query.ts b/src/query.ts
index 08e270ea6..08e270ea6 100644
--- a/lib/wallet/query.ts
+++ b/src/query.ts
diff --git a/lib/wallet/renderHtml.tsx b/src/renderHtml.tsx
index 940d5c425..940d5c425 100644
--- a/lib/wallet/renderHtml.tsx
+++ b/src/renderHtml.tsx
diff --git a/style/lang.css b/src/style/lang.css
index 1cf073527..1cf073527 100644
--- a/style/lang.css
+++ b/src/style/lang.css
diff --git a/style/wallet.css b/src/style/wallet.css
index 4609a1f96..e5a8f91b3 100644
--- a/style/wallet.css
+++ b/src/style/wallet.css
@@ -31,7 +31,7 @@ header #logo {
margin: 0;
text-align: center;
border-right: 1px solid black;
- background-image: url(../img/logo.png);
+ background-image: url(/img/logo.png);
background-size: 100px;
}
diff --git a/lib/taler-wallet-lib.ts b/src/taler-wallet-lib.ts
index 20e599359..20e599359 120000
--- a/lib/taler-wallet-lib.ts
+++ b/src/taler-wallet-lib.ts
diff --git a/lib/wallet/types-test.ts b/src/types-test.ts
index 3ebb1a5db..3ebb1a5db 100644
--- a/lib/wallet/types-test.ts
+++ b/src/types-test.ts
diff --git a/lib/wallet/types.ts b/src/types.ts
index 39d374069..39d374069 100644
--- a/lib/wallet/types.ts
+++ b/src/types.ts
diff --git a/lib/wallet/wallet.ts b/src/wallet.ts
index 9fb6e5a27..9fb6e5a27 100644
--- a/lib/wallet/wallet.ts
+++ b/src/wallet.ts
diff --git a/lib/wallet/wxApi.ts b/src/wxApi.ts
index a85b56c28..a85b56c28 100644
--- a/lib/wallet/wxApi.ts
+++ b/src/wxApi.ts
diff --git a/lib/wallet/wxMessaging.ts b/src/wxMessaging.ts
index 07f16f24f..990f1488b 100644
--- a/lib/wallet/wxMessaging.ts
+++ b/src/wxMessaging.ts
@@ -379,9 +379,9 @@ export function wxMain() {
let uri = URI(tab.url);
if (uri.protocol() == "http" || uri.protocol() == "https") {
console.log("injecting into existing tab", tab.id);
- chrome.tabs.executeScript(tab.id, { file: "lib/vendor/URI.js" });
- chrome.tabs.executeScript(tab.id, { file: "lib/taler-wallet-lib.js" });
- chrome.tabs.executeScript(tab.id, { file: "content_scripts/notify.js" });
+ chrome.tabs.executeScript(tab.id, { file: "/src/vendor/URI.js" });
+ chrome.tabs.executeScript(tab.id, { file: "/src/taler-wallet-lib.js" });
+ chrome.tabs.executeScript(tab.id, { file: "/src/content_scripts/notify.js" });
}
}
});
diff --git a/tsconfig.json b/tsconfig.json
index 4fefa793e..4daa17fbb 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -13,34 +13,39 @@
"noImplicitAny": true
},
"files": [
- "lib/components.ts",
- "lib/refs.d.ts",
- "lib/i18n.ts",
- "lib/taler-wallet-lib.ts",
- "lib/wallet/checkable.ts",
- "lib/wallet/chromeBadge.ts",
- "lib/wallet/cryptoApi-test.ts",
- "lib/wallet/cryptoApi.ts",
- "lib/wallet/emscriptif-test.ts",
- "lib/wallet/cryptoLib.ts",
- "lib/wallet/cryptoWorker.ts",
- "lib/wallet/types-test.ts",
- "lib/wallet/db.ts",
- "lib/wallet/emscriptif.ts",
- "lib/wallet/helpers.ts",
- "lib/wallet/http.ts",
- "lib/wallet/query.ts",
- "lib/wallet/types.ts",
- "lib/wallet/wallet.ts",
- "lib/wallet/wxApi.ts",
- "lib/wallet/wxMessaging.ts",
- "lib/wallet/renderHtml.tsx",
- "background/main.ts",
- "content_scripts/notify.ts",
- "popup/popup.tsx",
- "pages/show-db.ts",
- "pages/confirm-contract.tsx",
- "pages/confirm-create-reserve.tsx",
- "pages/tree.tsx"
+ "src/checkable.ts",
+ "decl/lib.es6.d.ts",
+ "src/chromeBadge.ts",
+ "decl/urijs/URIjs.d.ts",
+ "src/cryptoApi-test.ts",
+ "src/components.ts",
+ "decl/systemjs/systemjs.d.ts",
+ "src/emscriptif-test.ts",
+ "src/cryptoApi.ts",
+ "decl/react-global.d.ts",
+ "src/types-test.ts",
+ "src/cryptoLib.ts",
+ "decl/chrome/chrome.d.ts",
+ "src/cryptoWorker.ts",
+ "src/db.ts",
+ "src/emscriptif.ts",
+ "src/helpers.ts",
+ "src/http.ts",
+ "src/i18n.ts",
+ "src/query.ts",
+ "src/taler-wallet-lib.ts",
+ "src/types.ts",
+ "src/wallet.ts",
+ "src/wxApi.ts",
+ "src/wxMessaging.ts",
+ "src/renderHtml.tsx",
+ "src/background/background.ts",
+ "src/content_scripts/notify.ts",
+ "src/emscripten/taler-emscripten-lib.d.ts",
+ "src/pages/show-db.ts",
+ "src/pages/confirm-contract.tsx",
+ "src/pages/confirm-create-reserve.tsx",
+ "src/pages/tree.tsx",
+ "src/popup/popup.tsx"
]
} \ No newline at end of file