Initial commit.
This commit is contained in:
commit
acc661d15b
19 files changed
+4127
No files matched your search
@@ -0,0 +1,6 @@
|
||||
node_modules/
|
||||
.vscode/
|
||||
*.sqllite
|
||||
testStuff/
|
||||
chache.bin
|
||||
key.cfg
|
||||
@@ -0,0 +1,334 @@
|
||||
const express = require("express");
|
||||
const Eta = require("eta");
|
||||
const fs = require("fs");
|
||||
const request = require("request");
|
||||
const imdb = require("imdb-api");
|
||||
const sqlite3 = require("sqlite3");
|
||||
const requestSync = require("sync-request");
|
||||
var Config = require('config-js');
|
||||
const app = express();
|
||||
const port = 4000;
|
||||
|
||||
const initalTableSQL =
|
||||
"CREATE TABLE `movieInfo` ( \
|
||||
`id` INT NOT NULL, \
|
||||
`movieID` VARCHAR(128), \
|
||||
`movieTitel` VARCHAR(255), \
|
||||
`place` INT zerofill, \
|
||||
`type` INT zerofill, \
|
||||
`posterUrl` VARCHAR(255) \
|
||||
);";
|
||||
|
||||
const initalTableSQL2 =
|
||||
"CREATE TABLE `apiChache` ( \
|
||||
`imdbID` VARCHAR(128), \
|
||||
`url` VARCHAR(255) \
|
||||
);";
|
||||
|
||||
var responseBuffer = { allBufferd: [] };
|
||||
|
||||
responseBuffer = JSON.parse(fs.readFileSync("chache.bin", "utf8"));
|
||||
|
||||
var db = new sqlite3.Database("database.sqllite");
|
||||
if (!fs.existsSync("database.sqllite")) {
|
||||
console.log("Creating table.");
|
||||
db.serialize(() => {
|
||||
db.run(initalTableSQL);
|
||||
//db.run(initalTableSQL2);
|
||||
});
|
||||
}
|
||||
db.close();
|
||||
var db = new sqlite3.Database("database.sqllite");
|
||||
|
||||
var config = new Config('key.cfg');
|
||||
|
||||
|
||||
async function doesMovieExistInDatabase(imdbID) {
|
||||
console.warn(imdbID);
|
||||
db.all(
|
||||
"SELECT * FROM movieInfo WHERE movieID='" + imdbID + "'",
|
||||
function (err, rows) {
|
||||
console.log("!!!" + rows);
|
||||
if (rows == undefined) {
|
||||
console.log(false);
|
||||
return false;
|
||||
} else {
|
||||
console.log(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function getBufferdResponse(type, imdbID) {
|
||||
// Cover image
|
||||
if (type == 1) {
|
||||
db.all(
|
||||
"SELECT * FROM apiChache WHERE imdbID=" + imdbID,
|
||||
function (err, rows) {
|
||||
// Okay, there is no result, lets ask the real api
|
||||
if (rows == undefined) {
|
||||
console.log("No chache");
|
||||
var res = requestSync(
|
||||
"GET",
|
||||
"https://imdb-api.com/en/API/Posters//" + imdbID,
|
||||
{}
|
||||
);
|
||||
const jsonParsed = JSON.parse(res.body);
|
||||
// Well frick, api limit reached
|
||||
if (jsonParsed.errorMessage.includes("Maximum usage")) {
|
||||
console.warn("API limit reached!");
|
||||
|
||||
return "https://tse2.mm.bing.net/th?id=OIP.SW4X5yWbxOMofUFxMwSTbAHaJQ&pid=Api"; // Return "No cover image"
|
||||
console.log("unreachable");
|
||||
} else {
|
||||
// Cool, we got an response
|
||||
posterUrl =
|
||||
"https://tse2.mm.bing.net/th?id=OIP.SW4X5yWbxOMofUFxMwSTbAHaJQ&pid=Api"; // Just a fallback
|
||||
if (jsonParsed.posters[0] != undefined) {
|
||||
posterUrl = jsonParsed.posters[0].link;
|
||||
// Lets save the response
|
||||
db.run(
|
||||
"INSERT INTO apiChache(imdbID, url) VALUES(?, ?)",
|
||||
[imdbID, posterUrl],
|
||||
(err) => {
|
||||
if (err) {
|
||||
return console.log(err.message);
|
||||
}
|
||||
console.log("Saved url to chache");
|
||||
}
|
||||
);
|
||||
}
|
||||
// Return the url
|
||||
return posterUrl;
|
||||
}
|
||||
} else {
|
||||
// There is a result, lets return the result
|
||||
return rows[0].url;
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
app.use(express.static("static"));
|
||||
|
||||
app.get("/", function (req, res) {
|
||||
// https://imdb-api.com/de/API/Posters//[ID HERE]
|
||||
var buildString = "";
|
||||
db.serialize(function () {
|
||||
db.all("SELECT * FROM movieInfo ORDER BY movieTitel ASC;", function (err, rows) {
|
||||
/* rows.forEach((row) => {
|
||||
console.log(row.id + ": " + row.movieTitel);
|
||||
//var posterLink = getBufferdResponse(1, row.movieID);
|
||||
posterLink = row.posterUrl;
|
||||
console.log(posterLink);
|
||||
|
||||
/*var res = requestSync(
|
||||
"GET",
|
||||
"https://imdb-api.com/en/API/Posters//" + row.movieID,
|
||||
{}
|
||||
);
|
||||
const jsonParsed = JSON.parse(res.body);
|
||||
console.log(jsonParsed);
|
||||
posterLink = "";
|
||||
if (jsonParsed.posters[0] == undefined) {
|
||||
posterLink =
|
||||
"https://tse2.mm.bing.net/th?id=OIP.SW4X5yWbxOMofUFxMwSTbAHaJQ&pid=Api";
|
||||
} else {
|
||||
posterLink = jsonParsed.posters[0].link;
|
||||
}*/
|
||||
/*buildString +=
|
||||
"<a href='/showDetails?id=" +
|
||||
row.id +
|
||||
"'><div style='width: 150px; float: left; padding: 5px;'><img src='" +
|
||||
posterLink +
|
||||
'\' style="width: 100%;"><br><center><b>' +
|
||||
row.movieTitel +
|
||||
"</b></center></div></a>";
|
||||
|
||||
});*/
|
||||
|
||||
console.log(rows)
|
||||
const data = fs.readFileSync("template/bookshelf.html", "utf8");
|
||||
res.send(Eta.render(data, {jsonRespo: JSON.stringify(rows)}));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/add", function (req, res) {
|
||||
const data = fs.readFileSync("template/add.html", "utf8");
|
||||
res.send(Eta.render(data, { isDisplay: false }));
|
||||
});
|
||||
|
||||
app.get("/delete", function (req, res) {
|
||||
db.run(`DELETE FROM movieInfo WHERE id=?`, req.query["id"], function (err) {
|
||||
if (err) {
|
||||
return console.error(err.message);
|
||||
}
|
||||
console.log(`Row(s) deleted ${this.changes}`);
|
||||
res.send("Done.");
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/returnSaveResult", function (req, res) {
|
||||
const data = fs.readFileSync("template/addToShelf.html", "utf8");
|
||||
responseJson = responseBuffer[req.query["reponseID"]];
|
||||
console.log(responseBuffer);
|
||||
res.send(
|
||||
Eta.render(data, {
|
||||
id: responseJson.id,
|
||||
cover: responseJson.coverImage,
|
||||
titleByAPI: responseJson.titleByAPI,
|
||||
ean: responseJson.ean,
|
||||
isDisplay: true,
|
||||
responseID: req.query["reponseID"],
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
app.get("/showDetails", function (req, res) {
|
||||
const data = fs.readFileSync("template/movieDetails.html", "utf8");
|
||||
console.log( req.query["id"])
|
||||
db.serialize(function () {
|
||||
db.all(
|
||||
"SELECT * FROM movieInfo WHERE movieID='" + req.query["id"] + "'",
|
||||
function (err, rows) {
|
||||
//+ req.params["id"]
|
||||
row = rows[0];
|
||||
console.log(row);
|
||||
|
||||
res.send(
|
||||
Eta.render(data, {
|
||||
internalID: row.id,
|
||||
id: row.movieID,
|
||||
cover: row.posterUrl,
|
||||
titleByAPI: row.movieTitel,
|
||||
})
|
||||
);
|
||||
}
|
||||
);
|
||||
});
|
||||
/*responseJson = responseBuffer[req.query["reponseID"]];
|
||||
console.log(responseBuffer);
|
||||
res.send(
|
||||
Eta.render(data, {
|
||||
id: responseJson.id,
|
||||
cover: responseJson.coverImage,
|
||||
titleByAPI: responseJson.titleByAPI,
|
||||
ean: responseJson.ean,
|
||||
isDisplay: true,
|
||||
responseID: req.query["reponseID"]
|
||||
})
|
||||
);*/
|
||||
});
|
||||
|
||||
app.get("/apiCallBack", function (req, res) {
|
||||
//console.log(req.query);
|
||||
if (!responseBuffer.allBufferd.includes(req.query["ean"])) {
|
||||
request(
|
||||
"http://localhost:9999/?ean=" + req.query["ean"],
|
||||
function (error, response, body) {
|
||||
if (response.statusCode != 200) {
|
||||
console.log("OH NO");
|
||||
res.send({ state: "ERR_EAN_CONV_NO_200" });
|
||||
} else {
|
||||
var reqString =
|
||||
"https://imdb-api.com/en/API/SearchTitle/" + config.get('keys.imdb') + "/" +
|
||||
response.body;
|
||||
request(reqString, function (error, response2, body) {
|
||||
jsonBody = JSON.parse(response2.body);
|
||||
console.log(response.body);
|
||||
if (jsonBody.errorMessage.includes("Maximum usage")) {
|
||||
res.send({ state: "ERR_IMDB_LIMIT_REACHED" });
|
||||
} else {
|
||||
jsonBody = jsonBody.results[0];
|
||||
//const data = fs.readFileSync("template/addToShelf.html.html", "utf8");
|
||||
timest = new Date().valueOf();
|
||||
responseJson = {
|
||||
state: "OK",
|
||||
id: jsonBody.id,
|
||||
coverImage: jsonBody.image,
|
||||
titleByAPI: response.body,
|
||||
ean: req.query["ean"],
|
||||
reponseID: req.query["ean"],
|
||||
};
|
||||
responseBuffer[req.query["ean"]] = responseJson;
|
||||
responseBuffer.allBufferd.push(req.query["ean"]);
|
||||
|
||||
// ToDo: Rewrite chache (and all pages!!!) to use ean instead of timeid
|
||||
|
||||
|
||||
try {
|
||||
fs.writeFileSync("chache.bin", JSON.stringify(responseBuffer));
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
res.send(responseJson);
|
||||
/* res.send(
|
||||
Eta.render(data, {
|
||||
id: jsonBody.id,
|
||||
cover: jsonBody.image,
|
||||
titleByAPI: response.body,
|
||||
ean: req.query["ean"],
|
||||
isDisplay: true,
|
||||
})
|
||||
);*/
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
} else {
|
||||
console.log("Using chache");
|
||||
responseJson = responseBuffer[req.query["ean"]];
|
||||
res.send(responseJson);
|
||||
}
|
||||
});
|
||||
|
||||
app.get("/save", function (req, res) {
|
||||
responseJson = responseBuffer[req.query["reponseID"]];
|
||||
|
||||
db.all(
|
||||
"SELECT * FROM movieInfo WHERE movieID='" + responseJson.id + "'",
|
||||
function (err, rows) {
|
||||
console.log(rows);
|
||||
if (rows == undefined || rows.length == 0) {
|
||||
db.run(
|
||||
"INSERT INTO movieInfo(id, movieID, movieTitel, place, type, posterUrl) VALUES(?, ?, ?, ?, ?, ?)",
|
||||
[
|
||||
new Date().valueOf(),
|
||||
responseJson.id,
|
||||
responseJson.titleByAPI,
|
||||
0,
|
||||
0,
|
||||
responseJson.coverImage,
|
||||
],
|
||||
(err) => {
|
||||
if (err) {
|
||||
return console.log(err.message);
|
||||
}
|
||||
}
|
||||
);
|
||||
res.send({ status: "OK" });
|
||||
} else {
|
||||
res.send({ status: "ERR_ALREADY_EXIST" });
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
//var res = request('POST', 'https://ssl.ofdb.de/view.php?page=suchergebnis', {
|
||||
// json: {'SText': '4030521376748', 'Kat':'EAN'},
|
||||
//});
|
||||
|
||||
//var temp2 = String(res.getBody('utf8'))
|
||||
//temp = //temp.replace("<script>", "").replace("<html>", "").replace("\n", "").replace("\r", "").replace("\t", "")
|
||||
//htmlBlock = htmlParser.parse(temp)
|
||||
//temp2 = temp2.split(/\r?\n/)
|
||||
//temp = temp.split('img src="https://ssl.ofdb.de/images/shim.gif" width="1" height="10" border="0" alt=""></td>')[0]
|
||||
//console.log(temp2.find(checkForString))
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Movie DB app listening at http://localhost:${port}`);
|
||||
});
|
||||
Generated
+1795
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "openmoviedb",
|
||||
"version": "1.0.0",
|
||||
"description": "An openmoviedb where you can save which movies you own.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "openmoviedb"
|
||||
},
|
||||
"keywords": [
|
||||
"movie",
|
||||
"imdb"
|
||||
],
|
||||
"author": "TheGreydiamond",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"config-js": "^1.1.14",
|
||||
"eta": "^1.12.1",
|
||||
"express": "^4.17.1",
|
||||
"form-data": "^4.0.0",
|
||||
"imdb-api": "^4.4.1",
|
||||
"node-fetch": "^2.6.1",
|
||||
"node-html-parser": "^3.1.2",
|
||||
"quagga": "^0.12.1",
|
||||
"request": "^2.88.2",
|
||||
"sqlite3": "^5.0.2",
|
||||
"sync-request": "^6.1.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
import time
|
||||
import requests
|
||||
|
||||
hostName = "localhost"
|
||||
serverPort = 9999
|
||||
|
||||
class MyServer(BaseHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
|
||||
print(self.path)
|
||||
if(self.path.startswith("/?ean=")):
|
||||
print("EAN request")
|
||||
|
||||
eanCode = self.path.split("=")[1]
|
||||
print(eanCode)
|
||||
url = 'https://ssl.ofdb.de/view.php?page=suchergebnis'
|
||||
myobj = {'SText': eanCode, 'Kat':'EAN'} #'4030521376748'
|
||||
|
||||
x = requests.post(url, data = myobj)
|
||||
tme = x.text
|
||||
try:
|
||||
tme = tme.split('<div data-nx-container="inread"><!-- INREAD --></div>')[1]
|
||||
tme = tme.split('img src="https://ssl.ofdb.de/images/shim.gif" width="1" height="10" border="0" alt=""></td>')[0]
|
||||
tme = tme.split(',SHADOW,true)"><b>')[1]
|
||||
tme = tme.split('</b></a><br>')[0]
|
||||
tme = tme[:len(tme)-7]
|
||||
except IndexError:
|
||||
self.send_response(500)
|
||||
self.send_header("Content-type", "text/html")
|
||||
self.end_headers()
|
||||
self.wfile.write(bytes("Invalid EAN", "utf-8"))
|
||||
else:
|
||||
self.send_response(200)
|
||||
self.send_header("Content-type", "text/html")
|
||||
self.end_headers()
|
||||
self.wfile.write(bytes(tme, "utf-8"))
|
||||
else:
|
||||
self.send_response(404)
|
||||
self.send_header("Content-type", "text/html")
|
||||
self.end_headers()
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
webServer = HTTPServer((hostName, serverPort), MyServer)
|
||||
print("Server started http://%s:%s" % (hostName, serverPort))
|
||||
|
||||
try:
|
||||
webServer.serve_forever()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
webServer.server_close()
|
||||
print("Server stopped.")
|
||||
Vendored
+427
@@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
||||
Vendored
+487
@@ -0,0 +1,487 @@
|
||||
/*
|
||||
* Skeleton V2.0.4
|
||||
* Copyright 2014, Dave Gamache
|
||||
* www.getskeleton.com
|
||||
* Free to use under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* 12/29/2014
|
||||
*/
|
||||
|
||||
|
||||
/* Table of contents
|
||||
––––––––––––––––––––––––––––––––––––––––––––––––––
|
||||
- Grid
|
||||
- Base Styles
|
||||
- Typography
|
||||
- Links
|
||||
- Buttons
|
||||
- Forms
|
||||
- Lists
|
||||
- Code
|
||||
- Tables
|
||||
- Spacing
|
||||
- Utilities
|
||||
- Clearing
|
||||
- Media Queries
|
||||
*/
|
||||
|
||||
|
||||
/* Grid
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box; }
|
||||
.column,
|
||||
.columns {
|
||||
width: 100%;
|
||||
float: left;
|
||||
box-sizing: border-box; }
|
||||
|
||||
/* For devices larger than 400px */
|
||||
@media (min-width: 400px) {
|
||||
.container {
|
||||
width: 85%;
|
||||
padding: 0; }
|
||||
}
|
||||
|
||||
/* For devices larger than 550px */
|
||||
@media (min-width: 550px) {
|
||||
.container {
|
||||
width: 80%; }
|
||||
.column,
|
||||
.columns {
|
||||
margin-left: 4%; }
|
||||
.column:first-child,
|
||||
.columns:first-child {
|
||||
margin-left: 0; }
|
||||
|
||||
.one.column,
|
||||
.one.columns { width: 4.66666666667%; }
|
||||
.two.columns { width: 13.3333333333%; }
|
||||
.three.columns { width: 22%; }
|
||||
.four.columns { width: 30.6666666667%; }
|
||||
.five.columns { width: 39.3333333333%; }
|
||||
.six.columns { width: 48%; }
|
||||
.seven.columns { width: 56.6666666667%; }
|
||||
.eight.columns { width: 65.3333333333%; }
|
||||
.nine.columns { width: 74.0%; }
|
||||
.ten.columns { width: 82.6666666667%; }
|
||||
.eleven.columns { width: 91.3333333333%; }
|
||||
.twelve.columns { width: 100%; margin-left: 0; }
|
||||
|
||||
.one-third.column { width: 30.6666666667%; }
|
||||
.two-thirds.column { width: 65.3333333333%; }
|
||||
|
||||
.one-half.column { width: 48%; }
|
||||
|
||||
/* Offsets */
|
||||
.offset-by-one.column,
|
||||
.offset-by-one.columns { margin-left: 8.66666666667%; }
|
||||
.offset-by-two.column,
|
||||
.offset-by-two.columns { margin-left: 17.3333333333%; }
|
||||
.offset-by-three.column,
|
||||
.offset-by-three.columns { margin-left: 26%; }
|
||||
.offset-by-four.column,
|
||||
.offset-by-four.columns { margin-left: 34.6666666667%; }
|
||||
.offset-by-five.column,
|
||||
.offset-by-five.columns { margin-left: 43.3333333333%; }
|
||||
.offset-by-six.column,
|
||||
.offset-by-six.columns { margin-left: 52%; }
|
||||
.offset-by-seven.column,
|
||||
.offset-by-seven.columns { margin-left: 60.6666666667%; }
|
||||
.offset-by-eight.column,
|
||||
.offset-by-eight.columns { margin-left: 69.3333333333%; }
|
||||
.offset-by-nine.column,
|
||||
.offset-by-nine.columns { margin-left: 78.0%; }
|
||||
.offset-by-ten.column,
|
||||
.offset-by-ten.columns { margin-left: 86.6666666667%; }
|
||||
.offset-by-eleven.column,
|
||||
.offset-by-eleven.columns { margin-left: 95.3333333333%; }
|
||||
|
||||
.offset-by-one-third.column,
|
||||
.offset-by-one-third.columns { margin-left: 34.6666666667%; }
|
||||
.offset-by-two-thirds.column,
|
||||
.offset-by-two-thirds.columns { margin-left: 69.3333333333%; }
|
||||
|
||||
.offset-by-one-half.column,
|
||||
.offset-by-one-half.columns { margin-left: 52%; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Base Styles
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
/* NOTE
|
||||
html is set to 62.5% so that all the REM measurements throughout Skeleton
|
||||
are based on 10px sizing. So basically 1.5rem = 15px :) */
|
||||
html {
|
||||
font-size: 62.5%; }
|
||||
body {
|
||||
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
|
||||
line-height: 1.6;
|
||||
font-weight: 400;
|
||||
font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #222; }
|
||||
|
||||
|
||||
/* Typography
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 2rem;
|
||||
font-weight: 300; }
|
||||
h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
|
||||
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
|
||||
h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
|
||||
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
|
||||
h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
|
||||
h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
|
||||
|
||||
/* Larger than phablet */
|
||||
@media (min-width: 550px) {
|
||||
h1 { font-size: 5.0rem; }
|
||||
h2 { font-size: 4.2rem; }
|
||||
h3 { font-size: 3.6rem; }
|
||||
h4 { font-size: 3.0rem; }
|
||||
h5 { font-size: 2.4rem; }
|
||||
h6 { font-size: 1.5rem; }
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0; }
|
||||
|
||||
|
||||
/* Links
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
a {
|
||||
color: #1EAEDB; }
|
||||
a:hover {
|
||||
color: #0FA0CE; }
|
||||
|
||||
|
||||
/* Buttons
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.button,
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"] {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
padding: 0 30px;
|
||||
color: #555;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 38px;
|
||||
letter-spacing: .1rem;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
background-color: transparent;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #bbb;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box; }
|
||||
.button:hover,
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
input[type="reset"]:hover,
|
||||
input[type="button"]:hover,
|
||||
.button:focus,
|
||||
button:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="reset"]:focus,
|
||||
input[type="button"]:focus {
|
||||
color: #333;
|
||||
border-color: #888;
|
||||
outline: 0; }
|
||||
.button.button-primary,
|
||||
button.button-primary,
|
||||
input[type="submit"].button-primary,
|
||||
input[type="reset"].button-primary,
|
||||
input[type="button"].button-primary {
|
||||
color: #FFF;
|
||||
background-color: #33C3F0;
|
||||
border-color: #33C3F0; }
|
||||
.button.button-primary:hover,
|
||||
button.button-primary:hover,
|
||||
input[type="submit"].button-primary:hover,
|
||||
input[type="reset"].button-primary:hover,
|
||||
input[type="button"].button-primary:hover,
|
||||
.button.button-primary:focus,
|
||||
button.button-primary:focus,
|
||||
input[type="submit"].button-primary:focus,
|
||||
input[type="reset"].button-primary:focus,
|
||||
input[type="button"].button-primary:focus {
|
||||
color: #FFF;
|
||||
background-color: #1EAEDB;
|
||||
border-color: #1EAEDB; }
|
||||
|
||||
|
||||
/* Forms
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input[type="text"],
|
||||
input[type="tel"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
textarea,
|
||||
select {
|
||||
height: 38px;
|
||||
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
|
||||
background-color: #fff;
|
||||
border: 1px solid #D1D1D1;
|
||||
border-radius: 4px;
|
||||
box-shadow: none;
|
||||
box-sizing: border-box; }
|
||||
/* Removes awkward default styles on some inputs for iOS */
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input[type="text"],
|
||||
input[type="tel"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
textarea {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none; }
|
||||
textarea {
|
||||
min-height: 65px;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px; }
|
||||
input[type="email"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="text"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
textarea:focus,
|
||||
select:focus {
|
||||
border: 1px solid #33C3F0;
|
||||
outline: 0; }
|
||||
label,
|
||||
legend {
|
||||
display: block;
|
||||
margin-bottom: .5rem;
|
||||
font-weight: 600; }
|
||||
fieldset {
|
||||
padding: 0;
|
||||
border-width: 0; }
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
display: inline; }
|
||||
label > .label-body {
|
||||
display: inline-block;
|
||||
margin-left: .5rem;
|
||||
font-weight: normal; }
|
||||
|
||||
|
||||
/* Lists
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
ul {
|
||||
list-style: circle inside; }
|
||||
ol {
|
||||
list-style: decimal inside; }
|
||||
ol, ul {
|
||||
padding-left: 0;
|
||||
margin-top: 0; }
|
||||
ul ul,
|
||||
ul ol,
|
||||
ol ol,
|
||||
ol ul {
|
||||
margin: 1.5rem 0 1.5rem 3rem;
|
||||
font-size: 90%; }
|
||||
li {
|
||||
margin-bottom: 1rem; }
|
||||
|
||||
|
||||
/* Code
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
code {
|
||||
padding: .2rem .5rem;
|
||||
margin: 0 .2rem;
|
||||
font-size: 90%;
|
||||
white-space: nowrap;
|
||||
background: #F1F1F1;
|
||||
border: 1px solid #E1E1E1;
|
||||
border-radius: 4px; }
|
||||
pre > code {
|
||||
display: block;
|
||||
padding: 1rem 1.5rem;
|
||||
white-space: pre; }
|
||||
|
||||
|
||||
/* Tables
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
th,
|
||||
td {
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #E1E1E1; }
|
||||
th:first-child,
|
||||
td:first-child {
|
||||
padding-left: 0; }
|
||||
th:last-child,
|
||||
td:last-child {
|
||||
padding-right: 0; }
|
||||
|
||||
|
||||
/* Spacing
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
button,
|
||||
.button {
|
||||
margin-bottom: 1rem; }
|
||||
input,
|
||||
textarea,
|
||||
select,
|
||||
fieldset {
|
||||
margin-bottom: 1.5rem; }
|
||||
pre,
|
||||
blockquote,
|
||||
dl,
|
||||
figure,
|
||||
table,
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
form {
|
||||
margin-bottom: 2.5rem; }
|
||||
|
||||
|
||||
/* Utilities
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.u-full-width {
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.u-max-full-width {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.u-pull-right {
|
||||
float: right; }
|
||||
.u-pull-left {
|
||||
float: left; }
|
||||
|
||||
|
||||
/* Misc
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
hr {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3.5rem;
|
||||
border-width: 0;
|
||||
border-top: 1px solid #E1E1E1; }
|
||||
|
||||
|
||||
/* Clearing
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
|
||||
/* Self Clearing Goodness */
|
||||
.container:after,
|
||||
.row:after,
|
||||
.u-cf {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both; }
|
||||
|
||||
|
||||
/* Media Queries
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
/*
|
||||
Note: The best way to structure the use of media queries is to create the queries
|
||||
near the relevant code. For example, if you wanted to change the styles for buttons
|
||||
on small devices, paste the mobile query code up in the buttons section and style it
|
||||
there.
|
||||
*/
|
||||
|
||||
|
||||
/* Larger than mobile */
|
||||
@media (min-width: 400px) {}
|
||||
|
||||
/* Larger than phablet (also point when grid becomes active) */
|
||||
@media (min-width: 550px) {}
|
||||
|
||||
/* Larger than tablet */
|
||||
@media (min-width: 750px) {}
|
||||
|
||||
/* Larger than desktop */
|
||||
@media (min-width: 1000px) {}
|
||||
|
||||
/* Larger than Desktop HD */
|
||||
@media (min-width: 1200px) {}
|
||||
|
||||
|
||||
.lds-grid {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
.lds-grid div {
|
||||
position: absolute;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: #dfc;
|
||||
animation: lds-grid 1.2s linear infinite;
|
||||
}
|
||||
.lds-grid div:nth-child(1) {
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
animation-delay: 0s;
|
||||
}
|
||||
.lds-grid div:nth-child(2) {
|
||||
top: 8px;
|
||||
left: 32px;
|
||||
animation-delay: -0.4s;
|
||||
}
|
||||
.lds-grid div:nth-child(3) {
|
||||
top: 8px;
|
||||
left: 56px;
|
||||
animation-delay: -0.8s;
|
||||
}
|
||||
.lds-grid div:nth-child(4) {
|
||||
top: 32px;
|
||||
left: 8px;
|
||||
animation-delay: -0.4s;
|
||||
}
|
||||
.lds-grid div:nth-child(5) {
|
||||
top: 32px;
|
||||
left: 32px;
|
||||
animation-delay: -0.8s;
|
||||
}
|
||||
.lds-grid div:nth-child(6) {
|
||||
top: 32px;
|
||||
left: 56px;
|
||||
animation-delay: -1.2s;
|
||||
}
|
||||
.lds-grid div:nth-child(7) {
|
||||
top: 56px;
|
||||
left: 8px;
|
||||
animation-delay: -0.8s;
|
||||
}
|
||||
.lds-grid div:nth-child(8) {
|
||||
top: 56px;
|
||||
left: 32px;
|
||||
animation-delay: -1.2s;
|
||||
}
|
||||
.lds-grid div:nth-child(9) {
|
||||
top: 56px;
|
||||
left: 56px;
|
||||
animation-delay: -1.6s;
|
||||
}
|
||||
@keyframes lds-grid {
|
||||
0%, 100% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
|
||||
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^Line truncated
|
||||
|
||||
return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var
Line truncated
|
||||
return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[cLine truncated
|
||||
@@ -0,0 +1,18 @@
|
||||
<h1>Testpage</h1>
|
||||
<div style="width: 150px; float: left; padding: 5px;">
|
||||
<img src="https://imdb-api.com/images/original/MV5BNjM0NTc0NzItM2FlYS00YzEwLWE0YmUtNTA2ZWIzODc2OTgxXkEyXkFqcGdeQXVyNTgwNzIyNzg@._V1_Ratio0.6800_AL_.jpg" style="width: 100%;">
|
||||
<br>
|
||||
<center><b>Txt</b></center>
|
||||
</div>
|
||||
|
||||
<div style="width: 150px; float: left; padding: 5px;">
|
||||
<img src="https://imdb-api.com/images/original/MV5BNjM0NTc0NzItM2FlYS00YzEwLWE0YmUtNTA2ZWIzODc2OTgxXkEyXkFqcGdeQXVyNTgwNzIyNzg@._V1_Ratio0.6800_AL_.jpg" style="width: 100%;">
|
||||
<br>
|
||||
<center><b>Txt 2</b></center>
|
||||
</div>
|
||||
|
||||
<div style="width: 150px; float: left; padding: 5px;">
|
||||
<img src="https://imdb-api.com/images/original/MV5BNjM0NTc0NzItM2FlYS00YzEwLWE0YmUtNTA2ZWIzODc2OTgxXkEyXkFqcGdeQXVyNTgwNzIyNzg@._V1_Ratio0.6800_AL_.jpg" style="width: 100%;">
|
||||
<br>
|
||||
<center><b>Txt 3</b></center>
|
||||
</div>
|
||||
+206
@@ -0,0 +1,206 @@
|
||||
var videoElement = document.querySelector('video');
|
||||
var canvas = document.getElementById('pcCanvas');
|
||||
var mobileCanvas = document.getElementById('mobileCanvas');
|
||||
var ctx = canvas.getContext('2d');
|
||||
var mobileCtx = mobileCanvas.getContext('2d');
|
||||
var videoSelect = document.querySelector('select#videoSource');
|
||||
var videoOption = document.getElementById('videoOption');
|
||||
var buttonGo = document.getElementById('go');
|
||||
var barcode_result = document.getElementById('dbr');
|
||||
|
||||
var isPaused = false;
|
||||
var videoWidth = 640,
|
||||
videoHeight = 480;
|
||||
var mobileVideoWidth = 240,
|
||||
mobileVideoHeight = 320;
|
||||
var isPC = true;
|
||||
|
||||
var ZXing = null;
|
||||
var decodePtr = null;
|
||||
|
||||
var tick = function () {
|
||||
if (window.ZXing) {
|
||||
ZXing = ZXing();
|
||||
decodePtr = ZXing.Runtime.addFunction(decodeCallback);
|
||||
} else {
|
||||
setTimeout(tick, 10);
|
||||
}
|
||||
};
|
||||
tick();
|
||||
|
||||
var decodeCallback = function (ptr, len, resultIndex, resultCount) {
|
||||
var result = new Uint8Array(ZXing.HEAPU8.buffer, ptr, len);
|
||||
console.log(String.fromCharCode.apply(null, result));
|
||||
barcode_result.textContent = String.fromCharCode.apply(null, result);
|
||||
buttonGo.disabled = false;
|
||||
if (isPC) {
|
||||
canvas.style.display = 'block';
|
||||
} else {
|
||||
mobileCanvas.style.display = 'block';
|
||||
}
|
||||
};
|
||||
|
||||
// check devices
|
||||
function browserRedirect() {
|
||||
var deviceType;
|
||||
var sUserAgent = navigator.userAgent.toLowerCase();
|
||||
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
|
||||
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
|
||||
var bIsMidp = sUserAgent.match(/midp/i) == "midp";
|
||||
var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
|
||||
var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
|
||||
var bIsAndroid = sUserAgent.match(/android/i) == "android";
|
||||
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
|
||||
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
|
||||
if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
|
||||
deviceType = 'phone';
|
||||
} else {
|
||||
deviceType = 'pc';
|
||||
}
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
if (browserRedirect() == 'pc') {
|
||||
isPC = true;
|
||||
} else {
|
||||
isPC = false;
|
||||
}
|
||||
|
||||
// stackoverflow: http://stackoverflow.com/questions/4998908/convert-data-uri-to-file-then-append-to-formdata/5100158
|
||||
function dataURItoBlob(dataURI) {
|
||||
// convert base64/URLEncoded data component to raw binary data held in a string
|
||||
var byteString;
|
||||
if (dataURI.split(',')[0].indexOf('base64') >= 0)
|
||||
byteString = atob(dataURI.split(',')[1]);
|
||||
else
|
||||
byteString = unescape(dataURI.split(',')[1]);
|
||||
|
||||
// separate out the mime component
|
||||
var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
|
||||
|
||||
// write the bytes of the string to a typed array
|
||||
var ia = new Uint8Array(byteString.length);
|
||||
for (var i = 0; i < byteString.length; i++) {
|
||||
ia[i] = byteString.charCodeAt(i);
|
||||
}
|
||||
|
||||
return new Blob([ia], {
|
||||
type: mimeString
|
||||
});
|
||||
}
|
||||
|
||||
// add button event
|
||||
buttonGo.onclick = function () {
|
||||
if (isPC) {
|
||||
canvas.style.display = 'none';
|
||||
} else {
|
||||
mobileCanvas.style.display = 'none';
|
||||
}
|
||||
|
||||
isPaused = false;
|
||||
scanBarcode();
|
||||
buttonGo.disabled = true;
|
||||
};
|
||||
|
||||
// scan barcode
|
||||
function scanBarcode() {
|
||||
barcode_result.textContent = "";
|
||||
|
||||
if (ZXing == null) {
|
||||
buttonGo.disabled = false;
|
||||
alert("Barcode Reader is not ready!");
|
||||
return;
|
||||
}
|
||||
|
||||
var data = null,
|
||||
context = null,
|
||||
width = 0,
|
||||
height = 0,
|
||||
dbrCanvas = null;
|
||||
|
||||
if (isPC) {
|
||||
context = ctx;
|
||||
width = videoWidth;
|
||||
height = videoHeight;
|
||||
dbrCanvas = canvas;
|
||||
} else {
|
||||
context = mobileCtx;
|
||||
width = mobileVideoWidth;
|
||||
height = mobileVideoHeight;
|
||||
dbrCanvas = mobileCanvas;
|
||||
}
|
||||
|
||||
context.drawImage(videoElement, 0, 0, width, height);
|
||||
|
||||
var vid = document.getElementById("video");
|
||||
console.log("video width: " + vid.videoWidth + ", height: " + vid.videoHeight);
|
||||
var barcodeCanvas = document.createElement("canvas");
|
||||
barcodeCanvas.width = vid.videoWidth;
|
||||
barcodeCanvas.height = vid.videoHeight;
|
||||
var barcodeContext = barcodeCanvas.getContext('2d');
|
||||
var imageWidth = vid.videoWidth, imageHeight = vid.videoHeight;
|
||||
barcodeContext.drawImage(videoElement, 0, 0, imageWidth, imageHeight);
|
||||
// read barcode
|
||||
var imageData = barcodeContext.getImageData(0, 0, imageWidth, imageHeight);
|
||||
var idd = imageData.data;
|
||||
var image = ZXing._resize(imageWidth, imageHeight);
|
||||
console.time("decode barcode");
|
||||
for (var i = 0, j = 0; i < idd.length; i += 4, j++) {
|
||||
ZXing.HEAPU8[image + j] = idd[i];
|
||||
}
|
||||
var err = ZXing._decode_any(decodePtr);
|
||||
console.timeEnd('decode barcode');
|
||||
console.log("error code", err);
|
||||
if (err == -2) {
|
||||
setTimeout(scanBarcode, 30);
|
||||
}
|
||||
}
|
||||
// https://github.com/samdutton/simpl/tree/gh-pages/getusermedia/sources
|
||||
var videoSelect = document.querySelector('select#videoSource');
|
||||
|
||||
navigator.mediaDevices.enumerateDevices()
|
||||
.then(gotDevices).then(getStream).catch(handleError);
|
||||
|
||||
videoSelect.onchange = getStream;
|
||||
|
||||
function gotDevices(deviceInfos) {
|
||||
for (var i = deviceInfos.length - 1; i >= 0; --i) {
|
||||
var deviceInfo = deviceInfos[i];
|
||||
var option = document.createElement('option');
|
||||
option.value = deviceInfo.deviceId;
|
||||
if (deviceInfo.kind === 'videoinput') {
|
||||
option.text = deviceInfo.label || 'camera ' +
|
||||
(videoSelect.length + 1);
|
||||
videoSelect.appendChild(option);
|
||||
} else {455
|
||||
console.log('Found one other kind of source/device: ', deviceInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getStream() {
|
||||
buttonGo.disabled = false;
|
||||
if (window.stream) {
|
||||
window.stream.getTracks().forEach(function(track) {
|
||||
track.stop();
|
||||
});
|
||||
}
|
||||
|
||||
var constraints = {
|
||||
video: {
|
||||
deviceId: {exact: videoSelect.value}
|
||||
}
|
||||
};
|
||||
|
||||
navigator.mediaDevices.getUserMedia(constraints).
|
||||
then(gotStream).catch(handleError);
|
||||
}
|
||||
|
||||
function gotStream(stream) {
|
||||
window.stream = stream; // make stream available to console
|
||||
videoElement.srcObject = stream;
|
||||
}
|
||||
|
||||
function handleError(error) {
|
||||
console.log('Error: ', error);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
var ZXing = function(ZXing) {
|
||||
ZXing = ZXing || {};
|
||||
|
||||
var Module=typeof ZXing!=="undefined"?ZXing:{};var moduleOverrides={};var key;for(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 shell_read(filename,binary){var ret;ret=tryParseAsDataURI(filename);if(!ret){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);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};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);process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));process["on"]("unhandledRejection",(function(reason,p){process["exit"](1)}));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"]=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}else{Module["read"]=function shell_read(){throw"no read() available"}}Module["readBinary"]=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}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}if(typeof quit==="function"){Module["quit"]=(function(status,toThrow){quit(status)})}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){Module["readBinary"]=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}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);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function shell_print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function shell_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(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw new Error("Unknown runtime environment. Where are we?")}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"}if(!Module["quit"]){Module["quit"]=(function(status,toThrow){throw toThrow})}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=undefined;var Runtime={setTempRet0:(function(value){tempRet0=value;return value}),getTempRet0:(funLine truncated
|
||||
var asm=(/** @suppress {uselessCode} */ 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.DYNAMICTOP_PTR|0;var j=env.tempDoublePtr|0;var k=env.ABORT|0;var l=env.STACKTOP|0;var m=env.STACK_MAX|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;var z=0;var A=global.Math.floor;var B=global.Math.abs;var C=global.Math.sqrt;var D=global.Math.pow;var E=global.Math.cos;var F=global.Math.sin;var G=global.Math.tan;var H=global.Math.acos;var I=global.Math.asin;var J=global.Math.atan;var K=global.Math.atan2;var L=global.Math.exp;var M=global.Math.log;var N=global.Math.ceil;var O=global.Math.imul;var P=global.Math.min;var Q=global.Math.max;var R=global.Math.clz32;var S=env.abort;var T=env.assert;var U=env.enlargeMemory;var V=env.getTotalMemory;var W=env.abortOnCannotGrowMemory;var X=env.invoke_di;var Y=env.jsCall_di;var Z=env.invoke_dii;var _=env.jsCall_dii;var $=env.invoke_diii;var aa=env.jsCall_diii;var ba=env.invoke_diiii;var ca=env.jsCall_diiii;var da=env.invoke_i;var ea=env.jsCall_i;var fa=env.invoke_ii;var ga=env.jsCall_ii;var ha=env.invoke_iiddd;var ia=env.jsCall_iiddd;var ja=env.invoke_iii;var ka=env.jsCall_iii;var la=env.invoke_iiii;var ma=env.jsCall_iiii;var na=env.invoke_iiiid;var oa=env.jsCall_iiiid;var pa=env.invoke_iiiii;var qa=env.jsCall_iiiii;var ra=env.invoke_iiiiid;var sa=env.jsCall_iiiiid;var ta=env.invoke_iiiiidddddddd;var ua=env.jsCall_iiiiidddddddd;var va=env.invoke_iiiiii;var wa=env.jsCall_iiiiii;var xa=env.invoke_iiiiiid;var ya=env.jsCall_iiiiiid;var za=env.invoke_iiiiiii;var Aa=env.jsCall_iiiiiii;var Ba=env.invoke_iiiiiiii;var Ca=env.jsCall_iiiiiiii;var Da=env.invoke_iiiiiiiii;var Ea=env.jsCall_iiiiiiiii;var Fa=env.invoke_iiiiiiiiiii;var Ga=env.jsCall_iiiiiiiiiii;var Ha=env.invoke_iiiiiiiiiiii;var Ia=env.jsCall_iiiiiiiiiiii;var Ja=env.invoke_iiiiiiiiiiiii;var Ka=env.jsCall_iiiiiiiiiiiii;var La=env.invoke_v;var Ma=env.jsCall_v;var Na=env.invoke_vi;var Oa=env.jsCall_vi;var Pa=env.invoke_vidd;var Qa=env.jsCall_vidd;var Ra=env.invoke_viddd;var Sa=env.jsCall_viddd;var Ta=env.invoke_vidddddddd;var Ua=env.jsCall_vidddddddd;var Va=env.invoke_vidddi;var Wa=env.jsCall_vidddi;var Xa=env.invoke_vii;var Ya=env.jsCall_vii;var Za=env.invoke_viiddd;var _a=env.jsCall_viiddd;var $a=env.invoke_viidiid;var ab=env.jsCall_viidiid;var bb=env.invoke_viii;var cb=env.jsCall_viii;var db=env.invoke_viiii;var eb=env.jsCall_viiii;var fb=env.invoke_viiiidddddddddddddddd;var gb=env.jsCall_viiiidddddddddddddddd;var hb=env.invoke_viiiii;var ib=env.jsCall_viiiii;var jb=env.invoke_viiiiii;var kb=env.jsCall_viiiiii;var lb=env.invoke_viiiiiidi;var mb=env.jsCall_viiiiiidi;var nb=env.invoke_viiiiiii;var ob=env.jsCall_viiiiiii;var pb=env.invoke_viiiiiiii;var qb=env.jsCall_viiiiiiii;var rb=env.invoke_viiiiiiiii;var sb=env.jsCall_viiiiiiiii;var tb=env.invoke_viiiiiiiiii;var ub=env.jsCall_viiiiiiiiii;var vb=env.invoke_viiiiiiiiiiiiiii;var wb=env.jsCall_viiiiiiiiiiiiiii;var xb=env.__ZSt18uncaught_exceptionv;var yb=env.___assert_fail;var zb=env.___buildEnvironment;var Ab=env.___cxa_allocate_exception;var Bb=env.___cxa_begin_catch;var Cb=env.___cxa_call_unexpected;var Db=env.___cxa_end_catch;var Eb=env.___cxa_find_matching_catch;var Fb=env.___cxa_find_matching_catch_2;var Gb=env.___cxa_find_matching_catch_3;var Hb=env.___cxa_find_matching_catch_4;var Ib=env.___cxa_find_matching_catch_6;var Jb=env.___cxa_free_exception;var Kb=env.___cxa_pure_virtual;var Lb=env.___cxa_rethrow;var Mb=env.___cxa_throw;var Nb=env.___gxx_personality_v0;var Ob=env.___lock;var Pb=env.___map_file;var Qb=env.___resumeException;var Rb=env.___setErrNo;var Sb=env.___syscall140;var Tb=env.___syscall146;var Ub=env.___syscall6;var Vb=env.___syscall91;var Wb=env.___unlock;var Xb=env.__addDays;var Yb=env.__arraySum;var Zb=env.__embind_register_bool;var _b=env.__embind_register_emval;var $b=env.__embind_register_float;var ac=env.__embind_register_integer;var bc=env.__embind_register_memory_view;var cc=env.__embind_register_std_string;var dc=env.__embind_register_std_wstring;var ec=env.__embind_register_void;var fc=env.__emval_decref;var gc=env.__emval_register;var hc=env.__isLeapYear;var ic=env._abort;var jc=env._embind_repr;var kc=env._emscripten_memcpy_big;var lc=env._getenv;var mc=env._llvm_eh_typeid_for;var nc=env._pthread_cond_wait;var oc=env._pthread_getspecific;var pc=env._pthread_key_create;var qc=env._pthread_once;var rc=env._pthread_setspecific;var sc=env._strftime;var tc=env._strftime_l;var uc=env.count_emval_handles;var vc=env.createNamedFunction;var wc=env.embind_init_charCodes;var xc=env.extendError;var yc=env.floatReadValueFromPointer;var zc=env.getShiftFromSize;var Ac=env.get_first_emval;var Bc=env.init_emval;var Cc=env.integerReadValueFromPointer;var Dc=env.makeLegalFunctionNLine truncated
|
||||
// EMSCRIPTEN_START_FUNCS
|
||||
function fQ(e,f,g,h,i,j,k,m,n,p,q){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=n|0;p=p|0;q=q|0;var 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,$=0;Z=l;l=l+512|0;K=Z+88|0;R=Z+96|0;$=Z+80|0;S=Z+72|0;L=Z+68|0;M=Z+500|0;N=Z+497|0;O=Z+496|0;U=Z+56|0;V=Z+44|0;W=Z+32|0;X=Z+20|0;Y=Z+8|0;P=Z+4|0;T=Z;c[K>>2]=q;c[$>>2]=R;_=$+4|0;c[_>>2]=354;c[S>>2]=R;c[L>>2]=R+400;c[U>>2]=0;c[U+4>>2]=0;c[U+8>>2]=0;q=0;while(1){if((q|0)==3)break;c[U+(q<<2)>>2]=0;q=q+1|0}c[V>>2]=0;c[V+4>>2]=0;c[V+8>>2]=0;q=0;while(1){if((q|0)==3)break;c[V+(q<<2)>>2]=0;q=q+1|0}c[W>>2]=0;c[W+4>>2]=0;c[W+8>>2]=0;q=0;while(1){if((q|0)==3)break;c[W+(q<<2)>>2]=0;q=q+1|0}c[X>>2]=0;c[X+4>>2]=0;c[X+8>>2]=0;q=0;while(1){if((q|0)==3)break;c[X+(q<<2)>>2]=0;q=q+1|0}c[Y>>2]=0;c[Y+4>>2]=0;c[Y+8>>2]=0;q=0;while(1){if((q|0)==3)break;c[Y+(q<<2)>>2]=0;q=q+1|0}o=0;tb(42,g|0,h|0,M|0,N|0,O|0,U|0,V|0,W|0,X|0,P|0);R=o;o=0;a:do if(R&1)g=Fb()|0;else{c[p>>2]=c[n>>2];F=m+8|0;G=W+11|0;H=W+4|0;I=X+11|0;J=X+4|0;x=(i&512|0)!=0;y=V+11|0;z=V+4|0;A=Y+11|0;B=Y+4|0;C=M+3|0;D=U+11|0;E=U+4|0;R=0;w=0;b:while(1){m=(R|0)!=0;if(w>>>0>=4){Q=246;break}q=c[e>>2]|0;do if(q){g=c[q+12>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;q=fa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else q=bh(a[g>>0]|0)|0;if(Yg(q,Qg()|0)|0){c[e>>2]=0;h=1;break}else{h=(c[e>>2]|0)==0;break}}else h=1;while(0);g=c[f>>2]|0;do if(g){q=c[g+12>>2]|0;if((q|0)==(c[g+16>>2]|0)){o=0;q=fa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else q=bh(a[q>>0]|0)|0;if(!(Yg(q,Qg()|0)|0))if(h){v=g;break}else{Q=246;break b}else{c[f>>2]=0;Q=32;break}}else Q=32;while(0);if((Q|0)==32){Q=0;if(h){Q=246;break}else v=0}q=(w|0)!=3;c:do switch(a[M+w>>0]|0){case 1:{if(q){q=c[e>>2]|0;g=c[q+12>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;q=fa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;Q=o;o=0;if(Q&1){Q=35;break b}}else q=bh(a[g>>0]|0)|0;if((q&255)<<24>>24<=-1){Q=47;break b}if(!(b[(c[F>>2]|0)+(q<<24>>24<<1)>>1]&8192)){Q=47;break b}q=c[e>>2]|0;g=q+12|0;h=c[g>>2]|0;if((h|0)==(c[q+16>>2]|0)){o=0;q=fa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;Q=o;o=0;if(Q&1){Q=35;break b}}else{c[g>>2]=h+1;q=bh(a[h>>0]|0)|0}o=0;Xa(109,Y|0,q&255|0);Q=o;o=0;if(Q&1){Q=35;break b}else{q=v;m=v;Q=49}}else q=R;break}case 0:{if(q){q=v;m=v;Q=49}else q=R;break}case 3:{q=a[G>>0]|0;q=q<<24>>24<0?c[H>>2]|0:q&255;m=a[I>>0]|0;m=m<<24>>24<0?c[J>>2]|0:m&255;if((q|0)==(0-m|0))q=R;else{if(!q){q=c[e>>2]|0;g=c[q+12>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;q=fa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else q=bh(a[g>>0]|0)|0;if((q&255)<<24>>24!=(a[((a[I>>0]|0)<0?c[X>>2]|0:X)>>0]|0)){q=R;break c}q=c[e>>2]|0;g=q+12|0;h=c[g>>2]|0;if((h|0)==(c[q+16>>2]|0)){o=0;fa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else{c[g>>2]=h+1;bh(a[h>>0]|0)|0}a[k>>0]=1;q=a[I>>0]|0;q=(q<<24>>24<0?c[J>>2]|0:q&255)>>>0>1?X:R;break c}q=c[e>>2]|0;g=c[q+12>>2]|0;h=(g|0)==(c[q+16>>2]|0);if(!m){if(h){o=0;q=fa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else q=bh(a[g>>0]|0)|0;if((q&255)<<24>>24!=(a[((a[G>>0]|0)<0?c[W>>2]|0:W)>>0]|0)){a[k>>0]=1;q=R;break c}q=c[e>>2]|0;g=q+12|0;h=c[g>>2]|0;if((h|0)==(c[q+16>>2]|0)){o=0;fa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else{c[g>>2]=h+1;bh(a[h>>0]|0)|0}q=a[G>>0]|0;q=(q<<24>>24<0?c[H>>2]|0:q&255)>>>0>1?W:R;break c}if(h){o=0;q=fa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else q=bh(a[g>>0]|0)|0;g=c[e>>2]|0;h=g+12|0;m=c[h>>2]|0;i=(m|0)==(c[g+16>>2]|0);if((q&255)<<24>>24==(a[((a[G>>0]|0)<0?c[W>>2]|0:W)>>0]|0)){if(i){o=0;fa(c[(c[g>>2]|0)+40>>2]|0,g|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else{c[h>>2]=m+1;bh(a[m>>0]|0)|0}q=a[G>>0]|0;q=(q<<24>>24<0?c[H>>2]|0:q&255)>>>0>1?W:R;break c}if(i){o=0;q=fa(c[(c[g>>2]|0)+36>>2]|0,g|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else q=bh(a[m>>0]|0)|0;if((q&255)<<24>>24!=(a[((a[I>>0]|0)<0?c[X>>2]|0:X)>>0]|0)){Q=109;break b}q=c[e>>2]|0;g=q+12|0;h=c[g>>2]|0;if((h|0)==(c[q+16>>2]|0)){o=0;fa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=35;break b}}else{c[g>>2]=h+1;bh(a[h>>0]|0)|0}a[k>>0]=1;q=a[I>>0]|0;q=(q<<24>>24<0?c[J>>2]|0:q&255)>>>0>1?X:R}break}case 2:{if(!(w>>>0<2|m)?!(x|(w|0)==2&(a[C>>0]|0)!=0):0){q=0;break c}g=a[y>>0]|0;q=g<<24>>24<0;t=c[V>>2]|0;h=q?t:V;s=h;d:do if((w|0)!=0?(d[M+(w+-1)>>0]|0)<2:0){q=h+(q?c[z>>2]|0:g&255)|0;r=s;while(1){m=r;if((m|0)==(q|0))break;i=a[m>>0]|0;if(i<<24>>24<=-1)break;if(!(b[(c[F>>2]|0)+(i<<24>>24<<1)>>1]&8192))break;r=m+1|0}i=r-s|0;m=a[A>>0]|0;q=m<<24>>24<0;m=q?c[B>>2]|0:m&255;if(i>>>0<=m>>>0){m=(q?c[Y>>2]|0:Y)+m|0;q=m+(0-i)|0;while(1){if((q|0)==(m|0)){u=v;h=r;q=t;m=v;break d}if((a[q>>0]|0)!=(a[h>>0]|0)){u=v;h=s;q=t;m=v;break d}h=h+1|0;q=q+1|0}}else{u=v;h=s;q=t;m=v}}else{u=v;h=s;q=t;m=v}while(0);e:while(1){r=g<<24>>24<0;q=(r?q:V)+(r?c[z>>2]|0:g&255)|0;r=h;if((r|0)==(q|0))break;q=c[e>>2]|0;do if(q){g=c[q+12>>2]|0;if((g|0)==(c[q+16>>2]|0)){o=0;q=fa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;v=o;o=0;if(v&1){Q=148;break b}}else q=bh(a[g>>0]|0)|0;if(Yg(q,Qg()|0)|0){c[e>>2]=0;g=1;break}else{gLine truncated
|
||||
function wM(d,e,f,g,h,i){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=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;B=l;l=l+224|0;t=B+198|0;u=B+196|0;C=B+184|0;D=B+172|0;v=B+168|0;y=B+8|0;z=B+4|0;w=B;x=pM(g)|0;qM(C,g,t,u);c[D>>2]=0;c[D+4>>2]=0;c[D+8>>2]=0;d=0;while(1){if((d|0)==3)break;c[D+(d<<2)>>2]=0;d=d+1|0}s=D+11|0;if((a[s>>0]|0)<0)d=(c[D+8>>2]&2147483647)+-1|0;else d=10;o=0;bb(58,D|0,d|0,0);r=o;o=0;if(r&1)d=Fb()|0;else{d=(a[s>>0]|0)<0?c[D>>2]|0:D;c[v>>2]=d;c[z>>2]=y;c[w>>2]=0;q=D+4|0;r=D+8|0;k=c[e>>2]|0;j=k;a:while(1){if(j){g=c[j+12>>2]|0;if((g|0)==(c[j+16>>2]|0)){o=0;g=fa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;p=o;o=0;if(p&1)break}else g=bh(a[g>>0]|0)|0;if(Yg(g,Qg()|0)|0){c[e>>2]=0;p=0;k=0;m=1}else{p=j;m=0}}else{p=0;k=0;m=1}j=c[f>>2]|0;do if(j){g=c[j+12>>2]|0;if((g|0)==(c[j+16>>2]|0)){o=0;g=fa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;n=o;o=0;if(n&1)break a}else g=bh(a[g>>0]|0)|0;if(!(Yg(g,Qg()|0)|0))if(m)break;else{E=37;break a}else{c[f>>2]=0;E=20;break}}else E=20;while(0);if((E|0)==20){E=0;if(m){j=0;E=37;break}else j=0}g=a[s>>0]|0;g=g<<24>>24<0?c[q>>2]|0:g&255;if((c[v>>2]|0)==(d+g|0)){o=0;bb(58,D|0,g<<1|0,0);n=o;o=0;if(n&1)break;if((a[s>>0]|0)<0)d=(c[r>>2]&2147483647)+-1|0;else d=10;o=0;bb(58,D|0,d|0,0);n=o;o=0;if(n&1)break;d=(a[s>>0]|0)<0?c[D>>2]|0:D;c[v>>2]=d+g}m=p+12|0;g=c[m>>2]|0;n=p+16|0;if((g|0)==(c[n>>2]|0)){o=0;g=fa(c[(c[p>>2]|0)+36>>2]|0,p|0)|0;F=o;o=0;if(F&1)break}else g=bh(a[g>>0]|0)|0;o=0;g=Fa(42,g&255|0,x|0,d|0,v|0,w|0,a[u>>0]|0,C|0,y|0,z|0,t|0)|0;F=o;o=0;if(F&1)break;if(g|0){E=37;break}g=c[m>>2]|0;if((g|0)==(c[n>>2]|0)){o=0;fa(c[(c[p>>2]|0)+40>>2]|0,p|0)|0;F=o;o=0;if(F&1)break;else{j=p;continue}}else{c[m>>2]=g+1;bh(a[g>>0]|0)|0;j=p;continue}}b:do if((E|0)==37){F=a[C+11>>0]|0;if((F<<24>>24<0?c[C+4>>2]|0:F&255)|0?(A=c[z>>2]|0,(A-y|0)<160):0){F=c[w>>2]|0;c[z>>2]=A+4;c[A>>2]=F}o=0;d=pa(62,d|0,c[v>>2]|0,h|0,x|0)|0;F=o;o=0;if(!(F&1)?(b[i>>1]=d,o=0,db(107,C|0,y|0,c[z>>2]|0,h|0),F=o,o=0,!(F&1)):0){if(p){d=c[p+12>>2]|0;if((d|0)==(c[p+16>>2]|0)){o=0;d=fa(c[(c[k>>2]|0)+36>>2]|0,p|0)|0;F=o;o=0;if(F&1)break}else d=bh(a[d>>0]|0)|0;if(Yg(d,Qg()|0)|0){c[e>>2]=0;g=1}else g=0}else g=1;do if(j){d=c[j+12>>2]|0;if((d|0)==(c[j+16>>2]|0)){o=0;d=fa(c[(c[j>>2]|0)+36>>2]|0,j|0)|0;F=o;o=0;if(F&1)break b}else d=bh(a[d>>0]|0)|0;if(!(Yg(d,Qg()|0)|0))if(g)break;else{E=56;break}else{c[f>>2]=0;E=54;break}}else E=54;while(0);if((E|0)==54?g:0)E=56;if((E|0)==56)c[h>>2]=c[h>>2]|2;F=c[e>>2]|0;pU(D);pU(C);l=B;return F|0}}while(0);d=Fb()|0}pU(D);pU(C);Qb(d|0);return 0}function xM(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;j=l;l=l+16|0;h=j;do if((b|0)==(d|0)){c[e>>2]=4;b=0}else{if((a[b>>0]|0)==45){c[e>>2]=4;b=0;break}i=c[(xI()|0)>>2]|0;c[(xI()|0)>>2]=0;b=BI(b,h,f,YL()|0)|0;f=z;g=c[(xI()|0)>>2]|0;if(!g)c[(xI()|0)>>2]=i;do if((c[h>>2]|0)==(d|0))if(f>>>0>0|(f|0)==0&b>>>0>65535|(g|0)==34){c[e>>2]=4;b=-1;break}else{b=b&65535;break}else{c[e>>2]=4;b=0}while(0)}while(0);l=j;return b|0}function yM(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 i=0,j=0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,A=0,B=0,C=0,D=0,E=0,F=0;B=l;l=l+224|0;s=B+198|0;t=B+196|0;C=B+184|0;D=B+172|0;u=B+168|0;y=B+8|0;A=B+4|0;v=B;w=pM(f)|0;qM(C,f,s,t);c[D>>2]=0;c[D+4>>2]=0;c[D+8>>2]=0;b=0;while(1){if((b|0)==3)break;c[D+(b<<2)>>2]=0;b=b+1|0}r=D+11|0;if((a[r>>0]|0)<0)b=(c[D+8>>2]&2147483647)+-1|0;else b=10;o=0;bb(58,D|0,b|0,0);q=o;o=0;if(q&1)b=Fb()|0;else{b=(a[r>>0]|0)<0?c[D>>2]|0:D;c[u>>2]=b;c[A>>2]=y;c[v>>2]=0;n=D+4|0;p=D+8|0;j=c[d>>2]|0;i=j;a:while(1){if(i){f=c[i+12>>2]|0;if((f|0)==(c[i+16>>2]|0)){o=0;f=fa(c[(c[i>>2]|0)+36>>2]|0,i|0)|0;q=o;o=0;if(q&1)break}else f=bh(a[f>>0]|0)|0;if(Yg(f,Qg()|0)|0){c[d>>2]=0;q=0;j=0;k=1}else{q=i;k=0}}else{q=0;j=0;k=1}i=c[e>>2]|0;do if(i){f=c[i+12>>2]|0;if((f|0)==(c[i+16>>2]|0)){o=0;f=fa(c[(c[i>>2]|0)+36>>2]|0,i|0)|0;m=o;o=0;if(m&1)break a}else f=bh(a[f>>0]|0)|0;if(!(Yg(f,Qg()|0)|0))if(k)break;else{E=37;break a}else{c[e>>2]=0;E=20;break}}else E=20;while(0);if((E|0)==20){E=0;if(k){i=0;E=37;break}else i=0}f=a[r>>0]|0;f=f<<24>>24<0?c[n>>2]|0:f&255;if((c[u>>2]|0)==(b+f|0)){o=0;bb(58,D|0,f<<1|0,0);m=o;o=0;if(m&1)break;if((a[r>>0]|0)<0)b=(c[p>>2]&2147483647)+-1|0;else b=10;o=0;bb(58,D|0,b|0,0);m=o;o=0;if(m&1)break;b=(a[r>>0]|0)<0?c[D>>2]|0:D;c[u>>2]=b+f}k=q+12|0;f=c[k>>2]|0;m=q+16|0;if((f|0)==(c[m>>2]|0)){o=0;f=fa(c[(c[q>>2]|0)+36>>2]|0,q|0)|0;F=o;o=0;if(F&1)break}else f=bh(a[f>>0]|0)|0;o=0;f=Fa(42,f&255|0,w|0,b|0,u|0,v|0,a[t>>0]|0,C|0,y|0,A|0,s|0)|0;F=o;o=0;if(F&1)break;if(f|0){E=37;break}f=c[k>>2]|0;if((f|0)==(c[m>>2]|0)){o=0;fa(c[(c[q>>2]|0)+40>>2]|0,q|0)|0;F=o;o=0;if(F&1)break;else{i=q;continue}}else{c[k>>2]=f+1;bh(a[f>>0]|0)|0;i=q;continue}}b:do if((E|0)==37){F=a[C+11>>0]|0;if((F<<24>>24<0?c[C+4>>2]|0:F&255)|0?(x=c[A>>2]|0,(x-y|0)<160):0){F=c[v>>2]|0;c[A>>2]=x+4;c[x>>2]=F}o=0;b=pa(63,b|0,c[u>>2]|0,g|0,w|0)|0;f=z;F=o;o=0;if(!(F&1)?(F=h,c[F>>2]=b,c[F+4>>2]=f,o=0,db(107,C|0,y|0,c[A>>2]|0,g|0),F=o,o=0,!(F&1)):0){if(q){b=c[q+12>>2]|0;if((b|0)==(c[q+16>>2]|0)){o=0;b=fa(c[(c[j>>2]|0)+36>>2]|0,q|0)|0;FLine truncated
|
||||
function IH(){return JH()|0}function JH(){return 1704}function KH(){return LH()|0}function LH(){return 1712}function MH(){return 1720}function NH(){return 1728}function OH(){return 1760}function PH(){return 1784}function QH(){return RH()|0}function RH(){return 3392}function SH(){return TH()|0}function TH(){return 3384}function UH(){return VH()|0}function VH(){return 3376}function WH(){return XH()|0}function XH(){return 3368}function YH(){return ZH()|0}function ZH(){return 3360}function _H(){return $H()|0}function $H(){return 3352}function aI(){return bI()|0}function bI(){return 3344}function cI(){return dI()|0}function dI(){return 3336}function eI(){return fI()|0}function fI(){return 3320}function gI(){return hI()|0}function hI(){return 3328}function iI(){return jI()|0}function jI(){return 3296}function kI(){return 3288}function lI(){return 3272}function mI(a){a=a|0;return fK(c[a+4>>2]|0)|0}function nI(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=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;x=l;l=l+16|0;o=x;do if(a>>>0<245){k=a>>>0<11?16:a+11&-8;a=k>>>3;n=c[14815]|0;d=n>>>a;if(d&3|0){b=(d&1^1)+a|0;a=59300+(b<<1<<2)|0;d=a+8|0;e=c[d>>2]|0;f=e+8|0;g=c[f>>2]|0;if((a|0)==(g|0))c[14815]=n&~(1<<b);else{c[g+12>>2]=a;c[d>>2]=g}w=b<<3;c[e+4>>2]=w|3;w=e+w+4|0;c[w>>2]=c[w>>2]|1;w=f;l=x;return w|0}m=c[14817]|0;if(k>>>0>m>>>0){if(d|0){b=2<<a;b=d<<a&(b|0-b);b=(b&0-b)+-1|0;h=b>>>12&16;b=b>>>h;d=b>>>5&8;b=b>>>d;f=b>>>2&4;b=b>>>f;a=b>>>1&2;b=b>>>a;e=b>>>1&1;e=(d|h|f|a|e)+(b>>>e)|0;b=59300+(e<<1<<2)|0;a=b+8|0;f=c[a>>2]|0;h=f+8|0;d=c[h>>2]|0;if((b|0)==(d|0)){a=n&~(1<<e);c[14815]=a}else{c[d+12>>2]=b;c[a>>2]=d;a=n}g=(e<<3)-k|0;c[f+4>>2]=k|3;e=f+k|0;c[e+4>>2]=g|1;c[e+g>>2]=g;if(m|0){f=c[14820]|0;b=m>>>3;d=59300+(b<<1<<2)|0;b=1<<b;if(!(a&b)){c[14815]=a|b;b=d;a=d+8|0}else{a=d+8|0;b=c[a>>2]|0}c[a>>2]=f;c[b+12>>2]=f;c[f+8>>2]=b;c[f+12>>2]=d}c[14817]=g;c[14820]=e;w=h;l=x;return w|0}i=c[14816]|0;if(i){d=(i&0-i)+-1|0;h=d>>>12&16;d=d>>>h;g=d>>>5&8;d=d>>>g;j=d>>>2&4;d=d>>>j;e=d>>>1&2;d=d>>>e;a=d>>>1&1;a=c[59564+((g|h|j|e|a)+(d>>>a)<<2)>>2]|0;d=(c[a+4>>2]&-8)-k|0;e=c[a+16+(((c[a+16>>2]|0)==0&1)<<2)>>2]|0;if(!e){j=a;g=d}else{do{h=(c[e+4>>2]&-8)-k|0;j=h>>>0<d>>>0;d=j?h:d;a=j?e:a;e=c[e+16+(((c[e+16>>2]|0)==0&1)<<2)>>2]|0}while((e|0)!=0);j=a;g=d}h=j+k|0;if(j>>>0<h>>>0){f=c[j+24>>2]|0;b=c[j+12>>2]|0;do if((b|0)==(j|0)){a=j+20|0;b=c[a>>2]|0;if(!b){a=j+16|0;b=c[a>>2]|0;if(!b){d=0;break}}while(1){d=b+20|0;e=c[d>>2]|0;if(e|0){b=e;a=d;continue}d=b+16|0;e=c[d>>2]|0;if(!e)break;else{b=e;a=d}}c[a>>2]=0;d=b}else{d=c[j+8>>2]|0;c[d+12>>2]=b;c[b+8>>2]=d;d=b}while(0);do if(f|0){b=c[j+28>>2]|0;a=59564+(b<<2)|0;if((j|0)==(c[a>>2]|0)){c[a>>2]=d;if(!d){c[14816]=i&~(1<<b);break}}else{c[f+16+(((c[f+16>>2]|0)!=(j|0)&1)<<2)>>2]=d;if(!d)break}c[d+24>>2]=f;b=c[j+16>>2]|0;if(b|0){c[d+16>>2]=b;c[b+24>>2]=d}b=c[j+20>>2]|0;if(b|0){c[d+20>>2]=b;c[b+24>>2]=d}}while(0);if(g>>>0<16){w=g+k|0;c[j+4>>2]=w|3;w=j+w+4|0;c[w>>2]=c[w>>2]|1}else{c[j+4>>2]=k|3;c[h+4>>2]=g|1;c[h+g>>2]=g;if(m|0){e=c[14820]|0;b=m>>>3;d=59300+(b<<1<<2)|0;b=1<<b;if(!(n&b)){c[14815]=n|b;b=d;a=d+8|0}else{a=d+8|0;b=c[a>>2]|0}c[a>>2]=e;c[b+12>>2]=e;c[e+8>>2]=b;c[e+12>>2]=d}c[14817]=g;c[14820]=h}w=j+8|0;l=x;return w|0}else n=k}else n=k}else n=k}else if(a>>>0<=4294967231){a=a+11|0;k=a&-8;j=c[14816]|0;if(j){e=0-k|0;a=a>>>8;if(a)if(k>>>0>16777215)i=31;else{n=(a+1048320|0)>>>16&8;v=a<<n;m=(v+520192|0)>>>16&4;v=v<<m;i=(v+245760|0)>>>16&2;i=14-(m|n|i)+(v<<i>>>15)|0;i=k>>>(i+7|0)&1|i<<1}else i=0;d=c[59564+(i<<2)>>2]|0;a:do if(!d){d=0;a=0;v=57}else{a=0;h=k<<((i|0)==31?0:25-(i>>>1)|0);g=0;while(1){f=(c[d+4>>2]&-8)-k|0;if(f>>>0<e>>>0)if(!f){a=d;e=0;f=d;v=61;break a}else{a=d;e=f}f=c[d+20>>2]|0;d=c[d+16+(h>>>31<<2)>>2]|0;g=(f|0)==0|(f|0)==(d|0)?g:f;f=(d|0)==0;if(f){d=g;v=57;break}else h=h<<((f^1)&1)}}while(0);if((v|0)==57){if((d|0)==0&(a|0)==0){a=2<<i;a=j&(a|0-a);if(!a){n=k;break}n=(a&0-a)+-1|0;h=n>>>12&16;n=n>>>h;g=n>>>5&8;n=n>>>g;i=n>>>2&4;n=n>>>i;m=n>>>1&2;n=n>>>m;d=n>>>1&1;a=0;d=c[59564+((g|h|i|m|d)+(n>>>d)<<2)>>2]|0}if(!d){i=a;h=e}else{f=d;v=61}}if((v|0)==61)while(1){v=0;d=(c[f+4>>2]&-8)-k|0;n=d>>>0<e>>>0;d=n?d:e;a=n?f:a;f=c[f+16+(((c[f+16>>2]|0)==0&1)<<2)>>2]|0;if(!f){i=a;h=d;break}else{e=d;v=61}}if((i|0)!=0?h>>>0<((c[14817]|0)-k|0)>>>0:0){g=i+k|0;if(i>>>0>=g>>>0){w=0;l=x;return w|0}f=c[i+24>>2]|0;b=c[i+12>>2]|0;do if((b|0)==(i|0)){a=i+20|0;b=c[a>>2]|0;if(!b){a=i+16|0;b=c[a>>2]|0;if(!b){b=0;break}}while(1){d=b+20|0;e=c[d>>2]|0;if(e|0){b=e;a=d;continue}d=b+16|0;e=c[d>>2]|0;if(!e)break;else{b=e;a=d}}c[a>>2]=0}else{w=c[i+8>>2]|0;c[w+12>>2]=b;c[b+8>>2]=w}while(0);do if(f){a=c[i+28>>2]|0;d=59564+(a<<2)|0;if((i|0)==(c[d>>2]|0)){c[d>>2]=b;if(!b){e=j&~(1<<a);c[14816]=e;break}}else{c[f+16+(((c[f+16>>2]|0)!=(i|0)&1)<<2)>>2]=b;if(!b){e=j;break}}c[b+24>>2]=f;a=c[i+16>>2]|0;if(a|0){c[b+16>>2]=a;c[a+24>>2]=b}a=c[i+20>>2]|0;if(a){c[b+20>>2]=a;c[a+24>>2]=b;e=j}else e=j}else e=j;while(0);do if(h>>>0>=16){c[i+4>>2]=k|3;c[g+4>>2]=h|1;c[g+h>>2]=h;b=h>>>3;if(h>>>0<256){d=59300+(b<<1<<2)|0;a=c[14815]|0;b=1<<b;if(!(a&b)){c[14815]Line truncated
|
||||
function nB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;f=l;l=l+16|0;e=f;c[e>>2]=b;d=aU(12)|0;o=0;Xa(324,d|0,a|0);b=o;o=0;if(b&1){f=Fb()|0;cU(d);Qb(f|0)}b=0;while(1){if((b|0)==(a|0))break;h=(c[e>>2]|0)+(4-1)&~(4-1);g=c[h>>2]|0;c[e>>2]=h+4;c[(c[d>>2]|0)+(b<<2)>>2]=g;b=b+1|0}l=f;return d|0}function oB(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=b;c[a+4>>2]=d;return}function pB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=l;l=l+16|0;f=e;c[f>>2]=d;c[a>>2]=b;wB(a+4|0,1,f);l=e;return}function qB(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 i=0;cf(a);c[a>>2]=33604;c[a+8>>2]=b;c[a+12>>2]=d;b=a+16|0;o=0;Xa(325,b|0,4);i=o;o=0;if(i&1){i=Fb()|0;ff(a);Qb(i|0)}i=a+28|0;c[i>>2]=0;c[c[b>>2]>>2]=e;c[(c[b>>2]|0)+4>>2]=f;c[(c[b>>2]|0)+8>>2]=g;c[(c[b>>2]|0)+12>>2]=h;g=JB(e)|0;f=KB(e)|0;a=c[f>>2]|0;f=(c[f+4>>2]|0)-a>>2;b=0;d=0;while(1){if((d|0)==(f|0))break;h=c[a+(d<<2)>>2]|0;e=LB(h)|0;b=(O((MB(h)|0)+g|0,e)|0)+b|0;d=d+1|0}c[i>>2]=b;return}function rB(a,b){a=a|0;b=b|0;c[a>>2]=0;HB(a,b);return}function sB(a,b){a=a|0;b=b|0;c[a>>2]=0;HB(a,c[b>>2]|0);return}function tB(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;h=l;l=l+32|0;d=h;e=a+4|0;f=((c[e>>2]|0)-(c[a>>2]|0)>>2)+1|0;g=DB(a)|0;if(g>>>0<f>>>0)wS(a);i=c[a>>2]|0;k=(c[a+8>>2]|0)-i|0;j=k>>1;EB(d,k>>2>>>0<g>>>1>>>0?(j>>>0<f>>>0?f:j):g,(c[e>>2]|0)-i>>2,a+8|0);g=d+8|0;sB(c[g>>2]|0,b);c[g>>2]=(c[g>>2]|0)+4;o=0;Xa(326,a|0,d|0);g=o;o=0;if(g&1){k=Fb()|0;GB(d);Qb(k|0)}else{GB(d);l=h;return}}function uB(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function vB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=l;l=l+16|0;f=h+4|0;g=h;c[f>>2]=d;c[g>>2]=e;c[a>>2]=b;b=a+4|0;wB(b,1,f);d=a+8|0;f=c[d>>2]|0;if((f|0)==(c[a+12>>2]|0)){o=0;Xa(327,b|0,g|0);g=o;o=0;if(g&1){h=Fb()|0;iB(b);Qb(h|0)}}else{c[f>>2]=e;c[d>>2]=(c[d>>2]|0)+4}l=h;return}function wB(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;e=a+4|0;c[e>>2]=0;c[a+8>>2]=0;if(b|0){o=0;Xa(328,a|0,b|0);f=o;o=0;if(f&1){f=Fb()|0;iB(a);Qb(f|0)}a=c[e>>2]|0;do{c[a>>2]=c[d>>2];a=(c[e>>2]|0)+4|0;c[e>>2]=a;b=b+-1|0}while((b|0)!=0)}return}function xB(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;h=l;l=l+32|0;d=h;e=a+4|0;f=((c[e>>2]|0)-(c[a>>2]|0)>>2)+1|0;g=yB(a)|0;if(g>>>0<f>>>0)wS(a);i=c[a>>2]|0;k=(c[a+8>>2]|0)-i|0;j=k>>1;zB(d,k>>2>>>0<g>>>1>>>0?(j>>>0<f>>>0?f:j):g,(c[e>>2]|0)-i>>2,a+8|0);g=d+8|0;c[c[g>>2]>>2]=c[b>>2];c[g>>2]=(c[g>>2]|0)+4;o=0;Xa(329,a|0,d|0);g=o;o=0;if(g&1){k=Fb()|0;BB(d);Qb(k|0)}else{BB(d);l=h;return}}function yB(a){a=a|0;return 1073741823}function zB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;do if(b){if(b>>>0<=1073741823){e=aU(b<<2)|0;break}e=Ab(8)|0;o=0;Xa(98,e|0,56853);d=o;o=0;if(d&1){d=Fb()|0;Jb(e|0);Qb(d|0)}else{c[e>>2]=41052;Mb(e|0,3176,299)}}else e=0;while(0);c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function AB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;h=a+4|0;g=b+4|0;f=(c[h>>2]|0)-e|0;d=(c[g>>2]|0)+(0-(f>>2)<<2)|0;c[g>>2]=d;if((f|0)>0){wW(d|0,e|0,f|0)|0;e=g;d=c[g>>2]|0}else e=g;g=c[a>>2]|0;c[a>>2]=d;c[e>>2]=g;g=b+8|0;f=c[h>>2]|0;c[h>>2]=c[g>>2];c[g>>2]=f;g=a+8|0;h=b+12|0;a=c[g>>2]|0;c[g>>2]=c[h>>2];c[h>>2]=a;c[b>>2]=c[e>>2];return}function BB(a){a=a|0;var b=0,d=0,e=0,f=0;b=c[a+4>>2]|0;d=a+8|0;e=c[d>>2]|0;while(1){if((e|0)==(b|0))break;f=e+-4|0;c[d>>2]=f;e=f}a=c[a>>2]|0;if(a|0)cU(a);return}function CB(a,b){a=a|0;b=b|0;var d=0;if((yB(a)|0)>>>0<b>>>0)wS(a);if(b>>>0<=1073741823){d=aU(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=d+(b<<2);return}a=Ab(8)|0;o=0;Xa(98,a|0,56853);d=o;o=0;if(d&1){d=Fb()|0;Jb(a|0);Qb(d|0)}else{c[a>>2]=41052;Mb(a|0,3176,299)}}function DB(a){a=a|0;return 1073741823}function EB(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;c[a+12>>2]=0;c[a+16>>2]=e;do if(b){if(b>>>0<=1073741823){e=aU(b<<2)|0;break}e=Ab(8)|0;o=0;Xa(98,e|0,56853);d=o;o=0;if(d&1){d=Fb()|0;Jb(e|0);Qb(d|0)}else{c[e>>2]=41052;Mb(e|0,3176,299)}}else e=0;while(0);c[a>>2]=e;d=e+(d<<2)|0;c[a+8>>2]=d;c[a+4>>2]=d;c[a+12>>2]=e+(b<<2);return}function FB(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[a>>2]|0;f=a+4|0;g=b+4|0;d=c[f>>2]|0;while(1){if((d|0)==(e|0))break;h=d+-4|0;sB((c[g>>2]|0)+-4|0,h);c[g>>2]=(c[g>>2]|0)+-4;d=h}e=c[a>>2]|0;c[a>>2]=c[g>>2];c[g>>2]=e;e=b+8|0;h=c[f>>2]|0;c[f>>2]=c[e>>2];c[e>>2]=h;e=a+8|0;h=b+12|0;f=c[e>>2]|0;c[e>>2]=c[h>>2];c[h>>2]=f;c[b>>2]=c[g>>2];return}function GB(a){a=a|0;var b=0,d=0,e=0;b=c[a+4>>2]|0;d=a+8|0;while(1){e=c[d>>2]|0;if((e|0)==(b|0))break;e=e+-4|0;c[d>>2]=e;uB(e)}a=c[a>>2]|0;if(a|0)cU(a);return}function HB(a,b){a=a|0;b=b|0;var d=0;if(b|0)$e(b)|0;d=c[a>>2]|0;if(d|0)af(d);c[a>>2]=b;return}function IB(a,b){a=a|0;b=b|0;var d=0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;do if(b|0){o=0;Xa(330,a|0,b|0);d=o;o=0;if(!(d&1)?(o=0,Xa(331,a|0,b|0),d=o,o=0,!(d&1)):0)break;d=Fb()|0;gB(a);Qb(d|0)}while(0);return}function JB(a){a=a|0;return c[a>>2]|0}function KB(a){a=a|0;return a+4|0}function LB(a){a=a|0;return c[a>>2]|0}function MB(a){a=a|0;return c[a+4>>2]|0}function NB(a,b){a=a|0;b=b|0;var d=0;if((PB(a)|0)>>>0<b>>>0)wS(a);if(b>>>0<=1073741823){d=aU(b<<2)|0;c[a+4>>2]=d;c[a>>2]=d;c[a+8>>2]=dLine truncated
|
||||
function yd(a){a=a|0;var b=0;b=l;l=l+a|0;l=l+15&-16;return b|0}function zd(){return l|0}function Ad(a){a=a|0;l=a}function Bd(a,b){a=a|0;b=b|0;l=a;m=b}function Cd(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Dd(a){a=a|0;z=a}function Ed(){return z|0}function Fd(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;Og(a,d,e);c[a>>2]=3424;o=0;Xa(83,a+16|0,b|0);e=o;o=0;if(e&1){e=Fb()|0;Hg(a);Qb(e|0)}else return}function Gd(a,b){a=a|0;b=b|0;cf(a);c[a>>2]=3468;c[a+8>>2]=0;df(a,c[b+8>>2]|0);return}function Hd(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=l;l=l+16|0;f=h;g=Id(c+16|0,0)|0;g=g+(O(Jd(c)|0,d)|0)|0;do if(Kd(e)|0){Ld(f,Jd(c)|0);o=0;ja(54,e|0,f|0)|0;d=o;o=0;if(d&1){h=Fb()|0;Nd(f);Qb(h|0)}else{Nd(f);d=0;break}}else d=0;while(0);while(1){if((d|0)>=(Jd(c)|0))break;f=a[g+d>>0]|0;a[(Od(e,d)|0)>>0]=f;d=d+1|0}Gd(b,e);l=h;return}function Id(a,b){a=a|0;b=b|0;return hf(c[a+8>>2]|0,b)|0}function Jd(a){a=a|0;return c[a+8>>2]|0}function Kd(a){a=a|0;return (c[a+8>>2]|0)==0|0}function Ld(a,b){a=a|0;b=b|0;var d=0,e=0;cf(a);c[a>>2]=3468;c[a+8>>2]=0;o=0;d=fa(107,20)|0;e=o;o=0;do if(!(e&1)){o=0;Xa(84,d|0,b|0);e=o;o=0;if(e&1){b=Fb()|0;cU(d);break}else{df(a,d);return}}else b=Fb()|0;while(0);ff(a);Qb(b|0)}function Md(a,b){a=a|0;b=b|0;qf(a,b);return a|0}function Nd(a){a=a|0;var b=0,d=0;c[a>>2]=3468;b=a+8|0;d=c[b>>2]|0;if(d|0)af(d);c[b>>2]=0;ff(a);return}function Od(a,b){a=a|0;b=b|0;return hf(c[a+8>>2]|0,b)|0}function Pd(a,b){a=a|0;b=b|0;Gd(a,b+16|0);return}function Qd(){Ld(58608,0);return}function Rd(a,b){a=a|0;b=b|0;c[a>>2]=0;rf(a,c[b>>2]|0);return}function Sd(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function Td(a){a=a|0;return c[a+8>>2]|0}function Ud(a){a=a|0;return (c[a+12>>2]|0)-(c[a+8>>2]|0)|0}function Vd(a){a=a|0;return c[a>>2]|0}function Wd(a,b){a=a|0;b=b|0;return (c[a>>2]|0)==(b|0)|0}function Xd(a){a=a|0;return c[a>>2]|0}function Yd(a,b){a=a|0;b=b|0;sf(a,b);return a|0}function Zd(a,b){a=a|0;b=b|0;a=Xe(a+12|0,b>>5)|0;c[a>>2]=c[a>>2]|1<<(b&31);return}function _d(a,b){a=a|0;b=b|0;c[a>>2]=0;sf(a,c[b>>2]|0);return}function $d(a){a=a|0;return c[a+12>>2]|0}function ae(a,b){a=a|0;b=b|0;c[a>>2]=0;tf(a,b);return}function be(a){a=a|0;return c[a>>2]|0}function ce(a,b,d){a=a|0;b=b|0;d=d|0;d=Xe(a+20|0,(O(c[a+16>>2]|0,d)|0)+(b>>5)|0)|0;c[d>>2]=c[d>>2]|1<<(b&31);return}function de(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function ee(a,b){a=a|0;b=b|0;c[a>>2]=0;uf(a,b);return}function fe(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,k=0;h=l;l=l+32|0;k=h+16|0;g=h+12|0;j=h+8|0;i=h;e=aU(12)|0;o=0;Na(310,e|0);f=o;o=0;if(f&1){k=Fb()|0;cU(e);e=k}else{ge(k,e);e=he(k)|0;f=c[(c[e>>2]|0)+12>>2]|0;o=0;Xa(85,j|0,b|0);b=o;o=0;if(b&1)e=Fb()|0;else{o=0;Xa(86,i|0,d|0);d=o;o=0;if(d&1)e=Fb()|0;else{o=0;db(f|0,g|0,e|0,j|0,i|0);d=o;o=0;do if(!(d&1)){o=0;bb(52,a|0,1,g|0);d=o;o=0;if(d&1){e=Fb()|0;le(g);break}else{le(g);me(i);ne(j);oe(k);l=h;return}}else e=Fb()|0;while(0);me(i)}ne(j)}oe(k)}Qb(e|0)}function ge(a,b){a=a|0;b=b|0;c[a>>2]=0;vf(a,b);return}function he(a){a=a|0;return c[a>>2]|0}function ie(a,b){a=a|0;b=b|0;c[a>>2]=0;wf(a,c[b>>2]|0);return}function je(a,b){a=a|0;b=b|0;c[a>>2]=c[b>>2];Ze(a+4|0,b+4|0);return}function ke(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;c[a>>2]=0;f=a+4|0;c[f>>2]=0;c[a+8>>2]=0;a:do if(b|0){o=0;Xa(87,a|0,b|0);e=o;o=0;b:do if(!(e&1)){e=c[f>>2]|0;while(1){o=0;Xa(88,e|0,d|0);e=o;o=0;if(e&1)break b;e=(c[f>>2]|0)+4|0;c[f>>2]=e;b=b+-1|0;if(!b)break a}}while(0);f=Fb()|0;He(a);Qb(f|0)}while(0);return}function le(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function me(a){a=a|0;bf(a+4|0);return}function ne(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function oe(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function pe(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;h=l;l=l+16|0;j=h+12|0;i=h+8|0;g=h;e=aU(20)|0;o=0;Na(311,e|0);f=o;o=0;if(f&1){j=Fb()|0;cU(e);e=j}else{qe(j,e+12|0);e=re(j)|0;f=c[(c[e>>2]|0)+12>>2]|0;o=0;Xa(85,i|0,b|0);b=o;o=0;if(b&1)e=Fb()|0;else{o=0;Xa(86,g|0,d|0);d=o;o=0;do if(!(d&1)){o=0;db(f|0,a|0,e|0,i|0,g|0);d=o;o=0;if(d&1){e=Fb()|0;me(g);break}else{me(g);ne(i);se(j);l=h;return}}else e=Fb()|0;while(0);ne(i)}se(j)}Qb(e|0)}function qe(a,b){a=a|0;b=b|0;c[a>>2]=0;Bf(a,b);return}function re(a){a=a|0;return c[a>>2]|0}function se(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function te(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,k=0;h=l;l=l+32|0;k=h+16|0;g=h+12|0;j=h+8|0;i=h;e=aU(28)|0;o=0;Na(312,e|0);f=o;o=0;if(f&1){k=Fb()|0;cU(e);e=k}else{ge(k,e);e=he(k)|0;f=c[(c[e>>2]|0)+12>>2]|0;o=0;Xa(85,j|0,b|0);b=o;o=0;if(b&1)e=Fb()|0;else{o=0;Xa(86,i|0,d|0);d=o;o=0;if(d&1)e=Fb()|0;else{o=0;db(f|0,g|0,e|0,j|0,i|0);d=o;o=0;do if(!(d&1)){o=0;bb(52,a|0,1,g|0);d=o;o=0;if(d&1){e=Fb()|0;le(g);break}else{le(g);me(i);ne(j);oe(k);l=h;return}}else e=Fb()|0;while(0);me(i)}ne(j)}oe(k)}Qb(e|0)}function ue(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=l;l=l+64|0;h=e+24|0;g=e+12|0;f=e+8|0;d=e;Fh(h);o=0;Xa(89,g|0,h|0);i=o;o=0;if(i&1)a=Fb()|0;else{o=0;Xa(85,f|0,b|0);i=o;o=0;if(i&1)a=Fb()|0;else{o=0;Xa(86,d|0,c|0);i=o;o=0;do if(!(i&1)){o=0;db(49,a|0,g|0,f|0,d|0);i=Line truncated
|
||||
function Vt(a,b){a=a|0;b=b|0;return a+(b<<2)|0}function Wt(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;g=c[a>>2]|0;h=(c[a+4>>2]|0)-g>>2;f=0;a=0;while(1){if((a|0)>=(h|0)){e=0;a=0;break}f=(c[g+(a<<2)>>2]|0)+f|0;a=a+1|0}while(1){if((e|0)>=(h|0))break;b=((c[g+(e<<2)>>2]|0)*2304|0)/(f|0)|0;b=((b&128)>>>0>127&1)+(b>>8)|0;if((b+-1|0)>>>0>3){a=-1;break}a:do if(!(e&1)){d=0;while(1){if((d|0)>=(b|0))break a;d=d+1|0;a=a<<1|1}}else a=a<<b;while(0);e=e+1|0}return a|0}function Xt(b){b=b|0;var d=0;d=0;while(1){if((d|0)>=48){b=5;break}if((c[9048+(d<<2)>>2]|0)==(b|0)){b=6;break}d=d+1|0}if((b|0)==5){d=Ab(8)|0;cm(d);Mb(d|0,488,58)}else if((b|0)==6)return a[46276+d>>0]|0;return 0}function Yt(b){b=b|0;var d=0;d=a[b+11>>0]|0;d=d<<24>>24<0?c[b+4>>2]|0:d&255;cu(b,d+-2|0,20);cu(b,d+-1|0,15);return}function Zt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,p=0;n=l;l=l+16|0;p=n;m=d+11|0;f=a[m>>0]|0;g=c[d+4>>2]|0;h=f&255;c[p>>2]=0;c[p+4>>2]=0;c[p+8>>2]=0;e=0;while(1){if((e|0)==3)break;c[p+(e<<2)>>2]=0;e=e+1|0}k=f<<24>>24<0?g:h;j=k+-1|0;e=0;a:while(1){if((e|0)>=(k|0)){g=6;break}g=(a[m>>0]|0)<0?c[d>>2]|0:d;f=a[g+e>>0]|0;i=f<<24>>24;if((f+-97&255)<4){if((e|0)>=(j|0)){g=9;break}e=e+1|0;f=a[g+e>>0]|0;g=f<<24>>24;h=f<<24>>24<91;b:do switch(i|0){case 100:{if(f<<24>>24<65|h^1){g=16;break a}f=g+32&255;break}case 97:{if((f+-65&255)>25){g=22;break a}f=g+192&255;break}case 98:{if((f+-65&255)<5){f=g+218&255;break b}if((f+-70&255)<5){f=g+245&255;break b}if((f+-75&255)<=4){f=g+16&255;break b}if((f&-4)<<24>>24!=80)if(f<<24>>24<84|h^1){g=34;break a}else{f=127;break b}else{f=g+43&255;break b}}case 99:if((f+-65&255)>14)if(f<<24>>24==90){f=58;break b}else{g=40;break a}else{f=g+224&255;break b}default:f=0}while(0);o=0;la(84,p|0,1,f|0)|0;i=o;o=0;if(i&1){g=19;break}}else{o=0;la(84,p|0,1,f|0)|0;i=o;o=0;if(i&1){g=12;break}}e=e+1|0}do if((g|0)==6){o=0;e=fa(107,20)|0;m=o;o=0;if(m&1){e=Fb()|0;break}o=0;Xa(140,e|0,p|0);m=o;o=0;if(m&1){n=Fb()|0;cU(e);e=n;break}else{aj(b,e);pU(p);l=n;return}}else if((g|0)==9){e=Ab(8)|0;o=0;f=da(42)|0;n=o;o=0;if(n&1){n=Fb()|0;Jb(e|0);e=n;break}else{_t(e,f);o=0;bb(68,e|0,160,61);o=0;g=12;break}}else if((g|0)==16){e=Ab(8)|0;o=0;f=da(42)|0;n=o;o=0;if(n&1){n=Fb()|0;Jb(e|0);e=n;break}else{_t(e,f);o=0;bb(68,e|0,160,61);o=0;g=19;break}}else if((g|0)==22){e=Ab(8)|0;o=0;f=da(42)|0;n=o;o=0;if(n&1){n=Fb()|0;Jb(e|0);e=n;break}else{_t(e,f);o=0;bb(68,e|0,160,61);o=0;g=19;break}}else if((g|0)==34){e=Ab(8)|0;o=0;f=da(42)|0;n=o;o=0;if(n&1){n=Fb()|0;Jb(e|0);e=n;break}else{_t(e,f);o=0;bb(68,e|0,160,61);o=0;g=19;break}}else if((g|0)==40){e=Ab(8)|0;o=0;f=da(42)|0;n=o;o=0;if(n&1){n=Fb()|0;Jb(e|0);e=n;break}else{_t(e,f);o=0;bb(68,e|0,160,61);o=0;g=19;break}}while(0);if((g|0)==12)e=Fb()|0;else if((g|0)==19)e=Fb()|0;pU(p);Qb(e|0)}function _t(a,b){a=a|0;b=b|0;$t(a,b);c[a>>2]=3648;return}function $t(a,b){a=a|0;b=b|0;au(a,b);c[a>>2]=3616;return}function au(a,b){a=a|0;b=b|0;var d=0;bu(a,b);c[a>>2]=3596;o=0;b=fa(110,c[b+4>>2]|0)|0;d=o;o=0;if(d&1){d=Fb()|0;Cb(d|0)}else{c[a+4>>2]=b;return}}function bu(a,b){a=a|0;b=b|0;c[a>>2]=40992;return}function cu(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;j=b+11|0;g=d;h=0;i=1;while(1){f=g+-1|0;k=(a[j>>0]|0)<0?c[b>>2]|0:b;if((g|0)<=0)break;k=(O(EU(58744,a[k+f>>0]|0,0)|0,i)|0)+h|0;g=f;h=k;i=(i|0)>=(e|0)?1:i+1|0}if((a[k+d>>0]|0)==(a[46276+((h|0)%47|0)>>0]|0))return;else{k=Ab(8)|0;dg(k);Mb(k|0,144,56)}}function du(a,b,d){a=a|0;b=b|0;d=d|0;c[a>>2]=b;c[a+4>>2]=d;return}function eu(){fu();return}function fu(){var b=0,d=0,e=0,f=0,g=0;f=l;l=l+16|0;d=f;c[14686]=0;c[14687]=0;c[14688]=0;e=Uh(46276)|0;if(e>>>0>4294967279)lU(58744);if(e>>>0<11){a[58755]=e;b=58744}else{g=e+16&-16;b=aU(g)|0;c[14686]=b;c[14688]=g|-2147483648;c[14687]=e}_i(b,46276,e)|0;a[d>>0]=0;ah(b+e|0,d);l=f;return}function gu(a){a=a|0;var b=0,d=0,e=0;wv(a);c[a>>2]=9028;d=a+8|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;b=0;while(1){if((b|0)==3)break;c[d+(b<<2)>>2]=0;b=b+1|0}b=a+20|0;c[b>>2]=0;c[a+24>>2]=0;c[a+28>>2]=0;o=0;Xa(172,d|0,20);e=o;o=0;if(!(e&1)?(o=0,Xa(251,b|0,6),e=o,o=0,!(e&1)):0)return;e=Fb()|0;pj(b);pU(d);pv(a);Qb(e|0)}function hu(a){a=a|0;c[a>>2]=9248;pj(a+20|0);Lv(a);return}function iu(a){a=a|0;hu(a);cU(a);return}function ju(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,k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;t=l;l=l+32|0;k=t+16|0;n=t+8|0;m=t+4|0;r=t;s=a+20|0;f=c[s>>2]|0;q=a+24|0;a=c[q>>2]|0;while(1){if((a|0)==(f|0))break;p=a+-4|0;c[q>>2]=p;a=p}En(s,4);p=Dk(Xd(b)|0)|0;a=c[(lu(d,1)|0)>>2]|0;j=0;f=0;while(1){if(!((f|0)<6&(a|0)<(p|0))){f=6;break}_d(k,b);o=0;g=pa(55,k|0,s|0,a|0,58828)|0;i=o;o=0;if(i&1){f=11;break}Sf(k);xU(e,1,((g|0)%10|0)+48&255)|0;i=c[s>>2]|0;h=(c[q>>2]|0)-i>>2;d=0;while(1){if((d|0)>=(h|0))break;u=(c[i+(d<<2)>>2]|0)+a|0;d=d+1|0;a=u}j=((g|0)>9?1<<5-f:0)|j;f=f+1|0}do if((f|0)==6){mu(e,j);_d(m,b);o=0;hb(53,n|0,m|0,a|0,1,58804);u=o;o=0;if(u&1){a=Fb()|0;Sf(m);break}Sf(m);i=0;h=c[(Vt(n,1)|0)>>2]|0;while(1){if(!((i|0)<6&(h|0)<(p|0))){f=15;break}_d(r,b);o=0;a=pa(55,r|0,s|0,h|0,58816)|0;u=o;o=0;if(u&1){f=21;break}Sf(r);xU(e,1,a+48&255)|0;g=cLine truncated
|
||||
function Gq(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,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;n=l;l=l+128|0;u=n+100|0;f=n+84|0;g=n+80|0;h=n+52|0;t=n+88|0;s=n+68|0;i=n+24|0;r=n+56|0;q=n+48|0;p=n+36|0;k=n+12|0;m=n;ki(f,e);o=0;Xa(202,u|0,f|0);j=o;o=0;if(j&1){e=Fb()|0;de(f)}else{de(f);o=0;Xa(128,h|0,e|0);j=o;o=0;do if(j&1)e=Fb()|0;else{o=0;bb(84,g|0,u|0,h|0);j=o;o=0;if(j&1){e=Fb()|0;de(h);break}e=Hq(g)|0;$o(g);de(h);o=0;Xa(203,t|0,u|0);j=o;o=0;if(j&1){e=Fb()|0;break}o=0;Xa(83,i|0,t|0);j=o;o=0;do if(j&1)e=Fb()|0;else{o=0;bb(91,s|0,i|0,e|0);j=o;o=0;if(j&1){e=Fb()|0;Nd(i);break}Nd(i);j=(c[s+4>>2]|0)-(c[s>>2]|0)>>2;e=0;g=0;while(1){if((e|0)>=(j|0)){f=9;break}f=Xp((c[s>>2]|0)+(e<<2)|0)|0;o=0;f=fa(127,f|0)|0;i=o;o=0;if(i&1){f=19;break}e=e+1|0;g=f+g|0}do if((f|0)==9){o=0;Xa(103,r|0,g|0);i=o;o=0;if(i&1){e=Fb()|0;break}h=0;a:while(1){if((h|0)>=(j|0)){f=21;break}o=0;Xa(204,q|0,(c[s>>2]|0)+(h<<2)|0);i=o;o=0;if(i&1){f=31;break}i=Xp(q)|0;o=0;Xa(205,p|0,i|0);i=o;o=0;if(i&1){f=32;break}i=Xp(q)|0;o=0;i=fa(127,i|0)|0;g=o;o=0;if(g&1){f=33;break}o=0;Xa(83,k|0,p|0);g=o;o=0;if(g&1){f=34;break}o=0;bb(92,d|0,k|0,i|0);g=o;o=0;if(g&1){f=35;break}Nd(k);g=0;while(1){if((g|0)>=(i|0))break;o=0;e=ja(56,p|0,g|0)|0;f=o;o=0;if(f&1){f=39;break a}e=a[e>>0]|0;f=(O(g,j)|0)+h|0;o=0;f=ja(56,r|0,f|0)|0;v=o;o=0;if(v&1){f=39;break a}a[f>>0]=e;g=g+1|0}Nd(p);_p(q);h=h+1|0}if((f|0)==21){Iq(q);o=0;Xa(83,m|0,r|0);v=o;o=0;do if(!(v&1)){o=0;bb(93,b|0,q|0,m|0);v=o;o=0;if(v&1){e=Fb()|0;Nd(m);break}else{Nd(m);Nd(r);$p(s);Nd(t);Gp(u);l=n;return}}else e=Fb()|0;while(0)}else if((f|0)==31)e=Fb()|0;else if((f|0)==32){e=Fb()|0;f=41}else if((f|0)==33){e=Fb()|0;f=40}else if((f|0)==34){e=Fb()|0;f=40}else if((f|0)==35){e=Fb()|0;Nd(k);f=40}else if((f|0)==39){e=Fb()|0;f=40}if((f|0)==40){Nd(p);f=41}if((f|0)==41)_p(q);Nd(r)}else if((f|0)==19)e=Fb()|0;while(0);$p(s)}while(0);Nd(t)}while(0);Gp(u)}Qb(e|0)}function Hq(a){a=a|0;return c[a>>2]|0}function Iq(a){a=a|0;return}function Jq(a,b){a=a|0;b=b|0;c[a>>2]=0;aq(a,c[b>>2]|0);return}function Kq(a){a=a|0;Ko(a);cU(a);return}function Lq(a,b,d,e,f,g,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0;r=+(h|0)+-.5;q=+(i|0)+-.5;i=Pe(d)|0;p=+Lc[c[(c[i>>2]|0)+8>>2]&63](i);i=Pe(d)|0;o=+Lc[c[(c[i>>2]|0)+12>>2]&63](i);i=Pe(e)|0;n=+Lc[c[(c[i>>2]|0)+8>>2]&63](i);i=Pe(e)|0;m=+Lc[c[(c[i>>2]|0)+12>>2]&63](i);i=Pe(g)|0;l=+Lc[c[(c[i>>2]|0)+8>>2]&63](i);i=Pe(g)|0;k=+Lc[c[(c[i>>2]|0)+12>>2]&63](i);i=Pe(f)|0;j=+Lc[c[(c[i>>2]|0)+8>>2]&63](i);i=Pe(f)|0;Km(a,.5,.5,r,.5,r,q,.5,q,p,o,n,m,l,k,j,+Lc[c[(c[i>>2]|0)+12>>2]&63](i));return}function Mq(a){a=a|0;c[a>>2]=5960;fi(a+12|0);fi(a+8|0);ff(a);return}function Nq(a){a=a|0;Mq(a);cU(a);return}function Oq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;cf(a);c[a>>2]=5960;f=a+8|0;o=0;Xa(117,f|0,d|0);d=o;o=0;do if(!(d&1)){o=0;Xa(117,a+12|0,b|0);d=o;o=0;if(d&1){b=Fb()|0;fi(f);break}else{c[a+16>>2]=e;return}}else b=Fb()|0;while(0);ff(a);Qb(b|0)}function Pq(a,b){a=a|0;b=b|0;di(a,b+12|0);return}function Qq(a,b){a=a|0;b=b|0;di(a,b+8|0);return}function Rq(a){a=a|0;return c[a+16>>2]|0}function Sq(a,b){a=a|0;b=b|0;cf(a);c[a>>2]=5940;o=0;Xa(128,a+8|0,b|0);b=o;o=0;if(b&1){b=Fb()|0;ff(a);Qb(b|0)}else return}function Tq(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,m=0,n=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,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=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,Ma=0,Oa=0,Pa=0;qa=l;l=l+384|0;Da=qa+376|0;Pa=qa+372|0;j=qa+356|0;Oa=qa+360|0;Ma=qa+352|0;La=qa+348|0;Ka=qa+344|0;Ja=qa+340|0;Ha=qa+328|0;e=qa+316|0;g=qa+300|0;f=qa+296|0;h=qa+292|0;k=qa+288|0;i=qa+284|0;m=qa+280|0;q=qa+276|0;n=qa+268|0;r=qa+260|0;t=qa+240|0;s=qa+232|0;Ea=qa+324|0;Fa=qa+320|0;Ga=qa+304|0;Ca=qa+272|0;Ba=qa+264|0;Aa=qa+248|0;za=qa+244|0;ya=qa+236|0;xa=qa+228|0;w=qa+200|0;v=qa+196|0;u=qa+192|0;z=qa+188|0;y=qa+184|0;x=qa+180|0;G=qa+176|0;B=qa+172|0;A=qa+168|0;C=qa+164|0;H=qa+160|0;D=qa+156|0;E=qa+152|0;I=qa+148|0;F=qa+144|0;wa=qa+224|0;va=qa+220|0;ua=qa+216|0;ta=qa+204|0;X=qa+140|0;U=qa+136|0;O=qa+132|0;J=qa+128|0;K=qa+124|0;P=qa+120|0;L=qa+116|0;M=qa+112|0;Q=qa+108|0;N=qa+104|0;na=qa+100|0;ka=qa+96|0;aa=qa+92|0;Y=qa+88|0;ba=qa+84|0;ca=qa+80|0;da=qa+76|0;Z=qa+72|0;V=qa+68|0;R=qa+64|0;_=qa+60|0;la=qa+56|0;ea=qa+52|0;S=qa+48|0;W=qa+44|0;T=qa+40|0;oa=qa+36|0;ma=qa+32|0;ga=qa+28|0;$=qa+24|0;ha=qa+20|0;ia=qa+16|0;ra=qa+12|0;sa=qa;p=aU(36)|0;pa=b+8|0;o=0;Xa(128,j|0,pa|0);d=o;o=0;do if(!(d&1)){o=0;Xa(146,p|0,j|0);d=o;o=0;if(!(d&1)){o=0;Xa(206,Pa|0,p|0);d=o;o=0;if(d&1)e=0;else{de(j);p=Vq(Pa)|0;o=0;Xa(147,Oa|0,p|0);p=o;o=0;if(p&1)d=Fb()|0;else{o=0;Xa(117,Ma|0,c[Oa>>2]|0);p=o;o=0;if(p&1)d=Fb()|0;else{o=0;Xa(117,La|0,(c[Oa>>2]|0)+4|0);p=o;o=0;if(p&1)d=Fb()|0;else{o=0;Xa(117,Ka|0,(c[Oa>>2]|0)+8|0);p=o;o=0;if(p&1)d=Fb()|0;else{o=0;Xa(117,Ja|0,(c[Oa>>2]|0)+12|0Line truncated
|
||||
function nm(a,b,d,e,f,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;var i=0,j=0.0,k=0,m=0,n=0,p=0,q=0,r=0;p=l;l=l+32|0;q=p+8|0;b=p+4|0;n=p;i=aU(32)|0;o=0;bb(66,i|0,e|0,f|0);m=o;o=0;if(m&1){b=Fb()|0;cU(i)}else{ae(a,i);g[b>>2]=0.0;o=0;bb(75,q|0,e<<1|0,b|0);m=o;o=0;if(m&1)b=Fb()|0;else{k=q+4|0;e=0;a:while(1){if((e|0)>=(f|0)){i=5;break}i=c[q>>2]|0;m=(c[k>>2]|0)-i>>2;j=+(e|0)+.5;b=0;while(1){if((b|0)>=(m|0))break;g[i+(b<<2)>>2]=+(b>>1|0)+.5;g[i+((b|1)<<2)>>2]=j;b=b+2|0}i=jm(h)|0;o=0;Xa(165,i|0,q|0);i=o;o=0;if(i&1){i=17;break}o=0;Xa(128,n|0,d|0);i=o;o=0;if(i&1){i=17;break}o=0;Xa(166,n|0,q|0);i=o;o=0;if(i&1){i=18;break}de(n);b=0;while(1){if((b|0)>=(m|0))break;r=be(d)|0;i=c[q>>2]|0;o=0;i=la(72,r|0,~~+g[i+(b<<2)>>2]|0,~~+g[i+((b|1)<<2)>>2]|0)|0;r=o;o=0;if(r&1){i=22;break a}if(i?(r=be(a)|0,o=0,bb(67,r|0,b>>1|0,e|0),r=o,o=0,r&1):0){i=22;break a}b=b+2|0}e=e+1|0}if((i|0)==5){im(q);l=p;return}else if((i|0)==17)b=Fb()|0;else if((i|0)==18){b=Fb()|0;de(n)}else if((i|0)==22)b=Fb()|0;im(q)}de(a)}Qb(b|0)}function om(a,b,c,d,e,f,g,h,i,j,k,m,n,p,q,r,s,t,u,v){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;f=+f;g=+g;h=+h;i=+i;j=+j;k=+k;m=+m;n=+n;p=+p;q=+q;r=+r;s=+s;t=+t;u=+u;v=+v;var w=0,x=0,y=0;w=l;l=l+16|0;y=w+8|0;x=w+4|0;b=w;Km(y,e,f,g,h,i,j,k,m,n,p,q,r,s,t,u,v);o=0;Xa(128,x|0,c|0);c=o;o=0;if(c&1)b=Fb()|0;else{o=0;Xa(168,b|0,y|0);c=o;o=0;do if(!(c&1)){o=0;hb(50,a|0,0,x|0,d|0,b|0);d=o;o=0;if(d&1){d=Fb()|0;qm(b);b=d;break}else{qm(b);de(x);qm(y);l=w;return}}else b=Fb()|0;while(0);de(x)}qm(y);Qb(b|0)}function pm(a,b){a=a|0;b=b|0;c[a>>2]=0;rm(a,c[b>>2]|0);return}function qm(a){a=a|0;a=c[a>>2]|0;if(a|0)af(a);return}function rm(a,b){a=a|0;b=b|0;var d=0;if(b|0)$e(b)|0;d=c[a>>2]|0;if(d|0)af(d);c[a>>2]=b;return}function sm(){return 61810}function tm(a){a=a|0;c[a>>2]=5696;Sf(a+40|0);de(a+36|0);Wl(a);return}function um(a){a=a|0;tm(a);cU(a);return}function vm(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,m=0,n=0,p=0,q=0,r=0,s=0;m=l;l=l+80|0;d=m+64|0;s=m+52|0;q=m+40|0;i=m+24|0;p=m+36|0;n=m+12|0;j=m;k=b+36|0;if(!(ym(k)|0)){Lf(d,b);e=Vd(d)|0;Sd(d);g=Jd(e)|0;h=$d(e)|0;a:do if((g|0)>39&(h|0)>39){kd[c[(c[e>>2]|0)+12>>2]&511](s,e);e=((g&7|0)!=0&1)+(g>>>3)|0;f=((h&7|0)!=0&1)+(h>>>3)|0;o=0;Xa(83,i|0,s|0);d=o;o=0;do if(d&1)d=Fb()|0;else{o=0;nb(44,q|0,0,i|0,e|0,f|0,g|0,h|0);d=o;o=0;if(d&1){d=Fb()|0;Nd(i);break}Nd(i);o=0;d=fa(107,32)|0;i=o;o=0;do if(!(i&1)){o=0;bb(66,d|0,g|0,h|0);i=o;o=0;if(i&1){p=Fb()|0;cU(d);d=p;break}o=0;Xa(169,p|0,d|0);i=o;o=0;if(!(i&1)){o=0;Xa(83,n|0,s|0);i=o;o=0;if(i&1)d=Fb()|0;else{o=0;Xa(138,j|0,q|0);i=o;o=0;do if(!(i&1)){o=0;pb(43,b|0,n|0,e|0,f|0,g|0,h|0,j|0,p|0);b=o;o=0;if(b&1){d=Fb()|0;ij(j);break}else{ij(j);Nd(n);Pi(k,p)|0;de(p);ij(q);Nd(s);break a}}else d=Fb()|0;while(0);Nd(n)}de(p)}else r=15}else r=15;while(0);if((r|0)==15)d=Fb()|0;ij(q)}while(0);Nd(s);Qb(d|0)}else{Zl(s,b);Pi(k,s)|0;de(s)}while(0);ki(a,k)}else ki(a,k);l=m;return}function wm(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;b=l;l=l+16|0;d=b;e=aU(44)|0;o=0;Xa(91,d|0,c|0);c=o;o=0;if(!(c&1)){o=0;Xa(92,e|0,d|0);c=o;o=0;if(!(c&1)){o=0;Xa(90,a|0,e|0);c=o;o=0;if(c&1)a=0;else{Sd(d);l=b;return}}else a=1;b=Fb()|0;Sd(d);if(a)f=7}else{b=Fb()|0;f=7}if((f|0)==7)cU(e);Qb(b|0)}function xm(a,b){a=a|0;b=b|0;var d=0,e=0;e=l;l=l+16|0;d=e;Rd(d,b);o=0;Xa(162,a|0,d|0);b=o;o=0;if(b&1){b=Fb()|0;Sd(d)}else{Sd(d);c[a>>2]=5696;b=a+36|0;o=0;Xa(169,b|0,0);d=o;o=0;do if(!(d&1)){o=0;Xa(170,a+40|0,0);d=o;o=0;if(d&1){e=Fb()|0;de(b);b=e;break}else{l=e;return}}else b=Fb()|0;while(0);Wl(a)}Qb(b|0)}function ym(a){a=a|0;return c[a>>2]|0}function zm(b,e,f,g,h,i,j){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,m=0,n=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;B=l;l=l+16|0;A=B;fj(b,O(h,g)|0);z=j+-8|0;v=i+-8|0;t=0;a:while(1){if((t|0)>=(h|0)){j=29;break}w=t<<3;w=O((w|0)>(z|0)?z:w,i)|0;x=(t|0)>0;y=O(t,g)|0;u=0;while(1){if((u|0)>=(g|0))break;k=u<<3;k=((k|0)>(v|0)?v:k)+w|0;j=0;m=0;p=255;e=0;while(1){if((j|0)<8){n=0;s=p;p=e}else break;while(1){if((n|0)>=8)break;o=0;e=ja(56,f|0,n+k|0)|0;r=o;o=0;if(r&1){j=19;break a}r=d[e>>0]|0;n=n+1|0;m=(r|0)>(m|0)?r:m;s=(r|0)<(s|0)?r:s;p=r+p|0}b:do if((m-s|0)>24){e=p;c:while(1){r=k+i|0;j=j+1|0;if((j|0)<8)q=0;else{k=r;break b}while(1){if((q|0)>=8){k=r;continue c}n=q+r|0;o=0;k=ja(56,f|0,n|0)|0;p=o;o=0;if(p&1){j=19;break a}p=a[k>>0]|0;o=0;k=ja(56,f|0,n+1|0)|0;n=o;o=0;if(n&1){j=19;break a}q=q+2|0;e=(p&255)+e+(d[k>>0]|0)|0}}}else e=p;while(0);k=k+i|0;j=j+1|0;p=s}e=e>>6;if((m-p|0)<25){e=p>>1;if(x&(u|0)>0){o=0;Xa(138,A|0,b|0);s=o;o=0;if(s&1){j=24;break a}o=0;j=pa(51,A|0,g|0,u|0,t|0)|0;s=o;o=0;if(s&1){j=25;break a}ij(A);e=(p|0)<(j|0)?j:e}}o=0;j=ja(60,b|0,u+y|0)|0;s=o;o=0;if(s&1){j=24;break a}c[j>>2]=e;u=u+1|0}t=t+1|0}if((j|0)==19)e=Fb()|0;else if((j|0)==24)e=Fb()|0;else if((j|0)==25){e=Fb()|0;ij(A)}else if((j|0)==29){l=B;return}ij(b);Qb(e|0)}function Am(a,b,d,e,f,g,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=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=l;l=l+16|0;A=B;z=g+-8|0;n=f+-8|0;p=d+-3|0;q=e+-3|0;g=0;a:while(1){if((g|0)>=(e|0)){a=3;break}a=Line truncated
|
||||
function mZ(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return ia(18,a|0,+b,+c,+d)|0}function nZ(a,b,c,d){a=a|0;b=+b;c=+c;d=+d;return ia(19,a|0,+b,+c,+d)|0}function oZ(a,b,c){a=a|0;b=b|0;c=c|0;return Sc[a&127](b|0,c|0)|0}function pZ(a,b){a=a|0;b=b|0;return ka(0,a|0,b|0)|0}function qZ(a,b){a=a|0;b=b|0;return ka(1,a|0,b|0)|0}function rZ(a,b){a=a|0;b=b|0;return ka(2,a|0,b|0)|0}function sZ(a,b){a=a|0;b=b|0;return ka(3,a|0,b|0)|0}function tZ(a,b){a=a|0;b=b|0;return ka(4,a|0,b|0)|0}function uZ(a,b){a=a|0;b=b|0;return ka(5,a|0,b|0)|0}function vZ(a,b){a=a|0;b=b|0;return ka(6,a|0,b|0)|0}function wZ(a,b){a=a|0;b=b|0;return ka(7,a|0,b|0)|0}function xZ(a,b){a=a|0;b=b|0;return ka(8,a|0,b|0)|0}function yZ(a,b){a=a|0;b=b|0;return ka(9,a|0,b|0)|0}function zZ(a,b){a=a|0;b=b|0;return ka(10,a|0,b|0)|0}function AZ(a,b){a=a|0;b=b|0;return ka(11,a|0,b|0)|0}function BZ(a,b){a=a|0;b=b|0;return ka(12,a|0,b|0)|0}function CZ(a,b){a=a|0;b=b|0;return ka(13,a|0,b|0)|0}function DZ(a,b){a=a|0;b=b|0;return ka(14,a|0,b|0)|0}function EZ(a,b){a=a|0;b=b|0;return ka(15,a|0,b|0)|0}function FZ(a,b){a=a|0;b=b|0;return ka(16,a|0,b|0)|0}function GZ(a,b){a=a|0;b=b|0;return ka(17,a|0,b|0)|0}function HZ(a,b){a=a|0;b=b|0;return ka(18,a|0,b|0)|0}function IZ(a,b){a=a|0;b=b|0;return ka(19,a|0,b|0)|0}function JZ(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Tc[a&127](b|0,c|0,d|0)|0}function KZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(0,a|0,b|0,c|0)|0}function LZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(1,a|0,b|0,c|0)|0}function MZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(2,a|0,b|0,c|0)|0}function NZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(3,a|0,b|0,c|0)|0}function OZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(4,a|0,b|0,c|0)|0}function PZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(5,a|0,b|0,c|0)|0}function QZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(6,a|0,b|0,c|0)|0}function RZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(7,a|0,b|0,c|0)|0}function SZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(8,a|0,b|0,c|0)|0}function TZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(9,a|0,b|0,c|0)|0}function UZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(10,a|0,b|0,c|0)|0}function VZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(11,a|0,b|0,c|0)|0}function WZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(12,a|0,b|0,c|0)|0}function XZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(13,a|0,b|0,c|0)|0}function YZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(14,a|0,b|0,c|0)|0}function ZZ(a,b,c){a=a|0;b=b|0;c=c|0;return ma(15,a|0,b|0,c|0)|0}function _Z(a,b,c){a=a|0;b=b|0;c=c|0;return ma(16,a|0,b|0,c|0)|0}function $Z(a,b,c){a=a|0;b=b|0;c=c|0;return ma(17,a|0,b|0,c|0)|0}function a_(a,b,c){a=a|0;b=b|0;c=c|0;return ma(18,a|0,b|0,c|0)|0}function b_(a,b,c){a=a|0;b=b|0;c=c|0;return ma(19,a|0,b|0,c|0)|0}function c_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=+e;return Uc[a&63](b|0,c|0,d|0,+e)|0}function d_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(0,a|0,b|0,c|0,+d)|0}function e_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(1,a|0,b|0,c|0,+d)|0}function f_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(2,a|0,b|0,c|0,+d)|0}function g_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(3,a|0,b|0,c|0,+d)|0}function h_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(4,a|0,b|0,c|0,+d)|0}function i_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(5,a|0,b|0,c|0,+d)|0}function j_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(6,a|0,b|0,c|0,+d)|0}function k_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(7,a|0,b|0,c|0,+d)|0}function l_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(8,a|0,b|0,c|0,+d)|0}function m_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(9,a|0,b|0,c|0,+d)|0}function n_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(10,a|0,b|0,c|0,+d)|0}function o_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(11,a|0,b|0,c|0,+d)|0}function p_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(12,a|0,b|0,c|0,+d)|0}function q_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(13,a|0,b|0,c|0,+d)|0}function r_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(14,a|0,b|0,c|0,+d)|0}function s_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(15,a|0,b|0,c|0,+d)|0}function t_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(16,a|0,b|0,c|0,+d)|0}function u_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(17,a|0,b|0,c|0,+d)|0}function v_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(18,a|0,b|0,c|0,+d)|0}function w_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return oa(19,a|0,b|0,c|0,+d)|0}function x_(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Vc[a&127](b|0,c|0,d|0,e|0)|0}function y_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(0,a|0,b|0,c|0,d|0)|0}function z_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(1,a|0,b|0,c|0,d|0)|0}function A_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(2,a|0,b|0,c|0,d|0)|0}function B_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(3,a|0,b|0,c|0,d|0)|0}function C_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(4,a|0,b|0,c|0,d|0)|0}function D_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(5,a|0,b|0,c|0,d|0)|0}function E_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(6,a|0,b|0,c|0,d|0)|0}function F_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(7,a|0,b|0,c|0,d|0)|0}function G_(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return qa(8,a|0,b|0,c|0,d|0)|0}function H_(a,b,c,d){a=aLine truncated
|
||||
function mB(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=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,$=0;Z=l;l=l+800|0;X=Z+768|0;Y=Z+736|0;W=Z+704|0;V=Z+672|0;U=Z+640|0;T=Z+608|0;S=Z+584|0;R=Z+560|0;Q=Z+536|0;P=Z+512|0;O=Z+488|0;N=Z+464|0;M=Z+440|0;L=Z+416|0;K=Z+392|0;J=Z+368|0;I=Z+344|0;H=Z+320|0;G=Z+296|0;F=Z+272|0;E=Z+256|0;D=Z+240|0;C=Z+224|0;B=Z+208|0;A=Z+192|0;z=Z+176|0;y=Z+160|0;x=Z+144|0;w=Z+128|0;v=Z+112|0;u=Z+96|0;t=Z+80|0;s=Z+64|0;r=Z+48|0;q=Z+40|0;p=Z+32|0;n=Z+24|0;m=Z+16|0;k=Z+8|0;j=Z;h=Z+796|0;i=aU(32)|0;o=0;f=ja(101,0,j|0)|0;e=o;o=0;a:do if(!(e&1)?(o=0,g=fa(107,16)|0,e=o,o=0,!(e&1)):0){o=0;a=fa(107,8)|0;e=o;o=0;if(!(e&1)?(oB(a,1,19),o=0,bb(137,g|0,7,a|0),e=o,o=0,!(e&1)):0){o=0;e=fa(107,16)|0;d=o;o=0;if(d&1){_=810;break}o=0;a=fa(107,8)|0;d=o;o=0;if(!(d&1)?(oB(a,1,16),o=0,bb(137,e|0,10,a|0),d=o,o=0,!(d&1)):0){o=0;d=fa(107,16)|0;b=o;o=0;if(b&1){_=810;break}o=0;a=fa(107,8)|0;b=o;o=0;if(!(b&1)?(oB(a,1,13),o=0,bb(137,d|0,13,a|0),b=o,o=0,!(b&1)):0){o=0;a=fa(107,16)|0;b=o;o=0;if(b&1){_=810;break}o=0;b=fa(107,8)|0;$=o;o=0;if(!($&1)?(oB(b,1,9),o=0,bb(137,a|0,17,b|0),$=o,o=0,!($&1)):0){o=0;nb(49,i|0,1,f|0,g|0,e|0,d|0,a|0);$=o;o=0;if($&1){_=810;break}rB(h,i);a=c[14749]|0;do if(a>>>0<(c[14750]|0)>>>0){sB(a,h);c[14749]=(c[14749]|0)+4}else{o=0;Xa(323,58992,h|0);$=o;o=0;if(!($&1))break;a=Fb()|0;uB(h);_=817;break a}while(0);uB(h);h=aU(32)|0;o=0;c[k>>2]=6;c[k+4>>2]=18;f=ja(101,2,k|0)|0;$=o;o=0;b:do if($&1)_=818;else{o=0;g=fa(107,16)|0;$=o;o=0;if($&1){_=818;break}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,1,34);o=0;bb(137,g|0,10,a|0);$=o;o=0;if($&1)break;o=0;e=fa(107,16)|0;$=o;o=0;if($&1){_=818;break b}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,1,28);o=0;bb(137,e|0,16,a|0);$=o;o=0;if($&1)break;o=0;d=fa(107,16)|0;$=o;o=0;if($&1){_=818;break b}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,1,22);o=0;bb(137,d|0,22,a|0);$=o;o=0;if($&1)break;o=0;a=fa(107,16)|0;$=o;o=0;if($&1){_=818;break b}o=0;b=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(b,1,16);o=0;bb(137,a|0,28,b|0);$=o;o=0;if($&1)break;o=0;nb(49,h|0,2,f|0,g|0,e|0,d|0,a|0);$=o;o=0;if($&1){_=818;break b}rB(j,h);a=c[14749]|0;do if(a>>>0<(c[14750]|0)>>>0){sB(a,j);c[14749]=(c[14749]|0)+4}else{o=0;Xa(323,58992,j|0);$=o;o=0;if(!($&1))break;a=Fb()|0;uB(j);break b}while(0);uB(j);h=aU(32)|0;o=0;c[m>>2]=6;c[m+4>>2]=22;f=ja(101,2,m|0)|0;$=o;o=0;c:do if($&1)_=826;else{o=0;g=fa(107,16)|0;$=o;o=0;if($&1){_=826;break}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,1,55);o=0;bb(137,g|0,15,a|0);$=o;o=0;if($&1)break;o=0;e=fa(107,16)|0;$=o;o=0;if($&1){_=826;break c}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,1,44);o=0;bb(137,e|0,26,a|0);$=o;o=0;if($&1)break;o=0;d=fa(107,16)|0;$=o;o=0;if($&1){_=826;break c}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,2,17);o=0;bb(137,d|0,18,a|0);$=o;o=0;if($&1)break;o=0;a=fa(107,16)|0;$=o;o=0;if($&1){_=826;break c}o=0;b=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(b,2,13);o=0;bb(137,a|0,22,b|0);$=o;o=0;if($&1)break;o=0;nb(49,h|0,3,f|0,g|0,e|0,d|0,a|0);$=o;o=0;if($&1){_=826;break c}rB(k,h);a=c[14749]|0;do if(a>>>0<(c[14750]|0)>>>0){sB(a,k);c[14749]=(c[14749]|0)+4}else{o=0;Xa(323,58992,k|0);$=o;o=0;if(!($&1))break;a=Fb()|0;uB(k);break c}while(0);uB(k);h=aU(32)|0;o=0;c[n>>2]=6;c[n+4>>2]=26;f=ja(101,2,n|0)|0;$=o;o=0;d:do if($&1)_=834;else{o=0;g=fa(107,16)|0;$=o;o=0;if($&1){_=834;break}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,1,80);o=0;bb(137,g|0,20,a|0);$=o;o=0;if($&1)break;o=0;e=fa(107,16)|0;$=o;o=0;if($&1){_=834;break d}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,2,32);o=0;bb(137,e|0,18,a|0);$=o;o=0;if($&1)break;o=0;d=fa(107,16)|0;$=o;o=0;if($&1){_=834;break d}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,2,24);o=0;bb(137,d|0,26,a|0);$=o;o=0;if($&1)break;o=0;a=fa(107,16)|0;$=o;o=0;if($&1){_=834;break d}o=0;b=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(b,4,9);o=0;bb(137,a|0,16,b|0);$=o;o=0;if($&1)break;o=0;nb(49,h|0,4,f|0,g|0,e|0,d|0,a|0);$=o;o=0;if($&1){_=834;break d}rB(m,h);a=c[14749]|0;do if(a>>>0<(c[14750]|0)>>>0){sB(a,m);c[14749]=(c[14749]|0)+4}else{o=0;Xa(323,58992,m|0);$=o;o=0;if(!($&1))break;a=Fb()|0;uB(m);break d}while(0);uB(m);i=aU(32)|0;o=0;c[p>>2]=6;c[p+4>>2]=30;g=ja(101,2,p|0)|0;$=o;o=0;e:do if($&1)_=842;else{o=0;h=fa(107,16)|0;$=o;o=0;if($&1){_=842;break}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,1,108);o=0;bb(137,h|0,26,a|0);$=o;o=0;if($&1)break;o=0;f=fa(107,16)|0;$=o;o=0;if($&1){_=842;break e}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,2,43);o=0;bb(137,f|0,24,a|0);$=o;o=0;if($&1)break;o=0;e=fa(107,16)|0;$=o;o=0;if($&1){_=842;break e}o=0;a=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(a,2,15);o=0;b=fa(107,8)|0;$=o;o=0;if($&1)break;oB(b,2,16);o=0;db(100,e|0,18,a|0,b|0);$=o;o=0;if($&1)break;o=0;a=fa(107,16)|0;$=o;o=0;if($&1){_=842;break e}o=0;b=fa(107,8)|0;$=o;o=0;do if(!($&1)){oB(b,2,11);o=0;d=fa(107,8)|0;$=o;o=0;if($&1)break;oB(d,2,12);o=0;db(100,a|0,22,b|0,d|0);$=o;o=0;if($&1)break;o=0;nb(49,i|0,5,g|0,h|0,f|0,e|0,a|0);$=o;o=0;if($&1){_=842;brLine truncated
|
||||
function Ly(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 i=0,j=0.0,k=0.0,m=0.0,n=0.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;y=l;l=l+16|0;B=y+4|0;z=y;di(B,Oe(b,d)|0);o=0;i=ja(55,b|0,d+4|0)|0;w=o;o=0;if(w&1)i=Fb()|0;else{di(z,i);i=f+e|0;w=Pe(z)|0;o=0;j=+X(c[(c[w>>2]|0)+8>>2]|0,w|0);w=o;o=0;do if(!(w&1)?(w=Pe(B)|0,o=0,k=+X(c[(c[w>>2]|0)+8>>2]|0,w|0),w=o,o=0,!(w&1)):0){m=j-k;w=Pe(B)|0;o=0;j=+X(c[(c[w>>2]|0)+8>>2]|0,w|0);w=o;o=0;if(w&1){i=Fb()|0;break}k=+(g|0);n=+(e|0)*m/k+j;w=Pe(B)|0;o=0;j=+X(c[(c[w>>2]|0)+8>>2]|0,w|0);w=o;o=0;if(w&1){i=Fb()|0;break}k=+(i|0)*m/k+j;g=Qy((n+k)*.5)|0;w=Pe(B)|0;o=0;j=+X(c[(c[w>>2]|0)+12>>2]|0,w|0);w=o;o=0;if(w&1){i=Fb()|0;break}w=Qy(j)|0;f=~~((n<k?k:n)+1.0);while(1){i=be(a)|0;o=0;i=fa(113,i|0)|0;v=o;o=0;if(v&1){A=19;break}if((f|0)>=(i|0))break;i=be(a)|0;o=0;i=la(72,i|0,f+-1|0,w|0)|0;v=o;o=0;if(v&1){A=19;break}if(!i){i=be(a)|0;o=0;i=la(72,i|0,f|0,w|0)|0;v=o;o=0;if(v&1){A=19;break}if(i)break}f=f+1|0}if((A|0)==19){i=Fb()|0;break}v=f-g|0;i=w;a:while(1){q=g+v|0;r=q+1|0;s=(g|0)>0;t=g+-1|0;u=g+1|0;f=0;p=i;while(1){if(f){A=43;break a}i=be(a)|0;o=0;i=la(72,i|0,g|0,p|0)|0;e=o;o=0;if(e&1)break a;if(i){i=be(a)|0;o=0;i=la(72,i|0,q|0,p|0)|0;e=o;o=0;if(e&1)break a;if(i)f=0;else{i=be(a)|0;o=0;i=la(72,i|0,r|0,p|0)|0;e=o;o=0;if(e&1)break a;f=i^1}e=p+h|0;if((e|0)>=1){i=be(a)|0;o=0;i=fa(114,i|0)|0;C=o;o=0;if(C&1)break a;if((e|0)<(i+-1|0)){p=e;continue}}f=1;p=e;continue}else{if(s){i=be(a)|0;o=0;i=la(72,i|0,t|0,p|0)|0;C=o;o=0;if(C&1)break a;if(i){i=p;g=t;continue a}}i=be(a)|0;o=0;i=fa(113,i|0)|0;C=o;o=0;if(C&1)break a;if((g|0)<(i+-1|0)){i=be(a)|0;o=0;i=la(72,i|0,u|0,p|0)|0;C=o;o=0;if(C&1)break a;if(i){i=p;g=u;continue a}}f=1;p=p-((p|0)==(w|0)?0:h)|0;continue}}}if((A|0)==43?(o=0,x=fa(107,16)|0,C=o,o=0,!(C&1)):0){o=0;Pa(42,x|0,+(+(g|0)),+(+(p|0)));C=o;o=0;if(C&1){i=Fb()|0;cU(x);break}o=0;i=ja(55,b|0,d+8|0)|0;C=o;o=0;if(!(C&1)){Ry(i,x)|0;fi(z);fi(B);l=y;return}}i=Fb()|0}else A=15;while(0);if((A|0)==15)i=Fb()|0;fi(z)}fi(B);Qb(i|0)}function My(a,b,d,e,f,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;var j=0.0,k=0,m=0,n=0,p=0,q=0,r=0,s=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;p=l;l=l+144|0;n=p+120|0;q=p+104|0;B=p+56|0;A=p+48|0;x=p+40|0;w=p+16|0;m=p+80|0;s=p+88|0;z=p+32|0;y=p+24|0;r=p+64|0;v=p+8|0;u=p;C=Pe(Oe(a,d)|0)|0;j=+Lc[c[(c[C>>2]|0)+8>>2]&63](C);d=Pe(Oe(a,d)|0)|0;Ny(B,j,+Lc[c[(c[d>>2]|0)+12>>2]&63](d));d=Pe(Oe(a,e)|0)|0;j=+Lc[c[(c[d>>2]|0)+8>>2]&63](d);e=Pe(Oe(a,e)|0)|0;Ny(A,j,+Lc[c[(c[e>>2]|0)+12>>2]&63](e));e=Pe(Oe(a,f)|0)|0;j=+Lc[c[(c[e>>2]|0)+8>>2]&63](e);f=Pe(Oe(a,f)|0)|0;Ny(x,j,+Lc[c[(c[f>>2]|0)+12>>2]&63](f));f=Pe(Oe(a,h)|0)|0;j=+Lc[c[(c[f>>2]|0)+8>>2]&63](f);h=Pe(Oe(a,h)|0)|0;Ny(w,j,+Lc[c[(c[h>>2]|0)+12>>2]&63](h));h=B;f=c[h+4>>2]|0;e=z;c[e>>2]=c[h>>2];c[e+4>>2]=f;e=A;f=c[e+4>>2]|0;h=y;c[h>>2]=c[e>>2];c[h+4>>2]=f;c[q>>2]=c[z>>2];c[q+4>>2]=c[z+4>>2];c[n>>2]=c[y>>2];c[n+4>>2]=c[y+4>>2];Oy(s,q,n);h=x;f=c[h+4>>2]|0;e=v;c[e>>2]=c[h>>2];c[e+4>>2]=f;e=w;f=c[e+4>>2]|0;h=u;c[h>>2]=c[e>>2];c[h+4>>2]=f;c[q>>2]=c[v>>2];c[q+4>>2]=c[v+4>>2];c[n>>2]=c[u>>2];c[n+4>>2]=c[u+4>>2];Oy(r,q,n);c[q>>2]=c[s>>2];c[q+4>>2]=c[s+4>>2];c[q+8>>2]=c[s+8>>2];c[q+12>>2]=c[s+12>>2];c[n>>2]=c[r>>2];c[n+4>>2]=c[r+4>>2];c[n+8>>2]=c[r+8>>2];c[n+12>>2]=c[r+12>>2];Py(m,q,n);j=+g[m>>2];if(!(j==t)?(k=m+4|0,!(+g[k>>2]==t)):0){d=Qy(j)|0;e=Qy(+g[k>>2])|0;if(((d|0)>=0?!((e|0)<0|(d|0)>=(Zk(be(i)|0)|0)):0)?(e|0)<(_k(be(i)|0)|0):0){d=aU(16)|0;o=0;Pa(42,d|0,+(+g[m>>2]),+(+g[k>>2]));C=o;o=0;if(C&1){C=Fb()|0;cU(d);d=C}else{bi(n,d);o=0;d=ja(55,a|0,b|0)|0;C=o;o=0;if(!(C&1)?(o=0,ja(58,d|0,n|0)|0,C=o,o=0,!(C&1)):0){fi(n);l=p;return}d=Fb()|0;fi(n)}Qb(d|0)}C=Ab(8)|0;gn(C,48004);Mb(C|0,488,58)}C=Ab(8)|0;gn(C,47946);Mb(C|0,488,58)}function Ny(a,b,c){a=a|0;b=+b;c=+c;g[a>>2]=b;g[a+4>>2]=c;return}function Oy(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=b;b=c[f+4>>2]|0;e=a;c[e>>2]=c[f>>2];c[e+4>>2]=b;e=d;b=c[e+4>>2]|0;d=a+8|0;c[d>>2]=c[e>>2];c[d+4>>2]=b;return}function Py(a,b,c){a=a|0;b=b|0;c=c|0;var d=0.0,e=0.0,f=0.0,h=0.0,i=0.0,j=0.0,k=0.0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.0;p=+g[b>>2];n=+g[b+8>>2];k=p-n;m=+g[c>>2];h=+g[c+8>>2];j=m-h;e=+g[b+4>>2];o=+g[b+12>>2];i=e-o;f=+g[c+4>>2];l=+g[c+12>>2];d=f-l;e=p*o-n*e;f=m*l-h*f;h=k*d-j*i;if(+B(+h)<1.0e-12)Ny(a,t,t);else Ny(a,(j*e-k*f)/h,(e*d-i*f)/h);return}function Qy(a){a=+a;return ~~+A(+(a+.5))|0}function Ry(a,b){a=a|0;b=b|0;gi(a,b);return a|0}function Sy(a,b){a=a|0;b=b|0;Ef(a,c[b+8>>2]|0);return}function Ty(a,b,d,e,f,g,h,i,j){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;s=l;l=l+16|0;n=s;m=Ik(Fk(j)|0)|0;p=Gk(Fk(j)|0)|0;c[n>>2]=0;Wy(m,p,n);n=f+d|0;p=i+-1|0;m=i+-2|0;q=d;i=d;k=0;while(1){if((q|0)>=(n|0)){f=20;break}if(g^(xj(be(b)|0,q,e)|0)){f=Xe(j,k)|0;c[f>>2]=(c[f>>2]|0)+1;f=k}else{if((k|0)==(p|0)){if((Xy(j,h,204)|0)<107){f=7;break}f=c[(Xe(j,0)|0)>>2]|0;d=c[(Xe(j,1)|0)>>2]|0;i=f+i|0;f=0;while(1){if((f|0)>=(m|0))break;t=c[(Xe(j,f+2|0)|0)>>2]|0;c[(Xe(j,f)|0)>>2]=t;f=f+1|0}c[(Xe(j,m)|0)>>2]=0;c[(Xe(j,p)|0)>>2]=0;i=i+d|0;f=-1}else f=1;f=f+k|0;c[(Xe(j,f)|0)Line truncated
|
||||
|
||||
// EMSCRIPTEN_END_FUNCS
|
||||
var Lc=[Aaa,Aaa,EW,Aaa,FW,Aaa,GW,Aaa,HW,Aaa,IW,Aaa,JW,Aaa,KW,Aaa,LW,Aaa,MW,Aaa,NW,Aaa,OW,Aaa,PW,Aaa,QW,Aaa,RW,Aaa,SW,Aaa,TW,Aaa,UW,Aaa,VW,Aaa,WW,Aaa,XW,Aaa,Xh,Yh,hF,Fy,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa,Aaa];var Mc=[Baa,Baa,ZW,Baa,_W,Baa,$W,Baa,aX,Baa,bX,Baa,cX,Baa,dX,Baa,eX,Baa,fX,Baa,gX,Baa,hX,Baa,iX,Baa,jX,Baa,kX,Baa,lX,Baa,mX,Baa,nX,Baa,oX,Baa,pX,Baa,qX,Baa,hi,PF,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa,Baa];var Nc=[Caa,Caa,sX,Caa,tX,Caa,uX,Caa,vX,Caa,wX,Caa,xX,Caa,yX,Caa,zX,Caa,AX,Caa,BX,Caa,CX,Caa,DX,Caa,EX,Caa,FX,Caa,GX,Caa,HX,Caa,IX,Caa,JX,Caa,KX,Caa,LX,Caa,ei,$E,iM,lM,nM,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa,Caa];var Oc=[Daa,Daa,NX,Daa,OX,Daa,PX,Daa,QX,Daa,RX,Daa,SX,Daa,TX,Daa,UX,Daa,VX,Daa,WX,Daa,XX,Daa,YX,Daa,ZX,Daa,_X,Daa,$X,Daa,aY,Daa,bY,Daa,cY,Daa,dY,Daa,eY,Daa,TE,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa,Daa];var Pc=[Eaa,Eaa,gY,Eaa,hY,Eaa,iY,Eaa,jY,Eaa,kY,Eaa,lY,Eaa,mY,Eaa,nY,Eaa,oY,Eaa,pY,Eaa,qY,Eaa,rY,Eaa,sY,Eaa,tY,Eaa,uY,Eaa,vY,Eaa,wY,Eaa,xY,Eaa,yY,Eaa,zY,Eaa,wg,sm,YL,uJ,wJ,xJ,tJ,QT,ST,UT,_U,Eaa,Eaa,Eaa,Eaa,Eaa,Eaa,Eaa,Eaa,Eaa,Eaa,Eaa];var Qc=[Faa,Faa,BY,Faa,CY,Faa,DY,Faa,EY,Faa,FY,Faa,GY,Faa,HY,Faa,IY,Faa,JY,Faa,KY,Faa,LY,Faa,MY,Faa,NY,Faa,OY,Faa,PY,Faa,QY,Faa,RY,Faa,SY,Faa,TY,Faa,UY,Faa,Jg,Lg,ag,Bg,Dg,QK,RK,fh,UK,ku,ru,Iv,lw,tI,TK,fL,LV,JN,QN,RN,SN,TN,UN,VN,WN,rO,yO,zO,AO,BO,CO,DO,EO,mP,nP,sP,xP,yP,DP,IP,JP,OP,TP,UP,ZP,UQ,VQ,XQ,kR,lR,nR,SR,TR,ZR,_R,dR,eR,gR,tR,uR,wR,zV,CV,FV,QV,aU,Vm,Qh,rg,oi,Dk,Zk,_k,qi,pi,bm,$n,fo,go,_n,vp,pp,qp,np,al,Sp,Uf,Wf,Rh,dB,mF,Kt,Xm,Bu,Au,og,Yf,oy,py,ey,MA,WB,eC,QA,mD,SB,LB,MB,JB,Fl,ED,jE,JD,Gl,LA,PA,lC,VB,TB,RB,gF,aG,wG,$J,rJ,Gaa,Haa,Iaa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa,Faa];var Rc=[Jaa,Jaa,WY,Jaa,XY,Jaa,YY,Jaa,ZY,Jaa,_Y,Jaa,$Y,Jaa,aZ,Jaa,bZ,Jaa,cZ,Jaa,dZ,Jaa,eZ,Jaa,fZ,Jaa,gZ,Jaa,hZ,Jaa,iZ,Jaa,jZ,Jaa,kZ,Jaa,lZ,Jaa,mZ,Jaa,nZ,Jaa,nE,iF,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa,Jaa];var Sc=[Kaa,Kaa,pZ,Kaa,qZ,Kaa,rZ,Kaa,sZ,Kaa,tZ,Kaa,uZ,Kaa,vZ,Kaa,wZ,Kaa,xZ,Kaa,yZ,Kaa,zZ,Kaa,AZ,Kaa,BZ,Kaa,CZ,Kaa,DZ,Kaa,EZ,Kaa,FZ,Kaa,GZ,Kaa,HZ,Kaa,IZ,Kaa,gh,hh,Qv,kw,VK,XK,FR,HR,JR,iS,kS,mS,Md,Oe,Od,VL,ci,Ui,Xe,Kk,uL,jl,kl,ml,Th,nn,Vn,Wn,io,Xn,ho,Yn,Pi,Dp,Ep,Sh,_h,ur,Qs,Zs,Qk,Ok,ng,Wm,AU,uw,xw,Rw,ay,ry,by,qy,cy,Ew,Wx,ky,Dy,Oz,UA,nB,hf,$k,vU,Tg,kE,LE,VJ,UJ,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa,Kaa];var Tc=[Laa,Laa,KZ,Laa,LZ,Laa,MZ,Laa,NZ,Laa,OZ,Laa,PZ,Laa,QZ,Laa,RZ,Laa,SZ,Laa,TZ,Laa,UZ,Laa,VZ,Laa,WZ,Laa,XZ,Laa,YZ,Laa,ZZ,Laa,_Z,Laa,$Z,Laa,a_,Laa,b_,Laa,NK,SK,WK,UC,WC,YC,_C,aD,cD,eD,lD,uI,vI,qJ,QU,RU,AL,GL,IQ,NQ,GR,IR,LR,eS,jS,lS,oS,eV,SV,UV,xj,Yi,zU,Rj,vk,Zn,Jp,Kp,Lp,Mp,tr,Dt,xU,DU,yv,lx,nx,qx,$x,dy,_x,wz,Pz,Hw,Tz,IF,CF,iK,bK,XJ,uK,EK,gQ,qQ,MU,gJ,dK,oK,FK,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa,Laa];var Uc=[Maa,Maa,d_,Maa,e_,Maa,f_,Maa,g_,Maa,h_,Maa,i_,Maa,j_,Maa,k_,Maa,l_,Maa,m_,Maa,n_,Maa,o_,Maa,p_,Maa,q_,Maa,r_,Maa,s_,Maa,t_,Maa,u_,Maa,v_,Maa,w_,Maa,UE,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa,Maa];var Vc=[Naa,Naa,y_,Naa,z_,Naa,A_,Naa,B_,Naa,C_,Naa,D_,Naa,E_,Naa,F_,Naa,G_,Naa,H_,Naa,I_,Naa,J_,Naa,K_,Naa,L_,Naa,M_,Naa,N_,Naa,O_,Naa,P_,Naa,Q_,Naa,R_,Naa,ju,qu,Gv,jw,KR,fS,gS,hS,nS,Dm,jq,pF,Hk,fw,Fw,mx,ZL,rM,tM,vM,xM,zM,BM,pN,qK,JJ,SJ,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa,Naa];var Wc=[Oaa,Oaa,T_,Oaa,U_,Oaa,V_,Oaa,W_,Oaa,X_,Oaa,Y_,Oaa,Z_,Oaa,__,Oaa,$_,Oaa,a$,Oaa,b$,Oaa,c$,Oaa,d$,Oaa,e$,Oaa,f$,Oaa,g$,Oaa,h$,Oaa,i$,Oaa,j$,Oaa,k$,Oaa,jN,kN,AN,BN,Gy,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa,Oaa];var Xc=[Paa,Paa,m$,Paa,n$,Paa,o$,Paa,p$,Paa,q$,Paa,r$,Paa,s$,Paa,t$,Paa,u$,Paa,v$,Paa,w$,Paa,x$,Paa,y$,Paa,z$,Paa,A$,Paa,B$,Paa,C$,Paa,D$,Paa,E$,Paa,F$,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa,Paa];var Yc=[Qaa,Qaa,H$,Qaa,I$,Qaa,J$,Qaa,K$,Qaa,L$,Qaa,M$,Qaa,N$,Qaa,O$,Qaa,P$,Qaa,Q$,Qaa,R$,Qaa,S$,Qaa,T$,Qaa,U$,Qaa,V$,Qaa,W$,Qaa,X$,Qaa,Y$,Qaa,Z$,Qaa,_$,Qaa,yL,EL,eN,fN,hN,lN,vN,wN,yN,CN,TQ,WQ,jR,mR,MR,pS,cR,fR,sR,vR,kk,Np,sK,pK,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa,Qaa];var Zc=[Raa,Raa,a0,Raa,b0,Raa,c0,Raa,d0,Raa,e0,Raa,f0,Raa,g0,Raa,h0,Raa,i0,Raa,j0,Raa,k0,Raa,l0,Raa,m0,Raa,n0,Raa,o0,RaLine truncated
|
||||
|
||||
|
||||
// EMSCRIPTEN_END_ASM
|
||||
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var __GLOBAL__sub_I_CharacterSetECI_cpp=Module["__GLOBAL__sub_I_CharacterSetECI_cpp"]=asm["__GLOBAL__sub_I_CharacterSetECI_cpp"];var __GLOBAL__sub_I_Code39Reader_cpp=Module["__GLOBAL__sub_I_Code39Reader_cpp"]=asm["__GLOBAL__sub_I_Code39Reader_cpp"];var __GLOBAL__sub_I_Code93Reader_cpp=Module["__GLOBAL__sub_I_Code93Reader_cpp"]=asm["__GLOBAL__sub_I_Code93Reader_cpp"];var __GLOBAL__sub_I_DataMask_cpp=Module["__GLOBAL__sub_I_DataMask_cpp"]=asm["__GLOBAL__sub_I_DataMask_cpp"];var __GLOBAL__sub_I_DecodedBitStreamParser_cpp=Module["__GLOBAL__sub_I_DecodedBitStreamParser_cpp"]=asm["__GLOBAL__sub_I_DecodedBitStreamParser_cpp"];var __GLOBAL__sub_I_ErrorCorrectionLevel_cpp=Module["__GLOBAL__sub_I_ErrorCorrectionLevel_cpp"]=asm["__GLOBAL__sub_I_ErrorCorrectionLevel_cpp"];var __GLOBAL__sub_I_GenericGF_cpp=Module["__GLOBAL__sub_I_GenericGF_cpp"]=asm["__GLOBAL__sub_I_GenericGF_cpp"];var __GLOBAL__sub_I_GlobalHistogramBinarizer_cpp=Module["__GLOBAL__sub_I_GlobalHistogramBinarizer_cpp"]=asm["__GLOBAL__sub_I_GlobalHistogramBinarizer_cpp"];var __GLOBAL__sub_I_ITFReader_cpp=Module["__GLOBAL__sub_I_ITFReader_cpp"]=asm["__GLOBAL__sub_I_ITFReader_cpp"];var __GLOBAL__sub_I_LinesSampler_cpp=Module["__GLOBAL__sub_I_LinesSampler_cpp"]=asm["__GLOBAL__sub_I_LinesSampler_cpp"];var __GLOBAL__sub_I_Mode_cpp=Module["__GLOBAL__sub_I_Mode_cpp"]=asm["__GLOBAL__sub_I_Mode_cpp"];var __GLOBAL__sub_I_ModulusGF_cpp=Module["__GLOBAL__sub_I_ModulusGF_cpp"]=asm["__GLOBAL__sub_I_ModulusGF_cpp"];var __GLOBAL__sub_I_UPCEANReader_cpp=Module["__GLOBAL__sub_I_UPCEANReader_cpp"]=asm["__GLOBAL__sub_I_UPCEANReader_cpp"];var __GLOBAL__sub_I_UPCEReader_cpp=Module["__GLOBAL__sub_I_UPCEReader_cpp"]=asm["__GLOBAL__sub_I_UPCEReader_cpp"];var __GLOBAL__sub_I_Version_cpp=Module["__GLOBAL__sub_I_Version_cpp"]=asm["__GLOBAL__sub_I_Version_cpp"];var __GLOBAL__sub_I_Version_cpp_601=Module["__GLOBAL__sub_I_Version_cpp_601"]=asm["__GLOBAL__sub_I_Version_cpp_601"];var __GLOBAL__sub_I_bind_cpp=Module["__GLOBAL__sub_I_bind_cpp"]=asm["__GLOBAL__sub_I_bind_cpp"];var __GLOBAL__sub_I_zxing_js_cpp=Module["__GLOBAL__sub_I_zxing_js_cpp"]=asm["__GLOBAL__sub_I_zxing_js_cpp"];var ___cxa_can_catch=Module["___cxa_can_catch"]=asm["___cxa_can_catch"];var ___cxa_is_pointer_type=Module["___cxa_is_pointer_type"]=asm["___cxa_is_pointer_type"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var ___getTypeName=Module["___getTypeName"]=asm["___getTypeName"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var ___uremdi3=Module["___uremdi3"]=asm["___uremdi3"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _decode_any=Module["_decode_any"]=asm["_decode_any"];var _decode_multi=Module["_decode_multi"]=asm["_decode_multi"];var _decode_qr=Module["_decode_qr"]=asm["_decode_qr"];var _decode_qr_multi=Module["_decode_qr_multi"]=asm["_decode_qr_multi"];var _emscripten_get_global_libc=Module["_emscripten_get_global_libc"]=asm["_emscripten_get_global_libc"];var _free=Module["_free"]=asm["_free"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _memmove=Module["_memmove"]=asm["_memmove"];var _memset=Module["_memset"]=asm["_memset"];var _pthread_cond_broadcast=Module["_pthread_cond_broadcast"]=asm["_pthread_cond_broadcast"];var _pthread_mutex_lock=Module["_pthread_mutex_lock"]=asm["_pthread_mutex_lock"];var _pthread_mutex_unlock=Module["_pthread_mutex_unlock"]=asm["_pthread_mutex_unlock"];var _resize=Module["_resize"]=asm["_resize"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var establishStackSpace=Module["establishStackSpace"]=asm["establishStackSpace"];var getTempRet0=Module["getTempRet0"]=asm["getTempRet0"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var setTempRet0=Module["setTempRet0"]=asm["setTempRet0"];var setThrew=Module["setThrew"]=asm["setThrew"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var stackRestore=Module["stackRestore"]=asm["stackRestore"];var stackSave=Module["stackSave"]=asm["stackSave"];var dynCall_di=Module["dynCall_di"]=asm["dynCall_di"];var dynCall_dii=Module["dynCall_dii"]=asm["dynCall_dii"];var dynCall_diii=Module["dynCall_diii"]=asm["dynCall_diii"];var dynCall_diiii=Module["dynCall_diiii"]=asm["dynCall_diiii"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_iiddd=Module["dynCall_iiddd"]=asm["dynCall_iiddd"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_iiiid=Module["dynCall_iiiid"]=asm["dynCall_iiiid"];var dyLine truncated
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return ZXing;
|
||||
};
|
||||
if (typeof module === "object" && module.exports) {
|
||||
module['exports'] = ZXing;
|
||||
};
|
||||
@@ -0,0 +1,211 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Basic Page Needs
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta charset="utf-8" />
|
||||
<title>OpenMovieDB - Bookshelf</title>
|
||||
<meta name="description" content="OpenMovieDB - Bookshelf" />
|
||||
<meta name="author" content="TheGreydiamond" />
|
||||
|
||||
<!-- Mobile Specific Metas
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<!-- FONT
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link
|
||||
href="//fonts.googleapis.com/css?family=Raleway:400,300,600"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
/>
|
||||
|
||||
<!-- CSS
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="stylesheet" href="css/normalize.css" />
|
||||
<link rel="stylesheet" href="css/skeleton.css" />
|
||||
<style>
|
||||
|
||||
/* In order to place the tracking correctly */
|
||||
canvas.drawing, canvas.drawingBuffer {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<!-- Favicon
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="icon" type="image/png" href="images/favicon.png" />
|
||||
<script src="https://kit.fontawesome.com/d7b80a780b.js" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.rawgit.com/serratus/quaggaJS/0420d5e0/dist/quagga.min.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="one-half column" style="margin-top: 15%" id="mainCont">
|
||||
<h4>OpenMovieDB - Add a new movie</h4>
|
||||
<!-- Div to show the scanner -->
|
||||
<% if(it.isDisplay == true) { %>
|
||||
<%= it.titleByAPI %><br>
|
||||
<%= it.id %><br>
|
||||
<img src="<%= it.cover %>" alt="Cover image" style="height: 200px;"></img><br>
|
||||
<button onclick="saveToLibary()"> Add to libary</button>
|
||||
<% } else{ %>
|
||||
<div id="scanner-container"></div>
|
||||
<input type="button" id="btn" value="Start/Stop the scanner" />
|
||||
<div id="currentEAN">EAN: Waiting for valid EAN...</div>
|
||||
<button onclick="sendEanConvRequest()" disabled id="searchBtn"> <i class="fas fa-search"></i>Search</button>
|
||||
<button onclick="window.location.href = '/'"><i class="fas fa-home"></i> Back to home</button>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Include the image-diff library -->
|
||||
|
||||
<script>
|
||||
setTimeout(function(){
|
||||
document.getElementById("btn").style.backgroundColor = "rgba(255, 0, 0, 0.5)";
|
||||
document.getElementById("searchBtn").style.backgroundColor = "rgba(10, 10, 10, 0.5);"
|
||||
}, 20)
|
||||
|
||||
var _scannerIsRunning = false;
|
||||
|
||||
function startScanner() {
|
||||
Quagga.init({
|
||||
inputStream: {
|
||||
name: "Live",
|
||||
type: "LiveStream",
|
||||
target: document.querySelector('#scanner-container'),
|
||||
constraints: {
|
||||
width: 480,
|
||||
height: 320,
|
||||
facingMode: "environment"
|
||||
},
|
||||
},
|
||||
decoder: {
|
||||
readers: [
|
||||
"code_128_reader",
|
||||
"ean_reader",
|
||||
"ean_8_reader",
|
||||
"code_39_reader",
|
||||
"code_39_vin_reader",
|
||||
"codabar_reader",
|
||||
"upc_reader",
|
||||
"upc_e_reader",
|
||||
"i2of5_reader"
|
||||
],
|
||||
debug: {
|
||||
showCanvas: false,
|
||||
showPatches: false,
|
||||
showFoundPatches: false,
|
||||
showSkeleton: false,
|
||||
showLabels: false,
|
||||
showPatchLabels: false,
|
||||
showRemainingPatchLabels: false,
|
||||
boxFromPatches: {
|
||||
showTransformed: false,
|
||||
showTransformedBox: false,
|
||||
showBB: false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
}, function (err) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return
|
||||
}
|
||||
|
||||
console.log("Initialization finished. Ready to start");
|
||||
Quagga.start();
|
||||
|
||||
// Set flag to is running
|
||||
_scannerIsRunning = true;
|
||||
});
|
||||
|
||||
/*Quagga.onProcessed(function (result) {
|
||||
//var drawingCtx = Quagga.canvas.ctx.overlay,
|
||||
//drawingCanvas = Quagga.canvas.dom.overlay;
|
||||
|
||||
/*if (result) {
|
||||
if (result.boxes) {
|
||||
drawingCtx.clearRect(0, 0, parseInt(drawingCanvas.getAttribute("width")), parseInt(drawingCanvas.getAttribute("height")));
|
||||
result.boxes.filter(function (box) {
|
||||
return box !== result.box;
|
||||
}).forEach(function (box) {
|
||||
Quagga.ImageDebug.drawPath(box, { x: 0, y: 1 }, drawingCtx, { color: "green", lineWidth: 2 });
|
||||
});
|
||||
}
|
||||
|
||||
if (result.box) {
|
||||
Quagga.ImageDebug.drawPath(result.box, { x: 0, y: 1 }, drawingCtx, { color: "#00F", lineWidth: 2 });
|
||||
}
|
||||
|
||||
if (result.codeResult && result.codeResult.code) {
|
||||
Quagga.ImageDebug.drawPath(result.line, { x: 'x', y: 'y' }, drawingCtx, { color: 'red', lineWidth: 3 });
|
||||
}
|
||||
}
|
||||
});*/
|
||||
|
||||
|
||||
Quagga.onDetected(function (result) {
|
||||
console.log("Barcode detected and processed : [" + result.codeResult.code + "]", result);
|
||||
if(String(result.codeResult.code).length == 13){
|
||||
document.getElementById("currentEAN").innerHTML = "EAN: " + result.codeResult.code
|
||||
console.log(result.codeResult.code)
|
||||
document.getElementById("searchBtn").style.backgroundColor = "color: #555;"
|
||||
document.getElementById("searchBtn").disabled = false;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Start/stop scanner
|
||||
document.getElementById("btn").addEventListener("click", function () {
|
||||
if (_scannerIsRunning) {
|
||||
document.getElementById("btn").style.backgroundColor = "rgba(255, 0, 0, 0.5)";
|
||||
Quagga.stop();
|
||||
} else {
|
||||
document.getElementById("btn").style.backgroundColor = "rgba(0, 255, 0, 0.5)";
|
||||
startScanner();
|
||||
}
|
||||
}, false);
|
||||
|
||||
function sendEanConvRequest(){
|
||||
curEan = document.getElementById("currentEAN").innerHTML
|
||||
curEan = curEan.replace("EAN: ", "")
|
||||
document.getElementById("mainCont").innerHTML = "<h4>OpenMovieDB - Add a new movie</h4><center><div class=\"lds-grid\"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div><br><i>Searching database...</i></center>";
|
||||
if(curEan[0] == "0"){
|
||||
curEan = curEan.substring(1);
|
||||
}
|
||||
url = "/apiCallBack?ean=" + curEan;
|
||||
//window.open(url)
|
||||
$.get(url,function(data,status) {
|
||||
var respon = JSON.parse(data)
|
||||
if(respon.state == "OK"){
|
||||
url = "/returnSaveResult?reponseID=" + respon.reponseID;
|
||||
window.location.href = url
|
||||
}else{
|
||||
// alert("An error with the api occured.")
|
||||
document.getElementById("mainCont").innerHTML = "<h4>OpenMovieDB - Add a new movie</h4><center><i style='color: #cc0000; font-size: 100px;' class=\"fas fa-exclamation-circle\"></i><br>Ohno, the API returned an error. Errorcode: <br> <code>" + respon.state + "</code><br><br><button onclick=\"window.location.href = '/'\"><i class=\"fas fa-home\"></i> Back to home</button></center>"
|
||||
}
|
||||
console.log(data);
|
||||
},'html');
|
||||
//alert(curEan)
|
||||
}
|
||||
|
||||
function saveToLibary(){
|
||||
url = "/save?ean=<%= it.ean %>";
|
||||
|
||||
$.get(url,function(data,status) { console.log(data); console.log(status) },'html');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,133 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Basic Page Needs
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta charset="utf-8" />
|
||||
<title>OpenMovieDB - Bookshelf</title>
|
||||
<meta name="description" content="OpenMovieDB - Bookshelf" />
|
||||
<meta name="author" content="TheGreydiamond" />
|
||||
|
||||
<!-- Mobile Specific Metas
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<!-- FONT
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link
|
||||
href="//fonts.googleapis.com/css?family=Raleway:400,300,600"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
/>
|
||||
|
||||
<!-- CSS
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="stylesheet" href="css/normalize.css" />
|
||||
<link rel="stylesheet" href="css/skeleton.css" />
|
||||
<style>
|
||||
#overlay {
|
||||
position: fixed;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
}
|
||||
#overlay2 {
|
||||
position: fixed;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#text{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
font-size: 50px;
|
||||
color: white;
|
||||
transform: translate(-50%,-50%);
|
||||
-ms-transform: translate(-50%,-50%);
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Favicon
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="icon" type="image/png" href="images/favicon.png" />
|
||||
<script src="https://kit.fontawesome.com/d7b80a780b.js" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.rawgit.com/serratus/quaggaJS/0420d5e0/dist/quagga.min.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body>
|
||||
<div id="overlay" onclick="off()">
|
||||
<div id="text"><svg class='checkmark' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'><circle class='checkmark__circle ' cx='26' cy='26' r='25' fill='none'/><path class='checkmark__check' fill='none' d='M14.1 27.2l7.1 7.2 16.7-16.8'/></svg><style>.checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke-miterlimit: 10; stroke: #7ac142; fill: none; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;}.checkmark { width: 56px; height: 56px; border-radius: 50%; display: block; stroke-width: 2; stroke: #fff; stroke-miterlimit: 10; margin: 10% auto; box-shadow: inset 0px 0px 0px #7ac142; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;}.checkmark__check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;}@keyframes stroke { 100% { stroke-dashoffset: 0; }}@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); }}@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px #7ac142; }}</style></div>
|
||||
</div>
|
||||
<div id="overlay2" onclick="off()">
|
||||
<div id="text"><h1>!</h1><red>This movie already exists in the DB.</red></div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="one-half column" style="margin-top: 15%" id="mainCont">
|
||||
<h4>OpenMovieDB - Add a new movie</h4>
|
||||
<div style="width: 300px;">
|
||||
<img src="<%= it.cover %>" alt="Cover image" style="width: 100%;"></img><br>
|
||||
<center><%= it.titleByAPI %><br><i><%= it.id %></i></center>
|
||||
</div>
|
||||
<button onclick="saveToLibary()" class="button-primary" id="addToBtn"> Add to libary</button>
|
||||
<button onclick="window.location.href = '/'"><i class="fas fa-home"></i> Back to home</button>
|
||||
<button
|
||||
|
||||
onclick="window.location.href = '/add'"
|
||||
>
|
||||
<i class="fas fa-plus"></i> Add new movie</button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Include the image-diff library -->
|
||||
|
||||
<script>
|
||||
function on() {
|
||||
document.getElementById("overlay").style.display = "block";
|
||||
}
|
||||
function on2() {
|
||||
document.getElementById("overlay2").style.display = "block";
|
||||
}
|
||||
|
||||
function off() {
|
||||
document.getElementById("overlay").style.display = "none";
|
||||
document.getElementById("overlay2").style.display = "none";
|
||||
}
|
||||
|
||||
function saveToLibary(){
|
||||
url = "/save?reponseID=<%= it.ean %>";
|
||||
document.getElementById("addToBtn").remove();
|
||||
$.get(url,function(data,status) {
|
||||
console.log(JSON.parse(data))
|
||||
if(JSON.parse(data).status == "OK"){
|
||||
on();
|
||||
}else{
|
||||
console.log("exist")
|
||||
on2()
|
||||
}
|
||||
},'html');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Basic Page Needs
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta charset="utf-8" />
|
||||
<title>OpenMovieDB - Bookshelf</title>
|
||||
<meta name="description" content="OpenMovieDB - Bookshelf" />
|
||||
<meta name="author" content="TheGreydiamond" />
|
||||
|
||||
<!-- Mobile Specific Metas
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<!-- FONT
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link
|
||||
href="//fonts.googleapis.com/css?family=Raleway:400,300,600"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
/>
|
||||
|
||||
<!-- CSS
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="stylesheet" href="css/normalize.css" />
|
||||
<link rel="stylesheet" href="css/skeleton.css" />
|
||||
|
||||
<!-- Favicon
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="icon" type="image/png" href="images/favicon.png" />
|
||||
<script
|
||||
src="https://kit.fontawesome.com/d7b80a780b.js"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Primary Page Layout
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="eleven column" style="margin-top: 15%">
|
||||
<h4>OpenMovieDB - Bookshelf</h4>
|
||||
<div style="float: right; top: -20px;">
|
||||
<input class="u-full-width" type="text" placeholder="Search" id="search">
|
||||
</div>
|
||||
<button
|
||||
class="button-primary"
|
||||
onclick="window.location.href = '/add'"
|
||||
>
|
||||
<i class="fas fa-plus"></i> Add new movie</button
|
||||
><br />
|
||||
<div id="listOfMovies"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
ser = document.getElementById("search");
|
||||
ser.addEventListener("input", updateValue);
|
||||
json = <%~ it.jsonRespo %>;
|
||||
function updateValue(e) {
|
||||
console.log(e.target.value)
|
||||
outList = [];
|
||||
i = 0;
|
||||
elem = document.getElementById("listOfMovies");
|
||||
elem.innerHTML = ""
|
||||
while(i < json.length){
|
||||
currenElm = json[i]
|
||||
if(currenElm.movieTitel.toLowerCase().replace("(", "").replace(")", "").includes(e.target.value.toLowerCase())){
|
||||
console.log(currenElm.movieID)
|
||||
elem.innerHTML += "<a href='/showDetails?id=" + currenElm.movieID + "'><div style='width: 150px; float: left; padding: 5px;'><img src='" + currenElm.posterUrl + '\' style="width: 100%;"><br><center><b>' + currenElm.movieTitel + "</b></center></div></a>"
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
}
|
||||
i = 0;
|
||||
elem = document.getElementById("listOfMovies")
|
||||
while(i < json.length){
|
||||
currenElm = json[i]
|
||||
elem.innerHTML += "<a href='/showDetails?id=" + currenElm.movieID + "'><div style='width: 150px; float: left; padding: 5px;'><img src='" + currenElm.posterUrl + '\' style="width: 100%;"><br><center><b>' + currenElm.movieTitel + "</b></center></div></a>"
|
||||
i++;
|
||||
}
|
||||
|
||||
</script>
|
||||
<!-- End Document
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,138 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<script src="https://cdn.rawgit.com/serratus/quaggaJS/0420d5e0/dist/quagga.min.js"></script>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
/* In order to place the tracking correctly */
|
||||
canvas.drawing, canvas.drawingBuffer {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= it.titleByAPI %><br>
|
||||
<%= it.id %><br>
|
||||
<img src="<%= it.cover %>" alt="Cover image" style="height: 200px;"></img>
|
||||
<!-- Div to show the scanner -->
|
||||
<div id="scanner-container"></div>
|
||||
<input type="button" id="btn" value="Start/Stop the scanner" />
|
||||
<div id="currentEAN">Waiting for proper EAN..</div>
|
||||
<button onclick="sendEanConvRequest()"> Search</button>
|
||||
|
||||
<!-- Include the image-diff library -->
|
||||
|
||||
<script>
|
||||
var _scannerIsRunning = false;
|
||||
|
||||
function startScanner() {
|
||||
Quagga.init({
|
||||
inputStream: {
|
||||
name: "Live",
|
||||
type: "LiveStream",
|
||||
target: document.querySelector('#scanner-container'),
|
||||
constraints: {
|
||||
width: 480,
|
||||
height: 320,
|
||||
facingMode: "environment"
|
||||
},
|
||||
},
|
||||
decoder: {
|
||||
readers: [
|
||||
"code_128_reader",
|
||||
"ean_reader",
|
||||
"ean_8_reader",
|
||||
"code_39_reader",
|
||||
"code_39_vin_reader",
|
||||
"codabar_reader",
|
||||
"upc_reader",
|
||||
"upc_e_reader",
|
||||
"i2of5_reader"
|
||||
],
|
||||
debug: {
|
||||
showCanvas: true,
|
||||
showPatches: true,
|
||||
showFoundPatches: true,
|
||||
showSkeleton: true,
|
||||
showLabels: true,
|
||||
showPatchLabels: true,
|
||||
showRemainingPatchLabels: true,
|
||||
boxFromPatches: {
|
||||
showTransformed: true,
|
||||
showTransformedBox: true,
|
||||
showBB: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
}, function (err) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return
|
||||
}
|
||||
|
||||
console.log("Initialization finished. Ready to start");
|
||||
Quagga.start();
|
||||
|
||||
// Set flag to is running
|
||||
_scannerIsRunning = true;
|
||||
});
|
||||
|
||||
Quagga.onProcessed(function (result) {
|
||||
var drawingCtx = Quagga.canvas.ctx.overlay,
|
||||
drawingCanvas = Quagga.canvas.dom.overlay;
|
||||
|
||||
if (result) {
|
||||
if (result.boxes) {
|
||||
drawingCtx.clearRect(0, 0, parseInt(drawingCanvas.getAttribute("width")), parseInt(drawingCanvas.getAttribute("height")));
|
||||
result.boxes.filter(function (box) {
|
||||
return box !== result.box;
|
||||
}).forEach(function (box) {
|
||||
Quagga.ImageDebug.drawPath(box, { x: 0, y: 1 }, drawingCtx, { color: "green", lineWidth: 2 });
|
||||
});
|
||||
}
|
||||
|
||||
if (result.box) {
|
||||
Quagga.ImageDebug.drawPath(result.box, { x: 0, y: 1 }, drawingCtx, { color: "#00F", lineWidth: 2 });
|
||||
}
|
||||
|
||||
if (result.codeResult && result.codeResult.code) {
|
||||
Quagga.ImageDebug.drawPath(result.line, { x: 'x', y: 'y' }, drawingCtx, { color: 'red', lineWidth: 3 });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Quagga.onDetected(function (result) {
|
||||
console.log("Barcode detected and processed : [" + result.codeResult.code + "]", result);
|
||||
if(String(result.codeResult.code).length == 13){
|
||||
document.getElementById("currentEAN").innerHTML = result.codeResult.code
|
||||
console.log(result.codeResult.code)
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Start/stop scanner
|
||||
document.getElementById("btn").addEventListener("click", function () {
|
||||
if (_scannerIsRunning) {
|
||||
Quagga.stop();
|
||||
} else {
|
||||
startScanner();
|
||||
}
|
||||
}, false);
|
||||
|
||||
function sendEanConvRequest(){
|
||||
url = "/apiCallBack?ean=" + document.getElementById("currentEAN").innerHTML;
|
||||
window.open(url)
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,126 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Basic Page Needs
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta charset="utf-8" />
|
||||
<title>OpenMovieDB - Bookshelf</title>
|
||||
<meta name="description" content="OpenMovieDB - Bookshelf" />
|
||||
<meta name="author" content="TheGreydiamond" />
|
||||
|
||||
<!-- Mobile Specific Metas
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<!-- FONT
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link
|
||||
href="//fonts.googleapis.com/css?family=Raleway:400,300,600"
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
/>
|
||||
|
||||
<!-- CSS
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="stylesheet" href="css/normalize.css" />
|
||||
<link rel="stylesheet" href="css/skeleton.css" />
|
||||
<style>
|
||||
#overlay {
|
||||
position: fixed;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#overlay2 {
|
||||
position: fixed;
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#text{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
font-size: 50px;
|
||||
color: white;
|
||||
transform: translate(-50%,-50%);
|
||||
-ms-transform: translate(-50%,-50%);
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Favicon
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="icon" type="image/png" href="images/favicon.png" />
|
||||
<script src="https://kit.fontawesome.com/d7b80a780b.js" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.rawgit.com/serratus/quaggaJS/0420d5e0/dist/quagga.min.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body>
|
||||
<div id="overlay" onclick="off()">
|
||||
<div id="text"><svg class='checkmark' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'><circle class='checkmark__circle ' cx='26' cy='26' r='25' fill='none'/><path class='checkmark__check' fill='none' d='M14.1 27.2l7.1 7.2 16.7-16.8'/></svg><style>.checkmark__circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke-miterlimit: 10; stroke: #7ac142; fill: none; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;}.checkmark { width: 56px; height: 56px; border-radius: 50%; display: block; stroke-width: 2; stroke: #fff; stroke-miterlimit: 10; margin: 10% auto; box-shadow: inset 0px 0px 0px #7ac142; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;}.checkmark__check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;}@keyframes stroke { 100% { stroke-dashoffset: 0; }}@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); }}@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px #7ac142; }}</style></div>
|
||||
</div>
|
||||
|
||||
<div id="overlay2" onclick="off()">
|
||||
<div id="text">Do you really want to remove this movie?<br>
|
||||
<button onclick="sureDelete()" style="background-color: rgba(174, 255, 128, 0.699)"><i class="fas fa-trash"></i> Yes</button>
|
||||
<button onclick="off()" style="background-color: rgba(255, 95, 95, 0.719)"><i class="fas fa-times"></i> No</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="one-half column" style="margin-top: 10%" id="mainCont">
|
||||
<h4>OpenMovieDB - Moviedetails</h4>
|
||||
<div style="width: 300px;">
|
||||
<img src="<%= it.cover %>" alt="Cover image" style="width: 100%;"></img><br>
|
||||
<center><%= it.titleByAPI %><br><i><%= it.id %></i></center>
|
||||
</div>
|
||||
<button onclick="handelDelete()" id="delBtn"><i class="fas fa-trash"></i> Delete</button>
|
||||
<button onclick="window.location.href = '/'"><i class="fas fa-home"></i> Back to home</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
function on() {
|
||||
document.getElementById("overlay").style.display = "block";
|
||||
}
|
||||
|
||||
function off() {
|
||||
document.getElementById("overlay").style.display = "none";
|
||||
document.getElementById("overlay2").style.display = "none";
|
||||
}
|
||||
|
||||
function sureDelete(){
|
||||
console.log("Deleting movie")
|
||||
url = "/delete?id=<%= it.internalID %>";
|
||||
document.getElementById("delBtn").remove();
|
||||
$.get(url,function(data,status) { console.log(data); console.log(status); on(); setTimeout(function(){window.location.href = '/';}, 1000); },'html');
|
||||
}
|
||||
|
||||
function handelDelete(){
|
||||
document.getElementById("overlay2").style.display = "block";
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
|
||||
|
||||
/*const FormData = require('form-data');
|
||||
const http = require('http');
|
||||
|
||||
const form = new FormData();
|
||||
form.append('SText', '4010884546217');
|
||||
form.append('Kat', 'EAN');
|
||||
const uploadResponse = fetch("https://ssl.ofdb.de/view.php?page=suchergebnis", {method: 'POST', body: form });
|
||||
|
||||
setTimeout(() => {
|
||||
console.log(uploadResponse)
|
||||
}, 500);
|
||||
*/
|
||||
|
||||
const { URLSearchParams } = require('url');
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
const params = new URLSearchParams();
|
||||
params.append('SText', '4010884546217');
|
||||
params.append('Kat', 'EAN');
|
||||
|
||||
fetch('https://ssl.ofdb.de/view.php?page=suchergebnis', { method: 'POST', body: params })
|
||||
.then(res => console.log(res.statusCode))
|
||||
Reference in new issue
Block a user