hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bbb68fd243dc9f3841954ee3e8667201c7c74bfa | 6,574 | js | JavaScript | src/server/utils/utils.js | tlodge/pi-ide | 4add0eba270400c979deafe9bbab34366355d1f5 | [
"MIT"
] | null | null | null | src/server/utils/utils.js | tlodge/pi-ide | 4add0eba270400c979deafe9bbab34366355d1f5 | [
"MIT"
] | 5 | 2021-03-09T08:11:16.000Z | 2022-02-10T18:07:03.000Z | src/server/utils/utils.js | tlodge/pi-ide | 4add0eba270400c979deafe9bbab34366355d1f5 | [
"MIT"
] | null | null | null | import zlib from 'zlib';
import fs from 'fs';
import tar from 'tar-stream';
import docker from './docker';
export function matchLibraries(code) {
const REQUIRE_RE = /require\(['"]([^'"]+)['"](?:, ['"]([^'"]+)['"])?\);?/g;
const IMPORT_RE = /\bimport\s+(?:.+\s+from\s+)?[\'"]([^"\']+)["\']/g;
const requires = code.match(REQUIRE_RE);
const imports = code.match(IMPORT_RE);
let r1 = [], r2 = [];
if (requires && requires.length > 0) {
r1 = requires.map((pkg) => {
return pkg.replace(/require\w*\(\w*['"]/g, "").replace(/['"]\);*/g, "")
});
}
if (imports && imports.length > 0) {
r2 = imports.map((module) => {
return module.replace(/import\s*/g, "").replace(/\s*(\w|\W|\s)*from\s*/g, "").replace(/['"]/g, "");
});
}
return [...r1, ...r2];
}
export function flatten(arr) {
return arr.reduce((acc, row) => {
return row.reduce((acc, src) => {
acc.push(src);
return acc;
}, acc);
}, [])
}
export function dedup(arr) {
let seen = {};
return arr.filter((item) => {
if (seen[item])
return false;
seen[item] = true;
return true;
});
}
const _addEntry = function (pack, name, file) {
return new Promise((resolve, reject) => {
pack.entry({ name: name }, file, function (err) {
if (err) {
console.log("error adding entry!", err);
reject(err);
}
else {
resolve(true);
}
});
});
}
export function createTarFile(dockerfile, flowfile, path) {
console.log("creating tar file", path);
const tarball = fs.createWriteStream(path);
const gzip = zlib.createGzip();
const pack = tar.pack();
return _addEntry(pack, "Dockerfile", dockerfile).then(() => {
return _addEntry(pack, "flows.json", flowfile)
})
.then(() => {
pack.finalize();
const stream = pack.pipe(gzip).pipe(tarball);
return new Promise((resolve, reject) => {
stream.on('finish', function (err) {
if (err) {
console.log("error creating tar file", err);
reject(err);
} else {
console.log("successfully created tar file", path);
resolve(path);
}
});
});
});
}
/*return new Promise((resolve, reject)=>{
var tarball = fs.createWriteStream(path);
const gzip = zlib.createGzip();
const pack = tar.pack();
pack.entry({name: 'Dockerfile'}, dockerfile, function(err){
if (err){
reject(err);
}
console.log("am herwe");
pack.entry({name: "flows.json"}, flowfile, function(err){
if (err){
reject(err);
}
console.log("finalising");
pack.finalize();
const stream = pack.pipe(gzip).pipe(tarball);
stream.on('finish', function (err) {
resolve(path);
});
});
});
})
}*/
/*export function createTarFile(dockerfile, path) {
console.log("OK IN CREATE TAR FILE!!")
return new Promise((resolve, reject) => {
var tarball = fs.createWriteStream(path);
const gzip = zlib.createGzip();
const pack = tar.pack();
pack.entry({ name: 'Dockerfile' }, dockerfile, function (err) {
if (err) {
reject(err);
}
pack.finalize();
const stream = pack.pipe(gzip).pipe(tarball);
stream.on('finish', function (err) {
resolve(path);
});
});
});
}*/
export function createDockerImage(tarfile, tag) {
console.log(`creating image for tarfile ${tarfile} with docker tag ${tag}`);
return new Promise((resolve, reject) => {
docker.buildImage(tarfile, { t: tag, nocache: true }, function (err, output) {
if (err) {
console.log("error building image", err)
console.warn(err);
reject(err);
return;
}
output.pipe(process.stdout);
output.on('error', (err) => {
console.log("ERROR!!!", err);
reject(err);
return;
})
output.on('end', function () {
console.log("FINISHED!!!");
resolve(tag);
});
});
});
}
export function stopAndRemoveContainer(name) {
return new Promise((resolve, reject) => {
const container = docker.listContainers({ all: true }, (err, containers) => {
if (err) {
reject(err);
}
const container = containers.reduce((acc, container) => {
console.log("checking", `/${name}`, " in ", container.Names);
if (container.Names.indexOf(`/${name}`) != -1) {
return container;
}
return acc;
}, null);
if (!container) {
console.log("did not find container");
reject();
return;
}
var containerToStop = docker.getContainer(container.Id);
containerToStop.stop((err, data) => {
console.log("container stopped!");
//if (err){
// reject(err);
// return;
//}
containerToStop.remove((err, data) => {
if (err) {
reject(err);
} else {
resolve(true);
}
});
});
});
});
}
/*
note we open port 9123 to open a websocket to receive video from the client when
a webcam is used and 8096 is the (docker mapped) port that serves up the webcam page
*/
export function createTestContainer(image, name, network) {
const self = this;
console.log(`creating test container ${image}, name: ${name}`);
//#PortBindings: { "9123/tcp": [{ "HostPort": "9123" }] },
//"9123/tcp":{},
return new Promise((resolve, reject) => {
docker.createContainer(
{
Image: image,
PublishAllPorts: true,
Links: ["mock-datasource:mock-datasource", "databox-test-server:databox-test-server" /*, "openface:openface"*/],
Env: ["TESTING=true", "MOCK_DATA_SOURCE=http://mock-datasource:8080"],
//HostConfig: {NetworkMode: network},
Labels: { 'user': `${name}` },
ExposedPorts: { "1880/tcp": {}, "8096/tcp": {} },
Cmd: ["npm", "start", "--", "--userDir", "/data"],
name: `${name}-red`,
},
(err, container) => {
if (err) {
console.log("error:", err);
return stopAndRemoveContainer(`${name}-red`).then(() => {
return createTestContainer(image, name, network);
}, (err) => {
reject(err);
return;
});
} else {
console.log("ok am here")
container.start({}, function (err, data) {
if (err) {
console.log("error starting container", err);
reject(err);
} else {
console.log("started container");
resolve(container);
}
});
}
});
});
}
export function writeTempFile(filestr, fileName) {
return new Promise((resolve, reject) => {
fs.writeFile(fileName, filestr, function (err) {
if (err) {
reject(err);
return;
}
resolve(true);
});
});
}
export function removeTempFile(fileName) {
return new Promise((resolve, reject) => {
fs.unlink(fileName, function (err) {
if (err) {
console.log(err);
reject(err);
return;
}
resolve(true);
});
});
} | 22.060403 | 116 | 0.582294 |
bbb7c09b0bcfc5f3e03f81201d7d69f80639e862 | 483 | js | JavaScript | src/components/graph.js | jbosman/redux-practice-weather-app | e8da7bc6aaf6ae7e6ebc39dcb97c393a1dc35f67 | [
"MIT"
] | null | null | null | src/components/graph.js | jbosman/redux-practice-weather-app | e8da7bc6aaf6ae7e6ebc39dcb97c393a1dc35f67 | [
"MIT"
] | null | null | null | src/components/graph.js | jbosman/redux-practice-weather-app | e8da7bc6aaf6ae7e6ebc39dcb97c393a1dc35f67 | [
"MIT"
] | null | null | null | import _ from 'lodash';
import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
function average(data){
return _.round(_.sum(data)/data.length);
}
export default function Graph({ color, data, units }){
return (
<div className='graph'>
<Sparklines data={data} >
<SparklinesLine color={color} />
<SparklinesReferenceLine type="avg" />
</Sparklines>
<div>{`${average(data)} ${units}`}</div>
</div>
)
} | 25.421053 | 87 | 0.679089 |
bbb7f58896cc74f513bb1d011e285fe0b832b001 | 97 | js | JavaScript | v2/cmd/wails/internal/commands/initialise/templates/templates/lit/frontend/vite.config.js | ianmjones/wails | 16581ceff91961a0a0f2eb5f132b6eb98f32b498 | [
"MIT"
] | null | null | null | v2/cmd/wails/internal/commands/initialise/templates/templates/lit/frontend/vite.config.js | ianmjones/wails | 16581ceff91961a0a0f2eb5f132b6eb98f32b498 | [
"MIT"
] | 1 | 2019-02-24T02:44:34.000Z | 2019-02-24T02:45:50.000Z | v2/cmd/wails/internal/commands/initialise/templates/templates/lit/frontend/vite.config.js | ianmjones/wails | 16581ceff91961a0a0f2eb5f132b6eb98f32b498 | [
"MIT"
] | null | null | null | import {defineConfig} from 'vite'
// https://vitejs.dev/config/
export default defineConfig({})
| 19.4 | 33 | 0.731959 |
bbb806f845a629cfb5bfd94009555e168a9b8919 | 5,299 | js | JavaScript | assets/js/breadbox.js | pepijnkokke/pepijnkokke.github.io | 18512596d6236917a977152c6ee13c575bfe04f2 | [
"MIT"
] | null | null | null | assets/js/breadbox.js | pepijnkokke/pepijnkokke.github.io | 18512596d6236917a977152c6ee13c575bfe04f2 | [
"MIT"
] | null | null | null | assets/js/breadbox.js | pepijnkokke/pepijnkokke.github.io | 18512596d6236917a977152c6ee13c575bfe04f2 | [
"MIT"
] | null | null | null | var current = 'breadbox';
var current_sim = 0.0;
var current_with_article = 'a breadbox';
$(document).ready(function() {
$('#breadbox-input').find('input').focus();
addLine("I'm thinking of something...",'line','blue');
addLine("Is it a breadbox?",'line','white');
addLine("No, it's not.",'line','blue');
});
$('#breadbox-input').cssConsole({
inputName:'console',
charLimit: 60,
onEnter: function(){
execCommand($('#breadbox-input').find('input').val(),
function() {
$('#breadbox-input').cssConsole('reset');
$('#breadbox-input').find('input').focus();
},
function() {
$('#breadbox-input').cssConsole('destroy');
$('.breadbox-label').remove();
});
}
});
$('.breadbox-container').on('click', function() {
$('#breadbox-input').find('input').focus();
});
function addLine(input, style, color) {
if($('.breadbox-console div').length==lineLimit) {
$('.breadbox-console div').eq(0).remove();
}
style = typeof style !== 'undefined' ? style : 'line';
color = typeof color !== 'undefined' ? color : 'white';
$('.breadbox-console').append('<div class="breadbox-'+style+' breadbox-'+color+'">'+input+'</div>');
}
function execCommand(input,cont,stop) {
var input = input.trim();
if (input == "help") {
help();
cont();
} else if (input.indexOf("give up") != -1) {
addLine("I give up! What is it?",'line','white');
reply = "I was thinking of "+secret_with_article+"... ";
if (definitions.length > 1) {
addLine(reply+"It's",'line','blue');
$(definitions).each(function(index,item) {
if (index == definitions.length - 1) {
addLine("- "+item+".",'margin','blue');
} else {
addLine("- "+item+";",'margin','blue');
}
});
} else if (definitions.length == 1) {
addLine(reply+"It's "+definitions[0]+".",'line','blue');
} else if (definitions.length == 0) {
addLine(reply,'line','blue');
}
stop();
} else {
if (input.indexOf(' ') != -1) {
addLine("I have to warn you, compound words scare me a little... ",'line','red');
addLine("so try to avoid words with spaces in them!",'line','red');
}
var input = input.replace(/[!?\.\\/,:;]/g,'').split(' ');
var next = input[input.length - 1];
$.ajax({
url : breadbox_url+'guess/'+secret+'/'+next,
type : "GET",
dataType : "json",
success : function(data) {
var next_sim = data['similarity'];
var next_with_article = data['a_or_an'];
addLine("Is it more like "+current_with_article+
" or more like "+next_with_article+"?",'line','white');
if (next == secret) {
addLine("That's <i>exactly</i> what I was thinking of!",'line','blue');
stop();
}
else if (next_sim > current_sim) {
addLine("It's more like "+next_with_article+"!",'line','blue');
current = next;
current_sim = next_sim;
current_with_article = next_with_article;
cont();
}
else if (next_sim <= current_sim) {
addLine("It's more like "+current_with_article+"...",'line','blue');
cont();
}
}
});
}
}
function help() {
addLine(" ");
addLine("Breadbox is an experimental cousin of 20 Questions, "+
"also known as Plenty Questions, which is played by two "+
"or more players. In this case, it's you against the computer! "+
"It's played as follows:",'margin','blue');
addLine(" ");
addLine(" • The computer thinks of a word (I already did this!)"
,'margin','blue');
addLine(" • As your first question, you <i>have to ask</i>"+
" \"Is it a breadbox?\"",'margin','blue');
addLine(" • Obviously, I wouldn't have chosen a breadbox, "+
"so I say \"No, it's not.\"",'margin','blue');
addLine(" ");
addLine("From then on, all your questions have to be of the form..."
,'margin','blue');
addLine(" ");
addLine(" Is it more like a <i>breadbox</i>, "+
"or more like...?",'margin','white');
addLine(" ");
addLine("...where <i>breadbox</i> is replaced with whatever your current guess is.",
'margin','blue');
addLine(" ");
addLine("And remember, you can always type 'give up', and I'll tell you what I "+
"was thinking of! ^^",'margin','blue');
addLine("Once you win (or give up), just reload the page to play another game.",
'margin','blue');
addLine(" ");
}
| 38.398551 | 104 | 0.493112 |
bbb8faf448ef0d08905eb9cb5a1be26a9197f58a | 40,837 | js | JavaScript | packages/templates-old/omis/examples/css/b.js | fyuan1992/omi | b0d42d4d6f9f8db37a5917b234d5feb2cee52810 | [
"MIT"
] | 1 | 2019-11-01T06:00:07.000Z | 2019-11-01T06:00:07.000Z | packages/templates-old/omis/examples/css/b.js | fyuan1992/omi | b0d42d4d6f9f8db37a5917b234d5feb2cee52810 | [
"MIT"
] | null | null | null | packages/templates-old/omis/examples/css/b.js | fyuan1992/omi | b0d42d4d6f9f8db37a5917b234d5feb2cee52810 | [
"MIT"
] | 1 | 2021-09-07T09:19:23.000Z | 2021-09-07T09:19:23.000Z | (function () {
'use strict';
/**
* Virtual DOM Node
* @typedef VNode
* @property {string | function} nodeName The string of the DOM node to create or Component constructor to render
* @property {Array<VNode | string>} children The children of node
* @property {string | number | undefined} key The key used to identify this VNode in a list
* @property {object} attributes The properties of this VNode
*/
var VNode = function VNode() {};
/**
* @typedef {import('./component').Component} Component
* @typedef {import('./vnode').VNode} VNode
*/
/**
* Global options
* @public
* @typedef Options
* @property {boolean} [syncComponentUpdates] If `true`, `prop` changes trigger synchronous component updates. Defaults to true.
* @property {(vnode: VNode) => void} [vnode] Processes all created VNodes.
* @property {(component: Component) => void} [afterMount] Hook invoked after a component is mounted.
* @property {(component: Component) => void} [afterUpdate] Hook invoked after the DOM is updated with a component's latest render.
* @property {(component: Component) => void} [beforeUnmount] Hook invoked immediately before a component is unmounted.
* @property {(rerender: function) => void} [debounceRendering] Hook invoked whenever a rerender is requested. Can be used to debounce rerenders.
* @property {(event: Event) => Event | void} [event] Hook invoked before any Preact event listeners. The return value (if any) replaces the native browser event given to event listeners
*/
/** @type {Options} */
var options = {
runTimeComponent: {},
styleCache: [],
staticStyleMapping: {}
};
var styleId = 0;
function getCtorName(ctor) {
for (var i = 0, len = options.styleCache.length; i < len; i++) {
var item = options.styleCache[i];
if (item.ctor === ctor) {
return item.attrName;
}
}
var attrName = '_ss' + styleId;
options.styleCache.push({ ctor: ctor, attrName: attrName });
styleId++;
return attrName;
}
// many thanks to https://github.com/thomaspark/scoper/
function scoper(css, prefix) {
prefix = '[' + prefix.toLowerCase() + ']';
// https://www.w3.org/TR/css-syntax-3/#lexical
css = css.replace(/\/\*[^*]*\*+([^/][^*]*\*+)*\//g, '');
// eslint-disable-next-line
var re = new RegExp('([^\r\n,{}:]+)(:[^\r\n,{}]+)?(,(?=[^{}]*{)|\s*{)', 'g');
/**
* Example:
*
* .classname::pesudo { color:red }
*
* g1 is normal selector `.classname`
* g2 is pesudo class or pesudo element
* g3 is the suffix
*/
css = css.replace(re, function (g0, g1, g2, g3) {
if (typeof g2 === 'undefined') {
g2 = '';
}
/* eslint-ignore-next-line */
if (g1.match(/^\s*(@media|\d+%?|@-webkit-keyframes|@keyframes|to|from|@font-face)/)) {
return g1 + g2 + g3;
}
var appendClass = g1.replace(/(\s*)$/, '') + prefix + g2;
//let prependClass = prefix + ' ' + g1.trim() + g2;
return appendClass + g3;
//return appendClass + ',' + prependClass + g3;
});
return css;
}
function addStyle(cssText, id) {
id = id.toLowerCase();
var ele = document.getElementById(id);
var head = document.getElementsByTagName('head')[0];
if (ele && ele.parentNode === head) {
head.removeChild(ele);
}
var someThingStyles = document.createElement('style');
head.appendChild(someThingStyles);
someThingStyles.setAttribute('type', 'text/css');
someThingStyles.setAttribute('id', id);
if (window.ActiveXObject) {
someThingStyles.styleSheet.cssText = cssText;
} else {
someThingStyles.textContent = cssText;
}
}
function addStyleToHead(style, attr) {
if (!options.staticStyleMapping[attr]) {
addStyle(scoper(style, attr), attr);
options.staticStyleMapping[attr] = true;
}
}
var stack = [];
var EMPTY_CHILDREN = [];
/**
* JSX/hyperscript reviver.
* @see http://jasonformat.com/wtf-is-jsx
* Benchmarks: https://esbench.com/bench/57ee8f8e330ab09900a1a1a0
*
* Note: this is exported as both `h()` and `createElement()` for compatibility
* reasons.
*
* Creates a VNode (virtual DOM element). A tree of VNodes can be used as a
* lightweight representation of the structure of a DOM tree. This structure can
* be realized by recursively comparing it against the current _actual_ DOM
* structure, and applying only the differences.
*
* `h()`/`createElement()` accepts an element name, a list of attributes/props,
* and optionally children to append to the element.
*
* @example The following DOM tree
*
* `<div id="foo" name="bar">Hello!</div>`
*
* can be constructed using this function as:
*
* `h('div', { id: 'foo', name : 'bar' }, 'Hello!');`
*
* @param {string | function} nodeName An element name. Ex: `div`, `a`, `span`, etc.
* @param {object | null} attributes Any attributes/props to set on the created element.
* @param {VNode[]} [rest] Additional arguments are taken to be children to
* append. Can be infinitely nested Arrays.
*
* @public
*/
function h(nodeName, attributes) {
var children = EMPTY_CHILDREN,
lastSimple = void 0,
child = void 0,
simple = void 0,
i = void 0;
for (i = arguments.length; i-- > 2;) {
stack.push(arguments[i]);
}
if (attributes && attributes.children != null) {
if (!stack.length) stack.push(attributes.children);
delete attributes.children;
}
while (stack.length) {
if ((child = stack.pop()) && child.pop !== undefined) {
for (i = child.length; i--;) {
stack.push(child[i]);
}
} else {
if (typeof child === 'boolean') child = null;
if (simple = typeof nodeName !== 'function') {
if (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;
}
if (simple && lastSimple) {
children[children.length - 1] += child;
} else if (children === EMPTY_CHILDREN) {
children = [child];
} else {
children.push(child);
}
lastSimple = simple;
}
}
var p = new VNode();
p.nodeName = nodeName;
p.children = children;
p.attributes = attributes == null ? {} : attributes;
if (options.runTimeComponent.constructor.css) {
p.attributes[getCtorName(options.runTimeComponent.constructor)] = '';
}
if (options.runTimeComponent.props && options.runTimeComponent.props.css) {
p.attributes['_ds' + options.runTimeComponent.elementId] = '';
}
p.key = p.attributes.key;
// if a "vnode hook" is defined, pass every created VNode to it
if (options.vnode !== undefined) options.vnode(p);
return p;
}
/**
* Copy all properties from `props` onto `obj`.
* @param {object} obj Object onto which properties should be copied.
* @param {object} props Object from which to copy properties.
* @returns {object}
* @private
*/
function extend(obj, props) {
for (var i in props) {
obj[i] = props[i];
}return obj;
}
/** Invoke or update a ref, depending on whether it is a function or object ref.
* @param {object|function} [ref=null]
* @param {any} [value]
*/
function applyRef(ref, value) {
if (ref) {
if (typeof ref == 'function') ref(value);else ref.current = value;
}
}
/**
* Call a function asynchronously, as soon as possible. Makes
* use of HTML Promise to schedule the callback if available,
* otherwise falling back to `setTimeout` (mainly for IE<11).
* @type {(callback: function) => void}
*/
var defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;
/**
* Clones the given VNode, optionally adding attributes/props and replacing its
* children.
* @param {import('./vnode').VNode} vnode The virtual DOM element to clone
* @param {object} props Attributes/props to add when cloning
* @param {Array<import('./vnode').VNode>} [rest] Any additional arguments will be used as replacement
* children.
*/
function cloneElement(vnode, props) {
return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);
}
// render modes
/** Do not re-render a component */
var NO_RENDER = 0;
/** Synchronously re-render a component and its children */
var SYNC_RENDER = 1;
/** Synchronously re-render a component, even if its lifecycle methods attempt to prevent it. */
var FORCE_RENDER = 2;
/** Queue asynchronous re-render of a component and it's children */
var ASYNC_RENDER = 3;
var ATTR_KEY = 'prevProps';
/** DOM properties that should NOT have "px" added when numeric */
var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;
/**
* Managed queue of dirty components to be re-rendered
* @type {Array<import('./component').Component>}
*/
var items = [];
/**
* Enqueue a rerender of a component
* @param {import('./component').Component} component The component to rerender
*/
function enqueueRender(component) {
if (!component._dirty && (component._dirty = true) && items.push(component) == 1) {
(options.debounceRendering || defer)(rerender);
}
}
/** Rerender all enqueued dirty components */
function rerender() {
var p = void 0;
while (p = items.pop()) {
if (p._dirty) renderComponent(p);
}
}
/**
* Check if two nodes are equivalent.
* @param {import('../dom').PreactElement} node DOM Node to compare
* @param {import('../vnode').VNode} vnode Virtual DOM node to compare
* @param {boolean} [hydrating=false] If true, ignores component constructors
* when comparing.
* @private
*/
function isSameNodeType(node, vnode, hydrating) {
if (typeof vnode === 'string' || typeof vnode === 'number') {
return node.splitText !== undefined;
}
if (typeof vnode.nodeName === 'string') {
return !node._componentConstructor && isNamedNode(node, vnode.nodeName);
}
return hydrating || node._componentConstructor === vnode.nodeName;
}
/**
* Check if an Element has a given nodeName, case-insensitively.
* @param {import('../dom').PreactElement} node A DOM Element to inspect the name of.
* @param {string} nodeName Unnormalized name to compare against.
*/
function isNamedNode(node, nodeName) {
return node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();
}
/**
* Reconstruct Component-style `props` from a VNode.
* Ensures default/fallback values from `defaultProps`:
* Own-properties of `defaultProps` not present in `vnode.attributes` are added.
* @param {import('../vnode').VNode} vnode The VNode to get props for
* @returns {object} The props to use for this VNode
*/
function getNodeProps(vnode) {
var props = extend({}, vnode.attributes);
props.children = vnode.children;
var defaultProps = vnode.nodeName.defaultProps;
if (defaultProps !== undefined) {
for (var i in defaultProps) {
if (props[i] === undefined) {
props[i] = defaultProps[i];
}
}
}
return props;
}
/**
* A DOM event listener
* @typedef {(e: Event) => void} EventListner
*/
/**
* A mapping of event types to event listeners
* @typedef {Object.<string, EventListener>} EventListenerMap
*/
/**
* Properties Preact adds to elements it creates
* @typedef PreactElementExtensions
* @property {string} [normalizedNodeName] A normalized node name to use in diffing
* @property {EventListenerMap} [_listeners] A map of event listeners added by components to this DOM node
* @property {import('../component').Component} [_component] The component that rendered this DOM node
* @property {function} [_componentConstructor] The constructor of the component that rendered this DOM node
*/
/**
* A DOM element that has been extended with Preact properties
* @typedef {Element & ElementCSSInlineStyle & PreactElementExtensions} PreactElement
*/
/**
* Create an element with the given nodeName.
* @param {string} nodeName The DOM node to create
* @param {boolean} [isSvg=false] If `true`, creates an element within the SVG
* namespace.
* @returns {PreactElement} The created DOM node
*/
function createNode(nodeName, isSvg) {
/** @type {PreactElement} */
var node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);
node.normalizedNodeName = nodeName;
return node;
}
/**
* Remove a child node from its parent if attached.
* @param {Node} node The node to remove
*/
function removeNode(node) {
var parentNode = node.parentNode;
if (parentNode) parentNode.removeChild(node);
}
/**
* Set a named attribute on the given Node, with special behavior for some names
* and event handlers. If `value` is `null`, the attribute/handler will be
* removed.
* @param {PreactElement} node An element to mutate
* @param {string} name The name/key to set, such as an event or attribute name
* @param {*} old The last value that was set for this name/node pair
* @param {*} value An attribute value, such as a function to be used as an
* event handler
* @param {boolean} isSvg Are we currently diffing inside an svg?
* @private
*/
function setAccessor(node, name, old, value, isSvg, store) {
if (name === 'className') name = 'class';
if (name === 'key') {
// ignore
} else if (name === 'ref') {
applyRef(old, null);
applyRef(value, node);
} else if (name === 'class' && !isSvg) {
node.className = value || '';
} else if (name === 'style') {
if (!value || typeof value === 'string' || typeof old === 'string') {
node.style.cssText = value || '';
}
if (value && typeof value === 'object') {
if (typeof old !== 'string') {
for (var i in old) {
if (!(i in value)) node.style[i] = '';
}
}
for (var _i in value) {
node.style[_i] = typeof value[_i] === 'number' && IS_NON_DIMENSIONAL.test(_i) === false ? value[_i] + 'px' : value[_i];
}
}
} else if (name === 'dangerouslySetInnerHTML') {
if (value) node.innerHTML = value.__html || '';
} else if (name[0] == 'o' && name[1] == 'n') {
var useCapture = name !== (name = name.replace(/Capture$/, ''));
name = name.toLowerCase().substring(2);
if (value) {
if (!old) node.addEventListener(name, eventProxy, useCapture);
} else {
node.removeEventListener(name, eventProxy, useCapture);
}
(node._listeners || (node._listeners = {}))[name] = value ? value.bind(store) : value;
} else if (name !== 'list' && name !== 'type' && !isSvg && name in node) {
// Attempt to set a DOM property to the given value.
// IE & FF throw for certain property-value combinations.
try {
node[name] = value == null ? '' : value;
} catch (e) {}
if ((value == null || value === false) && name != 'spellcheck') node.removeAttribute(name);
} else {
var ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));
// spellcheck is treated differently than all other boolean values and
// should not be removed when the value is `false`. See:
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-spellcheck
if (value == null || value === false) {
if (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.removeAttribute(name);
} else if (typeof value !== 'function') {
if (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);else node.setAttribute(name, value);
}
}
}
/**
* Proxy an event to hooked event handlers
* @param {Event} e The event object from the browser
* @private
*/
function eventProxy(e) {
return this._listeners[e.type](options.event && options.event(e) || e);
}
/**
* Queue of components that have been mounted and are awaiting componentDidMount
* @type {Array<import('../component').Component>}
*/
var mounts = [];
/** Diff recursion count, used to track the end of the diff cycle. */
var diffLevel = 0;
/** Global flag indicating if the diff is currently within an SVG */
var isSvgMode = false;
/** Global flag indicating if the diff is performing hydration */
var hydrating = false;
/** Invoke queued componentDidMount lifecycle methods */
function flushMounts() {
var c = void 0;
while (c = mounts.shift()) {
if (c.constructor.css) {
addStyleToHead(c.constructor.css, getCtorName(c.constructor));
}
if (c.props.css) {
addStyleToHead(c.props.css, '_ds' + c.elementId);
}
if (options.afterMount) options.afterMount(c);
if (c.componentDidMount) c.componentDidMount();
}
}
/**
* Apply differences in a given vnode (and it's deep children) to a real DOM Node.
* @param {import('../dom').PreactElement} dom A DOM node to mutate into the shape of a `vnode`
* @param {import('../vnode').VNode} vnode A VNode (with descendants forming a tree) representing
* the desired DOM structure
* @param {object} context The current context
* @param {boolean} mountAll Whether or not to immediately mount all components
* @param {Element} parent ?
* @param {boolean} componentRoot ?
* @returns {import('../dom').PreactElement} The created/mutated element
* @private
*/
function diff(dom, vnode, context, mountAll, parent, componentRoot, store) {
// diffLevel having been 0 here indicates initial entry into the diff (not a subdiff)
if (!diffLevel++) {
// when first starting the diff, check if we're diffing an SVG or within an SVG
isSvgMode = parent != null && parent.ownerSVGElement !== undefined;
// hydration is indicated by the existing element to be diffed not having a prop cache
hydrating = dom != null && !(ATTR_KEY in dom);
}
var ret = idiff(dom, vnode, context, mountAll, componentRoot, store);
// append the element if its a new parent
if (parent && ret.parentNode !== parent) parent.appendChild(ret);
// diffLevel being reduced to 0 means we're exiting the diff
if (! --diffLevel) {
hydrating = false;
// invoke queued componentDidMount lifecycle methods
if (!componentRoot) flushMounts();
}
return ret;
}
/**
* Internals of `diff()`, separated to allow bypassing diffLevel / mount flushing.
* @param {import('../dom').PreactElement} dom A DOM node to mutate into the shape of a `vnode`
* @param {import('../vnode').VNode} vnode A VNode (with descendants forming a tree) representing the desired DOM structure
* @param {object} context The current context
* @param {boolean} mountAll Whether or not to immediately mount all components
* @param {boolean} [componentRoot] ?
* @private
*/
function idiff(dom, vnode, context, mountAll, componentRoot, store) {
var out = dom,
prevSvgMode = isSvgMode;
// empty values (null, undefined, booleans) render as empty Text nodes
if (vnode == null || typeof vnode === 'boolean') vnode = '';
// Fast case: Strings & Numbers create/update Text nodes.
if (typeof vnode === 'string' || typeof vnode === 'number') {
// update if it's already a Text node:
if (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {
/* istanbul ignore if */ /* Browser quirk that can't be covered: https://github.com/developit/omis/commit/fd4f21f5c45dfd75151bd27b4c217d8003aa5eb9 */
if (dom.nodeValue != vnode) {
dom.nodeValue = vnode;
}
} else {
// it wasn't a Text node: replace it with one and recycle the old Element
out = document.createTextNode(vnode);
if (dom) {
if (dom.parentNode) dom.parentNode.replaceChild(out, dom);
recollectNodeTree(dom, true);
}
}
out[ATTR_KEY] = true;
return out;
}
// If the VNode represents a Component, perform a component diff:
var vnodeName = vnode.nodeName;
if (typeof vnodeName === 'function') {
return buildComponentFromVNode(dom, vnode, context, mountAll);
}
// Tracks entering and exiting SVG namespace when descending through the tree.
isSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;
// If there's no existing element or it's the wrong type, create a new one:
vnodeName = String(vnodeName);
if (!dom || !isNamedNode(dom, vnodeName)) {
out = createNode(vnodeName, isSvgMode);
if (dom) {
// move children into the replacement node
while (dom.firstChild) {
out.appendChild(dom.firstChild);
} // if the previous Element was mounted into the DOM, replace it inline
if (dom.parentNode) dom.parentNode.replaceChild(out, dom);
// recycle the old element (skips non-Element node types)
recollectNodeTree(dom, true);
}
}
var fc = out.firstChild,
props = out[ATTR_KEY],
vchildren = vnode.children;
if (props == null) {
props = out[ATTR_KEY] = {};
for (var a = out.attributes, i = a.length; i--;) {
props[a[i].name] = a[i].value;
}
}
// Optimization: fast-path for elements containing a single TextNode:
if (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {
if (fc.nodeValue != vchildren[0]) {
fc.nodeValue = vchildren[0];
}
}
// otherwise, if there are existing or new children, diff them:
else if (vchildren && vchildren.length || fc != null) {
innerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null, store);
}
// Apply attributes/props from VNode to the DOM Element:
diffAttributes(out, vnode.attributes, props, store);
// restore previous SVG mode: (in case we're exiting an SVG namespace)
isSvgMode = prevSvgMode;
return out;
}
/**
* Apply child and attribute changes between a VNode and a DOM Node to the DOM.
* @param {import('../dom').PreactElement} dom Element whose children should be compared & mutated
* @param {Array<import('../vnode').VNode>} vchildren Array of VNodes to compare to `dom.childNodes`
* @param {object} context Implicitly descendant context object (from most
* recent `getChildContext()`)
* @param {boolean} mountAll Whether or not to immediately mount all components
* @param {boolean} isHydrating if `true`, consumes externally created elements
* similar to hydration
*/
function innerDiffNode(dom, vchildren, context, mountAll, isHydrating, store) {
var originalChildren = dom.childNodes,
children = [],
keyed = {},
keyedLen = 0,
min = 0,
len = originalChildren.length,
childrenLen = 0,
vlen = vchildren ? vchildren.length : 0,
j = void 0,
c = void 0,
f = void 0,
vchild = void 0,
child = void 0;
// Build up a map of keyed children and an Array of unkeyed children:
if (len !== 0) {
for (var i = 0; i < len; i++) {
var _child = originalChildren[i],
props = _child[ATTR_KEY],
key = vlen && props ? _child._component ? _child._component.__key : props.key : null;
if (key != null) {
keyedLen++;
keyed[key] = _child;
} else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {
children[childrenLen++] = _child;
}
}
}
if (vlen !== 0) {
for (var _i = 0; _i < vlen; _i++) {
vchild = vchildren[_i];
child = null;
// attempt to find a node based on key matching
var _key = vchild.key;
if (_key != null) {
if (keyedLen && keyed[_key] !== undefined) {
child = keyed[_key];
keyed[_key] = undefined;
keyedLen--;
}
}
// attempt to pluck a node of the same type from the existing children
else if (min < childrenLen) {
for (j = min; j < childrenLen; j++) {
if (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {
child = c;
children[j] = undefined;
if (j === childrenLen - 1) childrenLen--;
if (j === min) min++;
break;
}
}
}
// morph the matched/found/created DOM child to match vchild (deep)
child = idiff(child, vchild, context, mountAll, null, store);
f = originalChildren[_i];
if (child && child !== dom && child !== f) {
if (f == null) {
dom.appendChild(child);
} else if (child === f.nextSibling) {
removeNode(f);
} else {
dom.insertBefore(child, f);
}
}
}
}
// remove unused keyed children:
if (keyedLen) {
for (var _i2 in keyed) {
if (keyed[_i2] !== undefined) recollectNodeTree(keyed[_i2], false);
}
}
// remove orphaned unkeyed children:
while (min <= childrenLen) {
if ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);
}
}
/**
* Recursively recycle (or just unmount) a node and its descendants.
* @param {import('../dom').PreactElement} node DOM node to start
* unmount/removal from
* @param {boolean} [unmountOnly=false] If `true`, only triggers unmount
* lifecycle, skips removal
*/
function recollectNodeTree(node, unmountOnly) {
var component = node._component;
if (component) {
// if node is owned by a Component, unmount that component (ends up recursing back here)
unmountComponent(component);
} else {
// If the node's VNode had a ref function, invoke it with null here.
// (this is part of the React spec, and smart for unsetting references)
if (node[ATTR_KEY] != null) applyRef(node[ATTR_KEY].ref, null);
if (unmountOnly === false || node[ATTR_KEY] == null) {
removeNode(node);
}
removeChildren(node);
}
}
/**
* Recollect/unmount all children.
* - we use .lastChild here because it causes less reflow than .firstChild
* - it's also cheaper than accessing the .childNodes Live NodeList
*/
function removeChildren(node) {
node = node.lastChild;
while (node) {
var next = node.previousSibling;
recollectNodeTree(node, true);
node = next;
}
}
/**
* Apply differences in attributes from a VNode to the given DOM Element.
* @param {import('../dom').PreactElement} dom Element with attributes to diff `attrs` against
* @param {object} attrs The desired end-state key-value attribute pairs
* @param {object} old Current/previous attributes (from previous VNode or
* element's prop cache)
*/
function diffAttributes(dom, attrs, old, store) {
var name = void 0;
// remove attributes no longer present on the vnode by setting them to undefined
for (name in old) {
if (!(attrs && attrs[name] != null) && old[name] != null) {
setAccessor(dom, name, old[name], old[name] = undefined, isSvgMode, store);
}
}
// add new & update changed attributes
for (name in attrs) {
if (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {
setAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode, store);
}
}
}
/**
* Retains a pool of Components for re-use.
* @type {Component[]}
* @private
*/
var recyclerComponents = [];
/**
* Create a component. Normalizes differences between PFC's and classful
* Components.
* @param {function} Ctor The constructor of the component to create
* @param {object} props The initial props of the component
* @param {object} context The initial context of the component
* @returns {import('../component').Component}
*/
function createComponent(Ctor, props, context) {
var inst = void 0,
i = recyclerComponents.length;
if (Ctor.prototype && Ctor.prototype.render) {
inst = new Ctor(props, context);
Component.call(inst, props, context);
} else {
inst = new Component(props, context);
inst.constructor = Ctor;
inst.render = doRender;
if (Ctor.store) {
inst.store = Ctor.store(inst);
inst.store.update = inst.forceUpdate.bind(inst);
}
}
while (i--) {
if (recyclerComponents[i].constructor === Ctor) {
inst.nextBase = recyclerComponents[i].nextBase;
recyclerComponents.splice(i, 1);
return inst;
}
}
return inst;
}
/** The `.render()` method for a PFC backing instance. */
function doRender(props) {
return this.constructor(props, this.store);
}
/**
* Set a component's `props` and possibly re-render the component
* @param {import('../component').Component} component The Component to set props on
* @param {object} props The new props
* @param {number} renderMode Render options - specifies how to re-render the component
* @param {object} context The new context
* @param {boolean} mountAll Whether or not to immediately mount all components
*/
function setComponentProps(component, props, renderMode, context, mountAll) {
if (component._disable) return;
component._disable = true;
component.__ref = props.ref;
component.__key = props.key;
delete props.ref;
delete props.key;
if (typeof component.constructor.getDerivedStateFromProps === 'undefined') {
if (!component.base || mountAll) {
if (component.componentWillMount) component.componentWillMount();
} else if (component.componentWillReceiveProps) {
component.componentWillReceiveProps(props, context);
}
}
if (context && context !== component.context) {
if (!component.prevContext) component.prevContext = component.context;
component.context = context;
}
if (!component.prevProps) component.prevProps = component.props;
component.props = props;
component._disable = false;
if (renderMode !== NO_RENDER) {
if (renderMode === SYNC_RENDER || options.syncComponentUpdates !== false || !component.base) {
renderComponent(component, SYNC_RENDER, mountAll);
} else {
enqueueRender(component);
}
}
applyRef(component.__ref, component);
}
/**
* Render a Component, triggering necessary lifecycle events and taking
* High-Order Components into account.
* @param {import('../component').Component} component The component to render
* @param {number} [renderMode] render mode, see constants.js for available options.
* @param {boolean} [mountAll] Whether or not to immediately mount all components
* @param {boolean} [isChild] ?
* @private
*/
function renderComponent(component, renderMode, mountAll, isChild) {
if (component._disable) return;
var props = component.props,
state = component.state,
context = component.context,
previousProps = component.prevProps || props,
previousState = component.prevState || state,
previousContext = component.prevContext || context,
isUpdate = component.base,
nextBase = component.nextBase,
initialBase = isUpdate || nextBase,
initialChildComponent = component._component,
skip = false,
snapshot = previousContext,
rendered = void 0,
inst = void 0,
cbase = void 0;
if (component.constructor.getDerivedStateFromProps) {
state = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));
component.state = state;
}
// if updating
if (isUpdate) {
component.props = previousProps;
component.state = previousState;
component.context = previousContext;
if (renderMode !== FORCE_RENDER && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === false) {
skip = true;
} else if (component.componentWillUpdate) {
component.componentWillUpdate(props, state, context);
}
component.props = props;
component.state = state;
component.context = context;
}
component.prevProps = component.prevState = component.prevContext = component.nextBase = null;
component._dirty = false;
if (!skip) {
options.runTimeComponent = component;
rendered = component.render(props, state, context);
options.runTimeComponent = null;
// context to pass to the child, can be updated via (grand-)parent component
if (component.getChildContext) {
context = extend(extend({}, context), component.getChildContext());
}
if (isUpdate && component.getSnapshotBeforeUpdate) {
snapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);
}
var childComponent = rendered && rendered.nodeName,
toUnmount = void 0,
base = void 0;
if (typeof childComponent === 'function') {
// set up high order component link
var childProps = getNodeProps(rendered);
inst = initialChildComponent;
if (inst && inst.constructor === childComponent && childProps.key == inst.__key) {
setComponentProps(inst, childProps, SYNC_RENDER, context, false);
} else {
toUnmount = inst;
component._component = inst = createComponent(childComponent, childProps, context);
inst.nextBase = inst.nextBase || nextBase;
inst._parentComponent = component;
setComponentProps(inst, childProps, NO_RENDER, context, false);
renderComponent(inst, SYNC_RENDER, mountAll, true);
}
base = inst.base;
} else {
cbase = initialBase;
// destroy high order component link
toUnmount = initialChildComponent;
if (toUnmount) {
cbase = component._component = null;
}
if (initialBase || renderMode === SYNC_RENDER) {
if (cbase) cbase._component = null;
base = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true, component.store);
}
}
if (initialBase && base !== initialBase && inst !== initialChildComponent) {
var baseParent = initialBase.parentNode;
if (baseParent && base !== baseParent) {
baseParent.replaceChild(base, initialBase);
if (!toUnmount) {
initialBase._component = null;
recollectNodeTree(initialBase, false);
}
}
}
if (toUnmount) {
unmountComponent(toUnmount);
}
component.base = base;
if (base && !isChild) {
var componentRef = component,
t = component;
while (t = t._parentComponent) {
(componentRef = t).base = base;
}
base._component = componentRef;
base._componentConstructor = componentRef.constructor;
}
}
if (!isUpdate || mountAll) {
mounts.push(component);
} else if (!skip) {
// Ensure that pending componentDidMount() hooks of child components
// are called before the componentDidUpdate() hook in the parent.
// Note: disabled as it causes duplicate hooks, see https://github.com/developit/omis/issues/750
// flushMounts();
if (component.componentDidUpdate) {
component.componentDidUpdate(previousProps, previousState, snapshot);
}
if (options.afterUpdate) options.afterUpdate(component);
}
while (component._renderCallbacks.length) {
component._renderCallbacks.pop().call(component);
}if (!diffLevel && !isChild) flushMounts();
}
/**
* Apply the Component referenced by a VNode to the DOM.
* @param {import('../dom').PreactElement} dom The DOM node to mutate
* @param {import('../vnode').VNode} vnode A Component-referencing VNode
* @param {object} context The current context
* @param {boolean} mountAll Whether or not to immediately mount all components
* @returns {import('../dom').PreactElement} The created/mutated element
* @private
*/
function buildComponentFromVNode(dom, vnode, context, mountAll) {
var c = dom && dom._component,
originalComponent = c,
oldDom = dom,
isDirectOwner = c && dom._componentConstructor === vnode.nodeName,
isOwner = isDirectOwner,
props = getNodeProps(vnode);
while (c && !isOwner && (c = c._parentComponent)) {
isOwner = c.constructor === vnode.nodeName;
}
if (c && isOwner && (!mountAll || c._component)) {
setComponentProps(c, props, ASYNC_RENDER, context, mountAll);
dom = c.base;
} else {
if (originalComponent && !isDirectOwner) {
unmountComponent(originalComponent);
dom = oldDom = null;
}
c = createComponent(vnode.nodeName, props, context);
if (dom && !c.nextBase) {
c.nextBase = dom;
// passing dom/oldDom as nextBase will recycle it if unused, so bypass recycling on L229:
oldDom = null;
}
setComponentProps(c, props, SYNC_RENDER, context, mountAll);
dom = c.base;
if (oldDom && dom !== oldDom) {
oldDom._component = null;
recollectNodeTree(oldDom, false);
}
}
return dom;
}
/**
* Remove a component from the DOM and recycle it.
* @param {import('../component').Component} component The Component instance to unmount
* @private
*/
function unmountComponent(component) {
if (options.beforeUnmount) options.beforeUnmount(component);
var base = component.base;
component._disable = true;
if (component.componentWillUnmount) component.componentWillUnmount();
component.base = null;
// recursively tear down & recollect high-order component children:
var inner = component._component;
if (inner) {
unmountComponent(inner);
} else if (base) {
if (base[ATTR_KEY] != null) applyRef(base[ATTR_KEY].ref, null);
component.nextBase = base;
removeNode(base);
recyclerComponents.push(component);
removeChildren(base);
}
applyRef(component.__ref, null);
}
/**
* Base Component class.
* Provides `setState()` and `forceUpdate()`, which trigger rendering.
* @typedef {object} Component
* @param {object} props The initial component props
* @param {object} context The initial context from parent components' getChildContext
* @public
*
* @example
* class MyFoo extends Component {
* render(props, state) {
* return <div />;
* }
* }
*/
var id = 0;
function Component(props, context) {
this._dirty = true;
this.elementId = id++;
/**
* @public
* @type {object}
*/
this.context = context;
/**
* @public
* @type {object}
*/
this.props = props;
/**
* @public
* @type {object}
*/
this.state = this.state || {};
this._renderCallbacks = [];
}
extend(Component.prototype, {
/**
* Update component state and schedule a re-render.
* @param {object} state A dict of state properties to be shallowly merged
* into the current state, or a function that will produce such a dict. The
* function is called with the current state and props.
* @param {() => void} callback A function to be called once component state is
* updated
*/
setState: function setState(state, callback) {
if (!this.prevState) this.prevState = this.state;
this.state = extend(extend({}, this.state), typeof state === 'function' ? state(this.state, this.props) : state);
if (callback) this._renderCallbacks.push(callback);
enqueueRender(this);
},
/**
* Immediately perform a synchronous re-render of the component.
* @param {() => void} callback A function to be called after component is
* re-rendered.
* @private
*/
forceUpdate: function forceUpdate(callback) {
if (callback) this._renderCallbacks.push(callback);
renderComponent(this, FORCE_RENDER);
},
/**
* Accepts `props` and `state`, and returns a new Virtual DOM tree to build.
* Virtual DOM is generally constructed via [JSX](http://jasonformat.com/wtf-is-jsx).
* @param {object} props Props (eg: JSX attributes) received from parent
* element/component
* @param {object} state The component's current state
* @param {object} context Context object, as returned by the nearest
* ancestor's `getChildContext()`
* @returns {import('./vnode').VNode | void}
*/
render: function render() {}
});
/**
* Render JSX into a `parent` Element.
* @param {import('./vnode').VNode} vnode A (JSX) VNode to render
* @param {import('./dom').PreactElement} parent DOM element to render into
* @param {import('./dom').PreactElement} [merge] Attempt to re-use an existing DOM tree rooted at
* `merge`
* @public
*
* @example
* // render a div into <body>:
* render(<div id="hello">hello!</div>, document.body);
*
* @example
* // render a "Thing" component into #foo:
* const Thing = ({ name }) => <span>{ name }</span>;
* render(<Thing name="one" />, document.querySelector('#foo'));
*/
function render(vnode, parent, merge) {
return diff(merge, vnode, {}, false, typeof parent === 'string' ? document.querySelector(parent) : parent, false);
}
function createRef() {
return {};
}
if (typeof window !== 'undefined') {
window.Omis = {
h: h,
createElement: h,
cloneElement: cloneElement,
createRef: createRef,
Component: Component,
render: render,
rerender: rerender,
options: options
};
}
var HelloMessage = function HelloMessage(props) {
return h('div', {}, props.name);
};
HelloMessage.css = 'div{\n\tcolor: red;\n}';
var App = function App(props) {
return h('div', {}, [props.name, h(HelloMessage, { name: 'Child Yellow', css: 'div{color: yellow !important;}' })]);
};
App.css = 'div{\n\tcolor: green;\n}';
render(Omis.h(App, { name: 'Parent Green' }), 'body');
}());
//# sourceMappingURL=b.js.map
| 32.565391 | 187 | 0.658325 |
bbb95d2bb1f376ab02dd4b3757ed7576b6da84b2 | 2,223 | js | JavaScript | docs/member-search-index.js | datahop/p2p-connection-wifidirect | 0c6e61cfa54fa38a2c23fa3daa00350c2b2f3edf | [
"Apache-2.0"
] | 1 | 2021-06-03T13:24:01.000Z | 2021-06-03T13:24:01.000Z | docs/member-search-index.js | datahop/p2p-connection-wifidirect | 0c6e61cfa54fa38a2c23fa3daa00350c2b2f3edf | [
"Apache-2.0"
] | null | null | null | docs/member-search-index.js | datahop/p2p-connection-wifidirect | 0c6e61cfa54fa38a2c23fa3daa00350c2b2f3edf | [
"Apache-2.0"
] | null | null | null | memberSearchIndex = [{"p":"network.datahop.wifidirect","c":"WifiLink","l":"ConectionStateConnected"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"ConectionStateConnecting"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"ConectionStateDisconnected"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"ConectionStateNONE"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"ConectionStatePreConnecting"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"connect(String, String, String)","url":"connect(java.lang.String,java.lang.String,java.lang.String)"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"connect(String, String)","url":"connect(java.lang.String,java.lang.String)"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"disconnect()"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"getInstance(Context)","url":"getInstance(android.content.Context)"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"getInstance(Context)","url":"getInstance(android.content.Context)"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"onChannelDisconnected()"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"onConnectionInfoAvailable(WifiP2pInfo)","url":"onConnectionInfoAvailable(android.net.wifi.p2p.WifiP2pInfo)"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"onGroupInfoAvailable(WifiP2pGroup)","url":"onGroupInfoAvailable(android.net.wifi.p2p.WifiP2pGroup)"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"setNotifier(WifiConnectionNotifier)","url":"setNotifier(datahop.WifiConnectionNotifier)"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"setNotifier(WifiHotspotNotifier)","url":"setNotifier(datahop.WifiHotspotNotifier)"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"start()"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"stop()"},{"p":"network.datahop.wifidirect","c":"WifiDirectHotSpot","l":"TAG"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"TAG"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"wifiConnectionWaitingTime"},{"p":"network.datahop.wifidirect","c":"WifiLink","l":"WifiLink(Context)","url":"%3Cinit%3E(android.content.Context)"}] | 2,223 | 2,223 | 0.729645 |
bbb9d5cf319a8136bec1678f894193b690e44ecb | 6,850 | js | JavaScript | app/assets/javascripts/vendor/jquery-ui-widget.js | jeremyf/sipity | 7bbd6bae59bbe688a58c73193873022cee680d35 | [
"Apache-2.0"
] | 17 | 2015-03-05T22:16:14.000Z | 2021-03-23T16:34:51.000Z | app/assets/javascripts/vendor/jquery-ui-widget.js | jeremyf/sipity | 7bbd6bae59bbe688a58c73193873022cee680d35 | [
"Apache-2.0"
] | 561 | 2015-01-06T20:43:30.000Z | 2022-01-11T15:19:23.000Z | app/assets/javascripts/vendor/jquery-ui-widget.js | jeremyf/sipity | 7bbd6bae59bbe688a58c73193873022cee680d35 | [
"Apache-2.0"
] | 5 | 2015-03-09T13:51:56.000Z | 2019-07-02T18:47:44.000Z | /*! jQuery UI - v1.11.3 - 2015-02-27
* http://jqueryui.com
* Includes: widget.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var t=0,i=Array.prototype.slice;e.cleanData=function(t){return function(i){var s,n,a;for(a=0;null!=(n=i[a]);a++)try{s=e._data(n,"events"),s&&s.remove&&e(n).triggerHandler("remove")}catch(o){}t(i)}}(e.cleanData),e.widget=function(t,i,s){var n,a,o,r,h={},l=t.split(".")[0];return t=t.split(".")[1],n=l+"-"+t,s||(s=i,i=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[l]=e[l]||{},a=e[l][t],o=e[l][t]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new o(e,t)},e.extend(o,a,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),r=new i,r.options=e.widget.extend({},r.options),e.each(s,function(t,s){return e.isFunction(s)?(h[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},n=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=n,t=s.apply(this,arguments),this._super=i,this._superApply=a,t}}(),void 0):(h[t]=s,void 0)}),o.prototype=e.widget.extend(r,{widgetEventPrefix:a?r.widgetEventPrefix||t:t},h,{constructor:o,namespace:l,widgetName:t,widgetFullName:n}),a?(e.each(a._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete a._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var s,n,a=i.call(arguments,1),o=0,r=a.length;r>o;o++)for(s in a[o])n=a[o][s],a[o].hasOwnProperty(s)&&void 0!==n&&(t[s]=e.isPlainObject(n)?e.isPlainObject(t[s])?e.widget.extend({},t[s],n):e.widget.extend({},n):n);return t},e.widget.bridge=function(t,s){var n=s.prototype.widgetFullName||t;e.fn[t]=function(a){var o="string"==typeof a,r=i.call(arguments,1),h=this;return o?this.each(function(){var i,s=e.data(this,n);return"instance"===a?(h=s,!1):s?e.isFunction(s[a])&&"_"!==a.charAt(0)?(i=s[a].apply(s,r),i!==s&&void 0!==i?(h=i&&i.jquery?h.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+a+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; "+"attempted to call method '"+a+"'")}):(r.length&&(a=e.widget.extend.apply(null,[a].concat(r))),this.each(function(){var t=e.data(this,n);t?(t.option(a||{}),t._init&&t._init()):e.data(this,n,new s(a,this))})),h}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(i,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var s,n,a,o=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(o={},s=t.split("."),t=s.shift(),s.length){for(n=o[t]=e.widget.extend({},this.options[t]),a=0;s.length-1>a;a++)n[s[a]]=n[s[a]]||{},n=n[s[a]];if(t=s.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=i}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,s){var n,a=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=n=e(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),e.each(s,function(s,o){function r(){return t||a.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(r.guid=o.guid=o.guid||r.guid||e.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+a.eventNamespace,u=h[2];u?n.delegate(u,l,r):i.bind(l,r)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(i).undelegate(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,o=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(o)&&o.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var o,r=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),o=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),o&&e.effects&&e.effects.effect[r]?s[t](n):r!==t&&s[r]?s[r](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}}),e.widget}); | 1,141.666667 | 6,693 | 0.705401 |
bbba608003d798f6e14a50b2f080eba2b4853bc3 | 3,499 | js | JavaScript | lesson/lesson-35/node_modules/_cookie-encrypter@0.2.3@cookie-encrypter/index.js | lijianfeigeek/nodejs-learn | 0530bd6b8d0b0cd91acf6e1c67c59b54a73ecfd6 | [
"MIT"
] | null | null | null | lesson/lesson-35/node_modules/_cookie-encrypter@0.2.3@cookie-encrypter/index.js | lijianfeigeek/nodejs-learn | 0530bd6b8d0b0cd91acf6e1c67c59b54a73ecfd6 | [
"MIT"
] | null | null | null | lesson/lesson-35/node_modules/_cookie-encrypter@0.2.3@cookie-encrypter/index.js | lijianfeigeek/nodejs-learn | 0530bd6b8d0b0cd91acf6e1c67c59b54a73ecfd6 | [
"MIT"
] | null | null | null | var crypto = require('crypto');
var util = require('util');
var defaultAlgorithm = 'aes256';
module.exports = cookieEncrypter;
module.exports.encryptCookie = encryptCookie;
module.exports.decryptCookie = decryptCookie;
/**
* Encrypt cookie string
*
* @param {String} str Cookie string
* @param {Object} options
* @param {Object} options.algorithm Algorithm to use to encrypt data
* @param {Object} options.key Key to use to encrypt data
*
* @return {String}
*/
function encryptCookie(str, options) {
if (!options.key) {
throw new TypeError('options.key argument is required to encryptCookie');
}
var cipher = crypto.createCipher(options.algorithm || defaultAlgorithm, options.key);
var encrypted = cipher.update(str, 'utf8', 'hex') + cipher.final('hex');
return encrypted;
}
/**
* Decrypt cookie string
*
* @param {String} str Cookie string
* @param {Object} options
* @param {Object} options.algorithm Algorithm to use to decrypt data
* @param {Object} options.key Key to use to decrypt data
*
* @return {String}
*/
function decryptCookie(str, options) {
var decipher = crypto.createDecipher(options.algorithm || defaultAlgorithm, options.key);
var decrypted = decipher.update(str, 'hex', 'utf8') + decipher.final('utf8');
return decrypted;
}
/**
* Decrypt cookies coming from req.cookies
*
* @param {Object} obj req.cookies
* @param {Object} options
* @param {String} options.algorithm Algorithm to use to decrypt data
* @param {String} options.key Key to use to decrypt data
*
* @return {Object}
*/
function decryptCookies(obj, options) {
var cookies = Object.keys(obj);
var key;
var val;
var i;
for (i = 0; i < cookies.length; i++) {
key = cookies[i];
if (typeof obj[key] !== 'string' || obj[key].substr(0, 2) !== 'e:') {
continue;
}
try {
val = decryptCookie(obj[key].slice(2), options);
} catch (error) {
continue;
}
if (val) {
obj[key] = JSONCookie(val);
}
}
return obj;
}
/**
* Parse JSON cookie string.
*
* @param {String} str
*
* @return {Object} Parsed object or undefined if not json cookie
*/
function JSONCookie(str) {
if (typeof str !== 'string' || str.substr(0, 2) !== 'j:') {
return str;
}
try {
return JSON.parse(str.slice(2));
} catch (err) {
return str;
}
}
/**
* @param {String} secret
* @param {Object} options
* @param {Object} options.algorithm - any algorithm supported by OpenSSL
*/
function cookieEncrypter(secret, _options) {
const defaultOptions = {
algorithm: 'aes256',
key: secret,
};
const options = typeof _options === 'object'
? util._extend(defaultOptions, _options)
: defaultOptions;
return function cookieEncrypter(req, res, next) {
var originalResCookie = res.cookie;
res.cookie = function (name, value, opt) {
if (typeof opt === 'object' && opt.plain) {
return originalResCookie.call(res, name, value, opt);
}
var val = typeof value === 'object'
? 'j:' + JSON.stringify(value)
: String(value);
try {
val = 'e:' + encryptCookie(val, options);
} catch (error) {}
return originalResCookie.call(res, name, val, opt);
};
if (req.cookies) {
req.cookies = decryptCookies(req.cookies, options);
}
if (req.signedCookies) {
req.signedCookies = decryptCookies(req.signedCookies, options);
}
next();
};
}
| 23.483221 | 91 | 0.629323 |
bbbbc1fb237f2dbfbfef2053065e8b3c6069617e | 97 | js | JavaScript | server/src/services/tags/tags.class.js | TheAbbay/vima | 0512ab43508236c8ebf11f30af2acf6a26ea74d6 | [
"MIT"
] | null | null | null | server/src/services/tags/tags.class.js | TheAbbay/vima | 0512ab43508236c8ebf11f30af2acf6a26ea74d6 | [
"MIT"
] | null | null | null | server/src/services/tags/tags.class.js | TheAbbay/vima | 0512ab43508236c8ebf11f30af2acf6a26ea74d6 | [
"MIT"
] | 1 | 2022-02-03T16:01:29.000Z | 2022-02-03T16:01:29.000Z | const { Service } = require('feathers-mongoose')
exports.Tags = class Tags extends Service {
}
| 16.166667 | 48 | 0.71134 |
bbbc90b23b70972766277d0d3144d2a8fb051a19 | 175 | js | JavaScript | dist/components/transform/IsRootTransform.js | Mattykins/phaser-1 | d8b6aada4d74d913496f7b8b3fef175d8b7de5d6 | [
"MIT"
] | 235 | 2020-04-14T14:51:51.000Z | 2022-03-31T09:17:36.000Z | dist/components/transform/IsRootTransform.js | Mattykins/phaser-1 | d8b6aada4d74d913496f7b8b3fef175d8b7de5d6 | [
"MIT"
] | 19 | 2020-04-18T06:28:18.000Z | 2021-11-12T23:43:43.000Z | dist/components/transform/IsRootTransform.js | Mattykins/phaser-1 | d8b6aada4d74d913496f7b8b3fef175d8b7de5d6 | [
"MIT"
] | 25 | 2020-04-18T08:44:16.000Z | 2022-02-24T00:49:48.000Z | import { TRANSFORM, Transform2DComponent } from "./Transform2DComponent";
export function IsRootTransform(id) {
return !!Transform2DComponent.data[id][TRANSFORM.IS_ROOT];
}
| 35 | 73 | 0.788571 |
bbbd00dd2a0470641e439dc9a9607b286a013d57 | 4,809 | js | JavaScript | test/test.js | Richienb/is-valid-hostname | a375657352475b03fbd118e3b46029aca952d816 | [
"MIT"
] | null | null | null | test/test.js | Richienb/is-valid-hostname | a375657352475b03fbd118e3b46029aca952d816 | [
"MIT"
] | null | null | null | test/test.js | Richienb/is-valid-hostname | a375657352475b03fbd118e3b46029aca952d816 | [
"MIT"
] | null | null | null | var test = require('tape')
var isValidHostname = require('../')
test('is valid hostname', function (t) {
t.plan(85)
// tld and subdomains
t.equal(isValidHostname('example.com'), true)
t.equal(isValidHostname('foo.example.com'), true)
t.equal(isValidHostname('bar.foo.example.com'), true)
t.equal(isValidHostname('exa-mple.co.uk'), true)
t.equal(isValidHostname('a.com'), true)
t.equal(isValidHostname('a.b'), true)
t.equal(isValidHostname('foo.bar.baz'), true)
t.equal(isValidHostname('foo-bar.ba-z.qux'), true)
t.equal(isValidHostname('hello.world'), true)
t.equal(isValidHostname('ex-am-ple.com'), true)
t.equal(isValidHostname('xn--80ak6aa92e.com'), true)
t.equal(isValidHostname('example.a9'), true)
t.equal(isValidHostname('example.9a'), true)
t.equal(isValidHostname('example.99'), true)
t.equal(isValidHostname('4chan.com'), true)
t.equal(isValidHostname('9gag.com'), true)
t.equal(isValidHostname('37signals.com'), true)
t.equal(isValidHostname('hello.world'), true)
// invalid tld and subdomains
t.equal(isValidHostname('exa_mple.com'), false)
t.equal(isValidHostname(''), false)
t.equal(isValidHostname('ex*mple.com'), false)
t.equal(isValidHostname('@#$@#$%fd'), false)
t.equal(isValidHostname('_example.com'), false)
t.equal(isValidHostname('-example.com'), false)
t.equal(isValidHostname('foo._example.com'), false)
t.equal(isValidHostname('foo.-example.com'), false)
t.equal(isValidHostname('foo.example-.co.uk'), false)
t.equal(isValidHostname('example-.com'), false)
t.equal(isValidHostname('example_.com'), false)
t.equal(isValidHostname('foo.example-.com'), false)
t.equal(isValidHostname('foo.example_.com'), false)
t.equal(isValidHostname('example.com-'), false)
t.equal(isValidHostname('example.com_'), false)
t.equal(isValidHostname('-foo.example.com_'), false)
t.equal(isValidHostname('_foo.example.com_'), false)
t.equal(isValidHostname('*.com_'), false)
t.equal(isValidHostname('*.*.com_'), false)
// more subdomains
t.equal(isValidHostname('example.com'), true)
t.equal(isValidHostname('example.co.uk'), true)
t.equal(isValidHostname('-foo.example.com'), false)
t.equal(isValidHostname('foo-.example.com'), false)
t.equal(isValidHostname('-foo-.example.com'), false)
t.equal(isValidHostname('foo-.bar.example.com'), false)
t.equal(isValidHostname('-foo.bar.example.com'), false)
t.equal(isValidHostname('-foo-.bar.example.com'), false)
// wildcard
t.equal(isValidHostname('*.example.com'), false)
// hostnames can't have underscores
t.equal(isValidHostname('_dnslink.ipfs.io'), false)
t.equal(isValidHostname('xn--_eamop-.donata.com'), false)
// punycode
t.equal(isValidHostname('xn--6qq79v.xn--fiqz9s'), true)
t.equal(isValidHostname('xn--ber-goa.com'), true)
// valid labels
t.equal(isValidHostname('localhost'), true)
t.equal(isValidHostname('example'), true)
t.equal(isValidHostname('exa-mple'), true)
t.equal(isValidHostname('3434'), true)
t.equal(isValidHostname('bar.q-ux'), true)
t.equal(isValidHostname('a'.repeat(63)), true)
// valid length
t.equal(isValidHostname(`${'a'.repeat(63)}.${'b'.repeat(63)}.${'c'.repeat(63)}.${'c'.repeat(61)}`), true)
t.equal(isValidHostname(`${'a'.repeat(63)}.${'b'.repeat(63)}.${'c'.repeat(63)}.${'c'.repeat(61)}.`), true)
t.equal(isValidHostname(`${'a'.repeat(63)}.${'b'.repeat(63)}.${'c'.repeat(63)}.${'c'.repeat(62)}`), false)
// invalid labels
t.equal(isValidHostname("127.0.0.1"), false)
t.equal(isValidHostname("127.0.0.1:3000"), false)
t.equal(isValidHostname("example.com:3000"), false)
t.equal(isValidHostname("localhost:3000"), false)
t.equal(isValidHostname('example..comw'), false)
t.equal(isValidHostname('a'.repeat(64)), false)
t.equal(isValidHostname('-exa-mple'), false)
t.equal(isValidHostname('-exa-mple-'), false)
t.equal(isValidHostname('exa-mple-'), false)
t.equal(isValidHostname('example-'), false)
t.equal(isValidHostname('.'), false)
t.equal(isValidHostname('..'), false)
t.equal(isValidHostname('example..'), false)
t.equal(isValidHostname('..example'), false)
t.equal(isValidHostname('.example'), false)
// contains em-dash
t.equal(isValidHostname('xn–pple-43d.com'), false)
// invalid types
t.equal(isValidHostname(3434), false)
t.equal(isValidHostname({}), false)
t.equal(isValidHostname(function () { }), false)
// invalid values
t.equal(isValidHostname('foo.example.com*'), false)
t.equal(isValidHostname(`google.com"\'\"\""\\"\\'test test`), false)
t.equal(isValidHostname(`google.com.au'"\'\"\""\\"\\'test`), false)
t.equal(isValidHostname('...'), false)
t.equal(isValidHostname('.example.'), false)
t.equal(isValidHostname('.example.com'), false)
t.equal(isValidHostname('"example.com"'), false)
})
| 41.456897 | 108 | 0.692244 |
bbbd9e4b51e10a2af2f2ffc958b649dcfc5edd33 | 239 | js | JavaScript | client/src/util/index.js | jondwoo/pf-visualizer | 5f2ae911fee7d09c906662e2562da9664fba4804 | [
"Unlicense",
"MIT"
] | null | null | null | client/src/util/index.js | jondwoo/pf-visualizer | 5f2ae911fee7d09c906662e2562da9664fba4804 | [
"Unlicense",
"MIT"
] | null | null | null | client/src/util/index.js | jondwoo/pf-visualizer | 5f2ae911fee7d09c906662e2562da9664fba4804 | [
"Unlicense",
"MIT"
] | null | null | null | export const fixDecimals = (data) => {
let x = 0;
let len = data.length;
while (x < len) {
data[x] = data[x].toFixed(2);
x++;
}
return data;
};
export const sortDesc = (data) => {
return data.sort((a, b) => b - a);
};
| 17.071429 | 38 | 0.527197 |
bbbda96cc6d9fe798a387f75179bbce0914f4c60 | 2,446 | js | JavaScript | src/components/Forms.js | akash027/catalystblog | d9d48be05374cbab14617d8f14ca6ffc2e1d95f9 | [
"MIT"
] | null | null | null | src/components/Forms.js | akash027/catalystblog | d9d48be05374cbab14617d8f14ca6ffc2e1d95f9 | [
"MIT"
] | null | null | null | src/components/Forms.js | akash027/catalystblog | d9d48be05374cbab14617d8f14ca6ffc2e1d95f9 | [
"MIT"
] | null | null | null |
import React, { useState } from "react";
import moment from "moment-timezone";
import Datetime from "react-datetime";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCalendarAlt } from '@fortawesome/free-solid-svg-icons';
import { Col, Row, Card, Form, Button, InputGroup } from '@themesberg/react-bootstrap';
export const GeneralInfoForm = () => {
const [birthday, setBirthday] = useState("");
return (
<Card border="light" className="bg-white shadow-sm mb-4">
<Card.Body>
<h5 className="mb-4">Add Post</h5>
<Form>
<Row>
<Col md={6} className="mb-3">
<Form.Group id="firstName">
<Form.Label>Post Title</Form.Label>
<Form.Control required type="text" placeholder="Enter your first name" />
</Form.Group>
</Col>
<Col md={6} className="mb-3">
<Form.Group id="gender">
<Form.Label>Select Category</Form.Label>
<Form.Select defaultValue="0">
<option value="0">Travel</option>
<option value="1">Sports</option>
<option value="2">Tech</option>
</Form.Select>
</Form.Group>
</Col>
</Row>
<Row className="align-items-center">
<Col md={6} className="mb-3">
<Form.Group id="gender">
<Form.Label>Post Type</Form.Label>
<Form.Select defaultValue="0">
<option value="0">Published</option>
<option value="1">Draft</option>
</Form.Select>
</Form.Group>
</Col>
<Col md={6} className="mb-3">
<Form.Group id="emal">
<Form.Label>Posted By</Form.Label>
<Form.Control required type="text" disabled={true} placeholder="Joe" />
</Form.Group>
</Col>
</Row>
<Row>
<Col md={12} className="mb-3">
<Form.Group id="emal">
<Form.Label>Post Description</Form.Label>
<Form.Control required type="text" />
</Form.Group>
</Col>
</Row>
<div className="mt-3" >
<Button variant="primary" type="submit">Add Post</Button>
</div>
</Form>
</Card.Body>
</Card>
);
};
| 33.506849 | 89 | 0.497956 |
bbbde327033ef9bf809e903addba6edc46fe86e8 | 24,258 | js | JavaScript | test/e2e/contract-test/contract.js | zctocm/conflux-portal | ea7184dbf27125706b31a2808256464c1a2c39a5 | [
"MIT"
] | null | null | null | test/e2e/contract-test/contract.js | zctocm/conflux-portal | ea7184dbf27125706b31a2808256464c1a2c39a5 | [
"MIT"
] | null | null | null | test/e2e/contract-test/contract.js | zctocm/conflux-portal | ea7184dbf27125706b31a2808256464c1a2c39a5 | [
"MIT"
] | null | null | null | /*global confluxJS, conflux, ConfluxPortalOnboarding,
HumanStandardTokenContractCode, PiggyBankContractCode, keccak256,
cfxBalanceTrackerBytecode */
/*
The `piggybankContract` is compiled from:
pragma solidity ^0.4.0;
contract PiggyBank {
uint private balance;
address public owner;
function PiggyBank() public {
owner = msg.sender;
balance = 0;
}
function deposit() public payable returns (uint) {
balance += msg.value;
return balance;
}
function withdraw(uint withdrawAmount) public returns (uint remainingBal) {
require(msg.sender == owner);
balance -= withdrawAmount;
msg.sender.transfer(withdrawAmount);
return balance;
}
}
*/
const forwarderOrigin = 'http://localhost:9010'
const isConfluxPortalInstalled = () => {
return Boolean(window.conflux && window.conflux.isConfluxPortal)
}
const initialize = () => {
const onboardButton = document.getElementById('connectButton')
const deployButton = document.getElementById('deployButton')
const depositButton = document.getElementById('depositButton')
const withdrawButton = document.getElementById('withdrawButton')
const sendButton = document.getElementById('sendButton')
const createToken = document.getElementById('createToken')
const createBalanceTracker = document.getElementById('createBalanceTracker')
createBalanceTracker.style.display = 'none'
const transferTokens = document.getElementById('transferTokens')
const approveTokens = document.getElementById('approveTokens')
const transferTokensWithoutGas = document.getElementById(
'transferTokensWithoutGas'
)
const approveTokensWithoutGas = document.getElementById(
'approveTokensWithoutGas'
)
const personalSignData = document.getElementById('personalSignData')
const personalSignDataResults = document.getElementById(
'personalSignDataResult'
)
const signTypedData = document.getElementById('signTypedData')
const signTypedDataResults = document.getElementById('signTypedDataResult')
const sendSignedTypedData = document.getElementById('sendSignedTypedData')
const sendSignedTypedDataResult = document.getElementById(
'sendSignedTypedDataResult'
)
const cfxSignData = document.getElementById('cfxSignData')
const cfxSignDataResults = document.getElementById('cfxSignDataResult')
const getAccountsButton = document.getElementById('getAccounts')
const getAccountsResults = document.getElementById('getAccountsResult')
const contractStatus = document.getElementById('contractStatus')
const tokenAddress = document.getElementById('tokenAddress')
const networkDiv = document.getElementById('network')
const chainIdDiv = document.getElementById('chainId')
const accountsDiv = document.getElementById('accounts')
let onboarding
try {
// https://github.com/yqrashawn/conflux-portal-onboarding/blob/master/src/index.js
onboarding = new ConfluxPortalOnboarding({ forwarderOrigin })
} catch (error) {
console.error(error)
}
let accounts
let piggybankContract
const accountButtons = [
deployButton,
depositButton,
withdrawButton,
sendButton,
createToken,
transferTokens,
approveTokens,
transferTokensWithoutGas,
approveTokensWithoutGas,
personalSignData,
signTypedData,
cfxSignData,
]
const isConfluxPortalConnected = () => accounts && accounts.length > 0
const onClickInstall = () => {
onboardButton.innerText = 'Onboarding in progress'
onboardButton.disabled = true
// https://github.com/yqrashawn/conflux-portal-onboarding/blob/master/src/index.js#L109
onboarding.startOnboarding()
}
const onClickConnect = async () => {
await window.conflux.enable()
}
const updateButtons = () => {
const accountButtonsDisabled =
!isConfluxPortalInstalled() || !isConfluxPortalConnected()
if (accountButtonsDisabled) {
for (const button of accountButtons) {
button.disabled = true
}
} else {
deployButton.disabled = false
sendButton.disabled = false
createToken.disabled = false
personalSignData.disabled = false
cfxSignData.disabled = false
signTypedData.disabled = false
}
if (!isConfluxPortalInstalled()) {
onboardButton.innerText = 'Click here to install ConfluxPortal!'
onboardButton.onclick = onClickInstall
onboardButton.disabled = false
} else if (isConfluxPortalConnected()) {
onboardButton.innerText = 'Connected'
onboardButton.disabled = true
if (onboarding) {
onboarding.stopOnboarding()
}
} else {
onboardButton.innerText = 'Connect'
onboardButton.onclick = onClickConnect
onboardButton.disabled = false
}
}
const initializeAccountButtons = () => {
piggybankContract = confluxJS.Contract({
abi: [
{
constant: false,
inputs: [{ name: 'withdrawAmount', type: 'uint256' }],
name: 'withdraw',
outputs: [{ name: 'remainingBal', type: 'uint256' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'owner',
outputs: [{ name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'deposit',
outputs: [{ name: '', type: 'uint256' }],
payable: true,
stateMutability: 'payable',
type: 'function',
},
{
inputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor',
},
],
bytecode: PiggyBankContractCode,
})
deployButton.onclick = async () => {
contractStatus.innerHTML = 'Deploying'
const piggybank = await piggybankContract
.constructor()
.sendTransaction({
from: accounts[0],
gasPrice: 10000000000,
})
.confirmed()
.catch((error) => {
contractStatus.innerHTML = 'Deployment Failed'
throw error
})
if (piggybank.contractCreated === undefined) {
return
}
piggybankContract.address = piggybank.contractCreated
console.log(
'Contract mined! address: ' +
piggybank.address +
' transactionHash: ' +
piggybank.transactionHash
)
depositButton.onclick = async () => {
contractStatus.innerHTML = 'Deposit initiated'
const depositResult = await piggybankContract
.deposit()
.sendTransaction({
value: '0x3782dace9d900000',
from: accounts[0],
gasPrice: 10000000000,
})
.confirmed()
console.log(depositResult)
contractStatus.innerHTML = 'Deposit completed'
}
withdrawButton.onclick = async () => {
const withdrawResult = await piggybankContract
.withdraw('0xde0b6b3a7640000')
.sendTransaction({
from: accounts[0],
gas: 600000,
storageLimit: 0,
gasPrice: 10000000000,
})
.confirmed()
console.log(withdrawResult)
contractStatus.innerHTML = 'Withdrawn'
}
contractStatus.innerHTML = 'Deployed'
depositButton.disabled = false
withdrawButton.disabled = false
console.log(piggybank)
}
sendButton.onclick = async () => {
const txResult = await confluxJS
.sendTransaction({
from: accounts[0],
to: accounts[0],
value: '0x29a2241af62c0000',
gasPrice: 10000000000,
})
.confirmed()
console.log(txResult)
}
createBalanceTracker.onclick = async () => {
const balanceTrackerContract = confluxJS.Contract({
abi: [
{
constant: true,
inputs: [
{
name: 'user',
type: 'address',
},
{
name: 'token',
type: 'address',
},
],
name: 'tokenBalance',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: 'users',
type: 'address[]',
},
{
name: 'tokens',
type: 'address[]',
},
],
name: 'balances',
outputs: [
{
name: '',
type: 'uint256[]',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
payable: true,
stateMutability: 'payable',
type: 'fallback',
},
],
bytecode: cfxBalanceTrackerBytecode,
})
const balanceTracker = await balanceTrackerContract
.constructor()
.sendTransaction({
from: accounts[0],
storageLimit: 5000,
gasPrice: 10000000000,
})
.confirmed()
.catch((error) => {
throw error
})
console.log('balanceTracker = ', balanceTracker.contractCreated)
}
createToken.onclick = async () => {
const _initialAmount = 100
const _tokenName = 'TST'
const _decimalUnits = 0
const _tokenSymbol = 'TST'
const humanstandardtokenContract = confluxJS.Contract({
abi: [
{
constant: true,
inputs: [],
name: 'name',
outputs: [{ name: '', type: 'string' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{ name: '_spender', type: 'address' },
{ name: '_value', type: 'uint256' },
],
name: 'approve',
outputs: [{ name: 'success', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{ name: '_from', type: 'address' },
{ name: '_to', type: 'address' },
{ name: '_value', type: 'uint256' },
],
name: 'transferFrom',
outputs: [{ name: 'success', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'decimals',
outputs: [{ name: '', type: 'uint8' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'version',
outputs: [{ name: '', type: 'string' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ name: '_owner', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: 'balance', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'symbol',
outputs: [{ name: '', type: 'string' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{ name: '_to', type: 'address' },
{ name: '_value', type: 'uint256' },
],
name: 'transfer',
outputs: [{ name: 'success', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ name: '_spender', type: 'address' },
{ name: '_value', type: 'uint256' },
{ name: '_extraData', type: 'bytes' },
],
name: 'approveAndCall',
outputs: [{ name: 'success', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{ name: '_owner', type: 'address' },
{ name: '_spender', type: 'address' },
],
name: 'allowance',
outputs: [{ name: 'remaining', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ name: '_initialAmount', type: 'uint256' },
{ name: '_tokenName', type: 'string' },
{ name: '_decimalUnits', type: 'uint8' },
{ name: '_tokenSymbol', type: 'string' },
],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor',
},
{ payable: false, stateMutability: 'nonpayable', type: 'fallback' },
{
anonymous: false,
inputs: [
{ indexed: true, name: '_from', type: 'address' },
{ indexed: true, name: '_to', type: 'address' },
{ indexed: false, name: '_value', type: 'uint256' },
],
name: 'Transfer',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, name: '_owner', type: 'address' },
{ indexed: true, name: '_spender', type: 'address' },
{ indexed: false, name: '_value', type: 'uint256' },
],
name: 'Approval',
type: 'event',
},
],
bytecode: HumanStandardTokenContractCode,
})
const humanstandardtoken = await humanstandardtokenContract
.constructor(_initialAmount, _tokenName, _decimalUnits, _tokenSymbol)
.sendTransaction({
from: accounts[0],
storageLimit: 5000,
gasPrice: 10000000000,
})
.confirmed()
.catch((error) => {
tokenAddress.innerHTML = 'Creation Failed'
throw error
})
if (humanstandardtoken.contractCreated === undefined) {
return
}
humanstandardtokenContract.address = humanstandardtoken.contractCreated
console.log(
'Contract mined! address: ' +
humanstandardtoken.contractCreated +
' transactionHash: ' +
humanstandardtoken.transactionHash
)
tokenAddress.innerHTML = humanstandardtoken.contractCreated
transferTokens.disabled = false
approveTokens.disabled = false
transferTokensWithoutGas.disabled = false
approveTokensWithoutGas.disabled = false
transferTokens.onclick = async (event) => {
console.log(`event`, event)
const transferResult = humanstandardtokenContract
.transfer('0x1f318C334780961FB129D2a6c30D0763d9a5C970', '15000')
.sendTransaction({
from: accounts[0],
to: humanstandardtokenContract.address,
gasPrice: 10000000000,
})
.confirmed()
console.log(transferResult)
}
approveTokens.onclick = async () => {
const approveResult = await humanstandardtokenContract
.approve('0x8bc5baF874d2DA8D216aE9f137804184EE5AfEF4', '70000')
.sendTransaction({
from: accounts[0],
to: humanstandardtokenContract.address,
gasPrice: 10000000000,
})
.confirmed()
console.log(approveResult)
}
transferTokensWithoutGas.onclick = async (event) => {
console.log(`event`, event)
const transferResult = await humanstandardtokenContract
.transfer('0x1f318C334780961FB129D2a6c30D0763d9a5C970', '15000')
.sendTransaction({
from: accounts[0],
to: humanstandardtokenContract.address,
gasPrice: 10000000000,
})
.confirmed()
console.log(transferResult)
}
approveTokensWithoutGas.onclick = async () => {
const approveResult = await humanstandardtokenContract
.approve('0x1f318C334780961FB129D2a6c30D0763d9a5C970', '70000')
.sendTransaction({
from: accounts[0],
to: humanstandardtokenContract.address,
gasPrice: 10000000000,
})
.confirmed()
console.log(approveResult)
}
}
personalSignData.addEventListener('click', () => {
const personalSignData = {
types: {
EIP712Domain: [
{ name: 'name', type: 'string' },
{ name: 'version', type: 'string' },
{ name: 'chainId', type: 'uint256' },
{ name: 'verifyingContract', type: 'address' },
],
Person: [
{ name: 'name', type: 'string' },
{ name: 'wallet', type: 'address' },
],
Mail: [
{ name: 'from', type: 'Person' },
{ name: 'to', type: 'Person' },
{ name: 'contents', type: 'string' },
],
},
primaryType: 'Mail',
domain: {
name: 'Ether Mail',
version: '1',
chainId: 3,
verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
},
message: {
sender: {
name: 'Cow',
wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826',
},
recipient: {
name: 'Bob',
wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB',
},
contents: 'Hello, Bob!',
},
}
confluxJS.provider.sendAsync(
{
method: 'personal_sign',
params: [JSON.stringify(personalSignData), conflux.selectedAddress],
from: conflux.selectedAddress,
},
(err, result) => {
if (err) {
console.log(err)
} else {
if (result.warning) {
console.warn(result.warning)
}
personalSignDataResults.innerHTML = JSON.stringify(result)
}
}
)
})
cfxSignData.addEventListener('click', () => {
const typedData = {
types: {
EIP712Domain: [
{ name: 'name', type: 'string' },
{ name: 'version', type: 'string' },
{ name: 'chainId', type: 'uint256' },
{ name: 'verifyingContract', type: 'address' },
],
Person: [
{ name: 'name', type: 'string' },
{ name: 'wallet', type: 'address' },
],
Mail: [
{ name: 'from', type: 'Person' },
{ name: 'to', type: 'Person' },
{ name: 'contents', type: 'string' },
],
},
primaryType: 'Mail',
domain: {
name: 'Ether Mail',
version: '1',
chainId: 3,
verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
},
message: {
sender: {
name: 'Cow',
wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826',
},
recipient: {
name: 'Bob',
wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB',
},
contents: 'Hello, Bob!',
},
}
confluxJS.provider.sendAsync(
{
method: 'cfx_sign',
params: [
conflux.selectedAddress,
keccak256.digest(JSON.stringify(typedData)),
],
from: conflux.selectedAddress,
},
(err, result) => {
if (err) {
console.log(err)
} else {
if (result.warning) {
console.warn(result.warning)
}
cfxSignDataResults.innerHTML = JSON.stringify(result)
}
}
)
})
signTypedData.addEventListener('click', () => {
const networkId = parseInt(networkDiv.innerHTML)
const chainId = parseInt(chainIdDiv.innerHTML) || networkId
const typedData = {
types: {
EIP712Domain: [
{ name: 'name', type: 'string' },
{ name: 'version', type: 'string' },
{ name: 'chainId', type: 'uint256' },
{ name: 'verifyingContract', type: 'address' },
],
Person: [
{ name: 'name', type: 'string' },
{ name: 'wallet', type: 'address' },
],
Mail: [
{ name: 'from', type: 'Person' },
{ name: 'to', type: 'Person' },
{ name: 'contents', type: 'string' },
],
},
primaryType: 'Mail',
domain: {
name: 'Ether Mail',
version: '1',
chainId,
verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
},
message: {
sender: {
name: 'Cow',
wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826',
},
recipient: {
name: 'Bob',
wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB',
},
contents: 'Hello, Bob!',
},
}
confluxJS.provider.sendAsync(
{
method: 'cfx_signTypedData_v3',
params: [conflux.selectedAddress, JSON.stringify(typedData)],
from: conflux.selectedAddress,
},
(err, result) => {
if (err) {
console.log(err)
if (!chainId) {
console.log('chainId is not defined')
}
} else {
signTypedDataResults.innerHTML = JSON.stringify(result)
sendSignedTypedData.disabled = false
}
}
)
})
sendSignedTypedData.addEventListener('click', async () => {
const signedData = JSON.parse(signTypedDataResults.innerHTML).result
const txResult = await confluxJS
.sendTransaction({
from: accounts[0],
to: accounts[0],
data: signedData,
gasPrice: 10000000000,
})
.confirmed()
sendSignedTypedDataResult.innerText = JSON.stringify(txResult, 2)
})
getAccountsButton.addEventListener('click', async () => {
try {
const accounts = await conflux.send({ method: 'cfx_accounts' })
getAccountsResults.innerHTML = accounts[0] || 'Not able to get accounts'
} catch (error) {
console.error(error)
getAccountsResults.innerHTML = `Error: ${error}`
}
})
}
updateButtons()
if (isConfluxPortalInstalled()) {
conflux.autoRefreshOnNetworkChange = false
conflux.on('networkChanged', (networkId) => {
networkDiv.innerHTML = networkId
})
conflux.on('chainIdChanged', (chainId) => {
chainIdDiv.innerHTML = chainId
})
conflux.on('accountsChanged', (newAccounts) => {
const connecting = Boolean(
(!accounts || !accounts.length) && newAccounts && newAccounts.length
)
accounts = newAccounts
accountsDiv.innerHTML = accounts
if (connecting) {
initializeAccountButtons()
}
updateButtons()
})
}
}
window.addEventListener('DOMContentLoaded', initialize)
| 30.05948 | 91 | 0.529516 |
bbbdf7a015feaaf10bb445ddbfe5e57fc33c7375 | 438 | js | JavaScript | src/components/Spinner/index.stories.js | Tahul/flamingo | 0c8cffcb8cd20142a66dabf203034a819c16fed8 | [
"MIT"
] | null | null | null | src/components/Spinner/index.stories.js | Tahul/flamingo | 0c8cffcb8cd20142a66dabf203034a819c16fed8 | [
"MIT"
] | null | null | null | src/components/Spinner/index.stories.js | Tahul/flamingo | 0c8cffcb8cd20142a66dabf203034a819c16fed8 | [
"MIT"
] | null | null | null | import React from 'react';
import { storiesOf } from '@storybook/react';
import { select } from '@storybook/addon-knobs';
import Heading from '../Heading';
import Icon from '../Icon';
import Spinner from '.';
const sizes = Object.values(Icon.SIZES);
const stories = storiesOf('Spinner', module);
stories.add('Playground', () => (
<>
<Heading>Spinner</Heading>
<Spinner size={select('Size', sizes, Icon.SIZES.M)} />
</>
));
| 24.333333 | 58 | 0.659817 |
bbbe0b41c6b62ef26c72fc74863bf0e7385b0afb | 479 | js | JavaScript | helpers/LoaderHelper.js | thittp/ac3-treinamento | c8ef067e85aa3b4828860068457d58cd2b34b0a8 | [
"Apache-2.0"
] | null | null | null | helpers/LoaderHelper.js | thittp/ac3-treinamento | c8ef067e85aa3b4828860068457d58cd2b34b0a8 | [
"Apache-2.0"
] | null | null | null | helpers/LoaderHelper.js | thittp/ac3-treinamento | c8ef067e85aa3b4828860068457d58cd2b34b0a8 | [
"Apache-2.0"
] | null | null | null | const preparar = (done) => {
let $div = document.createElement('div')
$div.id = 'fixtures'
document.querySelector('body').appendChild($div)
done()
}
const carregar = (fixture, done) => {
fetch('src/'+fixture)
.then((response) => response.text())
.then((html) => {
document.querySelector('div#fixtures').innerHTML = html
done()
})
}
const limpar = () => document.querySelector('div#fixtures').innerHTML = ''
| 23.95 | 74 | 0.574113 |
bbbe262812c10d71befeccbca57f54dd00d0b97f | 686 | js | JavaScript | modules/gob-web/redux/students/actions/courses.js | carls-app/gobbldygook-carleton | 71b65fba8f6d8dd36975941634af741770618308 | [
"MIT"
] | null | null | null | modules/gob-web/redux/students/actions/courses.js | carls-app/gobbldygook-carleton | 71b65fba8f6d8dd36975941634af741770618308 | [
"MIT"
] | 1 | 2018-07-19T13:11:26.000Z | 2018-07-19T17:07:36.000Z | modules/gob-web/redux/students/actions/courses.js | carls-app/gobbldygook-carleton | 71b65fba8f6d8dd36975941634af741770618308 | [
"MIT"
] | null | null | null | import {
ADD_COURSE,
REMOVE_COURSE,
REORDER_COURSE,
MOVE_COURSE,
} from '../constants'
export function addCourse(studentId, scheduleId, clbid) {
return {type: ADD_COURSE, payload: {studentId, scheduleId, clbid}}
}
export function removeCourse(studentId, scheduleId, clbid) {
return {type: REMOVE_COURSE, payload: {studentId, scheduleId, clbid}}
}
export function reorderCourse(studentId, scheduleId, clbid, index) {
return {
type: REORDER_COURSE,
payload: {studentId, scheduleId, clbid, index},
}
}
export function moveCourse(studentId, fromScheduleId, toScheduleId, clbid) {
return {
type: MOVE_COURSE,
payload: {studentId, fromScheduleId, toScheduleId, clbid},
}
}
| 26.384615 | 76 | 0.753644 |
bbbef835fd15cc8490f5689a735157cc8ec8a685 | 1,856 | js | JavaScript | src/lib/cleanup.js | sangeetha5491/aio-cli-plugin-app | 994dbd0c0b5c1beaf080d2e9acda12676748577a | [
"Apache-2.0"
] | 14 | 2019-11-21T20:50:56.000Z | 2021-06-15T05:50:21.000Z | src/lib/cleanup.js | sangeetha5491/aio-cli-plugin-app | 994dbd0c0b5c1beaf080d2e9acda12676748577a | [
"Apache-2.0"
] | 429 | 2019-11-04T19:14:04.000Z | 2022-03-31T07:12:23.000Z | src/lib/cleanup.js | sangeetha5491/aio-cli-plugin-app | 994dbd0c0b5c1beaf080d2e9acda12676748577a | [
"Apache-2.0"
] | 17 | 2019-11-01T06:35:22.000Z | 2022-03-15T10:30:58.000Z | /*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
const execa = require('execa')
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:cleanup', { provider: 'debug' })
/** @private */
class Cleanup {
constructor () {
this.resources = []
}
add (func, message) {
this.resources.push(async () => {
aioLogger.debug(message)
await func()
})
}
async wait () {
/*
todo: optimization here to only add the dummyProc if there are no other cleanup functions to wait for.
currently tests are dependent on the execa('node') being called
*/
// if (this.resources.length < 1) {
const dummyProc = execa('node')
this.add(async () => await dummyProc.kill(), 'stopping sigint waiter...')
// }
// bind cleanup function
process.on('SIGINT', async () => {
try {
await this.run()
aioLogger.info('exiting!')
process.exit(0) // eslint-disable-line no-process-exit
} catch (e) {
aioLogger.error('unexpected error while cleaning up!')
aioLogger.error(e)
process.exit(1) // eslint-disable-line no-process-exit
}
})
}
async run () {
for (const func of this.resources) {
await func()
}
this.resources = []
}
}
module.exports = Cleanup
| 30.42623 | 116 | 0.658944 |
bbbf19d05ffce36b8f0106cca2faa5b5ecafbcc1 | 3,466 | js | JavaScript | node_modules/aframe-template-component/examples/node_modules/budo/node_modules/routes-router/node_modules/httperr/spec/utils.spec.js | jdpigeon/dharmadefender | 163652c020496fa2c2af31ee5ccb43ddc497f4bc | [
"Apache-2.0"
] | 2 | 2018-07-06T15:36:24.000Z | 2020-01-20T21:59:00.000Z | node_modules/aframe-template-component/examples/node_modules/budo/node_modules/routes-router/node_modules/httperr/spec/utils.spec.js | jdpigeon/dharmadefender | 163652c020496fa2c2af31ee5ccb43ddc497f4bc | [
"Apache-2.0"
] | 1 | 2018-03-10T20:06:17.000Z | 2018-03-10T20:06:17.000Z | node_modules/aframe-template-component/examples/node_modules/budo/node_modules/routes-router/node_modules/httperr/spec/utils.spec.js | jdpigeon/dharmadefender | 163652c020496fa2c2af31ee5ccb43ddc497f4bc | [
"Apache-2.0"
] | null | null | null | /*global describe, it */
var expect = require('expect.js'),
rewire = require('rewire'),
httperr = rewire('../');
describe('indent(String)', function() {
var indent = httperr.__get__('indent');
it('indents a string by four spaces', function() {
expect(indent('x')).to.equal(' x');
});
});
describe('simplify(String)', function() {
var simplify = httperr.__get__('simplify');
it('is a function', function() {
expect(simplify).to.be.a('function');
});
it('strips "a"/"an" prefixes', function() {
expect(simplify('a thing')).to.equal('thing');
expect(simplify('A Thing')).to.equal('Thing');
expect(simplify('an error')).to.equal('error');
expect(simplify('An Error')).to.equal('Error');
});
it('strips apostrophes', function() {
expect(simplify('x\'yz')).to.equal('xyz');
expect(simplify('\'xyz')).to.equal('xyz');
expect(simplify('xyz\'')).to.equal('xyz');
expect(simplify('x\'y\'z')).to.equal('xyz');
});
it('replaces dashes with spaces', function() {
expect(simplify('foo-bar')).to.equal('foo bar');
});
});
describe('ucUnderscore(String)', function() {
var ucUnderscore = httperr.__get__('ucUnderscore');
it('is a function', function() {
expect(ucUnderscore).to.be.a('function');
});
it('replaces spaces with underscores', function() {
expect(ucUnderscore('1 2 3')).to.equal('1_2_3');
});
it('converts lowercase to uppercase', function() {
expect(ucUnderscore('fooBarQux')).to.equal('FOOBARQUX');
});
});
describe('titleCase(String)', function() {
var titleCase = httperr.__get__('titleCase');
it('is a function', function() {
expect(titleCase).to.be.a('function');
});
it('converts the first character to uppercase', function() {
expect(titleCase('xyz')).to.equal('Xyz');
});
it('converts the rest of the string to lowercase', function() {
expect(titleCase('XYZ')).to.equal('Xyz');
});
});
describe('camelCase(String)', function() {
var camelCase = httperr.__get__('camelCase');
it('is a function', function() {
expect(camelCase).to.be.a('function');
});
it('removes spaces', function() {
expect(camelCase('1 2 3')).to.equal('123');
});
it('converts every initial character to uppercase', function() {
expect(camelCase('x y z')).to.equal('XYZ');
});
it('converts all other characters to lowercase', function() {
expect(camelCase('foo bar qux')).to.equal('FooBarQux');
});
});
describe('lcFirst(String)', function() {
var lcFirst = httperr.__get__('lcFirst');
it('is a function', function() {
expect(lcFirst).to.be.a('function');
});
it('converts the first character to lowercase', function() {
expect(lcFirst('X')).to.equal('x');
});
it('does not modify the rest of the string', function() {
expect(lcFirst('XYZ')).to.equal('xYZ');
});
});
describe('spread(Function)(Array)', function() {
var spread = httperr.__get__('spread');
it('is a function', function() {
expect(spread).to.be.a('function');
});
it('returns a function', function() {
expect(spread(function() {})).to.be.a('function');
});
it('invokes the function when called', function() {
var called = false;
spread(function() {
called = true;
})([]);
expect(called).to.equal(true);
});
it('applies the array as arguments', function(done) {
var args = [1, 2, 3];
spread(function() {
expect(arguments).to.eql(args);
done();
})(args);
});
});
| 30.672566 | 66 | 0.616561 |
bbbf2a92beb856cd65d428f13ab4dfcef4a641a4 | 4,539 | js | JavaScript | CLI/commands/faucet.js | DavidCervigni/polymath-core | 3d87da5101125594e63e79cdc19a6e43eafb9c5f | [
"MIT"
] | 1 | 2019-08-03T12:02:26.000Z | 2019-08-03T12:02:26.000Z | CLI/commands/faucet.js | DavidCervigni/polymath-core | 3d87da5101125594e63e79cdc19a6e43eafb9c5f | [
"MIT"
] | null | null | null | CLI/commands/faucet.js | DavidCervigni/polymath-core | 3d87da5101125594e63e79cdc19a6e43eafb9c5f | [
"MIT"
] | 1 | 2020-06-24T08:15:17.000Z | 2020-06-24T08:15:17.000Z | var readlineSync = require('readline-sync');
var BigNumber = require('bignumber.js');
var common = require('./common/common_functions');
var contracts = require('./helpers/contract_addresses');
var abis = require('./helpers/contract_abis')
var chalk = require('chalk');
const Web3 = require('web3');
if (typeof web3 !== 'undefined') {
web3 = new Web3(web3.currentProvider);
} else {
// set the provider you want from Web3.providers
web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
}
////////////////////////
let polyToken;
// App flow
let accounts;
let Issuer;
let defaultGasPrice;
async function executeApp(beneficiary, amount) {
accounts = await web3.eth.getAccounts();
Issuer = accounts[0];
defaultGasPrice = common.getGasPrice(await web3.eth.net.getId());
console.log("\n");
console.log("***************************")
console.log("Welcome to the POLY Faucet.");
console.log("***************************\n")
await setup();
await send_poly(beneficiary, amount);
};
async function setup(){
try {
let polytokenAddress = await contracts.polyToken();
let polytokenABI = abis.polyToken();
polyToken = new web3.eth.Contract(polytokenABI, polytokenAddress);
polyToken.setProvider(web3.currentProvider);
} catch (err) {
console.log(err)
console.log('\x1b[31m%s\x1b[0m',"There was a problem getting the contracts. Make sure they are deployed to the selected network.");
process.exit(0);
}
}
async function send_poly(beneficiary, amount) {
let issuerBalance = await polyToken.methods.balanceOf(Issuer).call({from : Issuer});
console.log(chalk.blue(`Hello user you have '${(new BigNumber(issuerBalance).dividedBy(new BigNumber(10).pow(18))).toNumber()}POLY'\n`))
if (typeof beneficiary === 'undefined' && typeof amount === 'undefined') {
let options = ['250 POLY for ticker registration','500 POLY for token launch + ticker reg', '20K POLY for CappedSTO Module', '20.5K POLY for Ticker + Token + CappedSTO', '100.5K POLY for Ticker + Token + USDTieredSTO','As many POLY as you want'];
index = readlineSync.keyInSelect(options, 'What do you want to do?');
console.log("Selected:",options[index]);
switch (index) {
case 0:
beneficiary = readlineSync.question(`Enter beneficiary of 250 POLY ('${Issuer}'): `);
amount = '250';
break;
case 1:
beneficiary = readlineSync.question(`Enter beneficiary of 500 POLY ('${Issuer}'): `);
amount = '500';
break;
case 2:
beneficiary = readlineSync.question(`Enter beneficiary of 20K POLY ('${Issuer}'): `);
amount = '20000';
break;
case 3:
beneficiary = readlineSync.question(`Enter beneficiary of 20.5K POLY ('${Issuer}'): `);
amount = '20500';
break;
case 4:
beneficiary = readlineSync.question(`Enter beneficiary of 100.5K POLY ('${Issuer}'): `);
amount = '100500';
break;
case 5:
beneficiary = readlineSync.question(`Enter beneficiary of transfer ('${Issuer}'): `);
amount = readlineSync.questionInt(`Enter the no. of POLY Tokens: `).toString();
break;
}
}
if (beneficiary == "") beneficiary = Issuer;
await transferTokens(beneficiary, web3.utils.toWei(amount));
}
async function transferTokens(to, amount) {
try {
let getTokensAction = polyToken.methods.getTokens(amount, to);
let GAS = await common.estimateGas(getTokensAction, Issuer, 1.2);
await getTokensAction.send({from: Issuer, gas: GAS, gasPrice: defaultGasPrice})
.on('transactionHash', function(hash) {
console.log(`
Your transaction is being processed. Please wait...
TxHash: ${hash}\n`
);
})
.on('receipt', function(receipt){
console.log(`
Congratulations! The transaction was successfully completed.
Review it on Etherscan.
TxHash: ${receipt.transactionHash}\n`
);
})
.on('error', console.error);
} catch (err){
console.log(err.message);
return;
}
let balance = await polyToken.methods.balanceOf(to).call();
let balanceInPoly = new BigNumber(balance).dividedBy(new BigNumber(10).pow(18));
console.log(chalk.green(`Congratulations! balance of ${to} address is ${balanceInPoly.toNumber()} POLY`));
}
module.exports = {
executeApp: async function(beneficiary, amount) {
return executeApp(beneficiary, amount);
}
} | 36.902439 | 250 | 0.638246 |
bbbf8bb6ce9d42f79697e870b6f2933621e51dd0 | 262 | js | JavaScript | src/store/modules/article_types.js | Akeso/akeso_new_admin | fb50f33d6c030a71a73fb23f82f74b00b2a3d490 | [
"MIT"
] | null | null | null | src/store/modules/article_types.js | Akeso/akeso_new_admin | fb50f33d6c030a71a73fb23f82f74b00b2a3d490 | [
"MIT"
] | null | null | null | src/store/modules/article_types.js | Akeso/akeso_new_admin | fb50f33d6c030a71a73fb23f82f74b00b2a3d490 | [
"MIT"
] | 2 | 2019-02-12T12:48:34.000Z | 2019-02-13T05:30:59.000Z | const article_types = {
state: {
article_types: []
},
mutations: {
handleArticleTypes: function(state, res) {
state.article_types = res
console.log('article_types===>>>', res)
}
},
actions: {
}
}
export default article_types
| 16.375 | 46 | 0.60687 |
bbc0b3237b52d5d44ba9e534f799e2ffe33d16f0 | 3,051 | js | JavaScript | controllers/applicationController.js | ProfeSearch/Backend | 6310c9f33057623421ef240e94d3e243c79babf7 | [
"MIT"
] | 1 | 2022-03-10T10:03:52.000Z | 2022-03-10T10:03:52.000Z | controllers/applicationController.js | ProfeSearch/Backend | 6310c9f33057623421ef240e94d3e243c79babf7 | [
"MIT"
] | null | null | null | controllers/applicationController.js | ProfeSearch/Backend | 6310c9f33057623421ef240e94d3e243c79babf7 | [
"MIT"
] | null | null | null | const Application = require('../models/applicationModel');
const AppError = require('../utils/appError');
const catchAsync = require('../utils/catchAsync');
const APIFeatures = require('../utils/apiFeatures');
const Student = require('../models/studentModel');
const factory = require('./handlerFactory');
const Position = require('../models/positionModel');
// TODO only needs to work for students
exports.getAllApplications = catchAsync(async (req, res, next) => {
const student = (await Student.findOne({ user: req.user.id })).id;
const doc = await Application.find({ student })
.populate({
path: 'position',
select: '-description -target -released -deadline -status -__v',
populate: { path: 'faculty', select: 'name' },
});
res.status(200).json({
status: 'success',
requestedAt: req.requestTime,
total: doc.length,
data: {
Applications: doc,
},
});
});
exports.setData = catchAsync(async (req, res, next) => {
const position = await Position.findById(req.params.id);
if (!position) {
return next(new AppError('Invalid Position Id', 404));
}
req.body.position = req.params.id;
req.body.student = (await Student.findOne({ user: req.user.id })).id;
req.body.status = 1;
next();
});
// TODO
// finds a specified application through id
exports.getApplication = catchAsync(async (req, res, next) => {
if (req.identity === 'student') {
const doc = await Application.findById(req.params.id)
.select('-student -__v')
.populate({
path: 'position',
select: '-target -released -deadline -status -__v',
populate: { path: 'faculty', select: 'name' },
});
if (!doc) {
return next(new AppError('Invalid Application Id', 404));
}
res.status(200).json({
status: 'success',
requestedAt: req.requestTime,
data: {
Application: doc,
},
});
} else if (req.identity === 'faculty') {
const doc = await Application.findById(req.params.id)
.select('-__v')
.populate({
path: 'position',
select: '-target -released -deadline -status -__v',
populate: { path: 'faculty', select: 'name' },
});
if (!doc) {
return next(new AppError('Invalid Application Id', 404));
}
res.status(200).json({
status: 'success',
requestedAt: req.requestTime,
data: {
Application: doc,
},
});
} else {
return next(new AppError('Cannot get "req.identity"... ', 404));
}
});
//request data already handled with setData
exports.createApplication = factory.createOne(Application);
exports.deleteApplication = factory.deleteOne(Application);
// TODO might have to customize
exports.updateApplication = factory.updateOne(Application);
| 31.78125 | 73 | 0.573582 |
bbc151420b8bcc4ab1024d33c861243ce14d3581 | 4,681 | js | JavaScript | app/mine/view/overdue.js | jwjgit/react-shop | 584ff6d3c97ea1ac8ff694aabf490d479bb3d37e | [
"Apache-2.0"
] | null | null | null | app/mine/view/overdue.js | jwjgit/react-shop | 584ff6d3c97ea1ac8ff694aabf490d479bb3d37e | [
"Apache-2.0"
] | null | null | null | app/mine/view/overdue.js | jwjgit/react-shop | 584ff6d3c97ea1ac8ff694aabf490d479bb3d37e | [
"Apache-2.0"
] | null | null | null | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Image,
TouchableOpacity,
StatusBar,
ScrollView,
FlatList,
View
} from 'react-native';
import { connect } from 'react-redux';
import Dimensions from 'Dimensions'
var { width, height } = Dimensions.get('window');//高度宽度
import { ListView } from 'antd-mobile'
import ScrollPage from '../../component/scrollpage'
import { changeName } from '../action/index';
class main extends Component {
constructor(props) {
super(props);
this.state = {
open: false,
datas: [{ time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" },
{ time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" },
{ time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" }, { time: "2016-09-10~2016-10-20" },]
};
}
onOpenChange = () => {
this.setState({ open: !this.state.open });
}
changeUserName = () => {
let { dispatch } = this.props
dispatch(changeName())
}
renderRow = ({ item }) => {
return (
<View style={styles.rowView}>
<Image
source={require('../../img/ticketbg2.png')}
style={styles.rowBackground}
/>
<View style={styles.rowTopView}>
<Text style={{ fontSize: 16, color: '#545454', backgroundColor: '#00000000' }}>补签券</Text>
<Text style={{ fontSize: 30, fontWeight: 'bold', color: '#545454', backgroundColor: '#00000000' }}>1
<Text style={{ fontSize: 12, color: '#545454', backgroundColor: '#00000000' }}> 次</Text></Text>
</View>
<View style={styles.rowBottomView}>
<View style={styles.rowIndexView}>
<Image
source={require('../../img/ticketheartf.png')}
style={{ height: 10, width: 10 }}
/>
<Text style={{ fontSize: 11, color: '#858585', marginLeft: 10, backgroundColor: '#00000000' }}>仅139****8525使用</Text>
</View>
<View style={[styles.rowIndexView, { marginTop: 5 }]}>
<Image
source={require('../../img/ticketheartf.png')}
style={{ height: 10, width: 10 }}
/>
<Text style={{ fontSize: 11, color: '#858585', marginLeft: 10, backgroundColor: '#00000000' }}>{'有效期:' + item.time}</Text>
</View>
</View>
</View>
)
}
render() {
let props = this.props
return (
<View style={styles.container}>
<ScrollPage
title='失效券'
barStyle="light-content"
navigator={this.props.navigator}
left={require('../../img/back.png')}
leftClick={() => this.props.navigator.pop()}
bgImg={require('../../img/navbar_bg.png')}
bg={true}
>
{/* <FlatList
data={this.state.datas}
renderItem={this.renderRow}
/> */}
<Image
source={require('../../img/kong.png')}
style={{ width: 0.6 * width, height: width * 0.6 * 460 / 720, marginTop: 50, marginLeft: 0.2 * width }}
/>
</ScrollPage>
</View>
)
}
}
function select(store) {
return {
username: store.mineStore.username,
}
}
export default connect(select)(main);
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#f4f4f4',
alignItems: 'center',
},
rowView: {
width: 0.95 * width,
height: 108
},
rowBackground: {
width: 0.95 * width,
height: 108,
position: 'absolute',
},
rowTopView: {
paddingHorizontal: 30,
height: 56,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
},
rowBottomView: {
justifyContent: 'center',
paddingHorizontal: 15,
height: 43
},
rowIndexView: {
flexDirection: 'row',
alignItems: 'center',
}
});
| 31 | 186 | 0.470199 |
bbc1dbb00ec9904d39378f4ad0a18d93846df94f | 5,399 | js | JavaScript | gatsby-node.js | sheadscott/AccCatalog2019-20 | 5a5aa2a95423aafdbd11632287f685a0eef75c2b | [
"MIT"
] | null | null | null | gatsby-node.js | sheadscott/AccCatalog2019-20 | 5a5aa2a95423aafdbd11632287f685a0eef75c2b | [
"MIT"
] | 5 | 2021-03-09T12:29:39.000Z | 2022-03-11T23:53:51.000Z | gatsby-node.js | sheadscott/AccCatalog2019-20 | 5a5aa2a95423aafdbd11632287f685a0eef75c2b | [
"MIT"
] | null | null | null | /**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/
const _ = require(`lodash`);
const Promise = require(`bluebird`);
const path = require(`path`);
const slash = require(`slash`);
const axios = require('axios');
const https = require('https');
const trimpath = require('./trimpath');
// exports.modifyWepackConfig = function (config) {
// config.merge({
// postcss([
// cssnext({
// features: {
// customProperties: false
// }
// }),
// ])
// );
// return config;
// }
// Implement the Gatsby API “createPages”. This is
// called after the Gatsby bootstrap is finished so you have
// access to any information necessary to programmatically
// create pages.
// Will create pages for WordPress pages (route : /{slug})
// Will create pages for WordPress posts (route : /post/{slug})
exports.createPages = ({ graphql, boundActionCreators }) => {
const { createPage } = boundActionCreators;
return new Promise((resolve, reject) => {
// The “graphql” function allows us to run arbitrary
// queries against the local WordPress graphql schema. Think of
// it like the site has a built-in database constructed
// from the fetched data that you can run queries against.
// ==== PAGES (WORDPRESS NATIVE) ====
graphql(
`
{
allWordpressPage {
edges {
node {
id
wordpress_id
title
slug
link
status
template
}
}
}
}
`
).then(result => {
if (result.errors) {
console.log(result.errors);
reject(result.errors);
}
// Create Page pages.
const pageTemplate = path.resolve('./src/templates/page.js');
// We want to create a detailed page for each
// page node. We'll just use the WordPress Slug for the slug.
// The Page ID is prefixed with 'PAGE_'
_.each(result.data.allWordpressPage.edges, (edge, index) => {
// Gatsby uses Redux to manage its internal state.
// Plugins and sites can use functions like "createPage"
// to interact with Gatsby.
// console.log('path', trimpath(edge.node.link));
// console.log('slug', edge.node.slug);
const pageData = {
path: `${trimpath(edge.node.link)}`,
component: slash(pageTemplate),
context: {
id: edge.node.id,
slug: edge.node.slug,
// breadcrumbs: breads.data.itemListElement
},
};
// skip the home page because we already have a home page template
if (edge.node.link !== 'https://devinstruction.austincc.edu/catalog2019-20/') {
// createPage(pageData);
// console.log('create page', edge.node.slug, ' ***** ', edge.node.link);
// axios.get(`https://devinstruction.austincc.edu/catalog2019-20/wp-json/bcn/v1/post/${edge.node.wordpress_id}`).then(response => {
// pageData.context.breadcrumbs = response.data.itemListElement;
// createPage(pageData);
// })
// .catch(function (error) {
// // console.log(error);
// console.log('error');
// });
createPage(pageData);
resolve();
// https.get(`https://devinstruction.austincc.edu/catalog2019-20/wp-json/bcn/v1/post/${edge.node.wordpress_id}`, (res) => {
// res.setEncoding('utf8');
// let rawData = '';
// res.on('data', (chunk) => { rawData += chunk; });
// res.on('end', () => {
// try {
// const parsedData = JSON.parse(rawData);
// pageData.context.breadcrumbs = parsedData.itemListElement;
// createPage(pageData);
// resolve();
// } catch (e) {
// console.error(e.message);
// }
// });
// }).on('error', (e) => {
// console.error(e);
// });
} else {
console.log('page skipped');
}
});
// resolve();
});
// ==== END PAGES ====
// ==== POSTS (WORDPRESS NATIVE AND ACF) ====
/*
.then(() => {
graphql(
`
{
allWordpressPost {
edges {
node {
id
slug
status
template
format
}
}
}
}
`
).then(result => {
if (result.errors) {
console.log(result.errors);
reject(result.errors);
}
const postTemplate = path.resolve('./src/templates/page.js');
// We want to create a detailed page for each
// post node. We'll just use the WordPress Slug for the slug.
// The Post ID is prefixed with 'POST_'
_.each(result.data.allWordpressPost.edges, edge => {
createPage({
path: `/ ${ edge.node.slug } / `,
component: slash(postTemplate),
context: {
id: edge.node.id
}
});
});
resolve();
});
});
*/
// ==== END POSTS ====
});
};
| 30.331461 | 141 | 0.501945 |
bbc28ff5309295f88024dda2a522ca084ad9b812 | 154 | js | JavaScript | src/react/autocomplete/index.js | mingxiao/pivotal-ui | 6fd1f15c829da8300e46008c58b9356e1f011d8c | [
"MIT"
] | null | null | null | src/react/autocomplete/index.js | mingxiao/pivotal-ui | 6fd1f15c829da8300e46008c58b9356e1f011d8c | [
"MIT"
] | 17 | 2020-09-05T01:31:40.000Z | 2022-02-26T12:04:35.000Z | src/react/autocomplete/index.js | mingxiao/pivotal-ui | 6fd1f15c829da8300e46008c58b9356e1f011d8c | [
"MIT"
] | null | null | null | export {Autocomplete} from './autocomplete';
export {AutocompleteInput} from './autocomplete_input';
export {AutocompleteList} from './autocomplete_list'; | 51.333333 | 55 | 0.792208 |
bbc294164e7805a5b183b72f3c81d206e73210d9 | 322 | js | JavaScript | examples/traceroute.js | active9/localhost.rocks | 45bfde96e5732cae52d07ff0a299c8d89bb0565a | [
"MIT"
] | 1 | 2015-10-20T14:45:17.000Z | 2015-10-20T14:45:17.000Z | examples/traceroute.js | active9/localhost.rocks | 45bfde96e5732cae52d07ff0a299c8d89bb0565a | [
"MIT"
] | null | null | null | examples/traceroute.js | active9/localhost.rocks | 45bfde96e5732cae52d07ff0a299c8d89bb0565a | [
"MIT"
] | null | null | null | /*
* localhost rocks traceroute example
*
* To run this example try npm install traceroute
* from within the examples directory.
*
*/
traceroute = require('traceroute');
var localhost = require('../localhost.rocks.js').localhost;
traceroute.trace(localhost, function (err,hops) {
if (!err) console.log(hops);
}); | 24.769231 | 59 | 0.71118 |
bbc2befcd679d6a4492f0ed50b2e56fe88286834 | 2,838 | js | JavaScript | build/translations/ro.js | abrcdf1023/ckeditor5-build-eds | dd9304e576fd24526c7e49c188bb3df4121468ea | [
"MIT"
] | null | null | null | build/translations/ro.js | abrcdf1023/ckeditor5-build-eds | dd9304e576fd24526c7e49c188bb3df4121468ea | [
"MIT"
] | 3 | 2021-03-09T22:21:49.000Z | 2021-09-02T01:46:42.000Z | build/translations/ro.js | abrcdf1023/ckeditor5-build-eds | dd9304e576fd24526c7e49c188bb3df4121468ea | [
"MIT"
] | null | null | null | (function(d){d['ro']=Object.assign(d['ro']||{},{a:"Bară imagine",b:"Bară tabel",c:"Îngroșat",d:"Cursiv",e:"widget imagine",f:"Inserează imagine sau fișier",g:"Imagine mărime completă",h:"Imagine laterală",i:"Imagine aliniată la stânga",j:"Imagine aliniată pe centru",k:"Imagine aliniată la dreapta",l:"Inserează imagine",m:"Alege titlu",n:"Titlu",o:"Bloc citat",p:"Mărește indent",q:"Micșorează indent",r:"Listă numerotată",s:"Listă cu puncte",t:"Listă cu activități",u:"Inserează tabel",v:"Antet coloană",w:"Inserează coloană la stânga",x:"Inserează coloană la dreapta",y:"Șterge coloană",z:"Coloană",aa:"Rând antet",ab:"Inserează rând dedesubt",ac:"Inserează rând deasupra",ad:"Șterge rând",ae:"Rând",af:"Îmbină celula în sus",ag:"Îmbină celula la dreapta",ah:"Îmbină celula în jos",ai:"Îmbină celula la stânga",aj:"Scindează celula pe verticală",ak:"Scindează celula pe orizontală",al:"Îmbină celulele",am:"Șterge formatare",an:"Aliniază la stânga",ao:"Aliniază la dreapta",ap:"Aliniază la centru",aq:"Aliniază stânga-dreapta",ar:"Aliniere text",as:"Bara aliniere text",at:"Introdu titlul descriptiv al imaginii",au:"Încărcare eșuată",av:"widget media",aw:"Evidențiator galben",ax:"Evidențiator verde",ay:"Evidențiator roz",az:"Evidențiator albastru",ba:"Pix roșu",bb:"Pix verde",bc:"Șterge evidențiere text",bd:"Evidențiere text",be:"Bară evidențiere text",bf:"Nu se poate încărca fișierul:",bg:"Bară widget",bh:"Inserează media",bi:"URL-ul nu trebuie să fie gol.",bj:"Acest URL media nu este suportat.",bk:"Link",bl:"Încărcare în curs",bm:"Schimbă textul alternativ al imaginii",bn:"Nu se poate obtine URL-ul imaginii redimensionate.",bo:"Selecția imaginii redimensionate eșuată",bp:"Nu se poate insera imaginea la poziția curentă.",bq:"Inserție imagine eșuată",br:"Familie font",bs:"Implicită",bt:"Dimensiune font",bu:"Foarte mică",bv:"Mică",bw:"Mare",bx:"Foarte mare",by:"Culoare font",bz:"Culoarea de fundal a fontului",ca:"Editor de text",cb:"Bară listă opțiuni",cc:"Salvare",cd:"Anulare",ce:"Adaugă URL-ul media in input.",cf:"Sugestie: adaugă URL-ul în conținut pentru a fi adăugat mai rapid.",cg:"Media URL",ch:"Bară editor",ci:"Show more items",cj:"%0 din %1",ck:"Înapoi",cl:"Înainte",cm:"Negru",cn:"Gri slab",co:"Gri",cp:"Gri deschis",cq:"Alb",cr:"Roșu",cs:"Portocaliu",ct:"Galben",cu:"Verde deschis",cv:"Verde",cw:"Acvamarin",cx:"Turcoaz",cy:"Albastru deschis",cz:"Albastru",da:"Violet",db:"Text alternativ",dc:"Șterge culoare",dd:"Culorile din document",de:"Anulare",df:"Revenire",dg:"Deschide în tab nou",dh:"Descărcabil",di:"Șterge link",dj:"Modifică link",dk:"Deschide link în tab nou",dl:"Acest link nu are niciun URL",dm:"Link URL",dn:"Editor de text, %0",do:"Paragraf",dp:"Titlu 1",dq:"Titlu 2",dr:"Titlu 3",ds:"Titlu 4",dt:"Titlu 5",du:"Titlu 6"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); | 2,838 | 2,838 | 0.736434 |
bbc4354c7dfcf775740e451ba89f124eda08161d | 644 | js | JavaScript | client/user/FollowProfileButton.js | mohammadameer/mern-social | 214232be2a683b6bf22b7ca681b4e54bbb93cb1c | [
"MIT"
] | null | null | null | client/user/FollowProfileButton.js | mohammadameer/mern-social | 214232be2a683b6bf22b7ca681b4e54bbb93cb1c | [
"MIT"
] | 1 | 2021-03-10T02:45:43.000Z | 2021-03-10T02:45:43.000Z | client/user/FollowProfileButton.js | mohammadameer/mern-social | 214232be2a683b6bf22b7ca681b4e54bbb93cb1c | [
"MIT"
] | 1 | 2020-11-04T04:12:55.000Z | 2020-11-04T04:12:55.000Z | import React from "react";
import { follow, unfollow } from "./api-user";
import { Button } from "@material-ui/core";
const FollowProfileButton = props => {
const followClick = () => {
props.onButtonClick(follow);
};
const unfollowClick = () => {
props.onButtonClick(unfollow);
};
return (
<div>
{props.following ? (
<Button variant="raised" color="secondary" onClick={unfollowClick}>
Unfollow
</Button>
) : (
<Button variant="raised" color="primary" onClick={followClick}>
Follow
</Button>
)}
</div>
);
};
export default FollowProfileButton;
| 22.206897 | 75 | 0.590062 |
bbc52198842d0a78e6b3de6fbb51b3bd10268733 | 680 | js | JavaScript | gatsby-config.js | thinkbots/website | 6ba19959caf20a4dc9c913866778464b9615626d | [
"MIT"
] | null | null | null | gatsby-config.js | thinkbots/website | 6ba19959caf20a4dc9c913866778464b9615626d | [
"MIT"
] | null | null | null | gatsby-config.js | thinkbots/website | 6ba19959caf20a4dc9c913866778464b9615626d | [
"MIT"
] | null | null | null | module.exports = {
siteMetadata: {
title: 'Web and mobile apps development and design | Thinkbots',
siteUrl: `https://thinkbots.io`,
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-sass`,
options: {
precision: 8,
},
},
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`josefin sans\:400,600,700`],
},
},
{
resolve: `gatsby-plugin-sitemap`,
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-63920907-1',
head: false,
anonymize: true,
respectDNT: true,
},
},
],
}
| 20 | 68 | 0.520588 |
bbc536972a530a8a064e5f5f56d85055ce740c0e | 2,658 | js | JavaScript | contracts/scripts/deploy.js | JohnRSim/0xTr.ee | 45475e80f48af111abd316f164401edfc6aaa7cc | [
"BSD-3-Clause"
] | 3 | 2022-02-08T12:07:48.000Z | 2022-02-14T00:26:06.000Z | contracts/scripts/deploy.js | JohnRSim/0xTr.ee | 45475e80f48af111abd316f164401edfc6aaa7cc | [
"BSD-3-Clause"
] | null | null | null | contracts/scripts/deploy.js | JohnRSim/0xTr.ee | 45475e80f48af111abd316f164401edfc6aaa7cc | [
"BSD-3-Clause"
] | null | null | null | const hre = require("hardhat");
const fs = require('fs');
const uniswapSdk = require("@uniswap/v3-sdk");
const INonfungiblePositionManager = require("../abis/nfpm.json");
const wMaticABI = require("../abis/wmatic.json");
const routerAddress = '0xE592427A0AEce92De3Edee1F18E0157C05861564'; // all nets
const wMaticAddress = '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889'; // testnet
// const wMaticAddress = '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270'; // mainnet
const nonFungPosMngAddy = '0xC36442b4a4522E871399CD717aBDD847Ab11FE88'; // all nets
async function main() {
[owner] = await ethers.getSigners();
console.log(`Owner: ${owner.address}`);
await hre.run("compile");
// Deploy TreeToken ERC20
const treeTokenContract = await hre.ethers.getContractFactory('TreeToken');
const treeToken = await treeTokenContract.deploy();
await treeToken.deployed();
console.log(`TreeToken deployed to: ${treeToken.address}`);
// Deploy Tree Contract
const treeContract = await hre.ethers.getContractFactory('Tree');
tree = await treeContract.deploy(treeToken.address,routerAddress,wMaticAddress);
await tree.deployed();
console.log(`Tree contract deployed to: ${tree.address}`);
// Setup liquidity pool on Uni V3
const wMatic = new ethers.Contract(wMaticAddress, wMaticABI, ethers.provider);
const positionManager = new ethers.Contract(nonFungPosMngAddy, INonfungiblePositionManager, ethers.provider);
const liquidityAmount = ethers.utils.parseEther('0.001');
const sqrtPrice = uniswapSdk.encodeSqrtRatioX96(liquidityAmount,liquidityAmount);
await positionManager.connect(owner).createAndInitializePoolIfNecessary(treeToken.address, wMaticAddress, 3000, sqrtPrice.toString(), { gasLimit: 5000000 });
await treeToken.connect(owner).approve(nonFungPosMngAddy, liquidityAmount,{ gasLimit: 5000000 });
const mintParam = {
token0: treeToken.address,
token1: wMaticAddress,
fee: 3000,
tickLower: -887220,
tickUpper: 887220,
amount0Desired: liquidityAmount,
amount1Desired: liquidityAmount,
amount0Min: 1,
amount1Min: 1,
recipient: owner.address,
deadline: Math.floor(Date.now() / 1000) + 600
}
const tx = await positionManager.connect(owner).mint(mintParam,{ value: liquidityAmount, gasLimit: 5000000 });
await tx.wait();
// Transfer ownership of TreeToken to Tree Contract
await treeToken.transferOwnership(tree.address);
console.log(`TreeToken Ownership transferred to: ${tree.address}`);
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});
| 39.671642 | 161 | 0.729496 |
bbc5640d4d2b586826215480ea54105835fc75e7 | 1,485 | js | JavaScript | src/server/pageTemplate.js | kitten/extravaganza | fa0fe9bd25e42bc0dbb9d3d2bf9ca03bf680937c | [
"MIT"
] | null | null | null | src/server/pageTemplate.js | kitten/extravaganza | fa0fe9bd25e42bc0dbb9d3d2bf9ca03bf680937c | [
"MIT"
] | null | null | null | src/server/pageTemplate.js | kitten/extravaganza | fa0fe9bd25e42bc0dbb9d3d2bf9ca03bf680937c | [
"MIT"
] | null | null | null | import { resolve } from 'path'
import { readFileSync } from 'fs'
const sanitizeCSS = readFileSync(
resolve(__dirname, '../../assets/sanitize.css'),
{ encoding: 'utf8' }
)
const injectScripts = names =>
names
.map(name => {
const async = name.startsWith('chunk/') ? 'async' : ''
return `<script ${async} type="text/javascript" src="/_extravaganza/${name}"></script>`.trim()
})
.join('\n')
const makePageTemplate = (html, css, scripts, slideNames) => `
<html>
<head>
<meta httpequiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">${sanitizeCSS}</style>
${css}
<title>Extravaganza Slides</title>
<link rel="icon" type="image/png" href="/static/favicon.png" />
</head>
<body>
<div id="root">${html}</div>
<script type="text/javascript">
window.__SLIDES__ = ${JSON.stringify(slideNames)}
</script>
${injectScripts(scripts)}
</body>
</html>
`
export const makeErrorTemplate = html => `
<html>
<head>
<meta httpequiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">${sanitizeCSS}</style>
<title>Extravaganza Slides: Error</title>
</head>
<body>
<div id="root">${html}</div>
</body>
</html>
`
export default makePageTemplate
| 25.603448 | 100 | 0.605387 |
bbc56dbc803d339b435f4c6f9d30678838655e53 | 1,093 | js | JavaScript | src/global/components/index.js | curiosity-hyf/X-Flowchart-Vue | 5540efb065cfa8ad1639d044aa76b469e4ccb174 | [
"MIT"
] | 1 | 2021-08-13T06:17:29.000Z | 2021-08-13T06:17:29.000Z | src/global/components/index.js | chenggang321/X-Flowchart-Vue | 48d1bc356d8fa36373f4a9ce3b8455ce5041ce3d | [
"MIT"
] | null | null | null | src/global/components/index.js | chenggang321/X-Flowchart-Vue | 48d1bc356d8fa36373f4a9ce3b8455ce5041ce3d | [
"MIT"
] | 1 | 2021-08-09T08:33:56.000Z | 2021-08-09T08:33:56.000Z | /**
* Created by OXOYO on 2019/5/29.
*
* 全局组件
*/
import {
Menu,
MenuItem,
Tooltip,
Divider,
InputNumber,
Dropdown,
DropdownMenu,
DropdownItem,
Icon,
Message,
Modal,
Input,
Form,
FormItem,
Slider,
Select,
Option,
Button
} from 'iview'
import { Sketch } from 'vue-color'
import XIcon from './Icon/Index'
import XTooltip from './Tooltip/Index'
import XDivider from './Divider/Index'
import XColorPicker from './ColorPicker/Index'
const obj = {
// ui组件
Menu,
MenuItem,
Tooltip,
Divider,
InputNumber,
Dropdown,
DropdownMenu,
DropdownItem,
Icon,
Message,
Modal,
Input,
Form,
FormItem,
Slider,
Select,
Option,
Button,
// 颜色选择器
SketchPicker: Sketch,
// 自定义组件
XIcon,
XTooltip,
XDivider,
XColorPicker
}
const components = {}
components.install = function (Vue, options) {
for (let name in obj) {
if (name && obj[name]) {
Vue.component(name, obj[name])
if (['Message', 'Modal'].includes(name)) {
Vue.prototype[`$${name}`] = obj[name]
}
}
}
}
export default components
| 14.194805 | 48 | 0.62763 |
bbc59877b74440e427e4a54d0e7dc05413ad894c | 4,163 | js | JavaScript | scraping/index.js | oSoc18/kiest_ze | 842eefcf3f6002ea90c2917682f625749398b33e | [
"Apache-2.0"
] | 3 | 2018-07-11T07:59:15.000Z | 2018-07-26T19:58:44.000Z | scraping/index.js | oSoc18/kiest_ze | 842eefcf3f6002ea90c2917682f625749398b33e | [
"Apache-2.0"
] | 4 | 2018-08-11T13:55:50.000Z | 2019-12-28T15:41:30.000Z | scraping/index.js | oSoc18/kiest_ze | 842eefcf3f6002ea90c2917682f625749398b33e | [
"Apache-2.0"
] | null | null | null | // chrome://inspect/#devices
// node --inspect index.js
// node --inspect-brk index.js
var getJSON = require('get-json')
var mysql = require('mysql');
var fs = require('fs');
var array = fs.readFileSync('password.txt').toString().split("\n");
var password = array[0];
var con = mysql.createConnection({
host: "emilesonneveld.be",
user: "emiles1q_kiest_ze",
password: password,
database: "emiles1q_kiest_ze"
});
con.connect(function (err) {
if (err) throw err;
console.log("Connected!");
const execQuery = (sql, params) => new Promise((resolve, reject) => {
con.query(sql, params, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
function downloadJsonAsTable(url) {
var begin = url.lastIndexOf("/")
var tableName = url.substring(begin + 1)
getJSON(url,
function (error, response) {
if (error) { throw err; }
//console.log("response.result", response.G);
const relevant_response = response.G;
for (let property1 in relevant_response) {
if (relevant_response.hasOwnProperty(property1)) {
const record = relevant_response[property1];
console.log(record);
var query = "CREATE TABLE `" + tableName + "` (\n"
query += "`kiestze_id` int(11) NOT NULL AUTO_INCREMENT,\n"
for (let columnName in record) {
if (record.hasOwnProperty(columnName)) {
const columnValue = record[columnName];
let type = null;
if (typeof columnValue == "number")
type = "int(11)"
else if (typeof columnValue == "string")
type = "varchar(45)"
if (type)
query += " `" + columnName + "` " + type + " NOT NULL,\n";
}
}
query += "PRIMARY KEY (`kiestze_id`),\n"
query += "UNIQUE KEY `kiestze_id_UNIQUE` (`kiestze_id`)\n"
query += ") ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='" + url + "'\n"
console.log("query:", query);
try {
//execQuery("IF OBJECT_ID(`emiles1q_kiest_ze`.`"+tableName+"`, 'U') IS NOT NULL \n"
let tmp = execQuery("DROP TABLE `emiles1q_kiest_ze`.`" + tableName + "`");
tmp.catch(function () {
console.log("Promise Rejected");
})
} catch (e) { } // if table didn't exist
let test = execQuery(query);
console.log(test);
process.exitCode = 1;
break; // only take first value.
}
}
for (let property1 in relevant_response) {
if (relevant_response.hasOwnProperty(property1)) {
const record = relevant_response[property1];
let query = "INSERT INTO `emiles1q_kiest_ze`.`" + tableName + "` VALUES \n(0 "; // 0 for the kiestze_id
for (let columnName in record) {
if (record.hasOwnProperty(columnName)) {
const columnValue = record[columnName];
if (typeof columnValue == "number")
query += "," + columnValue;
else if (typeof columnValue == "string")
query += "," + '"' + columnValue + '"';
}
}
query += ")";
let test = execQuery(query);
}
}
})
}
//downloadJsonAsTable('https://vlaanderenkiest.be/verkiezingen2012/2012/gemeente/overzicht.json')
//downloadJsonAsTable('https://vlaanderenkiest.be/verkiezingen2012/2012/gemeente/gewestelijkeLijsten.json') // 431 items, takes a minute to upload
//downloadJsonAsTable('https://vlaanderenkiest.be/verkiezingen2012/2012/gemeente/23050/entiteitUitslag.json')
downloadJsonAsTable('https://vlaanderenkiest.be/verkiezingen2012/2012/gemeente/23060/2/uitslag.json') // has a strange sctructure
// There are some other requests too
})
console.log("Thank you for using scraper!");
| 33.572581 | 148 | 0.546961 |
bbc5ad8f2bd6e7a3ad2730bca259c70d04a35330 | 415 | js | JavaScript | docs/search/functions_8.js | medamap/Medama | b4cdc43fff3e2206f0e22078693bb4eb06df7d14 | [
"MIT"
] | 5 | 2017-06-01T10:38:10.000Z | 2020-05-01T07:46:18.000Z | docs/search/functions_8.js | medamap/Medama | b4cdc43fff3e2206f0e22078693bb4eb06df7d14 | [
"MIT"
] | null | null | null | docs/search/functions_8.js | medamap/Medama | b4cdc43fff3e2206f0e22078693bb4eb06df7d14 | [
"MIT"
] | null | null | null | var searchData=
[
['uisethorizontallayoutgroup',['UISetHorizontalLayoutGroup',['../dd/dc3/class_medama_1_1_e_u_g_m_l_1_1_game_object_extensions.html#aca1aea597cbe55be6918af3cc237d4cb',1,'Medama::EUGML::GameObjectExtensions']]],
['updatefromreadstream',['UpdateFromReadStream',['../dd/dc8/class_medama_1_1_observable_ssh_1_1_buffer.html#a23f80082d399c2f8ba80fcba89c64a9b',1,'Medama::ObservableSsh::Buffer']]]
];
| 69.166667 | 211 | 0.824096 |
bbc62a5f5baa7a2ef9f7ddbf5dab5622c61cfd7c | 1,193 | js | JavaScript | client/views/account/sidebarItems.js | subramanir2143/Rocket.Chat | fe21ede7a1efa5e82c1f6fd66dffd4591de45969 | [
"MIT"
] | 36,780 | 2015-05-20T20:48:18.000Z | 2022-03-31T21:58:45.000Z | client/views/account/sidebarItems.js | subramanir2143/Rocket.Chat | fe21ede7a1efa5e82c1f6fd66dffd4591de45969 | [
"MIT"
] | 18,908 | 2015-05-25T21:21:36.000Z | 2022-03-31T20:19:33.000Z | client/views/account/sidebarItems.js | subramanir2143/Rocket.Chat | fe21ede7a1efa5e82c1f6fd66dffd4591de45969 | [
"MIT"
] | 10,343 | 2015-05-24T02:46:23.000Z | 2022-03-31T09:08:03.000Z | import { hasPermission } from '../../../app/authorization/client';
import { settings } from '../../../app/settings/client';
import { createSidebarItems } from '../../lib/createSidebarItems';
export const {
registerSidebarItem: registerAccountSidebarItem,
unregisterSidebarItem,
itemsSubscription,
} = createSidebarItems([
{
pathSection: 'account',
pathGroup: 'preferences',
i18nLabel: 'Preferences',
icon: 'customize',
},
{
pathSection: 'account',
pathGroup: 'profile',
i18nLabel: 'Profile',
icon: 'user',
permissionGranted: () => settings.get('Accounts_AllowUserProfileChange'),
},
{
pathSection: 'account',
pathGroup: 'security',
i18nLabel: 'Security',
icon: 'lock',
permissionGranted: () =>
settings.get('Accounts_TwoFactorAuthentication_Enabled') || settings.get('E2E_Enable'),
},
{
pathSection: 'account',
pathGroup: 'integrations',
i18nLabel: 'Integrations',
icon: 'code',
permissionGranted: () => settings.get('Webdav_Integration_Enabled'),
},
{
pathSection: 'account',
pathGroup: 'tokens',
i18nLabel: 'Personal_Access_Tokens',
icon: 'key',
permissionGranted: () => hasPermission('create-personal-access-tokens'),
},
]);
| 25.934783 | 90 | 0.69321 |
bbc62aaf929d9f1f7824ffdf8d477f308827e216 | 98,345 | js | JavaScript | docs/member-search-index.js | hakkelt/NDArrays | 1b349a16a4f7d4861264532728301e7684c2fa0e | [
"Apache-2.0"
] | 6 | 2021-11-29T19:55:36.000Z | 2022-03-08T13:25:15.000Z | docs/member-search-index.js | hakkelt/NDArrays | 1b349a16a4f7d4861264532728301e7684c2fa0e | [
"Apache-2.0"
] | null | null | null | docs/member-search-index.js | hakkelt/NDArrays | 1b349a16a4f7d4861264532728301e7684c2fa0e | [
"Apache-2.0"
] | null | null | null | memberSearchIndex = [{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"abs()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"abs()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"abs()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"abs()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"abs()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"abs()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"AbstractNDArray()","url":"%3Cinit%3E()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractRealNDArray","l":"AbstractRealNDArray()","url":"%3Cinit%3E()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayCollector","l":"accumulator()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayCollector","l":"accumulator()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AccumulateOperators","l":"ADD"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"add(AbstractNDArray<T, T2>, Object...)","url":"add(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"add(ComplexNDArray<T2>, Object...)","url":"add(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(NDArray<?>)","url":"add(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(NDArray<?>)","url":"add(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(Object...)","url":"add(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(Object...)","url":"add(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"add(Object...)","url":"add(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"add(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"add(short)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"addInplace(AbstractNDArray<T, T2>, Object...)","url":"addInplace(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"addInplace(ComplexNDArray<T2>, Object...)","url":"addInplace(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(NDArray<?>)","url":"addInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(NDArray<?>)","url":"addInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(Object...)","url":"addInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(Object...)","url":"addInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"addInplace(Object...)","url":"addInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"addInplace(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"addInplace(short)"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"ALL"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"ALL_DIMS_DROPPED"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"apply(UnaryOperator<Complex>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"apply(UnaryOperator<Complex>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"apply(UnaryOperator<Complex>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"apply(UnaryOperator<Complex>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"apply(UnaryOperator<Complex>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"apply(UnaryOperator<Complex>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"apply(UnaryOperator<T>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"apply(UnaryOperator<T>)","url":"apply(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"applyWithCartesianIndices(BiFunction<Complex, int[], Complex>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"applyWithCartesianIndices(BiFunction<Complex, int[], Complex>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"applyWithCartesianIndices(BiFunction<Complex, int[], Complex>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"applyWithCartesianIndices(BiFunction<Complex, int[], Complex>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"applyWithCartesianIndices(BiFunction<Complex, int[], Complex>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"applyWithCartesianIndices(BiFunction<Complex, int[], Complex>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"applyWithCartesianIndices(BiFunction<T, int[], T>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"applyWithCartesianIndices(BiFunction<T, int[], T>)","url":"applyWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"applyWithLinearIndices(BiFunction<Complex, Integer, Complex>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"applyWithLinearIndices(BiFunction<Complex, Integer, Complex>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"applyWithLinearIndices(BiFunction<Complex, Integer, Complex>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"applyWithLinearIndices(BiFunction<Complex, Integer, Complex>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"applyWithLinearIndices(BiFunction<Complex, Integer, Complex>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"applyWithLinearIndices(BiFunction<Complex, Integer, Complex>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"applyWithLinearIndices(BiFunction<T, Integer, T>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"applyWithLinearIndices(BiFunction<T, Integer, T>)","url":"applyWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"argument()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"argument()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"argument()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"argument()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"argument()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"argument()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"ArrayOperations()","url":"%3Cinit%3E()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"ARRAYS_DIFFER_IN_SHAPE"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"BasicBigDecimalNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"BasicBigDecimalNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"BasicBigIntegerNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"BasicBigIntegerNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"BasicByteNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"BasicByteNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"BasicComplexDoubleNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"BasicComplexDoubleNDArray(NDArray<?>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"BasicComplexDoubleNDArray(NDArray<? extends Number>, NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"BasicComplexFloatNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"BasicComplexFloatNDArray(NDArray<?>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"BasicComplexFloatNDArray(NDArray<? extends Number>, NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"BasicDoubleNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"BasicDoubleNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"BasicFloatNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"BasicFloatNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"BasicIntegerNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"BasicIntegerNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"BasicLongNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"BasicLongNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"BasicShortNDArray(int...)","url":"%3Cinit%3E(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"BasicShortNDArray(NDArray<? extends Number>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"BIGDECIMAL"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"BIGINTEGER"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"boundaryCheck(int, int)","url":"boundaryCheck(int,int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"boundaryCheck(int[], int[])","url":"boundaryCheck(int[],int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"BYTE"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"calculateLength(int[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"calculateMultipliers(int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"CANNOT_DROP_DIM_NEGATIVE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"CANNOT_DROP_DIM_OVERFLOW"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"CANNOT_SELECT_DIM_NEGATIVE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"CANNOT_SELECT_DIM_OVERFLOW"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"CARTESIAN_BOUNDS_ERROR"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"cartesianIndicesToLinearIndex(int[], int[])","url":"cartesianIndicesToLinearIndex(int[],int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayCollector","l":"characteristics()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayCollector","l":"characteristics()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"checkAgainstParentDims()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"checkDroppedDims(int, int...)","url":"checkDroppedDims(int,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"checkDTypeCompatibility(NDArray<?>, Object)","url":"checkDTypeCompatibility(io.github.hakkelt.ndarrays.NDArray,java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"checkSelectedDims(int, int...)","url":"checkSelectedDims(int,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"checkShapeCompatibility(NDArray<?>, int[])","url":"checkShapeCompatibility(io.github.hakkelt.ndarrays.NDArray,int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"COMBINE_SHAPE_MISMATCH"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"COMBINE_TYPE_MISMATCH"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"COMBINE_TYPE_MISMATCH_WITH_COMPLEX"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayCollector","l":"combiner()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayCollector","l":"combiner()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_BIGDECIMAL"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_BIGINTEGER"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_BYTE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_DOUBLE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_FLOAT"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_INTEGER"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_LONG"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"COMPLEX_SHORT"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayCollector","l":"ComplexNDArrayCollector(ComplexNDArray<T>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.ComplexNDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"ComplexNDArrayMaskView(NDArray<Complex>, BiPredicate<Complex, ?>, boolean)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,java.util.function.BiPredicate,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"ComplexNDArrayMaskView(NDArray<Complex>, NDArray<?>, boolean)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"ComplexNDArrayMaskView(NDArray<Complex>, Predicate<Complex>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,java.util.function.Predicate)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"ComplexNDArrayPermuteDimsView(NDArray<Complex>, int...)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"ComplexNDArrayReshapeView(NDArray<Complex>, int...)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"ComplexNDArraySliceView(NDArray<Complex>, Range[])","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.Range[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"computeDims(Object[])","url":"computeDims(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"concatenate(AbstractNDArray<T, T2>, int, NDArray<?>...)","url":"concatenate(io.github.hakkelt.ndarrays.internal.AbstractNDArray,int,io.github.hakkelt.ndarrays.NDArray...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"concatenate(ComplexNDArray<T2>, int, NDArray<?>...)","url":"concatenate(io.github.hakkelt.ndarrays.ComplexNDArray,int,io.github.hakkelt.ndarrays.NDArray...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"concatenate(int, NDArray<?>...)","url":"concatenate(int,io.github.hakkelt.ndarrays.NDArray...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"concatenate(int, NDArray<?>...)","url":"concatenate(int,io.github.hakkelt.ndarrays.NDArray...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"concatenate(int, NDArray<?>...)","url":"concatenate(int,io.github.hakkelt.ndarrays.NDArray...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"CONCATENATION_SHAPE_MISMATCH"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"contains(Object)","url":"contains(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"contains(Object)","url":"contains(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"contentToString()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"contentToString()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Printer","l":"contentToString(String, String, BiFunction<Integer, String, String>, String, int[], int[])","url":"contentToString(java.lang.String,java.lang.String,java.util.function.BiFunction,java.lang.String,int[],int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"COPY_FROM_UNSUPPORTED_TYPE"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"copy()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copy()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copy()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"copy()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"copy()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"copy()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"copy()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"copy()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"COPYFROM_INPUT_TYPE_DIFERS"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(AbstractNDArray<T, T2>, byte[])","url":"copyFrom(io.github.hakkelt.ndarrays.internal.AbstractNDArray,byte[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(AbstractNDArray<T, T2>, double[])","url":"copyFrom(io.github.hakkelt.ndarrays.internal.AbstractNDArray,double[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(AbstractNDArray<T, T2>, float[])","url":"copyFrom(io.github.hakkelt.ndarrays.internal.AbstractNDArray,float[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(AbstractNDArray<T, T2>, int[])","url":"copyFrom(io.github.hakkelt.ndarrays.internal.AbstractNDArray,int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(AbstractNDArray<T, T2>, long[])","url":"copyFrom(io.github.hakkelt.ndarrays.internal.AbstractNDArray,long[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(AbstractNDArray<T, T2>, Object[])","url":"copyFrom(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(AbstractNDArray<T, T2>, short[])","url":"copyFrom(io.github.hakkelt.ndarrays.internal.AbstractNDArray,short[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(byte[], byte[])","url":"copyFrom(byte[],byte[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(byte[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(byte[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"copyFrom(byte[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, byte[], byte[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,byte[],byte[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, byte[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,byte[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, double[], double[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,double[],double[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, double[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,double[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, float[], float[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,float[],float[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, float[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,float[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, int[], int[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,int[],int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, int[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, long[], long[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,long[],long[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, long[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,long[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, NDArray<? extends Number>, NDArray<? extends Number>)","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, Object[], Object[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object[],java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, Object[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, short[], short[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,short[],short[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(ComplexNDArray<T2>, short[])","url":"copyFrom(io.github.hakkelt.ndarrays.ComplexNDArray,short[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(double[], double[])","url":"copyFrom(double[],double[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(double[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(double[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"copyFrom(double[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(float[], float[])","url":"copyFrom(float[],float[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(float[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(float[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"copyFrom(float[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(int[], int[])","url":"copyFrom(int[],int[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(int[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"copyFrom(int[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(long[], long[])","url":"copyFrom(long[],long[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(long[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(long[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"copyFrom(long[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractRealNDArray","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayMaskView","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayPermuteDimsView","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayReshapeView","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArraySliceView","l":"copyFrom(NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(NDArray<? extends Number>, NDArray<? extends Number>)","url":"copyFrom(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(Object[], Object[])","url":"copyFrom(java.lang.Object[],java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(Object[])","url":"copyFrom(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(Object[])","url":"copyFrom(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"copyFrom(Object[])","url":"copyFrom(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFrom(RealNDArray<T2>, NDArray<?>)","url":"copyFrom(io.github.hakkelt.ndarrays.internal.RealNDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(short[], short[])","url":"copyFrom(short[],short[])"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"copyFrom(short[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"copyFrom(short[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"copyFrom(short[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"copyFromMagnitudePhase(ComplexNDArray<T2>, NDArray<? extends Number>, NDArray<? extends Number>)","url":"copyFromMagnitudePhase(io.github.hakkelt.ndarrays.ComplexNDArray,io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"CopyFromOperations","l":"CopyFromOperations()","url":"%3Cinit%3E()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"dataTypeAsString()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"dataTypeAsString()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractRealNDArray","l":"dataTypeAsString()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"DIMENSION_MISMATCH"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Printer","l":"dimsToString(int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AccumulateOperators","l":"DIVIDE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"divide(AbstractNDArray<T, T2>, Object...)","url":"divide(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"divide(ComplexNDArray<T2>, Object...)","url":"divide(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(NDArray<?>)","url":"divide(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(NDArray<?>)","url":"divide(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(Object...)","url":"divide(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(Object...)","url":"divide(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"divide(Object...)","url":"divide(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divide(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divide(short)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"divideInplace(AbstractNDArray<T, T2>, Object...)","url":"divideInplace(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"divideInplace(ComplexNDArray<T2>, Object...)","url":"divideInplace(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(NDArray<?>)","url":"divideInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(NDArray<?>)","url":"divideInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(Object...)","url":"divideInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(Object...)","url":"divideInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"divideInplace(Object...)","url":"divideInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"divideInplace(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"divideInplace(short)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"DOUBLE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"DROPDIMS_NOT_SINGLETON"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"dropDims(AbstractNDArray<T, T2>, int...)","url":"dropDims(io.github.hakkelt.ndarrays.internal.AbstractNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"dropDims(ComplexNDArray<T2>, int...)","url":"dropDims(io.github.hakkelt.ndarrays.ComplexNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"dropDims(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"dropDims(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"dropDims(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractBigDecimalNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractBigIntegerNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractByteNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractDoubleNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractFloatNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractIntegerNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractLongNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractShortNDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"dtype()"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"dtype2()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"dtype2()"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"end()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"equals(Object)","url":"equals(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"FileOperations()","url":"%3Cinit%3E()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"fill(AbstractNDArray<T, T2>, double)","url":"fill(io.github.hakkelt.ndarrays.internal.AbstractNDArray,double)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"fill(AbstractNDArray<T, T2>, T)","url":"fill(io.github.hakkelt.ndarrays.internal.AbstractNDArray,T)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"fill(Complex)","url":"fill(org.apache.commons.math3.complex.Complex)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"fill(ComplexNDArray<T2>, Complex)","url":"fill(io.github.hakkelt.ndarrays.ComplexNDArray,org.apache.commons.math3.complex.Complex)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"fill(ComplexNDArray<T2>, double)","url":"fill(io.github.hakkelt.ndarrays.ComplexNDArray,double)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"fill(ComplexNDArray<T2>, T2)","url":"fill(io.github.hakkelt.ndarrays.ComplexNDArray,T2)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"fill(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"fill(double)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"fill(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"fill(T)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"fill(T)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"fill(T)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"fillUsingCartesianIndices(Function<int[], Complex>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"fillUsingCartesianIndices(Function<int[], Complex>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"fillUsingCartesianIndices(Function<int[], Complex>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"fillUsingCartesianIndices(Function<int[], Complex>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"fillUsingCartesianIndices(Function<int[], Complex>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"fillUsingCartesianIndices(Function<int[], Complex>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"fillUsingCartesianIndices(Function<int[], T>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"fillUsingCartesianIndices(Function<int[], T>)","url":"fillUsingCartesianIndices(java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"fillUsingLinearIndices(IntFunction<Complex>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"fillUsingLinearIndices(IntFunction<Complex>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"fillUsingLinearIndices(IntFunction<Complex>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"fillUsingLinearIndices(IntFunction<Complex>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"fillUsingLinearIndices(IntFunction<Complex>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"fillUsingLinearIndices(IntFunction<Complex>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"fillUsingLinearIndices(IntFunction<T>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"fillUsingLinearIndices(IntFunction<T>)","url":"fillUsingLinearIndices(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayCollector","l":"finisher()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayCollector","l":"finisher()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"FLOAT"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"forEach(Consumer<? super T>)","url":"forEach(java.util.function.Consumer)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"forEach(Consumer<? super T>)","url":"forEach(java.util.function.Consumer)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"forEachSequential(Consumer<T>)","url":"forEachSequential(java.util.function.Consumer)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"forEachSequential(Consumer<T>)","url":"forEachSequential(java.util.function.Consumer)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"forEachWithCartesianIndices(BiConsumer<T, int[]>)","url":"forEachWithCartesianIndices(java.util.function.BiConsumer)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"forEachWithCartesianIndices(BiConsumer<T, int[]>)","url":"forEachWithCartesianIndices(java.util.function.BiConsumer)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"forEachWithLinearIndices(ObjIntConsumer<T>)","url":"forEachWithLinearIndices(java.util.function.ObjIntConsumer)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"forEachWithLinearIndices(ObjIntConsumer<T>)","url":"forEachWithLinearIndices(java.util.function.ObjIntConsumer)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"get(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"get(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"get(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"get(int)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"getCollector(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"getDType(Object)","url":"getDType(java.lang.Object)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"getExpressions()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"getImag(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"getImag(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"getImag(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"getImag(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"getIndex(String)","url":"getIndex(java.lang.String)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"getIndicesOfSingletonDims(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"getNamePrefix()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"getReal(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"getReal(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"getReal(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"getReal(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"getStringRepresentation(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"hashCode()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"IDENTIFIER_STRING"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"ILLEGAL_SLICING_EXPRESSION"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"imaginary()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"imaginary()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"imaginary()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"imaginary()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"imaginary()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"imaginary()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"INCOMPATIBLE_SHAPE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"intArrayToList(int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"intArrayToSet(int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"INTEGER"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"INVALID_PERMUTATOR"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"INVALID_RANGE"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"INVALID_RANGE_EXPRESSION"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"inverseMask(NDArray<?>)","url":"inverseMask(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"inverseMask(NDArray<?>)","url":"inverseMask(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"inverseMask(NDArray<?>)","url":"inverseMask(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"isScalar()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"isThisPermutationAnIdentityOperation(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"isThisReshapingAnIdentityOperation(int[], int[])","url":"isThisReshapingAnIdentityOperation(int[],int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"isThisSlicingAnIdentityOperation(NDArray<?>, Range[])","url":"isThisSlicingAnIdentityOperation(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.Range[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"ITERATOR_OUT_OF_BOUNDS"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"iterator()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"iterator()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"length()"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"length()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"length()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"LINEAR_BOUNDS_ERROR"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"linearIndexToCartesianIndices(int, int[])","url":"linearIndexToCartesianIndices(int,int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"LONG"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"map(UnaryOperator<Complex>)","url":"map(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"map(UnaryOperator<T>)","url":"map(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"map(UnaryOperator<T>)","url":"map(java.util.function.UnaryOperator)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"mapWithCartesianIndices(BiFunction<Complex, int[], Complex>)","url":"mapWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"mapWithCartesianIndices(BiFunction<T, int[], T>)","url":"mapWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"mapWithCartesianIndices(BiFunction<T, int[], T>)","url":"mapWithCartesianIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"mapWithLinearIndices(BiFunction<Complex, Integer, Complex>)","url":"mapWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"mapWithLinearIndices(BiFunction<T, Integer, T>)","url":"mapWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"mapWithLinearIndices(BiFunction<T, Integer, T>)","url":"mapWithLinearIndices(java.util.function.BiFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"MASK_DIMENSION_MISMATCH"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"mask(ComplexNDArray<T2>, BiPredicate<Complex, ?>, boolean)","url":"mask(io.github.hakkelt.ndarrays.ComplexNDArray,java.util.function.BiPredicate,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"mask(ComplexNDArray<T2>, NDArray<?>, boolean)","url":"mask(io.github.hakkelt.ndarrays.ComplexNDArray,io.github.hakkelt.ndarrays.NDArray,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"mask(ComplexNDArray<T2>, Predicate<Complex>)","url":"mask(io.github.hakkelt.ndarrays.ComplexNDArray,java.util.function.Predicate)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"mask(NDArray<?>)","url":"mask(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"mask(NDArray<?>)","url":"mask(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"mask(NDArray<?>)","url":"mask(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"mask(Predicate<Complex>)","url":"mask(java.util.function.Predicate)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"mask(Predicate<T>)","url":"mask(java.util.function.Predicate)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"mask(Predicate<T>)","url":"mask(java.util.function.Predicate)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"mask(RealNDArray<T2>, BiPredicate<T2, ?>, boolean)","url":"mask(io.github.hakkelt.ndarrays.internal.RealNDArray,java.util.function.BiPredicate,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"mask(RealNDArray<T2>, NDArray<?>, boolean)","url":"mask(io.github.hakkelt.ndarrays.internal.RealNDArray,io.github.hakkelt.ndarrays.NDArray,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"mask(RealNDArray<T2>, Predicate<T2>)","url":"mask(io.github.hakkelt.ndarrays.internal.RealNDArray,java.util.function.Predicate)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"maskWithCartesianIndices(BiPredicate<Complex, int[]>)","url":"maskWithCartesianIndices(java.util.function.BiPredicate)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"maskWithCartesianIndices(BiPredicate<T, int[]>)","url":"maskWithCartesianIndices(java.util.function.BiPredicate)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"maskWithCartesianIndices(BiPredicate<T, int[]>)","url":"maskWithCartesianIndices(java.util.function.BiPredicate)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"maskWithLinearIndices(BiPredicate<Complex, Integer>)","url":"maskWithLinearIndices(java.util.function.BiPredicate)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"maskWithLinearIndices(BiPredicate<T, Integer>)","url":"maskWithLinearIndices(java.util.function.BiPredicate)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"maskWithLinearIndices(BiPredicate<T, Integer>)","url":"maskWithLinearIndices(java.util.function.BiPredicate)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AccumulateOperators","l":"MULTIPLY"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"multiply(AbstractNDArray<T, T2>, Object...)","url":"multiply(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"multiply(ComplexNDArray<T2>, Object...)","url":"multiply(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(NDArray<?>)","url":"multiply(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(NDArray<?>)","url":"multiply(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(Object...)","url":"multiply(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(Object...)","url":"multiply(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"multiply(Object...)","url":"multiply(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiply(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiply(short)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"multiplyInplace(AbstractNDArray<T, T2>, Object...)","url":"multiplyInplace(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"multiplyInplace(ComplexNDArray<T2>, Object...)","url":"multiplyInplace(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(NDArray<?>)","url":"multiplyInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(NDArray<?>)","url":"multiplyInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(Object...)","url":"multiplyInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(Object...)","url":"multiplyInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"multiplyInplace(Object...)","url":"multiplyInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"multiplyInplace(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"multiplyInplace(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"ndim()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"ndim()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"NEGATIVE_NORM"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"norm()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"norm()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"norm(Double)","url":"norm(java.lang.Double)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"norm(Double)","url":"norm(java.lang.Double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"norm(int)"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"normalize(Range, int)","url":"normalize(io.github.hakkelt.ndarrays.Range,int)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"of(byte...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(byte[], byte[])","url":"of(byte[],byte[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(byte[], byte[])","url":"of(byte[],byte[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"of(double...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(double[], double[])","url":"of(double[],double[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(double[], double[])","url":"of(double[],double[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"of(float...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(float[], float[])","url":"of(float[],float[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(float[], float[])","url":"of(float[],float[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"of(int...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(int[], int[])","url":"of(int[],int[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(int[], int[])","url":"of(int[],int[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"of(long...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(long[], long[])","url":"of(long[],long[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(long[], long[])","url":"of(long[],long[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(Object[], Object[])","url":"of(java.lang.Object[],java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(Object[], Object[])","url":"of(java.lang.Object[],java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"of(Object[])","url":"of(java.lang.Object[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"of(short...)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"of(short[], short[])","url":"of(short[],short[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"of(short[], short[])","url":"of(short[],short[])"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"ofMagnitudePhase(NDArray<? extends Number>, NDArray<? extends Number>)","url":"ofMagnitudePhase(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"ofMagnitudePhase(NDArray<? extends Number>, NDArray<? extends Number>)","url":"ofMagnitudePhase(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"parallelStream()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"parallelStream()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"PARAMETER_MUST_BE_BETWEEN"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"parseExpressions(int[], Object...)","url":"parseExpressions(int[],java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"PERMUTATOR_SHAPE_MISMATCH"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"permuteDims(ComplexNDArray<T2>, int...)","url":"permuteDims(io.github.hakkelt.ndarrays.ComplexNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"permuteDims(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"permuteDims(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"permuteDims(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"permuteDims(RealNDArray<T2>, int...)","url":"permuteDims(io.github.hakkelt.ndarrays.internal.RealNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"RANGE_ZERO_STEPSIZE"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"Range(int, int, int, boolean, boolean, boolean)","url":"%3Cinit%3E(int,int,int,boolean,boolean,boolean)"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"Range(int, int, int)","url":"%3Cinit%3E(int,int,int)"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"Range(int, int)","url":"%3Cinit%3E(int,int)"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"Range(int)","url":"%3Cinit%3E(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"READ_FROM_FILE_WRONG_FILE_IDENTIFIER"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readComplexFromFile(DoubleBuffer, A)","url":"readComplexFromFile(java.nio.DoubleBuffer,A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readComplexFromFile(FloatBuffer, A)","url":"readComplexFromFile(java.nio.FloatBuffer,A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readFromFile(ByteBuffer, A)","url":"readFromFile(java.nio.ByteBuffer,A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readFromFile(DoubleBuffer, A)","url":"readFromFile(java.nio.DoubleBuffer,A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readFromFile(File, Function<int[], A>)","url":"readFromFile(java.io.File,java.util.function.Function)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigDecimalNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicBigIntegerNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicByteNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexDoubleNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicComplexFloatNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicDoubleNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicFloatNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicIntegerNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicLongNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.basic","c":"BasicShortNDArray","l":"readFromFile(File)","url":"readFromFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readFromFile(FloatBuffer, A)","url":"readFromFile(java.nio.FloatBuffer,A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readFromFile(IntBuffer, A)","url":"readFromFile(java.nio.IntBuffer,A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readFromFile(LongBuffer, A)","url":"readFromFile(java.nio.LongBuffer,A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"readFromFile(ShortBuffer, A)","url":"readFromFile(java.nio.ShortBuffer,A)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"real()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"real()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"real()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"real()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"real()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"real()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayCollector","l":"RealNDArrayCollector(NDArray<T>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayMaskView","l":"RealNDArrayMaskView(NDArray<T>, BiPredicate<T, ?>, boolean)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,java.util.function.BiPredicate,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayMaskView","l":"RealNDArrayMaskView(NDArray<T>, NDArray<?>, boolean)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.NDArray,boolean)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayMaskView","l":"RealNDArrayMaskView(NDArray<T>, Predicate<T>)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,java.util.function.Predicate)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayPermuteDimsView","l":"RealNDArrayPermuteDimsView(NDArray<T>, int...)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayReshapeView","l":"RealNDArrayReshapeView(NDArray<T>, int...)","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArraySliceView","l":"RealNDArraySliceView(NDArray<T>, Range[])","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.NDArray,io.github.hakkelt.ndarrays.Range[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"RESHAPE_LENGTH_MISMATCH"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"reshape(ComplexNDArray<T2>, int...)","url":"reshape(io.github.hakkelt.ndarrays.ComplexNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"reshape(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"reshape(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"reshape(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"reshape(RealNDArray<T2>, int...)","url":"reshape(io.github.hakkelt.ndarrays.internal.RealNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"resolveToParentIndices(int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"resolveViewDims()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"selectDims(AbstractNDArray<T, T2>, int...)","url":"selectDims(io.github.hakkelt.ndarrays.internal.AbstractNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"selectDims(ComplexNDArray<T2>, int...)","url":"selectDims(io.github.hakkelt.ndarrays.ComplexNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"selectDims(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"selectDims(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"selectDims(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"selectedDimsToSlicingExpression(int[], Set<Integer>)","url":"selectedDimsToSlicingExpression(int[],java.util.Set)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractBigDecimalNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractBigIntegerNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractByteNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractDoubleNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractFloatNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractIntegerNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractLongNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractShortNDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayMaskView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayPermuteDimsView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayReshapeView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArraySliceView","l":"set(Number, int...)","url":"set(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractBigDecimalNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractBigIntegerNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractByteNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractDoubleNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractFloatNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractIntegerNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractLongNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractShortNDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayMaskView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayPermuteDimsView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayReshapeView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArraySliceView","l":"set(Number, int)","url":"set(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"set(T, int...)","url":"set(T,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"set(T, int...)","url":"set(T,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"set(T, int)","url":"set(T,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"set(T, int)","url":"set(T,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"setImag(Number, int...)","url":"setImag(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"setImag(Number, int...)","url":"setImag(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"setImag(Number, int...)","url":"setImag(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"setImag(Number, int...)","url":"setImag(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"setImag(Number, int...)","url":"setImag(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"setImag(Number, int...)","url":"setImag(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"setImag(Number, int)","url":"setImag(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"setImag(Number, int)","url":"setImag(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"setImag(Number, int)","url":"setImag(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"setImag(Number, int)","url":"setImag(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"setImag(Number, int)","url":"setImag(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"setImag(Number, int)","url":"setImag(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"setImag(T2, int...)","url":"setImag(T2,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"setImag(T2, int)","url":"setImag(T2,int)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"setReal(Number, int...)","url":"setReal(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"setReal(Number, int...)","url":"setReal(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"setReal(Number, int...)","url":"setReal(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"setReal(Number, int...)","url":"setReal(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"setReal(Number, int...)","url":"setReal(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"setReal(Number, int...)","url":"setReal(java.lang.Number,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"setReal(Number, int)","url":"setReal(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"setReal(Number, int)","url":"setReal(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"setReal(Number, int)","url":"setReal(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"setReal(Number, int)","url":"setReal(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"setReal(Number, int)","url":"setReal(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"setReal(Number, int)","url":"setReal(java.lang.Number,int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"setReal(T2, int...)","url":"setReal(T2,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"setReal(T2, int)","url":"setReal(T2,int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"shape()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"shape()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"shape(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"shape(int)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"DataTypeEnum","l":"SHORT"},{"p":"io.github.hakkelt.ndarrays","c":"AbstractComplexNDArray","l":"similar()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"similar()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"similar()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"similar()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayMaskView","l":"similar()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayPermuteDimsView","l":"similar()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayReshapeView","l":"similar()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArraySliceView","l":"similar()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"SLICE_DIMENSION_MISMATCH"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"SLICE_OUT_OF_BOUNDS"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"slice(ComplexNDArray<T2>, Object...)","url":"slice(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"slice(Object...)","url":"slice(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"slice(Object...)","url":"slice(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"slice(Object...)","url":"slice(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"slice(RealNDArray<T2>, Object...)","url":"slice(io.github.hakkelt.ndarrays.internal.RealNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"SlicingExpression(int[], Range[])","url":"%3Cinit%3E(int[],io.github.hakkelt.ndarrays.Range[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"SlicingExpression(SlicingExpression, Range[])","url":"%3Cinit%3E(io.github.hakkelt.ndarrays.internal.SlicingExpression,io.github.hakkelt.ndarrays.Range[])"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"spliterator()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"spliterator()"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"squeeze()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"squeeze()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"squeeze()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"squeeze(AbstractNDArray<T, T2>)","url":"squeeze(io.github.hakkelt.ndarrays.internal.AbstractNDArray)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"squeeze(ComplexNDArray<T2>)","url":"squeeze(io.github.hakkelt.ndarrays.ComplexNDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"start()"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"step()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"stream()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"stream()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"streamCartesianIndices()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"streamCartesianIndices()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"streamCartesianIndices(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"streamLinearIndices()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"streamLinearIndices()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AccumulateOperators","l":"SUBTRACT"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"subtract(AbstractNDArray<T, T2>, Object...)","url":"subtract(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"subtract(ComplexNDArray<T2>, Object...)","url":"subtract(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(NDArray<?>)","url":"subtract(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(NDArray<?>)","url":"subtract(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(Object...)","url":"subtract(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(Object...)","url":"subtract(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"subtract(Object...)","url":"subtract(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtract(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtract(short)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"subtractInplace(AbstractNDArray<T, T2>, Object...)","url":"subtractInplace(io.github.hakkelt.ndarrays.internal.AbstractNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(byte)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(byte)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"subtractInplace(ComplexNDArray<T2>, Object...)","url":"subtractInplace(io.github.hakkelt.ndarrays.ComplexNDArray,java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(double)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(float)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(int)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(long)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(NDArray<?>)","url":"subtractInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(NDArray<?>)","url":"subtractInplace(io.github.hakkelt.ndarrays.NDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(Object...)","url":"subtractInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(Object...)","url":"subtractInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"subtractInplace(Object...)","url":"subtractInplace(java.lang.Object...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"subtractInplace(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"subtractInplace(short)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"sum()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"sum()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"sum(AbstractNDArray<T, T2>, int...)","url":"sum(io.github.hakkelt.ndarrays.internal.AbstractNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ArrayOperations","l":"sum(ComplexNDArray<T2>, int...)","url":"sum(io.github.hakkelt.ndarrays.ComplexNDArray,int...)"},{"p":"io.github.hakkelt.ndarrays","c":"ComplexNDArray","l":"sum(int...)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"sum(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArray","l":"sum(int...)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ComplexNDArrayCollector","l":"supplier()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"RealNDArrayCollector","l":"supplier()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"TOARRAY_COMPLEX_TO_REAL_ARRAY"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"TOARRAY_DEPTH_MISMATCH"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"toArray()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"toArray()"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"toArray(A)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"toArray(A)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"toArray(IntFunction<A>)","url":"toArray(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"toArray(IntFunction<A>)","url":"toArray(java.util.function.IntFunction)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"toString()"},{"p":"io.github.hakkelt.ndarrays","c":"Range","l":"toString()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"toString()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"SlicingExpression","l":"toString()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"Errors","l":"UNSUPPORTED_TYPE"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"unwrap(int, int)","url":"unwrap(int,int)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArrayUtils","l":"unwrap(int[], int[])","url":"unwrap(int[],int[])"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AccumulateOperators","l":"valueOf(String)","url":"valueOf(java.lang.String)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AccumulateOperators","l":"values()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"ViewOperations","l":"ViewOperations()","url":"%3Cinit%3E()"},{"p":"io.github.hakkelt.ndarrays.internal","c":"FileOperations","l":"writeToFile(File, AbstractNDArray<T, T2>)","url":"writeToFile(java.io.File,io.github.hakkelt.ndarrays.internal.AbstractNDArray)"},{"p":"io.github.hakkelt.ndarrays","c":"NDArray","l":"writeToFile(File)","url":"writeToFile(java.io.File)"},{"p":"io.github.hakkelt.ndarrays.internal","c":"AbstractNDArray","l":"writeToFile(File)","url":"writeToFile(java.io.File)"}] | 98,345 | 98,345 | 0.704896 |
bbc677f252b583f79d44c4dd47bb13dfa87b7264 | 16,843 | js | JavaScript | fabric-ca-client/lib/FabricCAServices.js | louis-murray/fabric-sdk-node | 0eb8838ff811100024227290dd97dcec0a254fc1 | [
"Apache-2.0"
] | 1 | 2020-11-02T01:51:40.000Z | 2020-11-02T01:51:40.000Z | fabric-ca-client/lib/FabricCAServices.js | louis-murray/fabric-sdk-node | 0eb8838ff811100024227290dd97dcec0a254fc1 | [
"Apache-2.0"
] | 48 | 2021-06-08T02:31:45.000Z | 2022-03-21T01:26:58.000Z | trustid-sdk/node_modules/fabric-network/node_modules/fabric-ca-client/lib/FabricCAServices.js | vipinsun/TrustID | 1c9178c5a1b42520307da1fa7f9b1899276178ed | [
"Apache-2.0"
] | 1 | 2021-01-16T16:18:12.000Z | 2021-01-16T16:18:12.000Z | /*
Copyright 2017, 2018 IBM All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const {Utils: utils, BaseClient} = require('fabric-common');
const FabricCAClient = require('./FabricCAClient');
const {normalizeX509} = BaseClient;
const util = require('util');
const path = require('path');
const parseURL = require('./helper').parseURL;
const checkRegistrar = require('./helper').checkRegistrar;
const getSubjectCommonName = require('./helper').getSubjectCommonName;
const logger = utils.getLogger('FabricCAClientService.js');
// setup the location of the default config shipped with code
const default_config = path.resolve(__dirname, '../config/default.json');
utils.getConfig().reorderFileStores(default_config, true);
/**
* @typedef {Object} TLSOptions
* @property {string[]} trustedRoots Array of PEM-encoded trusted root certificates
* @property {boolean} [verify=true] Determines whether or not to verify the server certificate when using TLS
*/
/**
* This is an implementation of the member service client which communicates with the Fabric CA server.
* @class
* @extends BaseClient
*/
const FabricCAServices = class extends BaseClient {
/**
* constructor
*
* @param {string | object} url The endpoint URL for Fabric CA services of the form: "http://host:port" or "https://host:port"
When this parameter is an object then it must include the parameters listed as key value pairs.
* @param {TLSOptions} tlsOptions The TLS settings to use when the Fabric CA services endpoint uses "https"
* @param {string} caName The optional name of the CA. Fabric-ca servers support multiple Certificate Authorities from
* a single server. If omitted or null or an empty string, then the default CA is the target of requests
* @param {CryptoSuite} cryptoSuite The optional cryptoSuite instance to be used if options other than defaults are needed.
* If not specified, an instance of {@link CryptoSuite} will be constructed based on the current configuration settings:
* <br> - crypto-hsm: use an implementation for Hardware Security Module (if set to true) or software-based key management (if set to false)
* <br> - crypto-keysize: security level, or key size, to use with the digital signature public key algorithm. Currently ECDSA
* is supported and the valid key sizes are 256 and 384
* <br> - crypto-hash-algo: hashing algorithm
* <br> - key-value-store: some CryptoSuite implementation requires a key store to persist private keys. A {@link CryptoKeyStore}
* is provided for this purpose, which can be used on top of any implementation of the {@link KeyValueStore} interface,
* such as a file-based store or a database-based one. The specific implementation is determined by the value of this configuration setting.
*/
constructor(url, tlsOptions, caName, cryptoSuite) {
super();
let _url, _tlsOptions, _caName, _cryptoSuite;
if (typeof url === 'object') {
_url = url.url;
_tlsOptions = url.tlsOptions;
_caName = url.caName;
_cryptoSuite = url.cryptoSuite;
} else {
_url = url;
_tlsOptions = tlsOptions;
_caName = caName;
_cryptoSuite = cryptoSuite;
}
this.caName = _caName;
const endpoint = parseURL(_url);
if (_cryptoSuite) {
this.setCryptoSuite(_cryptoSuite);
} else {
this.setCryptoSuite(utils.newCryptoSuite());
this.getCryptoSuite().setCryptoKeyStore(utils.newCryptoKeyStore());
}
this._fabricCAClient = new FabricCAClient({
caname: _caName,
protocol: endpoint.protocol,
hostname: endpoint.hostname,
port: endpoint.port,
tlsOptions: _tlsOptions
}, this.getCryptoSuite());
logger.debug('Successfully constructed Fabric CA service client: endpoint - %j', endpoint);
}
/**
* Returns the name of the certificate authority.
*
* @returns {string} caName
*/
getCaName() {
return this.caName;
}
/**
* @typedef {Object} RegisterRequest
* @property {string} enrollmentID - ID which will be used for enrollment
* @property {string} enrollmentSecret - Optional enrollment secret to set for the registered user.
* If not provided, the server will generate one.
* @property {string} role - Optional arbitrary string representing a role value for the user
* @property {string} affiliation - Affiliation with which this user will be associated,
* like a company or an organization
* @property {number} maxEnrollments - The maximum number of times this user will be permitted to enroll
* @property {KeyValueAttribute[]} attrs - Array of {@link KeyValueAttribute} attributes to assign to the user
*/
/**
* Register the member and return an enrollment secret.
* @param {RegisterRequest} req - The {@link RegisterRequest}
* @param registrar {User}. The identity of the registrar (i.e. who is performing the registration)
* @returns {Promise} The enrollment secret to use when this user enrolls
*/
register(req, registrar) {
if (!req) {
throw new Error('Missing required argument "request"');
}
if (!req.enrollmentID) {
throw new Error('Missing required argument "request.enrollmentID"');
}
if (typeof req.maxEnrollments === 'undefined' || req.maxEnrollments === null) {
// set maxEnrollments to 1
req.maxEnrollments = 1;
}
checkRegistrar(registrar);
return this._fabricCAClient.register(req.enrollmentID, req.enrollmentSecret, req.role, req.affiliation, req.maxEnrollments, req.attrs,
registrar.getSigningIdentity());
}
/**
* @typedef {Object} EnrollmentRequest
* @property {string} enrollmentID - The registered ID to use for enrollment
* @property {string} enrollmentSecret - The secret associated with the enrollment ID
* @property {string} profile - The profile name. Specify the 'tls' profile for a TLS certificate;
* otherwise, an enrollment certificate is issued.
* @property {string} csr - Optional. PEM-encoded PKCS#10 Certificate Signing Request. The message sent from client side to
* Fabric-ca for the digital identity certificate.
* @property {AttributeRequest[]} attr_reqs - An array of {@link AttributeRequest}
*/
/**
* @typedef {Object} Enrollment
* @property {Object} key - the private key
* @property {string} certificate - The enrollment certificate in base 64 encoded PEM format
* @property {string} rootCertificate - Base 64 encoded PEM-encoded certificate chain of the CA's signing certificate
*/
/**
* Enroll the member and return an opaque member object.
*
* @param req the {@link EnrollmentRequest} If the request contains the field "csr", this csr will be used for
* getting the certificate from Fabric-CA. Otherwise , a new private key will be generated and be used to
* generate a csr later.
* @returns {Promise<Enrollment>} If the request does not contain the field "csr", the returned promise resolves an
* {@link Enrollment} object with "key" for the new generated private key. If the request contains the field "csr",
* the resolved {@link Enrollment} object does not contain the property "key".
*/
async enroll(req) {
if (!req) {
logger.error('enroll() missing required argument "request"');
throw new Error('Missing required argument "request"');
}
if (!req.enrollmentID) {
logger.error('Invalid enroll request, missing enrollmentID');
throw new Error('req.enrollmentID is not set');
}
if (!req.enrollmentSecret) {
logger.error('Invalid enroll request, missing enrollmentSecret');
throw new Error('req.enrollmentSecret is not set');
}
if (req.attr_reqs) {
if (!Array.isArray(req.attr_reqs)) {
logger.error('Invalid enroll request, attr_reqs must be an array of AttributeRequest objects');
throw new Error('req.attr_reqs is not an array');
} else {
for (const i in req.attr_reqs) {
const attr_req = req.attr_reqs[i];
if (!attr_req.name) {
logger.error('Invalid enroll request, attr_reqs object is missing the name of the attribute');
throw new Error('req.att_regs is missing the attribute name');
}
}
}
}
const storeKey = this.getCryptoSuite()._cryptoKeyStore ? true : false;
try {
let csr;
let privateKey;
if (req.csr) {
logger.debug('try to enroll with a csr');
csr = req.csr;
} else {
try {
if (storeKey) {
privateKey = await this.getCryptoSuite().generateKey();
} else {
privateKey = this.getCryptoSuite().generateEphemeralKey();
}
logger.debug('successfully generated key pairs');
} catch (err) {
throw new Error(util.format('Failed to generate key for enrollment due to error [%s]: %s', err, err.stack));
}
try {
csr = privateKey.generateCSR('CN=' + req.enrollmentID);
logger.debug('successfully generated csr');
} catch (err) {
throw new Error(util.format('Failed to generate CSR for enrollment due to error [%s]: %s', err, err.stack));
}
}
const enrollResponse = await this._fabricCAClient.enroll(req.enrollmentID, req.enrollmentSecret, csr, req.profile, req.attr_reqs);
logger.debug('successfully enrolled %s', req.enrollmentID);
const enrollment = {
certificate: enrollResponse.enrollmentCert,
rootCertificate: enrollResponse.caCertChain
};
if (!req.csr) {
enrollment.key = privateKey;
}
return enrollment;
} catch (error) {
logger.error('Failed to enroll %s, error:%o', req.enrollmentID, error);
throw error;
}
}
/**
* Re-enroll the member in cases such as the existing enrollment certificate is about to expire, or
* it has been compromised
* @param {User} currentUser The identity of the current user that holds the existing enrollment certificate
* @param {AttributeRequest[]} Optional an array of {@link AttributeRequest} that indicate attributes to
* be included in the certificate
* @returns Promise for an object with "key" for private key and "certificate" for the signed certificate
*/
reenroll(currentUser, attr_reqs) {
if (!currentUser) {
logger.error('Invalid re-enroll request, missing argument "currentUser"');
throw new Error('Invalid re-enroll request, missing argument "currentUser"');
}
if (!currentUser.constructor || currentUser.constructor.name !== 'User') {
logger.error('Invalid re-enroll request, "currentUser" is not a valid User object');
throw new Error('Invalid re-enroll request, "currentUser" is not a valid User object');
}
if (attr_reqs) {
if (!Array.isArray(attr_reqs)) {
logger.error('Invalid re-enroll request, attr_reqs must be an array of AttributeRequest objects');
throw new Error('Invalid re-enroll request, attr_reqs must be an array of AttributeRequest objects');
} else {
for (const i in attr_reqs) {
const attr_req = attr_reqs[i];
if (!attr_req.name) {
logger.error('Invalid re-enroll request, attr_reqs object is missing the name of the attribute');
throw new Error('Invalid re-enroll request, attr_reqs object is missing the name of the attribute');
}
}
}
}
const cert = currentUser.getIdentity()._certificate;
let subject = null;
try {
subject = getSubjectCommonName(normalizeX509(cert));
} catch (err) {
logger.error(util.format('Failed to parse enrollment certificate %s for Subject. \nError: %s', cert, err));
}
if (!subject) {
throw new Error('Failed to parse the enrollment certificate of the current user for its subject');
}
const self = this;
return new Promise((resolve, reject) => {
// generate enrollment certificate pair for signing
self.getCryptoSuite().generateKey()
.then(
(privateKey) => {
// generate CSR using the subject of the current user's certificate
try {
const csr = privateKey.generateCSR('CN=' + subject);
self._fabricCAClient.reenroll(csr, currentUser.getSigningIdentity(), attr_reqs)
.then(
(response) => {
return resolve({
key: privateKey,
certificate: Buffer.from(response.result.Cert, 'base64').toString(),
rootCertificate: Buffer.from(response.result.ServerInfo.CAChain, 'base64').toString()
});
},
(err) => {
return reject(err);
}
);
} catch (err) {
return reject(new Error(util.format('Failed to generate CSR for enrollment due to error [%s]', err)));
}
},
(err) => {
return reject(new Error(util.format('Failed to generate key for enrollment due to error [%s]: %s', err, err.stack)));
}
);
});
}
/**
* Revoke an existing certificate (enrollment certificate or transaction certificate), or revoke
* all certificates issued to an enrollment id. If revoking a particular certificate, then both
* the Authority Key Identifier and serial number are required. If revoking by enrollment id,
* then all future requests to enroll this id will be rejected.
* @param {Object} request Request object with the following fields:
* <br> - enrollmentID {string}. ID to revoke
* <br> - aki {string}. Authority Key Identifier string, hex encoded, for the specific certificate to revoke
* <br> - serial {string}. Serial number string, hex encoded, for the specific certificate to revoke
* <br> - reason {string}. The reason for revocation. See https://godoc.org/golang.org/x/crypto/ocsp
* <br> - gencrl {bool}. GenCRL specifies whether to generate a CRL
* for valid values. The default value is 0 (ocsp.Unspecified).
* @param {User} registrar The identity of the registrar (i.e. who is performing the revocation)
* @returns {Promise} The revocation results
*/
revoke(request, registrar) {
if (!request) {
throw new Error('Missing required argument "request"');
}
if (!request.enrollmentID || request.enrollmentID === '') {
if (!request.aki || request.aki === '' || !request.serial || request.serial === '') {
throw new Error('Enrollment ID is empty, thus both "aki" and "serial" must have non-empty values');
}
}
checkRegistrar(registrar);
return this._fabricCAClient.revoke(
request.enrollmentID,
request.aki,
request.serial,
(request.reason) ? request.reason : null,
(request.gencrl) ? request.gencrl : false,
registrar.getSigningIdentity());
}
/**
* @typedef {Object} Restriction
* @property {Date} revokedBefore - Include certificates that were revoked before this UTC timestamp (in RFC3339 format) in the CRL
* @property {Date} revokedAfter - Include certificates that were revoked after this UTC timestamp (in RFC3339 format) in the CRL
* @property {Date} expireBefore - Include revoked certificates that expire before this UTC timestamp (in RFC3339 format) in the CRL
* @property {Date} expireAfter - Include revoked certificates that expire after this UTC timestamp (in RFC3339 format) in the CRL
*/
/**
*
* @param {Restriction} request
* @param {User} registrar The identity of the registrar (i.e. who is performing the revocation)
* @returns {Promise} The Certificate Revocation List (CRL)
*/
generateCRL(request, registrar) {
if (!request) {
throw new Error('Missing required argument "request"');
}
checkRegistrar(registrar);
return this._fabricCAClient.generateCRL(
request.revokedBefore ? request.revokedBefore.toISOString() : null,
request.revokedAfter ? request.revokedAfter.toISOString() : null,
request.expireBefore ? request.expireBefore.toISOString() : null,
request.expireAfter ? request.expireAfter.toISOString() : null,
registrar.getSigningIdentity());
}
/**
* Create a new {@link CertificateService} instance
*
* @returns {CertificateService} object
*/
newCertificateService() {
return this._fabricCAClient.newCertificateService();
}
/**
* Creates a new {@link IdentityService} object
*
* @returns {IdentityService} object
*/
newIdentityService() {
return this._fabricCAClient.newIdentityService();
}
/**
* Create a new {@link AffiliationService} object
*
* @returns {AffiliationService} object
*/
newAffiliationService() {
return this._fabricCAClient.newAffiliationService();
}
/**
* @typedef {Object} HTTPEndpoint
* @property {string} hostname
* @property {number} port
* @property {string} protocol
*/
/**
* return a printable representation of this object
*/
toString() {
return 'FabricCAServices : {' +
'hostname: ' + this._fabricCAClient._hostname +
', port: ' + this._fabricCAClient._port +
'}';
}
/**
* Utility function that exposes the helper.parseURL() function
* @param {string} url HTTP or HTTPS url including protocol, host and port
* @returns {HTTPEndpoint}
* @throws InvalidURL for malformed URLs
* @ignore
*/
static _parseURL(url) {
return parseURL(url);
}
};
module.exports = FabricCAServices;
| 37.512249 | 142 | 0.70041 |
bbc724e6076713784d9d20e179260c3342e5f7a5 | 174 | js | JavaScript | client/cypress/integration/App.test.js | CloudPower97/db-project-api | f993e6fa9531f5072f35a0b8cb8f040118857081 | [
"MIT"
] | null | null | null | client/cypress/integration/App.test.js | CloudPower97/db-project-api | f993e6fa9531f5072f35a0b8cb8f040118857081 | [
"MIT"
] | 3 | 2020-09-06T01:01:29.000Z | 2021-05-08T07:38:17.000Z | client/cypress/integration/App.test.js | CloudPower97/db-project-api | f993e6fa9531f5072f35a0b8cb8f040118857081 | [
"MIT"
] | null | null | null | describe('App', () => {
beforeEach(() => {
cy.visit('/')
})
it('should have a logo', () => {
cy.get('img.App-logo').should('have.attr', 'alt', 'logo')
})
})
| 17.4 | 61 | 0.465517 |
bbc832f5e6822074d750a0ec923ec28dab5e477c | 580 | js | JavaScript | src/screens/Contact.js | fractalscape13/ToDoListNative | 4d56b40c8f41a6ceb27b57ec2103e5afdf26be1f | [
"MIT"
] | null | null | null | src/screens/Contact.js | fractalscape13/ToDoListNative | 4d56b40c8f41a6ceb27b57ec2103e5afdf26be1f | [
"MIT"
] | null | null | null | src/screens/Contact.js | fractalscape13/ToDoListNative | 4d56b40c8f41a6ceb27b57ec2103e5afdf26be1f | [
"MIT"
] | null | null | null | import React, { useState } from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default function Contact() {
return (
<View style={styles.contact}>
<Text style={styles.text}> Email us with any questions</Text>
</View>
);
}
const styles = StyleSheet.create({
contact: {
flex: 1,
backgroundColor: 'rgb(120, 150, 140)',
borderTopColor: 'ivory',
borderStyle: 'solid',
borderTopWidth: 5,
justifyContent: 'center',
alignItems: 'center',
},
text: {
fontSize: 20,
color: 'ivory',
margin: 8,
}
}); | 20.714286 | 67 | 0.613793 |
bbc88752dd255df208635f8c59952159aecf8c78 | 29,269 | js | JavaScript | WebContent/other/bubbletree/build/bubbletree.min.js | olivier-gerbe/k-cergy | e561cb6c0b56d874d3122e007af9d3a3561e952f | [
"Apache-2.0"
] | null | null | null | WebContent/other/bubbletree/build/bubbletree.min.js | olivier-gerbe/k-cergy | e561cb6c0b56d874d3122e007af9d3a3561e952f | [
"Apache-2.0"
] | null | null | null | WebContent/other/bubbletree/build/bubbletree.min.js | olivier-gerbe/k-cergy | e561cb6c0b56d874d3122e007af9d3a3561e952f | [
"Apache-2.0"
] | null | null | null | /*!
* BubbleTree 2.0.1
*
* Copyright (c) 2011 Gregor Aisch (http://driven-by-data.net)
* Licensed under the MIT license
*
*//*jshint undef: true, browser:true, jquery: true, devel: true, smarttabs: true *//*global Raphael, TWEEN, vis4, vis4color, vis4loader */var BubbleTree=function(a,b,c){var d=this;d.version="2.0.2",d.$container=$(a.container),d.config=$.extend({rootPath:"",minRadiusLabels:40,minRadiusAmounts:20,minRadiusHideLabels:0,cutLabelsAt:50},a),d.tooltip=a.tooltipCallback?a.tooltipCallback:function(){},a.tooltip&&(d.tooltip=a.tooltip),d.style=a.bubbleStyles,d.ns=BubbleTree,d.nodesByUrlToken={},d.nodeList=[],d.iconsByUrlToken={},d.globalNodeCounter=0,d.displayObjects=[],d.bubbleScale=1,d.globRotation=0,d.currentYear=a.initYear,d.currentCenter=undefined,d.currentTransition=undefined,d.baseUrl="",d.loadData=function(a){$.ajax({url:a,dataType:"json",success:this.setData.bind(this)})},d.setData=function(a){var b=this;a||(a=b.config.data),b.initData(a),b.initPaper(),b.initBubbles(),b.initTween(),b.initHistory()},d.initData=function(a){var b=this;a.level=0,b.preprocessData(a),b.traverse(a,0),b.treeRoot=a},d.preprocessData=function(a){var b=this,c=b.config.maxNodesPerLevel;if(c&&c<a.children.length){var d=b.sortChildren(a.children);d.reverse();var e=[],f=[],g=0,h;for(var i in a.children)i<c?e.push(a.children[i]):(f.push(a.children[i]),g+=Math.max(0,a.children[i].amount));a.children=e,a.children.push({label:"More",name:"more",amount:g,children:f,breakdown:h})}},d.traverse=function(a,b){var c,d,e,f=this,g,h=f.config.bubbleStyles;a.children||(a.children=[]),f.nodeList.push(a),a.famount=f.ns.Utils.formatNumber(a.amount),a.parent&&(a.level=a.parent.level+1),f.config.clearColors===!0&&(a.color=!1);if(h){var i=["color","shortLabel","icon"];$.each(i,function(b,c){h.hasOwnProperty("id")&&h.id.hasOwnProperty(a.id)&&h.id[a.id].hasOwnProperty(c)?a[c]=h.id[a.id][c]:a.hasOwnProperty("name")&&h.hasOwnProperty("name")&&h.name.hasOwnProperty(a.name)&&h.name[a.name].hasOwnProperty(c)?a[c]=h.name[a.name][c]:a.hasOwnProperty("taxonomy")&&h.hasOwnProperty(a.taxonomy)&&h[a.taxonomy].hasOwnProperty(a.name)&&h[a.taxonomy][a.name].hasOwnProperty(c)&&(a[c]=h[a.taxonomy][a.name][c])})}a.color||(a.level>0?a.color=a.parent.color:a.color="#999999"),a.children.length<2&&a.color&&(a.color=vis4color.fromHex(a.color).saturation("*.86").x),a.level>0&&(e=a.parent.children,e.length>1&&(a.left=e[(b-1+e.length)%e.length],a.right=e[(Number(b)+1)%e.length],a.right==a.left&&(a.right=undefined))),a.label!==undefined&&a.label!==""?g=a.label:a.token!==undefined&&a.token!==""?g=a.token:g=""+f.globalNodeCounter,f.globalNodeCounter++,a.urlToken=g.toLowerCase().replace(/\W/g,"-");while(f.nodesByUrlToken.hasOwnProperty(a.urlToken))a.urlToken+="-";f.nodesByUrlToken[a.urlToken]=a,a.maxChildAmount=0,a.children=f.sortChildren(a.children,!0,f.config.sortBy),$.each(a.children,function(b,c){c.parent=a,a.maxChildAmount=Math.max(a.maxChildAmount,c.amount),f.traverse(c,b)}),a.breakdowns&&(a.breakdownsByName={},$.each(a.breakdowns,function(b,c){c.famount=f.ns.Utils.formatNumber(c.amount),c.name&&(a.breakdownsByName[c.name]=c)}))},d.sortChildren=function(a,b,c){var e=[],f=!0;c=="label"?(c=d.compareLabels,b=!1):c=d.compareAmounts,a.sort(c);if(b){while(a.length>0)e.push(f?a.pop():a.shift()),f=!f;return e}return a},d.compareAmounts=function(a,b){return a.amount>b.amount?1:a.amount==b.amount?0:-1},d.compareLabels=function(a,b){return a.label>b.label?1:a.label==b.label?0:-1},d.initPaper=function(){var a=this,b=a.$container,c=a.treeRoot,d=b.width(),e=b.height(),f=Raphael(b[0],d,e),g=Math.min(d,e)*.5-40,h,i=a.ns.Vector,j=new i(d*.5,e*.5);a.width=d,a.height=e,a.paper=f,h=Math.pow((Math.pow(c.amount,.6)+Math.pow(c.maxChildAmount,.6)*2)/g,1.6666666667),a.a2radBase=a.ns.a2radBase=h,a.origin=j,$(window).resize(a.onResize.bind(a))},d.onResize=function(){var a=this,b=a.$container,c=b.width(),d=b.height(),e=Math.min(c,d)*.5-40,f,g=a.treeRoot,h,i;a.paper.setSize(c,d),a.origin.x=c*.5,a.origin.y=d*.5,a.width=c,a.height=d,f=Math.pow((Math.pow(g.amount,.6)+Math.pow(g.maxChildAmount,.6)*2)/e,1.6666666667),a.a2radBase=a.ns.a2radBase=f,$.each(a.displayObjects,function(b,c){c.className=="bubble"&&(c.bubbleRad=a.ns.Utils.amount2rad(c.node.amount))}),a.currentCenter&&a.changeView(a.currentCenter.urlToken)},d.initTween=function(){this.tweenTimer=setInterval(this.loop,1e3/120)},d.initBubbles=function(){var a=this,b=a.treeRoot,c,d=!1,e=a.ns.Bubbles,f;a.bubbleClasses=[],a.config.hasOwnProperty("bubbleType")||(a.config.bubbleType=["plain"]),$.isArray(a.config.bubbleType)||(a.config.bubbleType=[a.config.bubbleType]),$.isArray(a.config.bubbleType)&&$.each(a.config.bubbleType,function(b){a.config.bubbleType[b]=="icon"&&(d=!0),a.bubbleClasses.push(a.getBubbleType(a.config.bubbleType[b]))});var g=a.createBubble(b,a.origin,0,0,b.color);a.traverseBubbles(g)},d.getBubbleType=function(a){var b=this,c=b.ns.Bubbles;switch(a){case"pie":return c.Pies;case"donut":return c.Donut;case"multi":return c.Multi;case"icon":return c.Icon;default:return c.Plain}},d.traverseBubbles=function(a){var b=this,c,d=b.ns.Utils.amount2rad,e,f,g,h,i=0,j=0,k,l,m=Math.PI*2;g=a.node.children,$.each(g,function(a,b){i+=d(b.amount)}),g.length>0&&(c=b.createRing(a.node,a.pos,0,{stroke:"#888","stroke-dasharray":"-"})),$.each(g,function(c,e){k=d(e.amount)/i*m,l=j+k*.5,isNaN(l)&&vis4.log(j,k,e.amount,i,m),e.centerAngle=l,h=b.createBubble(e,a.pos,0,l,e.color),j+=k,b.traverseBubbles(h)})},d.createBubble=function(a,b,c,d,e){var f=this,g=f.ns,h,i,j,k=a.level;isNaN(k)&&(k=0),k=Math.min(k,f.bubbleClasses.length-1),j=new f.bubbleClasses[k](a,f,b,c,d,e),f.displayObjects.push(j);return j},d.createRing=function(a,b,c,d){var e=this,f=e.ns,g;g=new f.Ring(a,e,b,c,d),e.displayObjects.push(g);return g},d.changeView=function(a){var b=this,c=b.paper,d=Math.min(b.width,b.height)*.35,e=b.ns,f=e.Utils,g=b.origin,h={stroke:"#ccc","stroke-dasharray":"- "},i={stroke:"#ccc","stroke-dasharray":". "},j=f.amount2rad,k=b.treeRoot,l=b.nodesByUrlToken,m=l.hasOwnProperty(a)?l[a]:null,n=new e.Layout,o,p,q,r=Math.PI*2,s=b.getBubble.bind(b),t=b.getRing.bind(b),u=b.unifyAngle;if(m!==null){var v,w,x,y,z,A,B,C,D,E,F,G,H,I=!1,J=!1;for(q in b.displayObjects)b.displayObjects[q].hideFlag=!0;if(m==k||m.parent==k&&m.children.length<2){n.$(b).bubbleScale=1,n.$(g).x=b.width*.5,n.$(g).y=b.height*.5,v=s(k),m!=k&&(v.childRotation=-m.centerAngle),A=j(k.amount)+j(k.maxChildAmount)+20,F=t(k),n.$(F).rad=A;for(q in k.children)z=k.children[q],o=s(z),n.$(o).angle=u(z.centerAngle+v.childRotation),n.$(o).rad=A}else{var K=m;m.children.length<2&&(m=m.parent),G=d/(j(m.amount)+j(m.maxChildAmount)*2),n.$(b).bubbleScale=G,v=s(m),b.currentCenter&&b.currentCenter==m.left?J=!0:b.currentCenter&&b.currentCenter==m.right&&(I=!0);var L=b.shortestAngleTo;n.$(v).angle=L(v.angle,0),A=(j(m.amount)+j(m.maxChildAmount))*G+20,F=t(m),n.$(F).rad=A,w=s(m.parent),w.childRotation=-m.centerAngle;var M=w;while(M&&M.node.parent)M=s(M.node.parent,!0),n.$(M).rad=0;n.$(w).rad=0;var N=b.width*.5;B=0-Math.max(N*.8-G*(j(m.parent.amount)+j(Math.max(m.amount*1.15+m.maxChildAmount*1.15,m.left.amount*.85,m.right.amount*.85))),G*j(m.parent.amount)*-1+N*.15)+N;if(m.left&&m.right)var O=G*j(Math.max(m.left.amount,m.right.amount));H=A+B,n.$(g).x=b.width*.5-B-(m!=K?A*.35:0),n.$(g).y=b.height*.5,new vis4.DelayedTask(1500,vis4,vis4.log,g,w.pos),B+=b.width*.1,F=t(m.parent),n.$(F).rad=B,n.$(v).rad=B;var P=0-(m!=K?K.centerAngle+v.childRotation:0);for(q in m.children)z=m.children[q],o=s(z),n.$(o).angle=b.shortestAngleTo(o.angle,z.centerAngle+v.childRotation+P),n.$(o).rad=A;var Q=b.height*.07;m.left&&(x=m.left,D=j(x.amount)*G,E=r-Math.asin((b.paper.height*.5+D-Q)/B),o=s(x),n.$(o).rad=B,n.$(o).angle=L(o.angle,E)),m.right&&(x=m.right,D=j(x.amount)*G,E=Math.asin((b.paper.height*.5+D-Q)/B),o=s(x),n.$(o).rad=B,n.$(o).angle=L(o.angle,E)),m=K}for(q in b.displayObjects){var R=b.displayObjects[q];R.hideFlag&&R.visible?(n.$(R).alpha=0,R.className=="bubble"&&R.node.level>1&&(n.$(R).rad=0),n.hide(R)):R.hideFlag||(n.$(R).alpha=1,R.visible||(R.alpha=0,n.show(R)))}p=new e.Transitioner($.browser.msie||b.currentCenter==m?0:1e3),p.changeLayout(n),b.currentTransition=p,!b.currentCenter&&$.isFunction(b.config.firstNodeCallback)&&b.config.firstNodeCallback(m),b.currentCenter=m}else f.log("node "+a+" not found")},d.unifyAngle=function(a){var b=Math.PI,c=b*2;while(a>=c)a-=c;while(a<0)a+=c;return a},d.shortestAngle=function(a,b){var c=function(a){return Math.round(a/Math.PI*180)+""},e=Math.PI,f=e*2,g=d.unifyAngle;a=g(a),b=g(b);var h=b-a;h>e&&(h-=f),h<-e&&(h+=f);return h},d.shortestAngleTo=function(a,b){return a+d.shortestAngle(a,b)},d.shortestLeftTurn=function(a,b){var c=d.shortestAngle(a,b);c>0&&(c=c-Math.PI*2);return a+c},d.shortestRightTurn=function(a,b){var c=d.shortestAngle(a,b);c<0&&(c=Math.PI*2+c);return a+c},d.getBubble=function(a,b){return this.getDisplayObject("bubble",a,b)},d.getRing=function(a){return this.getDisplayObject("ring",a)},d.getDisplayObject=function(a,b,c){var d=this,e,f;for(e in d.displayObjects){f=d.displayObjects[e];if(f.className!=a)continue;if(f.node==b){c||(f.hideFlag=!1);return f}}vis4.log(a+" not found for node",b)},d.initHistory=function(){$.history.init(d.urlChanged.bind(d),{unescape:",/"})},d.freshUrl="",d.urlChanged=function(a){var b=this,c=b.currentTransition;b.freshUrl||a.indexOf("/~/")&&(b.baseUrl=a.substr(0,a.indexOf("/~/"))),b.freshUrl=a,c&&c.running?(vis4.log("transition is running at the moment, adding listener"),c.onComplete(b.changeUrl.bind(b))):b.changeUrl()},d.changeUrl=function(){var a=this,b=a.freshUrl.split("/"),c=b[b.length-1],d;a.freshUrl===""&&a.navigateTo(a.treeRoot),a.nodesByUrlToken.hasOwnProperty(c)?(d=a.getUrlForNode(a.nodesByUrlToken[c]),a.freshUrl!=d?$.history.load(d):a.navigateTo(a.nodesByUrlToken[c],!0)):a.navigateTo(a.treeRoot)},d.navigateTo=function(a,b){var c=this;b?c.changeView(a.urlToken):$.history.load(c.getUrlForNode(a)),$(".label, .label2",c.$container).removeClass("current"),$(".label2."+a.id,c.$container).addClass("current"),$(".label."+a.id,c.$container).addClass("current")},d.getUrlForNode=function(a){var b=[];b.push(a.urlToken);while(a.parent)b.push(a.parent.urlToken),a=a.parent;b.reverse();return d.baseUrl+"/~/"+b.join("/")},d.onNodeClick=function(a){$.isFunction(d.config.nodeClickCallback)&&d.config.nodeClickCallback(a)},d.clean=function(){var a=this,b;$(".label").remove()},this.loop=function(){TWEEN.update()};if(!d.config.hasOwnProperty("data"))throw new Error("no data");typeof d.config.data=="string"?d.loadData():new vis4.DelayedTask(1e3,d,d.setData,d.config.data)};BubbleTree.Styles={},BubbleTree.Layout=function(){var a=this;a.objects=[],a.props=[],a.toHide=[],a.toShow=[],a.$=function(a){var b=this,c,d,e;for(c in b.objects){d=b.objects[c];if(d==a)return b.props[c]}b.objects.push(a),e={},b.props.push(e);return e},a.show=function(a){var b=this;b.toShow.push(a)},a.hide=function(a){var b=this;b.toHide.push(a)}},BubbleTree.Line=function(a,b,c,d,e,f){this.bc=a,this.o=c,this.angle=d,this.fromRad=e,this.attr=b,this.toRad=f,this.getXY=function(){this.x1=this.o.x+Math.cos(this.angle)*this.fromRad,this.y1=this.o.y-Math.sin(this.angle)*this.fromRad,this.x2=this.o.x+Math.cos(this.angle)*this.toRad,this.y2=this.o.y-Math.sin(this.angle)*this.toRad},this.init=function(){this.getXY(),console.log("foo","M"+this.x1+" "+this.y1+"L"+this.x2+" "+this.y2,b),this.path=this.bc.paper.path("M"+this.x1+" "+this.y1+"L"+this.x2+" "+this.y2).attr(this.attr)},this.draw=function(){this.getXY(),this.path.attr({path:"M"+this.x1+" "+this.y1+"L"+this.x2+" "+this.y2})},this.init()},BubbleTree.Loader=function(a){var b=this;b.config=a,b.ns=BubbleTree,b.loadData=function(){var a=this,b=a.config.data;console.log("loading url ",b),$.ajax({url:b,context:a,dataType:"json",success:function(a){this.run(a)}})},b.run=function(a){var b=this,c=new BubbleTree(b.config);c.setData(a),b.config.instance=c},!!b.config.hasOwnProperty("data"),typeof b.config.data=="string"?b.loadData():b.run(b.config.data)},BubbleTree.MouseEventGroup=function(a,b){var c=this;c.target=a,c.members=b,c.click=function(a){var b=this,c=b.members,d,e;b.clickCallback=a;for(d in c)e=c[d],$(e).click(b.handleClick.bind(b))},c.handleClick=function(a){var b=this;b.clickCallback({target:b.target,origEvent:a,mouseEventGroup:b})},c.hover=function(a){var b=this,c=b.members,d,e;b.hoverCallback=a;for(d in c)e=c[d],$(e).hover(b.handleMemberHover.bind(b),b.handleMemberUnHover.bind(b))},c.unhover=function(a){var b=this;b.unhoverCallback=a},c.wasHovering=!1,c.mouseIsOver=!1,c.handleMemberHover=function(a){var b=this;new vis4.DelayedTask(25,b,b.handleMemberHoverDelayed,a)},c.handleMemberHoverDelayed=function(a){var b=this;b.mouseIsOver=!0,b.wasHovering||(b.wasHovering=!0,$.isFunction(b.hoverCallback)&&b.hoverCallback({target:b.target,origEvent:a,mouseEventGroup:b}))},c.handleMemberUnHover=function(a){var b=this;b.mouseIsOver=!1,new vis4.DelayedTask(40,b,b.handleMemberUnHoverDelayed,a)},c.handleMemberUnHoverDelayed=function(a){var b=this;b.mouseIsOver||(b.wasHovering=!1,$.isFunction(b.unhoverCallback)&&b.unhoverCallback({target:b.target,origEvent:a,mouseEventGroup:b}))},c.addMember=function(a){var b=this;b.hoverCallback&&$(a).hover(b.handleMemberHover.bind(b),b.handleMemberUnHover.bind(b)),b.members.push(a)},c.removeMember=function(a){var b=this,c=b.members,d,e=[];b.clickCallback&&$(a).unbind("click"),b.hoverCallback&&$(a).unbind("mouseenter mouseleave");for(d in c)c[d]!=a&&e.push(c[d]);b.members=e}},BubbleTree.Ring=function(a,b,c,d,e){var f=this;f.className="ring",f.rad=d,f.bc=b,f.attr=e,f.origin=c,f.alpha=1,f.visible=!1,f.node=a,f.init=function(){},f.draw=function(){var a=this,b=a.origin;!a.visible||a.circle.attr({cx:b.x,cy:b.y,r:a.rad,"stroke-opacity":a.alpha})},f.hide=function(){var a=this;a.circle.remove(),a.visible=!1},f.show=function(){var a=this;a.circle=a.bc.paper.circle(c.x,c.y,a.rad).attr(a.attr),a.visible=!0,a.circle.toBack()},f.init()},BubbleTree.Transitioner=function(a){var b=this;b.duration=a,b.running=!1,b.completeCallbacks=[],b.changeLayout=function(a){var b,c,d,e,f=this;f.running=!0,f.layout=a;for(b in a.toShow)c=a.toShow[b],$.isFunction(c.show)&&c.show();for(b in a.objects){c=a.objects[b];if(c===undefined||c===null)continue;d=a.props[b];if(f.duration>0){var g=new TWEEN.Tween(c),h={};for(e in d)h[e]=d[e];g.to(h,f.duration),g.easing(TWEEN.Easing.Exponential.EaseOut),$.isFunction(c.draw)&&g.onUpdate(c.draw.bind(c)),b==a.objects.length-1&&g.onComplete(f._completed.bind(f)),g.start()}else{for(e in d)c[e]=d[e];c&&$.isFunction(c.draw)&&c.draw()}}if(f.duration===0){for(b in a.objects)c=a.objects[b],c&&$.isFunction(c.draw)&&c.draw();f._completed()}},b.onComplete=function(a){var b=this;try{$.isFunction(a)&&b.completeCallbacks.push(a)}catch(c){}},b._completed=function(){var a=this,b=a.completeCallbacks,c,d;a.running=!1;for(c in a.layout.objects)d=a.layout.objects[c],d&&$.isFunction(d.draw)&&d.draw();for(c in a.layout.toHide)d=a.layout.toHide[c],d&&$.isFunction(d.hide)&&d.hide();for(c in b)b[c]()}},BubbleTree.Utils={},BubbleTree.Utils.log=function(){try{window.hasOwnProperty("console")&&console.log.apply(this,arguments)}catch(a){}},BubbleTree.Utils.amount2rad=function(a){return Math.pow(Math.max(0,a)/BubbleTree.a2radBase,.6)},BubbleTree.Utils.formatNumber=function(a){var b="";a<0&&(a=a*-1,b="-");return a>=1e12?b+Math.round(a/1e11)/10+"t":a>=1e9?b+Math.round(a/1e8)/10+"b":a>=1e6?b+Math.round(a/1e5)/10+"m":a>=1e3?b+Math.round(a/100)/10+"k":b+a},BubbleTree.Vector=function(a,b){var c=this;c.x=a,c.y=b,c.length=function(){var a=this;return Math.sqrt(a.x*a.x+a.y*a.y)},c.normalize=function(a){var b=this,c=b.length();a||(a=1),b.x*=a/c,b.y*=a/c},c.clone=function(){var a=this;return new BubbleTree.Vector(a.x,a.y)}},BubbleTree.Bubbles=BubbleTree.Bubbles||{},BubbleTree.Bubbles.Plain=function(a,b,c,d,e,f){var g=BubbleTree,h=g.Utils,i=this;i.className="bubble",i.node=a,i.paper=b.paper,i.origin=c,i.bc=b,i.rad=d,i.angle=e,i.color=f,i.alpha=1,i.visible=!1,i.ns=g,i.pos=g.Vector(0,0),i.bubbleRad=h.amount2rad(this.node.amount),i.container=i.bc.$container,i.childRotation=0,i.getXY=function(){var a=this,b=a.origin,c=a.angle,d=a.rad;a.pos===undefined&&(a.pos=new a.ns.Vector(0,0)),a.pos.x=b.x+Math.cos(c)*d,a.pos.y=b.y-Math.sin(c)*d},i.init=function(){var a=this;a.getXY();var b=!1;a.node.shortLabel||(a.node.shortLabel=a.node.label.length>a.bc.config.cutLabelsAt+3?a.node.label.substr(0,a.bc.config.cutLabelsAt)+"...":a.node.label),a.initialized=!0},i.onclick=function(a){var b=this;b.bc.onNodeClick(b.node),b.bc.navigateTo(b.node)},i.onhover=function(a){var b=this,c=b.bc.$container[0];a.node=b.node,a.target=b,a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.origEvent.pageX-c.offsetLeft,y:a.origEvent.pageY-c.offsetTop},a.type="SHOW",b.bc.tooltip(a)},i.onunhover=function(a){var b=this,c=b.bc.$container[0];a.node=b.node,a.type="HIDE",a.target=b,a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.origEvent.pageX-c.offsetLeft,y:a.origEvent.pageY-c.offsetTop},b.bc.tooltip(a)},i.draw=function(){var a=this,b=Math.max(5,a.bubbleRad*a.bc.bubbleScale),c=a.pos.x,d=a.pos.y,e=a.getXY(),f=a.pos.x,g=a.pos.y;if(!!a.visible){a.circle.attr({cx:a.pos.x,cy:a.pos.y,r:b,"fill-opacity":a.alpha}),a.node.children.length>1?a.dashedBorder.attr({cx:a.pos.x,cy:a.pos.y,r:b-4,"stroke-opacity":a.alpha*.9}):a.dashedBorder.attr({"stroke-opacity":0}),a.label.show(),a.label.find("*").show(),a.label2.show(),b>=a.bc.config.minRadiusLabels?a.label2.hide():b>=a.bc.config.minRadiusAmounts?a.label.find(".desc").hide():b>=a.bc.config.minRadiusHideLabels?a.label.hide():(a.label.hide(),a.label2.hide()),a.label.css({width:2*b+"px",opacity:a.alpha}),a.label.css({left:a.pos.x-b+"px",top:a.pos.y-a.label.height()*.5+"px"});var h=Math.max(70,3*b);a.label2.css({width:h+"px",opacity:a.alpha}),a.label2.css({left:f-h*.5+"px",top:g+b+"px"})}},i.hide=function(){var a=this,b;a.circle.remove(),a.dashedBorder.remove(),a.label.remove(),a.label2.remove(),a.visible=!1},i.show=function(){var a=this,b,c=a.pos.x,d=a.pos.y,e=Math.max(5,a.bubbleRad*a.bc.bubbleScale);a.circle=a.paper.circle(c,d,e).attr({stroke:!1,fill:a.color}),a.dashedBorder=a.paper.circle(c,d,e-3).attr({stroke:"#ffffff","stroke-dasharray":"- "}),a.label=$('<div class="label '+a.node.id+'"><div class="amount">'+h.formatNumber(a.node.amount)+'</div><div class="desc">'+a.node.shortLabel+"</div></div>"),a.container.append(a.label),a.node.children.length>0&&($(a.circle.node).css({cursor:"pointer"}),$(a.label).css({cursor:"pointer"})),a.label2=$('<div class="label2 '+a.node.id+'"><span>'+a.node.shortLabel+"</span></div>"),a.container.append(a.label2);var f=[a.circle.node,a.label,a.dashedBorder.node],g=new a.ns.MouseEventGroup(a,f);g.click(a.onclick.bind(a)),g.hover(a.onhover.bind(a)),g.unhover(a.onunhover.bind(a)),a.visible=!0},i.addOverlay=function(){var a=this;a.overlay=a.paper.circle(a.circle.attrs.cx,a.circle.attrs.cy,a.circle.attrs.r).attr({stroke:!1,fill:"#fff",opacity:0}),Raphael.svg&&a.overlay.node.setAttribute("class",a.node.id),$(a.overlay.node).css({cursor:"pointer"}),$(a.overlay.node).click(a.onclick.bind(a)),$(a.label).click(a.onclick.bind(a))},i.init()},BubbleTree.Bubbles=BubbleTree.Bubbles||{},BubbleTree.Bubbles.Donut=function(a,b,c,d,e,f){var g=BubbleTree,h=g.Utils,i=this;i.className="bubble",i.node=a,i.paper=b.paper,i.origin=c,i.bc=b,i.rad=d,i.angle=e,i.color=f,i.alpha=1,i.visible=!1,i.ns=g,i.bubbleRad=h.amount2rad(this.node.amount),i.childRotation=0,i.getXY=function(){var a=this,b=a.origin,c=a.angle,d=a.rad;a.pos.x=b.x+Math.cos(c)*d,a.pos.y=b.y-Math.sin(c)*d},i.init=function(){var a=this;a.pos=new a.ns.Vector(0,0),a.getXY();var b=[],c,d,e,f=[],g=a.bc.config.bubbleStyles;a.node.shortLabel||(a.node.shortLabel=a.node.label.length>50?a.node.label.substr(0,30)+"...":a.node.label),a.breakdownOpacities=[.2,.7,.45,.6,.35],a.breakdownColors=[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1];for(d in a.node.breakdowns)c=a.node.breakdowns[d],c.famount=h.formatNumber(c.amount),e=c.amount/a.node.amount,b.push(e),f.push(c),g&&g.hasOwnProperty("name")&&g.name.hasOwnProperty(c.name)&&g.name[c.name].hasOwnProperty("opacity")&&(a.breakdownOpacities[f.length-1]=g.name[c.name].opacity),g&&g.hasOwnProperty("name")&&g.name.hasOwnProperty(c.name)&&g.name[c.name].hasOwnProperty("color")&&(a.breakdownColors[f.length-1]=g.name[c.name].color,a.breakdownOpacities[f.length-1]=1);a.node.breakdowns=f,a.breakdown=b;var i=!1;a.initialized=!0},i.onclick=function(a){var b=this;b.bc.navigateTo(b.node)},i.onhover=function(a){var b=this,c=b.bc.$container[0];a.node=b.node,a.target=b,a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.origEvent.pageX-c.offsetLeft,y:a.origEvent.pageY-c.offsetTop},a.type="SHOW",b.bc.tooltip(a)},i.onunhover=function(a){var b=this,c=b.bc.$container[0];a.node=b.node,a.target=b,a.type="HIDE",a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.origEvent.pageX-c.offsetLeft,y:a.origEvent.pageY-c.offsetTop},b.bc.tooltip(a)},this.draw=function(){var a=this,b=Math.max(5,a.bubbleRad*a.bc.bubbleScale),c=a.pos.x,d=a.pos.y,e=a.getXY(),f=b>20,g=a.pos.x,h=a.pos.y;if(!!a.visible){a.circle.attr({cx:g,cy:h,r:b,"fill-opacity":a.alpha}),a.node.children.length>1?a.dashedBorder.attr({cx:g,cy:h,r:b*.85,"stroke-opacity":a.alpha*.8}):a.dashedBorder.attr({"stroke-opacity":0});if(a.breakdown.length>1){var i,j,k,l,m,n,o,p,q,r=b*.85,s=-Math.PI*.5,t;for(i in a.breakdown){t=a.breakdown[i]*Math.PI*2,j=g+Math.cos(s)*r,n=h+Math.sin(s)*r,k=g+Math.cos(s+t)*r,o=h+Math.sin(s+t)*r,l=g+Math.cos(s+t)*b,p=h+Math.sin(s+t)*b,m=g+Math.cos(s)*b,q=h+Math.sin(s)*b,s+=t;var u="M"+j+" "+n+" A"+r+","+r+" 0 "+(t>Math.PI?"1,1":"0,1")+" "+k+","+o+" L"+l+" "+p+" A"+b+","+b+" 0 "+(t>Math.PI?"1,0":"0,0")+" "+m+" "+q+" Z";a.breakdownArcs[i].attr({path:u,"stroke-opacity":a.alpha*.2,"fill-opacity":a.breakdownOpacities[i]*a.alpha})}}f?(a.label.show(),b<40?(a.label.find(".desc").hide(),a.label2.show()):(a.label.find(".desc").show(),a.label2.hide())):(a.label.hide(),a.label2.show()),a.label.css({width:2*b*.9+"px",opacity:a.alpha}),a.label.css({left:a.pos.x-b*.9+"px",top:a.pos.y-a.label.height()*.53+"px"});var v=Math.max(80,3*b);a.label2.css({width:v+"px",opacity:a.alpha}),a.label2.css({left:g-v*.5+"px",top:h+b+"px"})}},this.hide=function(){var a=this,b;a.circle.remove(),a.dashedBorder.remove(),a.label.remove(),a.label2.remove(),a.visible=!1;for(b in a.breakdownArcs)a.breakdownArcs[b].remove()},i.show=function(){var a=this,b,c=Math.max(5,a.bubbleRad*a.bc.bubbleScale);a.circle=a.paper.circle(a.pos.x,a.pos.y,c).attr({stroke:!1,fill:a.color}),$.isFunction(a.bc.config.initTooltip)&&a.bc.config.initTooltip(a.node,a.circle.node),a.dashedBorder=a.paper.circle(a.pos.x,a.pos.y,c*.85).attr({stroke:"#fff","stroke-opacity":a.alpha*.4,"stroke-dasharray":". ",fill:!1}),a.label=$('<div class="label '+a.node.id+'"><div class="amount">'+h.formatNumber(a.node.amount)+'</div><div class="desc">'+a.node.shortLabel+"</div></div>"),a.bc.$container.append(a.label),a.node.children.length>1&&($(a.circle.node).css({cursor:"pointer"}),$(a.label).css({cursor:"pointer"})),a.label2=$('<div class="label2 '+a.node.id+'"><span>'+a.node.shortLabel+"</span></div>"),a.bc.$container.append(a.label2);var d=[a.circle.node,a.label];if(a.breakdown.length>1){a.breakdownArcs={};for(b in a.breakdown){var e=a.breakdownColors[b]?a.breakdownColors[b]:"#fff",f=a.paper.path("M 0 0 L 2 2").attr({fill:e,"fill-opacity":Math.random()*.4+.3,stroke:"#fff"});a.breakdownArcs[b]=f,$.isFunction(a.bc.config.initTooltip)&&a.bc.config.initTooltip(a.node.breakdowns[b],f.node)}for(b in a.breakdownArcs)$(a.breakdownArcs[b].node).click(a.onclick.bind(a))}var g=new a.ns.MouseEventGroup(a,d);g.click(a.onclick.bind(a)),g.hover(a.onhover.bind(a)),g.unhover(a.onunhover.bind(a)),a.visible=!0},i.arcHover=function(a){var b=this,c=b.bc.$container[0],d,e=b.breakdownArcs,f,g=b.node.breakdowns;for(d in e)if(e[d].node==a.target){a.node=g[d],a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.pageX-c.offsetLeft,y:a.pageY-c.offsetTop},a.target=b,a.type="SHOW",b.bc.tooltip(a);return}vis4.log("cant find the breakdown node")},i.arcUnhover=function(a){var b=this,c=b.bc.$container[0],d,e=b.breakdownArcs,f,g=b.node.breakdowns;for(d in e)if(e[d].node==a.target){a.node=g[d],a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.pageX-c.offsetLeft,y:a.pageY-c.offsetTop},a.type="HIDE",a.target=b,b.bc.tooltip(a);return}vis4.log("cant find the breakdown node")},i.init()},BubbleTree.Bubbles=BubbleTree.Bubbles||{},BubbleTree.Bubbles.Icon=function(a,b,c,d,e,f){var g=BubbleTree,h=g.Utils,i=this;i.className="bubble",i.node=a,i.paper=b.paper,i.origin=c,i.bc=b,i.rad=d,i.angle=e,i.color=f,i.alpha=1,i.visible=!1,i.ns=g,i.pos=g.Vector(0,0),i.bubbleRad=h.amount2rad(this.node.amount),i.iconLoaded=!1,i.childRotation=0,i.getXY=function(){var a=this,b=a.origin,c=a.angle,d=a.rad;a.pos===undefined&&(a.pos=new a.ns.Vector(0,0)),a.pos.x=b.x+Math.cos(c)*d,a.pos.y=b.y-Math.sin(c)*d},i.init=function(){var a=this;a.getXY(),a.hasIcon=a.node.hasOwnProperty("icon"),a.node.shortLabel||(a.node.shortLabel=a.node.label.length>50?a.node.label.substr(0,30)+"...":a.node.label),a.initialized=!0},i.show=function(){var a=this,b,c=a.pos.x,d,e=a.pos.y,f=Math.max(5,a.bubbleRad*a.bc.bubbleScale);a.circle=a.paper.circle(c,e,f).attr({stroke:!1,fill:a.color}),a.dashedBorder=a.paper.circle(c,e,Math.min(f-3,f*.95)).attr({stroke:"#ffffff","stroke-dasharray":"- "}),$.isFunction(a.bc.config.initTooltip)&&a.bc.config.initTooltip(a.node,a.circle.node),a.label=$('<div class="label '+a.node.id+'"><div class="amount">'+h.formatNumber(a.node.amount)+'</div><div class="desc">'+a.node.shortLabel+"</div></div>"),a.bc.$container.append(a.label),$.isFunction(a.bc.config.initTooltip)&&a.bc.config.initTooltip(a.node,a.label[0]),a.label2=$('<div class="label2 '+a.node.id+'"><span>'+a.node.shortLabel+"</span></div>"),a.bc.$container.append(a.label2),a.node.children.length>0&&($(a.circle.node).css({cursor:"pointer"}),$(a.label).css({cursor:"pointer"})),a.visible=!0,a.hasIcon?a.iconLoaded?a.displayIcon():a.loadIcon():a.addOverlay()},i.loadIcon=function(){var a=this,b=new vis4loader;b.add(a.bc.config.rootPath+a.node.icon),b.load(a.iconLoadComplete.bind(a))},i.iconLoadComplete=function(a){var b=this,c,d,e;c=a.items[0].data,b.iconPathData="",c=$(c),e=$("path",c);for(d in e)e[d]&&$.isFunction(e[d].getAttribute)&&(b.iconPathData+=String(e[d].getAttribute("d"))+" ");b.iconLoaded=!0,b.displayIcon()},i.displayIcon=function(){var a=this,b,c;a.iconPaths=[],c=a.paper.path(a.iconPathData),c.attr({fill:"#fff",stroke:"none"}).translate(-50,-50),a.iconPaths.push(c),a.addOverlay()},i.addOverlay=function(){var a=this;a.overlay=a.paper.circle(a.circle.attrs.cx,a.circle.attrs.cy,a.circle.attrs.r).attr({stroke:!1,fill:"#fff","fill-opacity":0}),Raphael.svg&&a.overlay.node.setAttribute("class",a.node.id),$(a.overlay.node).css({cursor:"pointer"}),$(a.overlay.node).click(a.onclick.bind(a)),$(a.label).click(a.onclick.bind(a)),$(a.label2).click(a.onclick.bind(a));if($.isPlainObject(a.bc.tooltip)){var b=a.bc.tooltip.content(a.node);$(a.overlay.node).qtip({position:{target:"mouse",viewport:$(window),adjust:{x:7,y:7}},show:{delay:a.bc.tooltip.delay||100},content:{title:b[0],text:b[1]}})}},i.removeIcon=function(){var a=this,b,c;for(b in a.iconPaths)a.iconPaths[b].remove();a.iconPaths=[]},i.draw=function(){var a=this,b=Math.max(5,a.bubbleRad*a.bc.bubbleScale),c=a.pos.x,d=a.pos.y,e=a.getXY(),f=a.pos.x,g=a.pos.y,h=a.hasIcon&&b>15,i=a.hasIcon?b>40:b>20,j,k,l,m,n;if(!!a.visible){a.circle.attr({cx:f,cy:g,r:b,"fill-opacity":a.alpha}),a.overlay&&a.overlay.attr({cx:f,cy:g,r:Math.max(10,b)}),a.node.children.length>1?a.dashedBorder.attr({cx:a.pos.x,cy:a.pos.y,r:Math.min(b-3,b-4),"stroke-opacity":a.alpha*.9}):a.dashedBorder.attr({"stroke-opacity":0}),i?(a.label.show(),h&&b<70||!h&&b<40?(a.label.find(".desc").hide(),a.label2.show()):(a.label.find(".desc").show(),a.label2.hide())):(a.label.hide(),a.label2.show()),n=h?g+b*.77-a.label.height():g-a.label.height()*.5,a.label.css({width:(h?b*1.2:2*b)+"px",opacity:a.alpha}),a.label.css({left:(h?f-b*.6:f-b)+"px",top:n+"px"});var o=Math.max(80,3*b);a.label2.css({width:o+"px",opacity:a.alpha}),a.label2.css({left:f-o*.5+"px",top:g+b+"px"});if(a.hasIcon)if(h){l=(b-(i?a.label.height()*.5:0))/60;for(j in a.iconPaths)k=a.iconPaths[j],Raphael.version[0]=="1"?m="scale("+l+") translate("+f/l+", "+(g+(i?a.label.height()*-0.5:0))/l+")":m="scale("+l+") translate("+(f/l-50)+", "+((g+(i?a.label.height()*-0.5:0))/l-50)+")",k.node.setAttribute("transform",m),k.attr({"fill-opacity":a.alpha})}else for(j in a.iconPaths)k=a.iconPaths[j],k.attr({"fill-opacity":0})}},i.hide=function(){var a=this,b;a.circle.remove(),a.dashedBorder.remove(),a.label.remove(),a.label2.remove(),a.visible=!1,a.hasIcon&&a.removeIcon(),a.overlay&&a.overlay.remove()},i.onclick=function(a){var b=this;b.bc.onNodeClick(b.node),b.bc.navigateTo(b.node)},i.onhover=function(a){var b=this,c=b.bc.$container[0];a.node=b.node,a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.origEvent.pageX-c.offsetLeft,y:a.origEvent.pageY-c.offsetTop},a.type="SHOW",a.target=b,b.bc.tooltip(a)},i.onunhover=function(a){var b=this,c=b.bc.$container[0];a.node=b.node,a.type="HIDE",a.target=b,a.bubblePos={x:b.pos.x,y:b.pos.y},a.mousePos={x:a.origEvent.pageX-c.offsetLeft,y:a.origEvent.pageY-c.offsetTop},b.bc.tooltip(a)},i.init()} | 4,181.285714 | 29,142 | 0.70245 |
bbca1bcd8e566abe8525aa6766d86c8372972b87 | 489,487 | js | JavaScript | demo/resources/js/1.0.0-alpha.3.index.js | gloriaJun/react-viewer | 03c590201684d7bb8ee252ab9e4545ff92ce51b9 | [
"MIT"
] | 48 | 2018-05-02T23:00:56.000Z | 2021-12-17T13:41:17.000Z | demo/resources/js/1.0.0-alpha.3.index.js | gloriaJun/react-viewer | 03c590201684d7bb8ee252ab9e4545ff92ce51b9 | [
"MIT"
] | 39 | 2018-04-18T10:16:23.000Z | 2022-03-15T18:36:23.000Z | demo/resources/js/1.0.0-alpha.3.index.js | ridi/ridi-webviewer | 03c590201684d7bb8ee252ab9e4545ff92ce51b9 | [
"MIT"
] | 7 | 2018-05-24T22:40:48.000Z | 2021-09-28T17:10:54.000Z | !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=510)}([function(e,t,n){e.exports=n(508)()},,function(e,t,n){"use strict";e.exports=n(509)},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(479),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},,,,,function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(73),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(449)),o=a(n(445)),i=a(n(73));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},,function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(506)},,,,,,function(e,t,n){"use strict";(function(e){var r,o,i,a,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function l(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e}window,a=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}([function(t,n){t.exports=e},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==u(Symbol.iterator)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":u(e)};function o(e){return void 0!==e&&null!==e}function i(e){return Array.isArray(e)}function a(e){return!i(e)&&e===Object(e)}t.isExist=o,t.isEmpty=function(e){return!o(e)||("string"==typeof e||e instanceof String?""===e.trim():!!Array.isArray(e)&&0===e.length)},t.isArray=i,t.isObject=a,t.invert=function(e){for(var t={},n=Object.keys(e),r=0,o=n.length;r<o;r+=1)t[e[n[r]]]=n[r];return t},t.nullSafeGet=function(e,t,n){var r=e;return o(e)?(t.every(function(e){return o(r[e])?(r=r[e],!0):(r=n,!1)}),r):n},t.nullSafeSet=function(e,t,n){var r=e;return o(r)||(r={}),t.forEach(function(e,i){i===t.length-1?r[e]=n:o(r[e])||(r[e]={}),r=r[e]}),e},t.debounce=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=void 0;return function(){for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=t;r&&!o&&e.apply(l,a),o&&(clearTimeout(o),o=null),o=setTimeout(function(){o=null,e.apply(l,a)},n)}},t.throttle=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1;return function(){for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=t;o||(r?setTimeout(function(){return e.apply(l,a)},n):e.apply(l,a),o=!0,setTimeout(function(){o=!1},n))}};var l=t.cloneObject=function e(t){if(null===t||"object"!==(void 0===t?"undefined":r(t)))return t;var n=t.constructor();return Object.keys(t).forEach(function(r){Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]))}),n};t.updateObject=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o(t)?function e(t,n){var o=t;return a(t)&&a(n)?Object.keys(n).forEach(function(i){"object"!==r(n[i])||null==t[i]?o[i]=n[i]:o[i]=e(t[i],n[i])}):o=n,o}(n?l(e):e,t):e},t.hasIntersect=function(e,t){return e[0]<t[0]?e[1]>t[0]:t[1]>e[0]},t.makeSequence=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e).keys()));return t>0?n.map(function(e){return e+t}):n}},function(e,t,n){e.exports=n(57)()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var r=a(n(19)),o=a(n(53)),i=a(n(46));function a(e){return e&&e.__esModule?e:{default:e}}var u=t.connect=function(e){r.default.connect(e),o.default.connect(e),i.default.connect(e)};t.default={connect:u,calculations:r.default,setting:o.default,current:i.default}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.documentRemoveEventListener=t.documentAddEventListener=t.documentAppendChild=t.documentAddClassList=t.offsetHeight=t.offsetWidth=t.setScrollTop=t.scrollHeight=t.scrollTop=t.screenHeight=t.screenWidth=void 0;var r,o=n(1),i=(r=n(11))&&r.__esModule?r:{default:r},a={},u=function(e,t){return function(){return void 0===a[e]&&(a[e]=t()),a[e]}};window.addEventListener(i.default.RESIZE,(0,o.debounce)(function(){a={}},0));var l=t.screenWidth=u("screenWidth",function(){return window.innerWidth}),s=t.screenHeight=u("screenHeight",function(){return window.innerHeight}),c=t.scrollTop=function(){return document.scrollingElement?document.scrollingElement.scrollTop:document.documentElement.scrollTop||document.body.scrollTop},f=t.scrollHeight=function(){return document.scrollingElement?document.scrollingElement.scrollHeight:document.documentElement.scrollHeight||document.body.scrollHeight},d=t.setScrollTop=function(e){document.scrollingElement?document.scrollingElement.scrollTop=e:(document.body.scrollTop=e,document.documentElement.scrollTop=e)},p=t.offsetWidth=function(){return document.body.offsetWidth},h=t.offsetHeight=function(){return document.body.offsetHeight},v=t.documentAddClassList=function(e){return document.body.classList.add(e)},m=t.documentAppendChild=function(e){return document.body.appendChild(e)},y=t.documentAddEventListener=function(e,t,n){return document.addEventListener(e,t,n)},g=t.documentRemoveEventListener=function(e,t,n){return document.removeEventListener(e,t,n)};t.default={screenWidth:l,screenHeight:s,scrollTop:c,scrollHeight:f,setScrollTop:d,offsetWidth:p,offsetHeight:h,documentAddClassList:v,documentAppendChild:m,documentAddEventListener:y,documentRemoveEventListener:g}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SettingType=t.CurrentType=t.FooterCalculationsType=t.ContentCalculationsType=t.ContentType=void 0;var r,o=(r=n(2))&&r.__esModule?r:{default:r};t.default=o.default,t.ContentType=o.default.shape({index:o.default.number.isRequired,uri:o.default.string.isRequired,isContentLoaded:o.default.bool.isRequired,isContentOnError:o.default.bool.isRequired,content:o.default.string}),t.ContentCalculationsType=o.default.shape({index:o.default.number.isRequired,total:o.default.number,isCalculated:o.default.bool.isRequired}),t.FooterCalculationsType=o.default.shape({total:o.default.number,isCalculated:o.default.bool.isRequired}),t.CurrentType=o.default.shape({contentIndex:o.default.oneOfType([o.default.string,o.default.number]),position:o.default.number,offset:o.default.number.isRequired}),t.SettingType=o.default.shape({colorTheme:o.default.string.isRequired,font:o.default.string.isRequired,fontSizeLevel:o.default.number.isRequired,paddingLevel:o.default.number.isRequired,contentWidthLevel:o.default.number.isRequired,lineHeightLevel:o.default.number.isRequired,viewType:o.default.string.isRequired,columnsInPage:o.default.number.isRequired,columnGap:o.default.number.isRequired})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.selectReaderIsInitContents=t.selectReaderFooterCalculations=t.selectReaderCalculationsTotal=t.selectReaderIsCalculated=t.selectReaderContentsCalculations=t.selectReaderCurrentOffset=t.selectReaderCurrentContentIndex=t.selectReaderCurrent=t.selectReaderSetting=t.selectReaderBindingType=t.selectReaderContentFormat=t.selectReaderContents=void 0;var r,o=n(60),i=(r=n(31))&&r.__esModule?r:{default:r},a=n(1),u=n(8),l=function(e){return e.reader||{}};t.selectReaderContents=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.contents(),[])}),t.selectReaderContentFormat=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.contentFormat(),u.ContentFormat.HTML)}),t.selectReaderBindingType=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.bindingType(),u.BindingType.LEFT)}),t.selectReaderSetting=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.setting(),{})}),t.selectReaderCurrent=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.current(),{})}),t.selectReaderCurrentContentIndex=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.currentContentIndex(),1)}),t.selectReaderCurrentOffset=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.currentOffset(),0)}),t.selectReaderContentsCalculations=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.contentsCalculations(),[])}),t.selectReaderIsCalculated=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.isAllCalculated(),!1)}),t.selectReaderCalculationsTotal=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.calculationsTotal(),0)}),t.selectReaderFooterCalculations=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.footerCalculations(),{})}),t.selectReaderIsInitContents=(0,o.createSelector)([l],function(e){return(0,a.nullSafeGet)(e,i.default.isInitContents(),!1)})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FOOTER_INDEX="footer",t.PRE_CALCULATION=-1},function(e,t,n){var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentFormat=t.BindingType=void 0;var i,a=(i=n(30))&&i.__esModule?i:{default:i},u=n(1);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={LEFT:0,RIGHT:1},c=(t.BindingType=(0,a.default)((0,u.updateObject)(s,{_LIST:[s.LEFT,s.RIGHT],_STRING_MAP:(r={},l(r,s.LEFT,"좌철"),l(r,s.RIGHT,"우철"),r)}),{}),{HTML:0,IMAGE:1});t.ContentFormat=(0,a.default)((0,u.updateObject)(c,{_LIST:[c.HTML,c.IMAGE],_STRING_MAP:(o={},l(o,c.HTML,"EPUB"),l(o,c.IMAGE,"이미지"),o)}),{})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=t.actions={SCROLLED:"READER:SCROLLED",SET_CONTENTS:"READER:SET_CONTENTS",UPDATE_SETTING:"READER:UPDATE_SETTING",UPDATE_CURRENT:"READER:UPDATE_CURRENT",UPDATE_CONTENT:"READER:UPDATE_CONTENT",UPDATE_CONTENT_ERROR:"READER:UPDATE_CONTENT_ERROR",INVALIDATE_CALCULATIONS:"READER:INVALIDATE_CALCULATIONS",UPDATE_CONTENT_CALCULATIONS:"READER:UPDATE_CONTENT_CALCULATIONS",UPDATE_FOOTER_CALCULATIONS:"READER:COMPLETE_FOOTER_CALCULATIONS",UPDATE_CALCULATIONS_TOTAL:"READER:UPDATE_CALCULATIONS_TOTAL"};t.onScreenScrolled=function(){return{type:r.SCROLLED}},t.setContents=function(e,t,n){return{type:r.SET_CONTENTS,contentFormat:e,bindingType:t,contents:n}},t.updateCurrent=function(e){return{type:r.UPDATE_CURRENT,current:e}},t.updateSetting=function(e){return{type:r.UPDATE_SETTING,setting:e}},t.updateContent=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:r.UPDATE_CONTENT,index:e,content:t,isAllLoaded:n}},t.updateContentError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:r.UPDATE_CONTENT_ERROR,index:e,error:t,isAllLoaded:n}},t.invalidateCalculations=function(){return{type:r.INVALIDATE_CALCULATIONS}},t.updateContentCalculations=function(e,t){return{type:r.UPDATE_CONTENT_CALCULATIONS,index:e,total:t}},t.updateFooterCalculation=function(e){return{type:r.UPDATE_FOOTER_CALCULATIONS,total:e}},t.updateCalculationsTotal=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:r.UPDATE_CALCULATIONS_TOTAL,calculationsTotal:e,isCompleted:t}}},function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ViewType=t.ReaderThemeType=t.INVALID_PAGE=t.EMPTY_READ_POSITION=void 0;var o,i=(o=n(30))&&o.__esModule?o:{default:o},a=n(1);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.EMPTY_READ_POSITION="-1#-1",t.INVALID_PAGE=-1;var l={WHITE:"white_theme",IOS_SEPIA:"ios_sepia_theme",SEPIA:"sepia_theme",BLACKBOARD:"blackboard_theme",DARKGRAY:"darkgray_theme",BLACK:"black_theme",PAPER:"paper_theme",KOREAN_PAPER:"korean_paper_theme"},s=(t.ReaderThemeType=(0,i.default)((0,a.updateObject)(l,{_LIST:[l.WHITE,l.IOS_SEPIA,l.SEPIA,l.BLACKBOARD,l.DARKGRAY,l.BLACK,l.PAPER,l.KOREAN_PAPER]}),{}),{SCROLL:"scroll",PAGE:"page"});t.ViewType=(0,i.default)((0,a.updateObject)(s,{_LIST:[s.PAGE,s.SCROLL],_STRING_MAP:(r={},u(r,s.PAGE,"페이지 넘김"),u(r,s.SCROLL,"스크롤 보기"),r)}),{})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={CLICK:"click",SCROLL:"scroll",TOUCH_MOVE:"touchmove",MOUSE_WHEEL:"mousewheel",KEY_DOWN:"keydown",RESIZE:"resize",FOCUS:"focus",BLUR:"blur",ERROR:"error",CHANGE:"change",ANIMATION_END:"animationend",TRANSITION_END:"transitionend",WEBKIT_TRANSITION_END:"webkitTransitionEnd"}},function(e,n){e.exports=t},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),o=s(n(2)),i=s(n(3)),a=n(7),l=n(4);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.wrapper=r.default.createRef(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidMount=function(){this.onContentRendered()},t.prototype.componentDidUpdate=function(){this.onContentRendered()},t.prototype.onContentRendered=function(){(0,this.props.onContentRendered)(this.wrapper.current)},t.prototype.render=function(){var e=this.props,t=e.content,n=e.containerVerticalMargin,o=e.startOffset,u=i.default.setting.getStyledFooter();return r.default.createElement(u,{innerRef:this.wrapper,containerVerticalMargin:n,visible:o!==a.PRE_CALCULATION,startOffset:o,width:(0,l.screenWidth)()+"px"},t)},t}(r.default.Component);t.default=c,c.defaultProps={content:null,onContentRendered:function(){}},c.propTypes={content:o.default.node,onContentRendered:o.default.func,startOffset:o.default.number.isRequired,containerVerticalMargin:o.default.number.isRequired}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapDispatchToProps=t.mapStateToProps=void 0;var r=m(n(0)),o=m(n(21)),i=n(1),a=n(6),l=n(20),s=n(5),c=m(s),f=m(n(11)),d=n(9),p=m(n(3)),h=m(n(45)),v=n(10);function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.wrapper=r.default.createRef(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidMount=function(){var e=this.props.setting.viewType,t=this.props,n=t.isCalculated,r=t.disableCalculation;n&&!r&&p.default.current.restoreCurrentOffset(),this.moveToOffset(),this.resizeReader=(0,i.debounce)(function(){r||p.default.calculations.invalidate()},o.default.RESIZE),window.addEventListener(f.default.RESIZE,this.resizeReader);var a=new h.default(this.wrapper.current,e===v.ViewType.SCROLL);p.default.current.setReaderJs(a)},t.prototype.componentDidUpdate=function(e){var t=this.props.setting.viewType,n=e.isCalculated,r=e.current,o=this.props,i=o.isCalculated,a=o.current;i&&(n?r.offset!==a.offset&&this.moveToOffset():(p.default.current.restoreCurrentOffset(),this.moveToOffset()));var u=new h.default(this.wrapper.current,t===v.ViewType.SCROLL);p.default.current.setReaderJs(u)},t.prototype.componentWillUnmount=function(){window.removeEventListener(f.default.RESIZE,this.resizeReader)},t.prototype.onTouchableScreenTouched=function(e){e.position===l.Position.MIDDLE&&(0,this.props.onTouched)()},t.prototype.onContentLoaded=function(e,t){var n=this.props,r=n.contents,o=n.actionUpdateContent,i=r.every(function(t){return t.index===e||t.isContentLoaded||t.isContentOnError});o(e,t,i)},t.prototype.onContentError=function(e,t){var n=this.props,r=n.contents,o=n.actionUpdateContentError,i=r.every(function(t){return t.index===e||t.isContentLoaded||t.isContentOnError});o(e,t,i)},t.prototype.getTouchableScreen=function(){return null},t.prototype.moveToOffset=function(){},t.prototype.renderContents=function(){return null},t.prototype.renderFooter=function(){return null},t.prototype.render=function(){var e=this,t=this.props.calculationsTotal,n=this.getTouchableScreen();return r.default.createElement(n,{ref:this.wrapper,total:t,onTouched:function(t){return e.onTouchableScreenTouched(t)}},this.renderContents(),this.renderFooter())},t}(r.default.Component);t.default=y,y.defaultProps={onTouched:function(){}},y.propTypes={isCalculated:c.default.bool.isRequired,onTouched:c.default.func,disableCalculation:c.default.bool.isRequired,setting:s.SettingType.isRequired,maxWidth:c.default.number.isRequired,current:s.CurrentType.isRequired,contents:c.default.arrayOf(s.ContentType).isRequired,actionUpdateContent:c.default.func.isRequired,actionUpdateContentError:c.default.func.isRequired,calculationsTotal:c.default.number.isRequired},t.mapStateToProps=function(e){return{isCalculated:(0,a.selectReaderIsCalculated)(e),setting:(0,a.selectReaderSetting)(e),current:(0,a.selectReaderCurrent)(e),contents:(0,a.selectReaderContents)(e),calculationsTotal:(0,a.selectReaderCalculationsTotal)(e)}},t.mapDispatchToProps=function(e){return{actionUpdateContent:function(t,n,r){return e((0,d.updateContent)(t,n,r))},actionUpdateContentError:function(t,n,r){return e((0,d.updateContentError)(t,n,r))}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(0)),o=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.content;return r.default.createElement("div",{className:"content_footer"},t)};t.default=a,a.propTypes={content:o.default.node.isRequired}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StyledImagePageContent=t.StyledImageScrollContent=t.StyledHtmlPageContent=t.StyledHtmlScrollContent=void 0;var r=p(["\n box-sizing: border-box;\n margin: ",";\n visibility: ","\n \n .content_footer {\n overflow: hidden;\n box-sizing: border-box;\n width: 100%;\n padding: 15px;\n height: ",";\n small {\n font-size: 11px;\n }\n }\n"],["\n box-sizing: border-box;\n margin: ",";\n visibility: ","\n \n .content_footer {\n overflow: hidden;\n box-sizing: border-box;\n width: 100%;\n padding: 15px;\n height: ",";\n small {\n font-size: 11px;\n }\n }\n"]),o=p(["\n ","\n ","\n\n position: absolute;\n top: ",";\n"],["\n ","\n ","\n\n position: absolute;\n top: ",";\n"]),i=p(["\n ","\n ","\n"],["\n ","\n ","\n"]),a=p(["\n ","\n ","\n margin: 0 auto;\n .content_container {\n margin: 0 auto;\n width: ",";\n img {\n width: 100%;\n }\n }\n"],["\n ","\n ","\n margin: 0 auto;\n .content_container {\n margin: 0 auto;\n width: ",";\n img {\n width: 100%;\n }\n }\n"]),u=p(["\n ","\n ","\n \n margin: 0 auto;\n .content_container {\n &.two_images_in_page {\n .comic_page {\n &:nth-child(odd) { img { margin-right: 0; } }\n &:nth-child(even) { img { margin-left: 0; } }\n }\n } \n \n .comic_page {\n height: 100%;\n img {\n width: auto; height: auto;\n max-width: 100%; max-height: 100%;\n top: 50%;\n transform: translateY(-50%);\n position: relative;\n margin: 0 auto;\n }\n &.has_content_footer {\n img {\n max-height: calc(100% - ",");\n top: calc(50% - ","px);\n }\n .content_footer {\n text-align: center;\n }\n }\n }\n }\n"],["\n ","\n ","\n \n margin: 0 auto;\n .content_container {\n &.two_images_in_page {\n .comic_page {\n &:nth-child(odd) { img { margin-right: 0; } }\n &:nth-child(even) { img { margin-left: 0; } }\n }\n } \n \n .comic_page {\n height: 100%;\n img {\n width: auto; height: auto;\n max-width: 100%; max-height: 100%;\n top: 50%;\n transform: translateY(-50%);\n position: relative;\n margin: 0 auto;\n }\n &.has_content_footer {\n img {\n max-height: calc(100% - ",");\n top: calc(50% - ","px);\n }\n .content_footer {\n text-align: center;\n }\n }\n }\n }\n"]),l=d(n(17)),s=d(n(3)),c=n(5),f=d(c);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=l.default.article(r,function(e){return e.containerVerticalMargin+"px "+e.containerHorizontalMargin+"px"},function(e){return e.visible?"visible":"hidden"},function(){return""+s.default.setting.getContentFooterHeight(!0)}),v=function(e){var t=e.setting;return'\n @font-face {\n font-family: os_specific;\n font-style: normal;\n font-weight: 300;\n src: local(".SFNSText-Light"),\n local(".HelveticaNeueDeskInterface-Light"),\n local(".LucidaGrandeUI"),\n local("Ubuntu Light"),\n local("Segoe UI Light"),\n local("Roboto-Light"),\n local("DroidSans"),\n local("Tahoma");\n }\n\n font-size: '+s.default.setting.getFontSize(!0)+";\n line-height: "+s.default.setting.getLineHeight(!0)+";\n font-family: "+(t.font?t.font:"os_specific")+";\n \n h1, h2, h3, h4, h5, h6, p, th, td, div, label, textarea, a, li, input, button, textarea, select, address {\n font-size: 1em;\n line-height: inherit;\n font-family: inherit;\n text-align: justify;\n }\n \n img {\n max-width: 100%;\n }\n"},m=function(e){return"\n width: "+e.width+";\n height: "+e.height+";\n \n img {\n display: block;\n transition: opacity 1s linear;\n opacity: "+(e.visible?"1":"0")+";\n }\n"},y=function(){return"\n padding: 0 "+s.default.setting.getHorizontalPadding(!0)+";\n"},g=function(e){return"\n width: "+e.width+";\n height: "+e.height+";\n vertical-align: top;\n white-space: initial;\n display: inline-block;\n overflow: hidden;\n \n .content_container {\n height: 100%;\n column-fill: auto;\n column-gap: "+s.default.setting.getColumnGap(!0)+";\n column-width: "+s.default.setting.getColumnWidth(!0)+";\n }\n"},b=t.StyledHtmlScrollContent=h.extend(o,v,y,function(e){var t=e.visible,n=e.startOffset;return(t?n:-999)+"px"}),w=t.StyledHtmlPageContent=h.extend(i,v,g),C=t.StyledImageScrollContent=h.extend(a,m,y,function(){return s.default.setting.getContentWidth(!0)}),_=t.StyledImagePageContent=h.extend(u,m,g,function(){return s.default.setting.getContentFooterHeight(!0)},function(){return s.default.setting.getContentFooterHeight()/2}),E={index:f.default.number,visible:f.default.bool,containerVerticalMargin:f.default.number,containerHorizontalMargin:f.default.number,startOffset:f.default.number,setting:c.SettingType,width:f.default.string,height:f.default.string};b.propTypes=E,w.propTypes=E,C.propTypes=E,_.propTypes=E},function(e,t,n){n.r(t),function(e,r){n.d(t,"css",function(){return W}),n.d(t,"keyframes",function(){return Ue}),n.d(t,"injectGlobal",function(){return He}),n.d(t,"isStyledComponent",function(){return N}),n.d(t,"consolidateStreamedStyles",function(){return k}),n.d(t,"ThemeProvider",function(){return Pe}),n.d(t,"withTheme",function(){return Ae}),n.d(t,"ServerStyleSheet",function(){return pe}),n.d(t,"StyleSheetManager",function(){return de}),n.d(t,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",function(){return Ie});var o=n(25),i=n.n(o),a=n(24),s=n.n(a),c=n(34),f=n.n(c),d=n(0),p=n.n(d),h=n(2),v=n.n(h),m=n(23),y=n.n(m),g=n(33),b=/([A-Z])/g,w=/^ms-/,C=function(e){return function(e){return e.replace(b,"-$1").toLowerCase()}(e).replace(w,"-ms-")},_=function e(t,n){return t.reduce(function(t,r){return void 0===r||null===r||!1===r||""===r?t:Array.isArray(r)?[].concat(t,e(r,n)):r.hasOwnProperty("styledComponentId")?[].concat(t,["."+r.styledComponentId]):"function"==typeof r?n?t.concat.apply(t,e([r(n)],n)):t.concat(r):t.concat(i()(r)?function e(t,n){var r=Object.keys(t).filter(function(e){var n=t[e];return void 0!==n&&null!==n&&!1!==n&&""!==n}).map(function(n){return i()(t[n])?e(t[n],n):C(n)+": "+t[n]+";"}).join(" ");return n?n+" {\n "+r+"\n}":r}(r):r.toString())},[])},E=new s.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),O=new s.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),T=[],S=function(e){if(-2===e){var t=T;return T=[],t}},P=f()(function(e){T.push(e)});O.use([P,S]),E.use([P,S]);var x=function(e,t,n){var r=e.join("").replace(/^\s*\/\/.*$/gm,"");return O(n||!t?"":t,t&&n?n+" "+t+" { "+r+" }":r)};function N(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function k(){}var R,M=function(e){return String.fromCharCode(e+(e>25?39:97))},j=function(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=M(n%52)+t;return M(n%52)+t},A=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},I="function"==typeof Symbol&&"symbol"==u(Symbol.iterator)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":u(e)},L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},D=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))},H=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},V=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t},W=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Array.isArray(e)||"object"!==(void 0===e?"undefined":I(e))?_(A(e,n)):_(A([],[e].concat(n)))},B=void 0!==e&&e.env.SC_ATTR||"data-styled-components",z="__styled-components-stylesheet__",G="undefined"!=typeof window&&"HTMLElement"in window,q=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,K=function(e){var t=""+(e||""),n=[];return t.replace(q,function(e,t,r){return n.push({componentId:t,matchIndex:r}),e}),n.map(function(e,r){var o=e.componentId,i=e.matchIndex,a=n[r+1];return{componentId:o,cssFromDOM:a?t.slice(i,a.matchIndex):t.slice(i)}})},$=function(){return n.nc},Y=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},X=function(e,t){e[t]=Object.create(null)},Q=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},Z=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},J=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,n=0;n<t;n+=1){var r=document.styleSheets[n];if(r.ownerNode===e)return r}throw new Error},ee=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(e){return!1}return!0},te=function(){throw new Error("")},ne=function(e){return"\n/* sc-component-id: "+e+" */\n"},re=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},oe=function(e,t){return function(n){var r=$();return"<style "+[r&&'nonce="'+r+'"',B+'="'+Z(t)+'"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},ie=function(e,t){return function(){var n,r=((n={})[B]=Z(t),n),o=$();return o&&(r.nonce=o),p.a.createElement("style",F({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},ae=function(e){return function(){return Object.keys(e)}},ue=function(e,t,n,r,o){return G&&!n?function(e,t){var n=Object.create(null),r=Object.create(null),o=[],i=void 0!==t,a=!1,u=function(e){var t=r[e];return void 0!==t?t:(r[e]=o.length,o.push(0),X(n,e),r[e])},l=function(){var t=J(e).cssRules,n="";for(var i in r){n+=ne(i);for(var a=r[i],u=re(o,a),l=u-o[a];l<u;l+=1){var s=t[l];void 0!==s&&(n+=s.cssText)}}return n};return{styleTag:e,getIds:ae(r),hasNameForId:Q(n),insertMarker:u,insertRules:function(r,l,s){for(var c=u(r),f=J(e),d=re(o,c),p=0,h=[],v=l.length,m=0;m<v;m+=1){var y=l[m],g=i;g&&-1!==y.indexOf("@import")?h.push(y):ee(f,y,d+p)&&(g=!1,p+=1)}i&&h.length>0&&(a=!0,t().insertRules(r+"-import",h)),o[c]+=p,Y(n,r,s)},removeRules:function(u){var l=r[u];if(void 0!==l){var s=o[l];!function(e,t,n){for(var r=t-s,o=t;o>r;o-=1)e.deleteRule(o)}(J(e),re(o,l)),o[l]=0,X(n,u),i&&a&&t().removeRules(u+"-import")}},css:l,toHTML:oe(l,n),toElement:ie(l,n),clone:te}}(function(e,t,n){var r=document.createElement("style");r.setAttribute(B,"");var o=$();if(o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new Error("");t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,r),o):function e(t,n){var r=void 0===t?Object.create(null):t,o=void 0===n?Object.create(null):n,i=function(e){var t=o[e];return void 0!==t?t:o[e]=[""]},a=function(){var e="";for(var t in o){var n=o[t][0];n&&(e+=ne(t)+n)}return e};return{styleTag:null,getIds:ae(o),hasNameForId:Q(r),insertMarker:i,insertRules:function(e,t,n){i(e)[0]+=t.join(" "),Y(r,e,n)},removeRules:function(e){var t=o[e];void 0!==t&&(t[0]="",X(r,e))},css:a,toHTML:oe(a,r),toElement:ie(a,r),clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=F({},e[n]);return t}(r),n=Object.create(null);for(var i in o)n[i]=[o[i][0]];return e(t,n)}}}()};R=G?1e3:-1;var le,se=0,ce=void 0,fe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ue(t.target,n?n.styleTag:null,t.forceServer,!0)},se+=1,this.id=se,this.sealed=!1,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!G||this.forceServer)return this;var e=[],t=[],n=[],r=!1,o=document.querySelectorAll("style["+B+"]"),i=o.length;if(0===i)return this;for(var a=0;a<i;a+=1){var u=o[a];r=!!u.getAttribute("data-styled-streamed")||r;for(var l=(u.getAttribute(B)||"").trim().split(/\s+/),s=l.length,c=0;c<s;c+=1){var f=l[c];this.rehydratedNames[f]=!0,t.push(f)}n=n.concat(K(u.textContent)),e.push(u)}var d=n.length;if(0===d)return this;var p=function(e,t,n,r,o){var i,a,u=(i=function(){for(var r=0;r<n.length;r+=1){var o=n[r],i=o.componentId,a=o.cssFromDOM,u=E("",a);e.insertRules(i,u)}for(var l=0;l<t.length;l+=1){var s=t[l];s.parentNode&&s.parentNode.removeChild(s)}},a=!1,function(){a||(a=!0,i())});return o&&u(),F({},e,{insertMarker:function(t){return u(),e.insertMarker(t)},insertRules:function(t,n,r){return u(),e.insertRules(t,n,r)}})}(this.makeTag(null),e,n,0,r);this.capacity=Math.max(1,R-d),this.tags.push(p);for(var h=0;h<d;h+=1)this.tagMap[n[h].componentId]=p;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ce=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var n=e.getIds(),r=e.clone(),o=0;o<n.length;o+=1)t.tagMap[n[o]]=r;return r}),t.rehydratedNames=F({},this.rehydratedNames),t.deferred=F({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.sealed=!0},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return ue(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!this.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=R,this.sealed=!1,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,o=0;o<r.length;o+=1)r[o].inject(e,t,n);var i=t,a=this.deferred[e];void 0!==a&&(i=a.concat(i),delete this.deferred[e]),this.getTagForId(e).insertRules(e,i,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,delete this.deferred[e]}},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map(function(t,n){var r="sc-"+e+"-"+n;return Object(d.cloneElement)(t.toElement(),{key:r})})},D(e,null,[{key:"master",get:function(){return ce||(ce=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),de=function(e){function t(){return L(this,t),V(this,e.apply(this,arguments))}return U(t,e),t.prototype.getChildContext=function(){var e;return(e={})[z]=this.sheetInstance,e},t.prototype.componentWillMount=function(){if(this.props.sheet)this.sheetInstance=this.props.sheet;else{if(!this.props.target)throw new Error("");this.sheetInstance=new fe(this.props.target)}},t.prototype.render=function(){return p.a.Children.only(this.props.children)},t}(d.Component);de.childContextTypes=((le={})[z]=v.a.oneOfType([v.a.instanceOf(fe),v.a.instanceOf(pe)]).isRequired,le);var pe=function(){function e(){L(this,e),this.masterSheet=fe.master,this.instance=this.masterSheet.clone(),this.closed=!1}return e.prototype.complete=function(){if(!this.closed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.closed=!0}},e.prototype.collectStyles=function(e){if(this.closed)throw new Error("");return p.a.createElement(de,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.complete(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.complete(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new Error("")},e}(),he=function(e,t,n){var r=n&&e.theme===n.theme;return e.theme&&!r?e.theme:t},ve=/[[\].#*$><+~=|^:(),"'`-]+/g,me=/(^-|-$)/g;function ye(e){return e.replace(ve,"-").replace(me,"")}function ge(e){return e.displayName||e.name||"Component"}function be(e){return"string"==typeof e}var we,Ce,_e=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|onPointerOu|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|unicodeRange|mathematical|vAlphabetic|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|autoPlay|o(?:verflow|pen)|f(?:o(?:ntSize|rm)|il(?:ter|l))|r(?:e(?:quired|sult|f))?|divisor|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|i(?:temRef|n2|s)|t(?:arget[XY]|o)|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|prefix|typeof|itemID|s(?:t(?:roke|art)|hape|cope|rc)|t(?:arget|ype)|(?:stri|la)ng|a(?:ccept|s)|m(?:edia|a(?:sk|x)|in)|x(?:mlns)?|width|value|size|href|k(?:ey)?|end|low|by|i[dn]|y[12]|g[12]|x[12]|f[xy]|[yz])$/,Ee=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),Oe="__styled-components__",Te=Oe+"next__",Se=v.a.shape({getTheme:v.a.func,subscribe:v.a.func,unsubscribe:v.a.func}),Pe=function(e){function t(){L(this,t);var n=V(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return U(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[Te];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t,void 0!==e.broadcast&&e.publish(e.props.theme)})),this.broadcast=function(e){var t={},n=0,r=e;return{publish:function(e){for(var n in r=e,t){var o=t[n];void 0!==o&&o(r)}},subscribe:function(e){var o=n;return t[o]=e,n+=1,e(r),o},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return F({},this.context,((e={})[Te]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[Oe]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.publish(e.theme)},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[Te].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if("function"==typeof t)return t(this.outerTheme);if(null===t||Array.isArray(t)||"object"!==(void 0===t?"undefined":I(t)))throw new Error("");return F({},this.outerTheme,t)},t.prototype.publish=function(e){this.broadcast.publish(this.getTheme(e))},t.prototype.render=function(){return this.props.children?p.a.Children.only(this.props.children):null},t}(d.Component);Pe.childContextTypes=((we={})[Oe]=v.a.func,we[Te]=Se,we),Pe.contextTypes=((Ce={})[Te]=Se,Ce);var xe={};function Ne(e){for(var t,n=0|e.length,r=0|n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}var ke=G,Re=function e(t,n){for(var r=0;r<t.length;r+=1){var o=t[r];if(Array.isArray(o)&&!e(o))return!1;if("function"==typeof o&&!N(o))return!1}if(void 0!==n)for(var i in n)if("function"==typeof n[i])return!1;return!0},Me=void 0!==r&&r.hot&&!1,je=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ae=function(e){var t,n=e.displayName||e.name||"Component",r="function"==typeof e&&!(e.prototype&&"isReactComponent"in e.prototype),o=N(e)||r,i=function(t){function n(){var e,r;L(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=V(this,t.call.apply(t,[this].concat(i))),r.state={},r.unsubscribeId=-1,V(r,e)}return U(n,t),n.prototype.componentWillMount=function(){var e=this,t=this.constructor.defaultProps,n=this.context[Te],r=he(this.props,void 0,t);if(void 0===n&&void 0!==r)this.setState({theme:r});else{var o=n.subscribe;this.unsubscribeId=o(function(n){var r=he(e.props,n,t);e.setState({theme:r})})}},n.prototype.componentWillReceiveProps=function(e){var t=this.constructor.defaultProps;this.setState(function(n){return{theme:he(e,n.theme,t)}})},n.prototype.componentWillUnmount=function(){-1!==this.unsubscribeId&&this.context[Te].unsubscribe(this.unsubscribeId)},n.prototype.render=function(){var t=F({theme:this.state.theme},this.props);return o||(t.ref=t.innerRef,delete t.innerRef),p.a.createElement(e,t)},n}(p.a.Component);return i.displayName="WithTheme("+n+")",i.styledComponentId="withTheme",i.contextTypes=((t={})[Oe]=v.a.func,t[Te]=Se,t),y()(i,e)},Ie={StyleSheet:fe},Le=function(e,t,n){var r=function(t){return e(Ne(t))};return function(){function e(t,n,r){if(L(this,e),this.rules=t,this.isStatic=!Me&&Re(t,n),this.componentId=r,!fe.master.hasId(r)){fe.master.deferredInject(r,[])}}return e.prototype.generateAndInjectStyles=function(e,o){var i=this.isStatic,a=this.componentId,u=this.lastClassName;if(ke&&i&&void 0!==u&&o.hasNameForId(a,u))return u;var l=t(this.rules,e),s=r(this.componentId+l.join(""));if(!o.hasNameForId(a,s)){var c=n(l,"."+s);o.inject(this.componentId,c,s)}return this.lastClassName=s,s},e.generateName=function(e){return r(e)},e}()}(j,_,x),De=function(e){return function t(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(g.isValidElementType)(r))throw new Error("");var i=function(){return n(r,o,e.apply(void 0,arguments))};return i.withConfig=function(e){return t(n,r,F({},o,e))},i.attrs=function(e){return t(n,r,F({},o,{attrs:F({},o.attrs||{},e)}))},i}}(W),Fe=function(e,t){var n={},r=function(e){function t(){var n,r;L(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=V(this,e.call.apply(e,[this].concat(i))),r.attrs={},r.state={theme:null,generatedClassName:""},r.unsubscribeId=-1,V(r,n)}return U(t,e),t.prototype.unsubscribeFromContext=function(){-1!==this.unsubscribeId&&this.context[Te].unsubscribe(this.unsubscribeId)},t.prototype.buildExecutionContext=function(e,t){var n=this.constructor.attrs,r=F({},t,{theme:e});return void 0===n?r:(this.attrs=Object.keys(n).reduce(function(e,t){var o=n[t];return e[t]="function"!=typeof o||function(e,t){for(var n=e;n;)if((n=Object.getPrototypeOf(n))&&n===t)return!0;return!1}(o,d.Component)?o:o(r),e},{}),F({},r,this.attrs))},t.prototype.generateAndInjectStyles=function(e,t){var n=this.constructor,r=n.attrs,o=n.componentStyle,i=(n.warnTooManyClasses,this.context[z]||fe.master);if(o.isStatic&&void 0===r)return o.generateAndInjectStyles(xe,i);var a=this.buildExecutionContext(e,t);return o.generateAndInjectStyles(a,i)},t.prototype.componentWillMount=function(){var e=this,t=this.constructor.componentStyle,n=this.context[Te];if(t.isStatic){var r=this.generateAndInjectStyles(xe,this.props);this.setState({generatedClassName:r})}else if(void 0!==n){var o=n.subscribe;this.unsubscribeId=o(function(t){var n=he(e.props,t,e.constructor.defaultProps),r=e.generateAndInjectStyles(n,e.props);e.setState({theme:n,generatedClassName:r})})}else{var i=this.props.theme||{},a=this.generateAndInjectStyles(i,this.props);this.setState({theme:i,generatedClassName:a})}},t.prototype.componentWillReceiveProps=function(e){var t=this;this.constructor.componentStyle.isStatic||this.setState(function(n){var r=he(e,n.theme,t.constructor.defaultProps);return{theme:r,generatedClassName:t.generateAndInjectStyles(r,e)}})},t.prototype.componentWillUnmount=function(){this.unsubscribeFromContext()},t.prototype.render=function(){var e=this,t=this.props.innerRef,n=this.state.generatedClassName,r=this.constructor,o=r.styledComponentId,i=r.target,a=be(i),u=[this.props.className,o,this.attrs.className,n].filter(Boolean).join(" "),l=F({},this.attrs,{className:u});N(i)?l.innerRef=t:l.ref=t;var s=Object.keys(this.props).reduce(function(t,n){var r;return"innerRef"===n||"className"===n||a&&(r=n,!_e.test(r)&&!Ee(r.toLowerCase()))||(t[n]=e.props[n]),t},l);return Object(d.createElement)(i,s)},t}(d.Component);return function o(i,a,u){var l,s=a.isClass,c=void 0===s?!be(i):s,f=a.displayName,d=void 0===f?function(e){return be(e)?"styled."+e:"Styled("+ge(e)+")"}(i):f,p=a.componentId,h=void 0===p?function(t,r){var o="string"!=typeof t?"sc":ye(t),i=(n[o]||0)+1;n[o]=i;var a=o+"-"+e.generateName(o+i);return void 0!==r?r+"-"+a:a}(a.displayName,a.parentComponentId):p,m=a.ParentComponent,g=void 0===m?r:m,b=a.rules,w=a.attrs,C=a.displayName&&a.componentId?ye(a.displayName)+"-"+a.componentId:a.componentId||h,_=new e(void 0===b?u:b.concat(u),w,C),E=function(e){function n(){return L(this,n),V(this,e.apply(this,arguments))}return U(n,e),n.withComponent=function(e){var t=a.componentId,r=H(a,["componentId"]),i=t&&t+"-"+(be(e)?e:ye(ge(e))),l=F({},r,{componentId:i,ParentComponent:n});return o(e,l,u)},D(n,null,[{key:"extend",get:function(){var e=a.rules,r=a.componentId,l=H(a,["rules","componentId"]),s=void 0===e?u:e.concat(u),c=F({},l,{rules:s,parentComponentId:r,ParentComponent:n});return t(o,i,c)}}]),n}(g);return E.attrs=w,E.componentStyle=_,E.displayName=d,E.styledComponentId=C,E.target=i,E.contextTypes=((l={})[Oe]=v.a.func,l[Te]=Se,l[z]=v.a.oneOfType([v.a.instanceOf(fe),v.a.instanceOf(pe)]),l),c&&y()(E,i,{attrs:!0,componentStyle:!0,displayName:!0,extend:!0,styledComponentId:!0,target:!0,warnTooManyClasses:!0,withComponent:!0}),E}}(Le,De),Ue=function(e,t,n){return function(){var r=fe.master,o=n.apply(void 0,arguments),i=e(Ne(JSON.stringify(o).replace(/\s|\\n/g,""))),a="sc-keyframes-"+i;return r.hasNameForId(a,i)||r.inject(a,t(o,i,"@keyframes"),i),i}}(j,x,W),He=function(e,t){return function(){var n=fe.master,r=t.apply(void 0,arguments),o="sc-global-"+Ne(JSON.stringify(r));n.hasId(o)||n.inject(o,e(r))}}(x,W),Ve=function(e,t){var n=function(n){return t(e,n)};return je.forEach(function(e){n[e]=n(e)}),n}(Fe,De);t.default=Ve}.call(this,n(51),n(50)(e))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=void 0}return e.prototype.connect=function(e){this.store=e,this.afterConnected()},e.prototype.afterConnected=function(){},e.prototype.isConnect=function(){return(0,r.isExist)(this.store)},e.prototype.dispatch=function(e){return this.throwIfNotConnected(),this.store.dispatch(e)},e.prototype.getState=function(){return this.throwIfNotConnected(),this.store.getState()},e.prototype.throwIfNotConnected=function(e){if(!this.isConnect())throw new Error(e||this.constructor.name+"에 Store를 연결해주세요.")},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(18))&&r.__esModule?r:{default:r},i=n(9),a=n(6),l=n(1),s=n(8),c=n(7);var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.call(this));return n.startOffset={1:0},n.hasFooter=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.setHasFooter=function(e){this.hasFooter=e},t.prototype.getHasFooter=function(){return this.hasFooter},t.prototype.invalidate=function(){this.startOffset={1:0},this.dispatch((0,i.invalidateCalculations)())},t.prototype.isCompleted=function(){return(0,a.selectReaderIsCalculated)(this.getState())},t.prototype.isCalculated=function(e){return e===c.FOOTER_INDEX?(0,a.selectReaderFooterCalculations)(this.getState()).isCalculated:(0,a.selectReaderContentsCalculations)(this.getState())[e-1].isCalculated},t.prototype.getStartOffset=function(e){return"number"==typeof this.startOffset[e]?this.startOffset[e]:c.PRE_CALCULATION},t.prototype.setStartOffset=function(e,t){this.startOffset[e]=t},t.prototype.checkComplete=function(){if((0,a.selectReaderIsInitContents)(this.getState())){for(var e=(0,a.selectReaderContentsCalculations)(this.getState()),t=(0,a.selectReaderFooterCalculations)(this.getState()),n=(0,a.selectReaderContentFormat)(this.getState())===s.ContentFormat.HTML?e.every(function(e){return e.isCalculated}):e[0].isCalculated,r=!this.hasFooter||t.isCalculated,o=0;o<e.length;o+=1){var u=e[o],l=u.index,f=u.isCalculated,d=u.total;if(!f||"number"!=typeof this.getStartOffset(l))break;var p=l===e.length?c.FOOTER_INDEX:l+1;this.setStartOffset(p,this.getStartOffset(l)+d)}var h=e.reduce(function(e,t){return e+t.total},t.total);this.dispatch((0,i.updateCalculationsTotal)(h,n&&r))}},t.prototype.setTotal=function(e,t){this.isCalculated(e)||(this.dispatch(e===c.FOOTER_INDEX?(0,i.updateFooterCalculation)(t):(0,i.updateContentCalculations)(e,t)),this.checkComplete())},t.prototype.getTotal=function(e){return e===c.FOOTER_INDEX?(0,a.selectReaderFooterCalculations)(this.getState()).total:(0,a.selectReaderContentsCalculations)(this.getState())[e-1].total},t.prototype.getContentIndexesInOffsetRange=function(e,t){var n=(0,a.selectReaderCalculationsTotal)(this.getState()),r=[],o=[e,t],i=(0,a.selectReaderContentsCalculations)(this.getState()).length;if(this.isCompleted()&&e>n)return[i];for(var u=1;u<=i;u+=1){var s=u===i+1?c.FOOTER_INDEX:u,f=u===i?c.FOOTER_INDEX:u+1;if(void 0===this.getStartOffset(f))break;var d=[this.getStartOffset(s),s===c.FOOTER_INDEX?n:this.getStartOffset(f)];if((0,l.hasIntersect)(o,d))r.push(s);else if(this.getStartOffset(s)>t)break}return r},t.prototype.getIndexAtOffset=function(e){if(!this.isCompleted())return null;for(var t=Object.keys(this.startOffset).length,n=1;n<=t;n+=1){var r=n===t?c.FOOTER_INDEX:n,o=n>=t-1?c.FOOTER_INDEX:n+1;if(e>=this.getStartOffset(r)&&(r===c.FOOTER_INDEX||e<this.getStartOffset(o)))return r}return null},t.prototype.isLastContent=function(e){return e===(0,a.selectReaderContents)(this.getState()).length},t}(o.default);t.default=new f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Position=void 0;var r=a(n(0)),o=a(n(5)),i=a(n(3));function a(e){return e&&e.__esModule?e:{default:e}}var l=t.Position={LEFT:1,MIDDLE:2,RIGHT:3},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.onTouchScreenHandle=function(e,t){e.preventDefault(),e.stopPropagation(),i.default.current.isOnFooter()||(0,this.props.onTouched)({position:t})},t.prototype.renderContent=function(){return this.props.children},t.prototype.render=function(){var e=this,t=this.props,n=t.forwardedRef,o=t.total,a=i.default.setting.getStyledTouchable();return r.default.createElement(a,{role:"button",tabIndex:"-1",innerRef:n,id:"reader_contents",total:o,onClick:function(t){return e.onTouchScreenHandle(t,l.MIDDLE)},onKeyDown:function(t){"Enter"===t.key||" "===t.key?e.onTouchScreenHandle(t,l.MIDDLE):"ArrowLeft"===t.key||"Left"===t.key?e.onTouchScreenHandle(t,l.LEFT):"ArrowRight"!==t.key&&"Right"!==t.key||e.onTouchScreenHandle(t,l.RIGHT)}},this.renderContent())},t}(r.default.Component);t.default=s,s.defaultProps={forwardedRef:r.default.createRef(),onTouched:function(){},children:null,total:null},s.propTypes={onTouched:o.default.func,children:o.default.node,forwardedRef:o.default.object,total:o.default.number}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={SCROLL:100,RESIZE:100}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.STATUS_BAR_HEIGHT=25,t.NAV_BAR_HEIGHT=55,t.DEFAULT_MAX_WIDTH=700,t.MAX_PADDING_LEVEL=7,t.DEFAULT_VERTICAL_MARGIN=35,t.DEFAULT_HORIZONTAL_MARGIN=30,t.DEFAULT_EXTENDED_SIDE_TOUCH_WIDTH=100,t.READER_SELECTOR="#reader_contents",t.DEFAULT_CONTENT_FOOTER_HEIGHT=60,t.CHAPTER_INDICATOR_ID_PREFIX="ridi_link_c",t.CHAPTER_ID_PREFIX="ridi_c"},function(e,t,n){e.exports=function(){var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,u=a&&a(Object);return function l(s,c,f){if("string"!=typeof c){if(u){var d=a(c);d&&d!==u&&l(s,d,f)}var p=r(c);o&&(p=p.concat(o(c)));for(var h=0;h<p.length;++h){var v=p[h];if(!(e[v]||t[v]||f&&f[v])){var m=i(c,v);try{n(s,v,m)}catch(e){}}}return s}return s}}()},function(e,t,n){e.exports=function e(t){var n=/^\0+/g,r=/[\0\r\f]/g,o=/: */g,i=/zoo|gra/,a=/([,: ])(transform)/g,u=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,s=/ *[\0] */g,c=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,p=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,m=/:(read-only)/g,y=/\s+(?=[{\];=:>])/g,g=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,C=/([^\(])(:+) */g,_=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,T=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,N="-webkit-",k="-moz-",R="-ms-",M=59,j=125,A=123,I=40,L=41,D=91,F=93,U=10,H=13,V=9,W=64,B=32,z=38,G=45,q=95,K=42,$=44,Y=58,X=39,Q=34,Z=47,J=62,ee=43,te=126,ne=0,re=12,oe=11,ie=107,ae=109,ue=115,le=112,se=111,ce=105,fe=99,de=100,pe=112,he=1,ve=1,me=0,ye=1,ge=1,be=1,we=0,Ce=0,_e=0,Ee=[],Oe=[],Te=0,Se=null,Pe=-2,xe=-1,Ne=0,ke=1,Re=2,Me=3,je=0,Ae=1,Ie="",Le="",De="";function Fe(e,t,o,i,a){for(var u,l,c=0,f=0,d=0,p=0,y=0,g=0,b=0,w=0,_=0,O=0,T=0,S=0,P=0,x=0,q=0,we=0,Oe=0,Se=0,Pe=0,xe=o.length,He=xe-1,Ge="",qe="",Ke="",$e="",Ye="",Xe="";q<xe;){if(b=o.charCodeAt(q),q===He&&f+p+d+c!==0&&(0!==f&&(b=f===Z?U:Z),p=d=c=0,xe++,He++),f+p+d+c===0){if(q===He&&(we>0&&(qe=qe.replace(r,"")),qe.trim().length>0)){switch(b){case B:case V:case M:case H:case U:break;default:qe+=o.charAt(q)}b=M}if(1===Oe)switch(b){case A:case j:case M:case Q:case X:case I:case L:case $:Oe=0;case V:case H:case U:case B:break;default:for(Oe=0,Pe=q,y=b,q--,b=M;Pe<xe;)switch(o.charCodeAt(Pe++)){case U:case H:case M:++q,b=y,Pe=xe;break;case Y:we>0&&(++q,b=y);case A:Pe=xe}}switch(b){case A:for(y=(qe=qe.trim()).charCodeAt(0),T=1,Pe=++q;q<xe;){switch(b=o.charCodeAt(q)){case A:T++;break;case j:T--}if(0===T)break;q++}switch(Ke=o.substring(Pe,q),y===ne&&(y=(qe=qe.replace(n,"").trim()).charCodeAt(0)),y){case W:switch(we>0&&(qe=qe.replace(r,"")),g=qe.charCodeAt(1)){case de:case ae:case ue:case G:u=t;break;default:u=Ee}if(Pe=(Ke=Fe(t,u,Ke,g,a+1)).length,_e>0&&0===Pe&&(Pe=qe.length),Te>0&&(u=Ue(Ee,qe,Se),l=ze(Me,Ke,u,t,ve,he,Pe,g,a,i),qe=u.join(""),void 0!==l&&0===(Pe=(Ke=l.trim()).length)&&(g=0,Ke="")),Pe>0)switch(g){case ue:qe=qe.replace(E,Be);case de:case ae:case G:Ke=qe+"{"+Ke+"}";break;case ie:Ke=(qe=qe.replace(h,"$1 $2"+(Ae>0?Ie:"")))+"{"+Ke+"}",Ke=1===ge||2===ge&&We("@"+Ke,3)?"@"+N+Ke+"@"+Ke:"@"+Ke;break;default:Ke=qe+Ke,i===pe&&($e+=Ke,Ke="")}else Ke="";break;default:Ke=Fe(t,Ue(t,qe,Se),Ke,i,a+1)}Ye+=Ke,S=0,Oe=0,x=0,we=0,Se=0,P=0,qe="",Ke="",b=o.charCodeAt(++q);break;case j:case M:if((Pe=(qe=(we>0?qe.replace(r,""):qe).trim()).length)>1)switch(0===x&&((y=qe.charCodeAt(0))===G||y>96&&y<123)&&(Pe=(qe=qe.replace(" ",":")).length),Te>0&&void 0!==(l=ze(ke,qe,t,e,ve,he,$e.length,i,a,i))&&0===(Pe=(qe=l.trim()).length)&&(qe="\0\0"),y=qe.charCodeAt(0),g=qe.charCodeAt(1),y){case ne:break;case W:if(g===ce||g===fe){Xe+=qe+o.charAt(q);break}default:if(qe.charCodeAt(Pe-1)===Y)break;$e+=Ve(qe,y,g,qe.charCodeAt(2))}S=0,Oe=0,x=0,we=0,Se=0,qe="",b=o.charCodeAt(++q)}}switch(b){case H:case U:if(f+p+d+c+Ce===0)switch(O){case L:case X:case Q:case W:case te:case J:case K:case ee:case Z:case G:case Y:case $:case M:case A:case j:break;default:x>0&&(Oe=1)}f===Z?f=0:ye+S===0&&i!==ie&&qe.length>0&&(we=1,qe+="\0"),Te*je>0&&ze(Ne,qe,t,e,ve,he,$e.length,i,a,i),he=1,ve++;break;case M:case j:if(f+p+d+c===0){he++;break}default:switch(he++,Ge=o.charAt(q),b){case V:case B:if(p+c+f===0)switch(w){case $:case Y:case V:case B:Ge="";break;default:b!==B&&(Ge=" ")}break;case ne:Ge="\\0";break;case re:Ge="\\f";break;case oe:Ge="\\v";break;case z:p+f+c===0&&ye>0&&(Se=1,we=1,Ge="\f"+Ge);break;case 108:if(p+f+c+me===0&&x>0)switch(q-x){case 2:w===le&&o.charCodeAt(q-3)===Y&&(me=w);case 8:_===se&&(me=_)}break;case Y:p+f+c===0&&(x=q);break;case $:f+d+p+c===0&&(we=1,Ge+="\r");break;case Q:case X:0===f&&(p=p===b?0:0===p?b:p);break;case D:p+f+d===0&&c++;break;case F:p+f+d===0&&c--;break;case L:p+f+c===0&&d--;break;case I:if(p+f+c===0){if(0===S)switch(2*w+3*_){case 533:break;default:T=0,S=1}d++}break;case W:f+d+p+c+x+P===0&&(P=1);break;case K:case Z:if(p+c+d>0)break;switch(f){case 0:switch(2*b+3*o.charCodeAt(q+1)){case 235:f=Z;break;case 220:Pe=q,f=K}break;case K:b===Z&&w===K&&(33===o.charCodeAt(Pe+2)&&($e+=o.substring(Pe,q+1)),Ge="",f=0)}}if(0===f){if(ye+p+c+P===0&&i!==ie&&b!==M)switch(b){case $:case te:case J:case ee:case L:case I:if(0===S){switch(w){case V:case B:case U:case H:Ge+="\0";break;default:Ge="\0"+Ge+(b===$?"":"\0")}we=1}else switch(b){case I:x+7===q&&108===w&&(x=0),S=++T;break;case L:0==(S=--T)&&(we=1,Ge+="\0")}break;case V:case B:switch(w){case ne:case A:case j:case M:case $:case re:case V:case B:case U:case H:break;default:0===S&&(we=1,Ge+="\0")}}qe+=Ge,b!==B&&b!==V&&(O=b)}}_=w,w=b,q++}if(Pe=$e.length,_e>0&&0===Pe&&0===Ye.length&&0===t[0].length==0&&(i!==ae||1===t.length&&(ye>0?Le:De)===t[0])&&(Pe=t.join(",").length+2),Pe>0){if(u=0===ye&&i!==ie?function(e){for(var t,n,o=0,i=e.length,a=Array(i);o<i;++o){for(var u=e[o].split(s),l="",c=0,f=0,d=0,p=0,h=u.length;c<h;++c)if(!(0===(f=(n=u[c]).length)&&h>1)){if(d=l.charCodeAt(l.length-1),p=n.charCodeAt(0),t="",0!==c)switch(d){case K:case te:case J:case ee:case B:case I:break;default:t=" "}switch(p){case z:n=t+Le;case te:case J:case ee:case B:case L:case I:break;case D:n=t+n+Le;break;case Y:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,f-1);break}default:(c<1||u[c-1].length<1)&&(n=t+Le+n)}break;case $:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(C,"$1"+Le+"$2"):t+n+Le}l+=n}a[o]=l.replace(r,"").trim()}return a}(t):t,Te>0&&void 0!==(l=ze(Re,$e,u,e,ve,he,Pe,i,a,i))&&0===($e=l).length)return Xe+$e+Ye;if($e=u.join(",")+"{"+$e+"}",ge*me!=0){switch(2!==ge||We($e,2)||(me=0),me){case se:$e=$e.replace(m,":"+k+"$1")+$e;break;case le:$e=$e.replace(v,"::"+N+"input-$1")+$e.replace(v,"::"+k+"$1")+$e.replace(v,":"+R+"input-$1")+$e}me=0}}return Xe+$e+Ye}function Ue(e,t,n){var r=t.trim().split(c),o=r,i=r.length,a=e.length;switch(a){case 0:case 1:for(var u=0,l=0===a?"":e[0]+" ";u<i;++u)o[u]=He(l,o[u],n,a).trim();break;default:u=0;var s=0;for(o=[];u<i;++u)for(var f=0;f<a;++f)o[s++]=He(e[f]+" ",r[u],n,a).trim()}return o}function He(e,t,n,r){var o=t,i=o.charCodeAt(0);switch(i<33&&(i=(o=o.trim()).charCodeAt(0)),i){case z:switch(ye+r){case 0:case 1:if(0===e.trim().length)break;default:return o.replace(f,"$1"+e.trim())}break;case Y:switch(o.charCodeAt(1)){case 103:if(be>0&&ye>0)return o.replace(d,"$1").replace(f,"$1"+De);break;default:return e.trim()+o.replace(f,"$1"+e.trim())}default:if(n*ye>0&&o.indexOf("\f")>0)return o.replace(f,(e.charCodeAt(0)===Y?"":"$1")+e.trim())}return e+o}function Ve(e,t,n,r){var s,c=0,f=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Ae){case 0:break;case G:if(110!==e.charCodeAt(10))break;default:var i=o.split((o="",u)),a=0;for(n=0,t=i.length;a<t;n=0,++a){for(var s=i[a],c=s.split(l);s=c[n];){var f=s.charCodeAt(0);if(1===Ae&&(f>W&&f<90||f>96&&f<123||f===q||f===G&&s.charCodeAt(1)!==G))switch(isNaN(parseFloat(s))+(-1!==s.indexOf("("))){case 1:switch(s){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:s+=Ie}}c[n++]=s}o+=(0===a?"":",")+c.join(" ")}}return o=r+o+";",1===ge||2===ge&&We(o,1)?N+o+o:o}(f);if(0===ge||2===ge&&!We(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?N+f+f:f;case 951:return 116===f.charCodeAt(3)?N+f+f:f;case 963:return 110===f.charCodeAt(5)?N+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return N+f+f;case 978:return N+f+k+f+f;case 1019:case 983:return N+f+k+f+R+f+f;case 883:return f.charCodeAt(8)===G?N+f+f:f.indexOf("image-set(",11)>0?f.replace(x,"$1"+N+"$2")+f:f;case 932:if(f.charCodeAt(4)===G)switch(f.charCodeAt(5)){case 103:return N+"box-"+f.replace("-grow","")+N+f+R+f.replace("grow","positive")+f;case 115:return N+f+R+f.replace("shrink","negative")+f;case 98:return N+f+R+f.replace("basis","preferred-size")+f}return N+f+R+f+f;case 964:return N+f+R+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return s=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),N+"box-pack"+s+N+f+R+"flex-pack"+s+f;case 1005:return i.test(f)?f.replace(o,":"+N)+f.replace(o,":"+k)+f:f;case 1e3:switch(c=(s=f.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(c)){case 226:s=f.replace(_,"tb");break;case 232:s=f.replace(_,"tb-rl");break;case 220:s=f.replace(_,"lr");break;default:return f}return N+f+R+s+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(c=(f=e).length-10,d=(s=(33===f.charCodeAt(c)?f.substring(0,c):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:f=f.replace(s,N+s)+";"+f;break;case 207:case 102:f=f.replace(s,N+(d>102?"inline-":"")+"box")+";"+f.replace(s,N+s)+";"+f.replace(s,R+s+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===G)switch(f.charCodeAt(6)){case 105:return s=f.replace("-items",""),N+f+N+"box-"+s+R+"flex-"+s+f;case 115:return N+f+R+"flex-item-"+f.replace(T,"")+f;default:return N+f+R+"flex-line-pack"+f.replace("align-content","").replace(T,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==G||122===f.charCodeAt(4))break;case 931:case 953:if(!0===P.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ve(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):f.replace(s,N+s)+f.replace(s,k+s.replace("fill-",""))+f;break;case 962:if(f=N+f+(102===f.charCodeAt(5)?R+f:"")+f,n+r===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(a,"$1"+N+"$2")+f}return f}function We(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),o=e.substring(n+1,e.length-1);return Se(2!==t?r:r.replace(S,"$1"),o,t)}function Be(e,t){var n=Ve(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function ze(e,t,n,r,o,i,a,u,l,s){for(var c,f=0,d=t;f<Te;++f)switch(c=Oe[f].call(qe,e,d,n,r,o,i,a,u,l,s)){case void 0:case!1:case!0:case null:break;default:d=c}switch(d){case void 0:case!1:case!0:case null:case t:break;default:return d}}function Ge(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Ae=0|n;break;case"global":be=0|n;break;case"cascade":ye=0|n;break;case"compress":we=0|n;break;case"semicolon":Ce=0|n;break;case"preserve":_e=0|n;break;case"prefix":Se=null,n?"function"!=typeof n?ge=1:(ge=2,Se=n):ge=0}}return Ge}function qe(t,n){if(void 0!==this&&this.constructor===qe)return e(t);var o=t,i=o.charCodeAt(0);i<33&&(i=(o=o.trim()).charCodeAt(0)),Ae>0&&(Ie=o.replace(p,i===D?"":"-")),i=1,1===ye?De=o:Le=o;var a,u=[De];Te>0&&void 0!==(a=ze(xe,n,u,u,ve,he,0,0,0,0))&&"string"==typeof a&&(n=a);var l=Fe(Ee,u,n,0,0);return Te>0&&void 0!==(a=ze(Pe,l,u,u,ve,he,l.length,0,0,0))&&"string"!=typeof(l=a)&&(i=0),Ie="",De="",Le="",me=0,ve=1,he=1,we*i==0?l:l.replace(r,"").replace(y,"").replace(g,"$1").replace(b,"$1").replace(w," ")}return qe.use=function e(t){switch(t){case void 0:case null:Te=Oe.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:Oe[Te++]=t;break;case Boolean:je=0|!!t}}return e},qe.set=Ge,void 0!==t&&Ge(t),qe}(null)},function(e,t,n){
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
var r=n(49);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(5),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.wrapper=r.default.createRef(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.imageOnErrorHandler=function(){(0,this.props.onContentError)(this.props.content.index,"")},t.prototype.imageOnLoadHandler=function(){(0,this.props.onContentLoaded)(this.props.content.index,"")},t.prototype.renderImage=function(){var e=this,t=this.props.src;return this.props.content.isContentOnError?r.default.createElement("div",{className:"error_image_wrapper"},r.default.createElement("span",{className:"error_image svg_picture_1"})):r.default.createElement("img",{src:t,alt:"",onLoad:function(){return e.imageOnLoadHandler()},onError:function(){return e.imageOnErrorHandler()}})},t.prototype.render=function(){var e=this.props.contentFooter,t=this.props.content.isContentLoaded;return r.default.createElement("section",{ref:this.wrapper,className:"comic_page lazy_load "+(t?"loaded":"")+" "+(e?"has_content_footer":"")},this.renderImage(),e)},t}(r.default.Component);t.default=l,l.defaultProps={contentFooter:null},l.propTypes={src:i.default.string.isRequired,content:o.ContentType.isRequired,onContentLoaded:i.default.func,onContentError:i.default.func,contentFooter:i.default.node}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=a(n(0)),i=a(n(20));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t}(i.default);l.defaultProps=Object.assign({},i.default.defaultProps),l.propTypes=Object.assign({},i.default.propTypes),t.default=o.default.forwardRef(function(e,t){return o.default.createElement(l,r({},e,{forwardedRef:t}))})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),o=n(5),i=c(o),a=c(n(15)),l=n(7),s=c(n(3));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var d=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.wrapper=r.default.createRef(),o.content=r.default.createRef(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidMount=function(){this.props.content.isContentLoaded||this.fetch(),this.moveToOffset(this.getLocalOffset())},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.onContentRendered,r=t.currentOffset,o=t.isCalculated,i=this.props.content,a=i.index;if(i.isContentLoaded&&!o){var u=this.wrapper.current;this.waitForResources().then(function(){return n(a,{scrollWidth:u.scrollWidth,scrollHeight:u.scrollHeight})})}r!==e.currentOffset&&this.moveToOffset(this.getLocalOffset())},t.prototype.getLocalOffset=function(){var e=this.props;return e.currentOffset-e.startOffset},t.prototype.getHeight=function(){return"auto"},t.prototype.fetch=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=this.props.content,t=e.uri,n=e.index,r=this.props,o=r.onContentLoaded,i=r.onContentError;fetch(t).then(function(e){return e.json()}).then(function(e){return o(n,e.value)}).catch(function(e){return i(n,e)})}),t.prototype.waitForResources=function(){var e=[].concat(f(this.content.current.querySelectorAll("img"))).filter(function(e){return!e.complete}).map(function(e){return new Promise(function(t){e.addEventListener("load",function(){return t()}),e.addEventListener("error",function(){return t()})})}),t=[];return document.fonts&&document.fonts.ready&&t.push(document.fonts.ready),Promise.all([].concat(f(e),t))},t.prototype.moveToOffset=function(){},t.prototype.renderContent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.content,n=t.isContentLoaded,o=t.isContentOnError,i=t.content,u=this.props,l=u.contentFooter,s=u.setting;return n?r.default.createElement(r.default.Fragment,null,r.default.createElement("section",{ref:this.content,className:"content_container",dangerouslySetInnerHTML:{__html:e+" "+i}}),l?r.default.createElement(a.default,{content:l,height:s.contentFooterHeight}):null):o?r.default.createElement("div",null,"Error"):r.default.createElement("div",null,"Loading...")},t.prototype.render=function(){var e=this.props.content.index,t=this.props,n=t.width,o=t.startOffset,i=t.setting,a=t.containerVerticalMargin,u=t.containerHorizontalMargin,c=s.default.setting.getStyledContent(),f='<pre id="'+s.default.setting.getChapterIndicatorId(e)+'"></pre>';return r.default.createElement(c,{id:""+s.default.setting.getChapterId(e),className:"chapter",setting:i,width:n+"px",height:this.getHeight(),containerVerticalMargin:a,containerHorizontalMargin:u,visible:o!==l.PRE_CALCULATION,startOffset:o,innerRef:this.wrapper},this.renderContent(f))},t}(r.default.Component);t.default=d,d.defaultProps={contentFooter:null},d.propTypes={content:o.ContentType,startOffset:i.default.number.isRequired,currentOffset:i.default.number.isRequired,onContentLoaded:i.default.func,onContentError:i.default.func,onContentRendered:i.default.func,setting:o.SettingType.isRequired,containerHorizontalMargin:i.default.number.isRequired,containerVerticalMargin:i.default.number.isRequired,width:i.default.number.isRequired,contentFooter:i.default.node,isCalculated:i.default.bool.isRequired}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Position=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(0)),i=n(43),a=c(n(3)),l=n(20),s=c(l);function c(e){return e&&e.__esModule?e:{default:e}}t.Position=l.Position;var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidMount=function(){this.handleScrollEvent()},t.prototype.componentDidUpdate=function(){this.handleScrollEvent()},t.prototype.handleScrollEvent=function(){var e=this.props.forwardedRef;a.default.current.isOnFooter()?(0,i.removeScrollEvent)(e.current):(0,i.preventScrollEvent)(e.current)},t.prototype.renderContent=function(){var e=this,t=this.props.children,n=a.default.current.isOnFooter();return o.default.createElement(o.default.Fragment,null,!n&&o.default.createElement("button",{className:"page_move_button left_button",onClick:function(t){return e.onTouchScreenHandle(t,l.Position.LEFT)}}),!n&&o.default.createElement("button",{className:"page_move_button right_button",onClick:function(t){return e.onTouchScreenHandle(t,l.Position.RIGHT)}}),t)},t}(s.default);f.defaultProps=Object.assign({},s.default.defaultProps),f.propTypes=Object.assign({},s.default.propTypes),t.default=o.default.forwardRef(function(e,t){return o.default.createElement(f,r({},e,{forwardedRef:t}))})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return n.toList=function(){if(!(0,r.isExist)(this._LIST))throw new Error("_LIST가 존재하지 않습니다.");return this._LIST}.bind(n),n.toString=function(e){if(!(0,r.isExist)(this._STRING_MAP))throw new Error("_STRING_MAP이 존재하지 않습니다.");return this._STRING_MAP[e]||""}.bind(n),n.toStringList=function(){var e=this;if(!(0,r.isExist)(this._STRING_MAP)||!(0,r.isExist)(this._LIST))throw new Error("_STRING_MAP 혹은 _LIST가 존재하지 않습니다.");return this._LIST.map(function(t){return e._STRING_MAP[t]})}.bind(n),n.fromString=function(e){if(!(0,r.isExist)(this._STRING_MAP))throw new Error("_STRING_MAP이 존재하지 않습니다.");return(0,r.invert)(this._STRING_MAP)[e]||""}.bind(n),n.getDefault=function(){if(!(0,r.isExist)(this._DEFAULT))throw new Error("_DEFAULT이 존재하지 않습니다.");return this._DEFAULT}.bind(n),Object.keys(t).forEach(function(e){n[e]=t[e].bind(n)}),n};var r=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initialState=t.initialSettingState=t.initialFooterCalculationsState=t.initialContentCalculationsState=t.initialContentState=void 0;var r=n(8),o=n(10),i=n(22),a=(t.initialContentState=function(e,t){return{index:e,uri:t,content:null,error:null,isContentLoaded:!1,isContentOnError:!1}},t.initialContentCalculationsState=function(e){return{index:e,isCalculated:!1,total:0}},t.initialFooterCalculationsState=function(){return{isCalculated:!1,total:0}},t.initialSettingState=function(){return{colorTheme:o.ReaderThemeType.WHITE,font:"system",fontSizeLevel:6,paddingLevel:3,contentWidthLevel:6,lineHeightLevel:3,viewType:o.ViewType.SCROLL,columnsInPage:1,columnGap:40,startWithBlankPage:0,maxWidth:i.DEFAULT_MAX_WIDTH,contentFooterHeight:i.DEFAULT_CONTENT_FOOTER_HEIGHT,containerHorizontalMargin:i.DEFAULT_HORIZONTAL_MARGIN,containerVerticalMargin:i.DEFAULT_VERTICAL_MARGIN,extendedSideTouchWidth:i.DEFAULT_EXTENDED_SIDE_TOUCH_WIDTH}});t.initialState={status:{isInitContents:!1,isContentsLoaded:!1,isAllCalculated:!1},metadata:{format:r.ContentFormat.HTML,binding:r.BindingType.LEFT},contents:[],calculations:{contents:[],footer:{isCalculated:!1,total:0},total:0},current:{contentIndex:1,location:o.EMPTY_READ_POSITION,position:0,offset:0,viewType:o.ViewType.SCROLL},setting:a()},t.default={contents:function(){return["contents"]},content:function(e){return["contents",e-1,"content"]},isContentLoaded:function(e){return["contents",e-1,"isContentLoaded"]},isContentOnError:function(e){return["contents",e-1,"isContentOnError"]},contentError:function(e){return["contents",e-1,"error"]},contentFormat:function(){return["metadata","format"]},bindingType:function(){return["metadata","binding"]},isInitContents:function(){return["status","isInitContents"]},isContentsLoaded:function(){return["status","isContentsLoaded"]},isAllCalculated:function(){return["status","isAllCalculated"]},current:function(){return["current"]},currentContentIndex:function(){return["current","contentIndex"]},currentPosition:function(){return["current","position"]},currentLocation:function(){return["current","location"]},currentOffset:function(){return["current","offset"]},setting:function(){return["setting"]},colorTheme:function(){return["setting","colorTheme"]},columnsInPage:function(){return["setting","columnsInPage"]},columnGap:function(){return["setting","columnGap"]},calculationsTotal:function(){return["calculations","total"]},contentsCalculations:function(){return["calculations","contents"]},isContentsCalculated:function(e){return["calculations","contents",e-1,"isCalculated"]},contentCalculationsTotal:function(e){return["calculations","contents",e-1,"total"]},footerCalculations:function(){return["calculations","footer"]},footerCalculationsTotal:function(){return["calculations","footer","total"]},isFooterCalculated:function(){return["calculations","footer","isCalculated"]}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Connector=t.reducers=void 0;var r=n(9);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(6);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(8);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var a=n(10);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var u=c(n(59)),l=c(n(37)),s=c(n(3));function c(e){return e&&e.__esModule?e:{default:e}}t.reducers=l.default,t.Connector=s.default,t.default=u.default},function(e,t,n){e.exports=n(48)},function(e,t,n){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,u,l,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImmutableObjectBuilder=void 0;var r=n(1),o=t.ImmutableObjectBuilder=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._state=(0,r.cloneObject)(t)}return e.prototype.set=function(e,t){return(0,r.nullSafeSet)(this._state,e,t),this},e.prototype.build=function(){return this._state},e}();t.default={ImmutableObjectBuilder:o}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments[1];return Object.prototype.hasOwnProperty.call(t,r.type)?t[r.type](n,r):n}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(31),o=f(r),i=f(n(36)),a=n(9),u=n(35),l=n(1),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),c=n(32);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){return new u.ImmutableObjectBuilder(e).set(o.default.currentOffset(),s.scrollTop()).build()},h=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.current(),(0,l.updateObject)(e.current,t.current)).build()},v=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.setting(),(0,l.updateObject)(e.setting,t.setting)).build()},m=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.isInitContents(),!0).set(o.default.contentFormat(),t.contentFormat).set(o.default.bindingType(),t.bindingType).set(o.default.contents(),t.contents.map(function(e,t){return(0,r.initialContentState)(t+1,e)})).set(o.default.contentsCalculations(),t.contentFormat===c.ContentFormat.HTML?t.contents.map(function(e,t){return(0,r.initialContentCalculationsState)(t+1)}):[(0,r.initialContentCalculationsState)(1)]).build()},y=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.content(t.index),t.content).set(o.default.isContentLoaded(t.index),!0).set(o.default.isContentOnError(t.index),!1).set(o.default.contentError(t.index),null).set(o.default.isContentsLoaded(),t.isAllLoaded).build()},g=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.content(t.index),null).set(o.default.isContentLoaded(t.index),!1).set(o.default.isContentOnError(t.index),!0).set(o.default.contentError(t.index),t.error).set(o.default.isContentsLoaded(),t.isAllLoaded).build()},b=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.isContentsCalculated(t.index),!0).set(o.default.contentCalculationsTotal(t.index),t.total).build()},w=function(e){return new u.ImmutableObjectBuilder(e).set(o.default.isAllCalculated(),!1).set(o.default.contentsCalculations(),e.calculations.contents.map(function(e){return(0,r.initialContentCalculationsState)(e.index)})).set(o.default.footerCalculations(),(0,r.initialFooterCalculationsState)()).build()},C=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.isAllCalculated(),t.isCompleted).set(o.default.calculationsTotal(),t.calculationsTotal).build()},_=function(e,t){return new u.ImmutableObjectBuilder(e).set(o.default.isFooterCalculated(),!0).set(o.default.footerCalculationsTotal(),t.total).build()};t.default=function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).setting,n=void 0===t?{}:t,o=Object.assign({},(0,r.initialSettingState)(),n);return(0,i.default)(Object.assign({},r.initialState,{setting:o}),(d(e={},a.actions.SCROLLED,p),d(e,a.actions.SET_CONTENTS,m),d(e,a.actions.UPDATE_SETTING,v),d(e,a.actions.UPDATE_CONTENT,y),d(e,a.actions.UPDATE_CONTENT_ERROR,g),d(e,a.actions.UPDATE_CURRENT,h),d(e,a.actions.INVALIDATE_CALCULATIONS,w),d(e,a.actions.UPDATE_CONTENT_CALCULATIONS,b),d(e,a.actions.UPDATE_FOOTER_CALCULATIONS,_),d(e,a.actions.UPDATE_CALCULATIONS_TOTAL,C),e))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=_(n(0)),o=n(12),i=n(6),a=n(4),l=n(5),s=_(l),c=n(14),f=_(c),d=_(n(3)),p=_(n(13)),h=n(29),v=_(h),m=n(8),y=n(1),g=_(n(26)),b=_(n(15)),w=n(16),C=n(7);function _(e){return e&&e.__esModule?e:{default:e}}function E(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var O=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.container=r.default.createRef(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidUpdate=function(t){e.prototype.componentDidUpdate.call(this,t),d.default.calculations.setTotal(1,Math.ceil(this.container.current.scrollWidth/(0,a.screenWidth)()))},t.prototype.onTouchableScreenTouched=function(t){var n=t.position;e.prototype.onTouchableScreenTouched.call(this,{position:n});var r=this.props,o=r.bindingType,i=r.calculationsTotal,a=r.onMoveWrongDirection,u=this.props.current.offset;if(n!==h.Position.MIDDLE)if(n!==h.Position.RIGHT||o!==m.BindingType.RIGHT||0!==u){var l=u;n===h.Position.LEFT?l=o===m.BindingType.LEFT?u-1:u+1:n===h.Position.RIGHT&&(l=o===m.BindingType.LEFT?u+1:u-1),u!==(l=Math.max(0,Math.min(l,i)))&&d.default.current.updateCurrentPosition(l)}else(0,y.isExist)(a)&&a()},t.prototype.getTouchableScreen=function(){return v.default},t.prototype.moveToOffset=function(){var e=this.props.current,t=e.contentIndex,n=e.offset;(0,a.setScrollTop)(0),t===C.FOOTER_INDEX?this.wrapper.current.scrollLeft=this.wrapper.current.scrollWidth:(this.wrapper.current.scrollLeft=0,this.container.current.scrollLeft=n*(0,a.screenWidth)())},t.prototype.renderFooter=function(){var e=this.props.footer,t=this.props.setting.containerVerticalMargin,n=d.default.calculations.getStartOffset(C.FOOTER_INDEX),o=d.default.calculations.getHasFooter();return r.default.createElement(p.default,{content:e,startOffset:n,onContentRendered:function(){return d.default.calculations.setTotal(C.FOOTER_INDEX,o?1:0)},containerVerticalMargin:t})},t.prototype.renderContent=function(e){var t=this,n=this.props,o=n.current,i=n.contentFooter;return r.default.createElement(g.default,{key:e.uri+":"+e.index,content:e,currentOffset:o.offset,src:e.uri,onContentLoaded:function(e,n){return t.onContentLoaded(e,n)},onContentError:function(e,n){return t.onContentError(e,n)},contentFooter:d.default.calculations.isLastContent(e.index)?r.default.createElement(b.default,{content:i}):null})},t.prototype.getBlankPage=function(){return r.default.createElement("section",{className:"comic_page"})},t.prototype.getContents=function(){var e=this,t=this.props,n=t.contents,r=t.bindingType,o=this.props.setting,i=o.columnsInPage,a=o.startWithBlankPage,u=[];if(a>0&&(u=(0,y.makeSequence)(a).map(function(){return e.getBlankPage()})),u=[].concat(E(u),E(n.map(function(t){return e.renderContent(t)}))),i>1&&r===m.BindingType.RIGHT){var l=u.length%i;l>0&&(u=[].concat(E(u),E((0,y.makeSequence)(i-l).map(function(){return e.getBlankPage()}))));for(var s=[],c=0;c<u.length/i;c+=1){var f=u.slice(c*i,(c+1)*i);s=[].concat(E(s),E(f.reverse()))}return s}return u},t.prototype.renderContents=function(){var e=this.props.setting.columnsInPage;return r.default.createElement(w.StyledImagePageContent,{setting:this.props.setting,innerRef:this.container,width:(0,a.screenWidth)()+"px",height:(0,a.screenHeight)()+"px",visible:!0},r.default.createElement("div",{className:"content_container "+(2===e?"two_images_in_page":"")},this.getContents()))},t}(f.default);O.defaultProps=Object.assign({},f.default.defaultProps,{footer:null,contentFooter:null,onMoveWrongDirection:null}),O.propTypes=Object.assign({},f.default.propTypes,{current:l.CurrentType,contents:s.default.arrayOf(l.ContentType).isRequired,contentsCalculations:s.default.arrayOf(l.ContentCalculationsType).isRequired,actionUpdateContent:s.default.func.isRequired,actionUpdateContentError:s.default.func.isRequired,footer:s.default.node,contentFooter:s.default.node,footerCalculations:l.FooterCalculationsType.isRequired,bindingType:s.default.oneOf(m.BindingType.toList()).isRequired,calculationsTotal:s.default.number.isRequired,onMoveWrongDirection:s.default.func}),t.default=(0,o.connect)(function(e){return Object.assign({},(0,c.mapStateToProps)(e),{current:(0,i.selectReaderCurrent)(e),contents:(0,i.selectReaderContents)(e),contentsCalculations:(0,i.selectReaderContentsCalculations)(e),calculationsTotal:(0,i.selectReaderCalculationsTotal)(e),footerCalculations:(0,i.selectReaderFooterCalculations)(e),bindingType:(0,i.selectReaderBindingType)(e)})},function(e){return Object.assign({},(0,c.mapDispatchToProps)(e))})(O)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=E(n(0)),o=n(12),i=n(6),a=n(4),l=n(9),s=n(5),c=E(s),f=n(14),d=E(f),p=n(1),h=E(n(27)),v=E(n(13)),m=E(n(3)),y=E(n(26)),g=E(n(15)),b=n(16),w=n(7),C=E(n(11)),_=E(n(21));function E(e){return e&&e.__esModule?e:{default:e}}var O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.onScroll=(0,p.debounce)(function(e){return t.onScrollHandle(e)},_.default.SCROLL),window.addEventListener(C.default.SCROLL,this.onScroll)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),window.removeEventListener(C.default.SCROLL,this.onScroll)},t.prototype.componentDidUpdate=function(t){e.prototype.componentDidUpdate.call(this,t),m.default.calculations.setTotal(1,this.wrapper.current.scrollHeight)},t.prototype.onScrollHandle=function(e){e.preventDefault(),e.stopPropagation();var t=this.props,n=t.ignoreScroll,r=t.actionOnScreenScrolled;n||(r(),m.default.current.updateCurrentPosition((0,a.scrollTop)()))},t.prototype.moveToOffset=function(){var e=this.props.current.offset;(0,a.setScrollTop)(e)},t.prototype.getTouchableScreen=function(){return h.default},t.prototype.renderFooter=function(){var e=this.props.footer,t=this.props.setting.containerVerticalMargin,n=m.default.calculations.getStartOffset(w.FOOTER_INDEX);return r.default.createElement(v.default,{content:e,startOffset:n,containerVerticalMargin:t,onContentRendered:function(e){return m.default.calculations.setTotal(w.FOOTER_INDEX,e.scrollHeight)}})},t.prototype.renderContent=function(e,t){var n=this,o=this.props,i=o.current,a=o.contentFooter,u=this.props.setting.contentFooterHeight;return r.default.createElement(y.default,{key:e.uri+":"+e.index,content:e,currentOffset:i.offset,src:e.uri,width:t,onContentLoaded:function(e,t){return n.onContentLoaded(e,t)},onContentError:function(e,t){return n.onContentError(e,t)},contentFooter:m.default.calculations.isLastContent(e.index)?r.default.createElement(g.default,{content:a,height:u}):null})},t.prototype.renderContents=function(){var e=this,t=this.props,n=t.contents,o=t.setting,i=t.maxWidth,u=this.props.setting.containerHorizontalMargin,l=Math.min((0,a.screenWidth)()-2*u,i);return r.default.createElement(b.StyledImageScrollContent,{setting:o,innerRef:this.wrapper,width:l+"px",containerVerticalMargin:o.containerVerticalMargin,containerHorizontalMargin:o.containerHorizontalMargin,height:"auto",visible:!0},r.default.createElement("div",{className:"content_container"},n.map(function(t){return e.renderContent(t,l)})))},t}(d.default);O.defaultProps=Object.assign({},d.default.defaultProps,{contentFooter:null}),O.propTypes=Object.assign({},d.default.propTypes,{contents:c.default.arrayOf(s.ContentType),contentsCalculations:c.default.arrayOf(s.ContentCalculationsType),calculationsTotal:c.default.number.isRequired,actionUpdateContent:c.default.func.isRequired,actionUpdateContentError:c.default.func.isRequired,footerCalculations:s.FooterCalculationsType.isRequired,contentFooter:c.default.node,actionOnScreenScrolled:c.default.func.isRequired,ignoreScroll:c.default.bool.isRequired}),t.default=(0,o.connect)(function(e){return Object.assign({},(0,f.mapStateToProps)(e),{contents:(0,i.selectReaderContents)(e),contentsCalculations:(0,i.selectReaderContentsCalculations)(e),calculationsTotal:(0,i.selectReaderCalculationsTotal)(e),footerCalculations:(0,i.selectReaderFooterCalculations)(e)})},function(e){return Object.assign({},(0,f.mapDispatchToProps)(e),{actionOnScreenScrolled:function(){return e((0,l.onScreenScrolled)())}})})(O)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),o(n(0));var r=o(n(28));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t}(r.default);t.default=i,i.defaultProps=Object.assign({},r.default.defaultProps),i.propTypes=Object.assign({},r.default.propTypes)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=C(n(0)),o=n(12),i=n(6),a=C(n(13)),l=n(4),s=n(9),c=n(5),f=C(c),d=n(14),p=C(d),h=n(1),v=C(n(27)),m=C(n(3)),y=C(n(40)),g=n(7),b=C(n(11)),w=C(n(21));function C(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.onScroll=(0,h.debounce)(function(e){return t.onScrollHandle(e)},w.default.SCROLL),window.addEventListener(b.default.SCROLL,this.onScroll)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),window.removeEventListener(b.default.SCROLL,this.onScroll)},t.prototype.onScrollHandle=function(e){e.preventDefault(),e.stopPropagation();var t=this.props,n=t.ignoreScroll,r=t.actionOnScreenScrolled;n||(r(),m.default.current.updateCurrentPosition((0,l.scrollTop)()))},t.prototype.calculate=function(e,t){m.default.calculations.setTotal(e,t.scrollHeight)},t.prototype.getWidth=function(){var e=this.props.maxWidth,t=this.props.setting.containerHorizontalMargin;return Math.min((0,l.screenWidth)()-2*t,e)},t.prototype.moveToOffset=function(){var e=this.props.current.offset;(0,l.setScrollTop)(e)},t.prototype.getTouchableScreen=function(){return v.default},t.prototype.needRender=function(e){var t=this.props.current,n=m.default.calculations.isCalculated(e.index),r=[t.offset,(0,l.screenHeight)()],o=r[0],i=r[1],a=m.default.calculations.getContentIndexesInOffsetRange(o-2*i,o+i+2*i);return!n||a.includes(e.index)},t.prototype.renderFooter=function(){var e=this.props.footer,t=this.props.setting.containerVerticalMargin;return r.default.createElement(a.default,{content:e,onContentRendered:function(e){return m.default.calculations.setTotal(g.FOOTER_INDEX,e.scrollHeight)},containerVerticalMargin:t,startOffset:m.default.calculations.getStartOffset(g.FOOTER_INDEX)})},t.prototype.renderContent=function(e){var t=this,n=this.props,o=n.current,i=n.setting,a=n.contentFooter,u=m.default.calculations.getStartOffset(e.index);return r.default.createElement(y.default,{key:e.uri+":"+e.index,content:e,startOffset:u,isCalculated:m.default.calculations.isCalculated(e.index),currentOffset:o.offset,setting:i,width:this.getWidth(),containerHorizontalMargin:((0,l.screenWidth)()-this.getWidth())/2,containerVerticalMargin:i.containerVerticalMargin,onContentLoaded:function(e,n){return t.onContentLoaded(e,n)},onContentError:function(e,n){return t.onContentError(e,n)},onContentRendered:function(e,n){return t.calculate(e,n)},contentFooter:m.default.calculations.isLastContent(e.index)?a:null})},t.prototype.renderContents=function(){var e=this;return this.props.contents.filter(function(t){return e.needRender(t)}).map(function(t){return e.renderContent(t)})},t}(p.default);_.defaultProps=Object.assign({},p.default.defaultProps,{contentFooter:null}),_.propTypes=Object.assign({},p.default.propTypes,{contentsCalculations:f.default.arrayOf(c.ContentCalculationsType),calculationsTotal:f.default.number.isRequired,actionUpdateContent:f.default.func.isRequired,actionUpdateContentError:f.default.func.isRequired,footerCalculations:c.FooterCalculationsType.isRequired,contentFooter:f.default.node,actionOnScreenScrolled:f.default.func.isRequired,ignoreScroll:f.default.bool.isRequired}),t.default=(0,o.connect)(function(e){return Object.assign({},(0,d.mapStateToProps)(e),{contentsCalculations:(0,i.selectReaderContentsCalculations)(e),calculationsTotal:(0,i.selectReaderCalculationsTotal)(e),footerCalculations:(0,i.selectReaderFooterCalculations)(e)})},function(e){return Object.assign({},(0,d.mapDispatchToProps)(e),{actionOnScreenScrolled:function(){return e((0,s.onScreenScrolled)())}})})(_)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),i(n(0));var r=i(n(28)),o=n(4);function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.getHeight=function(){var e=this.props.containerVerticalMargin;return(0,o.screenHeight)()-2*e+"px"},t.prototype.moveToOffset=function(e){var t=this.props.width;if(this.wrapper.current){var n=this.props.setting.columnGap;this.wrapper.current.scrollLeft=e*(t+n)}},t}(r.default);t.default=a,a.defaultProps=Object.assign({},r.default.defaultProps),a.propTypes=Object.assign({},r.default.propTypes)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.redirect=t.pageDown=t.pageUp=t.preventScrollEvent=t.removeScrollEvent=t.isScrolledToBottom=t.isScrolledToTop=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),i=n(1),a=(r=n(11))&&r.__esModule?r:{default:r};t.isScrolledToTop=function(){return o.scrollTop()<=100},t.isScrolledToBottom=function(){return o.scrollTop()>=o.scrollHeight()-o.screenHeight()-100};var u=function(e){return e.preventDefault()},l=t.removeScrollEvent=function(e){(0,i.isExist)(e)&&(e.removeEventListener(a.default.SCROLL,u),e.removeEventListener(a.default.TOUCH_MOVE,u),e.removeEventListener(a.default.MOUSE_WHEEL,u))};t.preventScrollEvent=function(e){l(e),(0,i.isExist)(e)&&(e.addEventListener(a.default.SCROLL,u,{passive:!1}),e.addEventListener(a.default.TOUCH_MOVE,u,{passive:!1}),e.addEventListener(a.default.MOUSE_WHEEL,u))},t.pageUp=function(){return window.scrollTo(0,window.scrollY-.9*o.screenHeight())},t.pageDown=function(){return window.scrollTo(0,window.scrollY+.9*o.screenHeight())},t.redirect=function(e){document.location=e,document.location.href=e,window.location=e,window.location.href=e,location.href=e}},function(e,t,n){var r;/*! @ridi/reader.js v1.0.20 */function o(e){return[].slice.call(e)}function i(e){var t=e.media&&e.media.mediaText;return e.disabled?[]:t&&t.length&&!window.matchMedia(t).matches?[]:o(e.cssRules)}function a(e,t){return e.match(t),t?t.length:0}function s(e){for(var t,n,r=[0,0,0],o=e.split(" ");"string"==typeof(t=o.shift());)n=a(t,m),r[2]=n,n&&(t=t.replace(m,"")),n=a(t,v),r[1]=n,n&&(t=t.replace(v,"")),n=a(t,h),r[1]+=n,n&&(t=t.replace(h,"")),n=a(t,d),r[0]=n,n&&(t=t.replace(d,"")),n=a(t,p),r[1]+=n,n&&(t=t.replace(p,"")),r[2]+=a(t,f);return parseInt(r.join(""),10)}function c(e,t){for(var n,r,o=t.split(","),i=0;n=o.shift();)e.webkitMatchesSelector(n)&&(i=(r=s(n))>i?r:i);return i}if(e.exports=function e(t,n,o){function i(u,l){if(!n[u]){if(!t[u]){if(!l&&("function"==typeof r&&r))return r(u,!0);if(a)return a(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var c=n[u]={exports:{}};t[u][0].call(c.exports,function(e){return i(t[u][1][e]||e)},c,c.exports,e,t,n,o)}return n[u].exports}for(var a="function"==typeof r&&r,u=0;u<o.length;u++)i(o[u]);return i}({1:[function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(e("./_Object")),a=r(e("./MutableClientRect")),s=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=((navigator.userAgent||"").match(/chrome\/[\d]+/gi)||[""])[0],i=parseInt((o.match(/[\d]+/g)||[""])[0],10);return isNaN(i)||(r._version=i),r._magic=3,r.changedPage(n),r._scrollTracked=!1,r._scrollListener=function(){if(r.isCursed&&!e.context.isScrollMode){var t=e.curPage,n=r.prevPage,o=r.pageOverflow,i=r.pageWeight;t>n?(i=Math.min(i+(t-n),r._magic),o||(r.pageOverflow=i===r._magic)):t<n&&0===(i=Math.max(i-(n-t),0))&&(r.pageOverflow=!1),r.prevPage=t,r.pageWeight=i}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,i.default),o(t,[{key:"version",get:function(){return this._version}},{key:"isCursed",get:function(){return this.isAndroid&&(47===this.version||this.version>=49&&this.version<61)}},{key:"isAndroid",get:function(){return null!==(navigator.userAgent||"").match(/android/gi)}},{key:"pageWeight",get:function(){return this._pageWeight},set:function(e){this._pageWeight=e}},{key:"pageOverflow",get:function(){return this._pageOverflow},set:function(e){this._pageOverflow=e}},{key:"prevPage",get:function(){return this._prevPage},set:function(e){this._prevPage=e}}]),o(t,[{key:"changedPage",value:function(e){this.pageWeight=Math.min(e,this._magic),this.pageOverflow=this.pageWeight===this._magic,this.prevPage=e}},{key:"addScrollListenerIfNeeded",value:function(){this._scrollTracked||(this._scrollTracked=!0,window.addEventListener("scroll",this._scrollListener,!0))}},{key:"removeScrollListenerIfNeeded",value:function(){this._scrollTracked&&(this._scrollTracked=!1,window.removeEventListener("scroll",this._scrollListener,!0))}},{key:"adjustPoint",value:function(e,t,n){var r={x:t,y:n},o=e.htmlClientWidth,i=e.bodyClientWidth,a=e.pageXOffset,u=e.context;return u.isScrollMode?r:(this.isCursed?(r.x+=u.pageWidthUnit*this.pageWeight,this.pageOverflow&&(r.x-=u.pageGap*this._magic,o-i==1&&(r.x+=this._magic))):41!==this.version&&40!==this.version||(r.x+=a),r)}},{key:"adjustRect",value:function(e,t){var n=e.htmlClientWidth,r=e.bodyClientWidth,o=e.context,i=new a.default(t);return this.isCursed&&!o.isScrollMode&&(i.left-=o.pageWidthUnit*this.pageWeight,i.right-=o.pageWidthUnit*this.pageWeight,this._pageOverflow&&(i.left+=o.pageGap*this._magic,i.right+=o.pageGap*this._magic,n-r==1&&(i.left-=this._magic,i.right-=this._magic))),i}}]),t}();n.default=s},{"./MutableClientRect":2,"./_Object":5}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?(this.left=t.left||0,this.top=t.top||0,this.right=t.right||0,this.bottom=t.bottom||0,this.width=t.width||0,this.height=t.height||0):(this.left=0,this.top=0,this.right=0,this.bottom=0,this.width=0,this.height=0)}return r(e,[{key:"isEmpty",get:function(){return 0===this.left&&0===this.top&&0===this.right&&0===this.bottom}}]),e}();n.default=o},{}],3:[function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(e("./_Object")),a=r(e("./_Util")),s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._wrapper=e,n.updateNodes(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,i.default),o(t,[{key:"wrapper",get:function(){return this._wrapper}},{key:"body",get:function(){return this.wrapper.getElementsByTagName("BODY")[0]||this.wrapper}},{key:"nodes",get:function(){return this._nodes}},{key:"images",get:function(){return this.wrapper.getElementsByTagName("IMG")}}]),o(t,[{key:"updateNodes",value:function(){this._nodes=this.fetchNodes()}},{key:"fetchNodes",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=function(e){return e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE&&"IMG"===e.nodeName},n=!1,r=document.createTreeWalker(this.body,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e?null:{acceptNode:function(e){return n=!0,t(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},!1),o=[],i=void 0;i=r.nextNode();)n?o.push(i):t(i)&&o.push(i);return o}},{key:"getImagePathFromPoint",value:function(e,t){var n=document.elementFromPoint(e,t);return n&&"IMG"===n.nodeName&&n.src||"null"}},{key:"getSvgElementFromPoint",value:function(e,t){for(var n=document.elementFromPoint(e,t);n&&"HTML"!==n.nodeName&&"BODY"!==n.nodeName;)if("SVG"===(n=n.parentElement).nodeName){for(var r="<svg",o=n.attributes,i=0;i<o.length;i++){var a=o[i];r+=" "+a.nodeName+'="'+a.nodeValue+'"'}r+=">";for(var u=document.createElement("svgElement"),l=n.childNodes,s=0;s<l.length;s++)u.appendChild(l[s].cloneNode(!0));return""+r+u.innerHTML+"</svg>"}return"null"}},{key:"getLinkFromElement",value:function(e){for(var t=e;t;){if(t&&"A"===t.nodeName)return{node:t,href:t.href,type:(t.attributes["epub:type"]||{value:""}).value};t=t.parentNode}return null}},{key:"reviseImage",value:function(e,t,n){var r=function(e,t){var n,r=parseInt(e,10);if(!isNaN(r)){if(-1!==("string"==typeof(n=e)?n.search(/%/):-1)){if(r>100)return 1;if(r<100)return-1}if(t<r)return 1;if(t>r)return-1}return 0},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=void 0,r=void 0;return e>t?(n=t,r=e):(n=e,r=t),n/r*100},i=a.default.getImageSize(e),u="",l="";if(0===i.nWidth||0===i.nHeight)return{el:e,width:u,height:l,position:"",size:i};(r(i.sWidth,i.nWidth)>0||r(i.aWidth,i.nWidth)>0)&&(u="initial"),(r(i.sHeight,i.nHeight)>0||r(i.aHeight,i.nHeight)>0)&&(l="initial");var s=0;(i.nWidth>=i.nHeight!=i.dWidth>=i.dHeight||Math.abs(o(i.nWidth,i.nHeight)-o(i.dWidth,i.dHeight))>1)&&(i.dWidth>=i.dHeight&&i.dWidth<i.nWidth?(s=o(i.dWidth,i.nWidth)/100,i.dWidth<t&&Math.round(i.nHeight*s)<n?(u=i.dWidth+"px",l=Math.round(i.nHeight*s)+"px"):(u="initial",l="initial")):i.dWidth<i.dHeight&&i.dHeight<i.nHeight?(s=o(i.dHeight,i.nHeight)/100,Math.round(i.nWidth*s)<t&&i.dHeight<n?(u=Math.round(i.nWidth*s)+"px",l=i.dHeight+"px"):(u="initial",l="initial")):(u="initial",l="initial"));var c=parseInt(u,10)||i.dWidth,f=parseInt(l,10)||i.dHeight;if(c>t||f>n){var d=a.default.getStylePropertiesIntValue(e,["line-height","margin-top","margin-bottom","padding-top","padding-bottom"]),p=Math.min(t,n),h=Math.max(.95*(n-d),.95*p),v=h/i.nHeight*i.nWidth;v>t&&(h*=t/v,v=t),u=v+"px",l=h+"px"}return{el:e,width:u,height:l,position:"",size:i}}}]),t}();n.default=s},{"./_Object":5,"./_Util":8}],4:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=e("./_Object"))&&r.__esModule?r:{default:r},a=function(e){function t(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s._width=e,s._height=n,s._gap=r,s._doublePageMode=o,s._scrollMode=i,s._systemMajorVersion=a,s._maxSelectionLength=l,s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,i.default),o(t,[{key:"pageWidthUnit",get:function(){return this._width+this.pageGap}},{key:"pageHeightUnit",get:function(){return this._height}},{key:"pageGap",get:function(){return this._gap}},{key:"pageUnit",get:function(){return this.isScrollMode?this.pageHeightUnit:this.pageWidthUnit}},{key:"isDoublePageMode",get:function(){return this._doublePageMode}},{key:"isScrollMode",get:function(){return this._scrollMode}},{key:"systemMajorVersion",get:function(){return this._systemMajorVersion}},{key:"maxSelectionLength",get:function(){return this._maxSelectionLength}}]),t}();n.default=a},{"./_Object":5}],5:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"staticOverride",value:function(e,t,n){var r=t;n.forEach(function(t){r.prototype.constructor[t]=e.prototype.constructor[t]})}}]),e}();n.default=o},{}],6:[function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(e("./_Object")),a=r(e("./_Sel")),s=r(e("./_Util")),c=r(e("./MutableClientRect")),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._context=n,r.debugNodeLocation=!1,r.setCustomMethod(),r.setViewport(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,i.default),o(t,[{key:"content",get:function(){return this._content}},{key:"handler",get:function(){return this._handler}},{key:"sel",get:function(){return this._sel}},{key:"context",get:function(){return this._context}},{key:"totalWidth",get:function(){return this.content.wrapper.scrollWidth}},{key:"totalHeight",get:function(){return this.content.wrapper.scrollHeight}},{key:"totalSize",get:function(){return this.context.isScrollMode?this.totalHeight:this.totalWidth}},{key:"pageXOffset",get:function(){return window.pageXOffset}},{key:"pageYOffset",get:function(){return window.pageYOffset}},{key:"pageOffset",get:function(){return this.context.isScrollMode?this.pageYOffset:this.pageXOffset}},{key:"curPage",get:function(){return this.pageOffset/this.context.pageUnit}}]),o(t,[{key:"setCustomMethod",value:function(){function e(){return n.adjustRect(this.getBoundingClientRect()||new c.default)}function t(){for(var e=this.getClientRects()||[],t=[],r=0;r<e.length;r++){var o=e[r];o.width<=1||t.push(o)}return n.adjustRects(t)}var n=this;Range.prototype.getAdjustedBoundingClientRect=e,Range.prototype.getAdjustedClientRects=t,HTMLElement.prototype.getAdjustedBoundingClientRect=e,HTMLElement.prototype.getAdjustedClientRects=t}},{key:"setViewport",value:function(){var e="width="+window.innerWidth+", height="+window.innerHeight+", initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0",t=document.querySelector("meta[name=viewport]");null===t&&((t=document.createElement("meta")).id="viewport",t.name="viewport",document.getElementsByTagName("head")[0].appendChild(t)),t.content=e}},{key:"adjustPoint",value:function(e,t){return{x:e,y:t}}},{key:"adjustRect",value:function(e){return new c.default(e)}},{key:"adjustRects",value:function(e){var t=this;return s.default.concatArray([],e,function(e){return t.adjustRect(e)})}},{key:"changeContext",value:function(e){this._context=e}},{key:"scrollTo",value:function(e){this.context.isScrollMode?window.scroll(0,e):window.scroll(e,0)}},{key:"getOffsetDirectionFromElement",value:function(e){var t=this.context.isScrollMode?"top":"left";if(e){var n=s.default.getMatchedCSSValue(e,"position",!0);"left"===t&&"absolute"===n&&(t="top")}return t}},{key:"_getOffsetFromAnchor",value:function(e,t){var n=document.getElementById(e);if(n){var r=s.default.createTextNodeIterator(n).nextNode();if(r){var o=document.createRange();o.selectNodeContents(r);var i=window.getComputedStyle(n).display,a=o.getAdjustedClientRects();if(a.length)return t(a[0],n);if("none"===i){n.style.display="block";var u=n.getAdjustedBoundingClientRect();return n.style.display="none",t(u,n)}}return t(n.getAdjustedBoundingClientRect(),n)}return t({left:null,top:null},null)}},{key:"getOffsetFromAnchor",value:function(e){var t=this;return this._getOffsetFromAnchor(e,function(e,n){return t.context.isScrollMode?null===e.top?null:e.top+t.pageYOffset:null===e.left?null:t.getPageFromRect(e,n)})}},{key:"getOffsetFromSerializedRange",value:function(e){try{var t=this.getRangeFromSerializedRange(e).getAdjustedClientRects();return t.length>0?this.context.isScrollMode?t[0].top+this.pageYOffset:this.getPageFromRect(t[0]):null}catch(e){return null}}},{key:"_findRectIndex",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"top",o=this.context.isScrollMode?"top":"left",i=0;i<e.length;i++){var a=e[i];if("bottom"===r){if(n<=a[o]&&a.width>0)return i-1}else if(t<=a[o]&&a[o]<=n&&a.width>0)return i}return null}},{key:"findNodeLocation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#";this._latestNodeRect=null;var o=this.content.nodes;if(!o)return null;for(var i=null,a=0;a<o.length;a++){var u=o[a],l=document.createRange();l.selectNodeContents(u);var c=l.getAdjustedBoundingClientRect();if(c.isEmpty){if("IMG"!==u.nodeName)continue;if(l.selectNode(u),(c=l.getAdjustedBoundingClientRect()).isEmpty)continue}var f=this.context.isScrollMode?c.top+c.height:c.left+c.width;if(!(0===c.width||f<e)){var d=void 0;if(u.nodeType===Node.TEXT_NODE){var p=u.nodeValue;if(!p)continue;for(var h=p.split(s.default.getSplitWordRegex()),v=l.startOffset,m=0;m<h.length;m++){var y=h[m];if(y.trim().length){try{l.setStart(u,v),l.setEnd(u,v+y.length)}catch(e){return null}var g=l.getAdjustedClientRects();if(null!==(d=this._findRectIndex(g,e,t,n)))return d<0?(this._latestNodeRect=i.rect,i.location):(this._latestNodeRect=g[d],a+r+Math.min(m+d,h.length-1));for(var b=g.length-1;b>=0;b--)g[b].left<t&&(i={location:""+a+r+m,rect:g[b]})}v+=y.length+1}}else if("IMG"===u.nodeName){var w=l.getAdjustedClientRects();if(null!==(d=this._findRectIndex(w,e,t,n)))return d<0?(this._latestNodeRect=i.rect,i.location):(this._latestNodeRect=w[d],""+a+r+"0");for(var C=w.length-1;C>=0;C--)w[C].left<t&&(i={location:""+a+r+"0",rect:w[C]})}}}return null}},{key:"showNodeLocationIfNeeded",value:function(){if(this.debugNodeLocation&&null!==this._latestNodeRect){var e=document.getElementById("RidiNodeLocation");e||((e=document.createElement("span")).setAttribute("id","RidiNodeLocation"),document.body.appendChild(e));var t=this._latestNodeRect;t[this.context.isScrollMode?"top":"left"]+=this.pageOffset,e.style.cssText="position: absolute !important;background-color: red !important;left: "+t.left+"px !important;top: "+t.top+"px !important;width: "+(t.width||3)+"px !important;height: "+t.height+"px !important;display: block !important;opacity: 0.4 !important;z-index: 99 !important;"}}},{key:"getOffsetFromNodeLocation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",r=e.split(n),o=parseInt(r[0],10),i=parseInt(r[1],10),a=this.context,u=a.pageUnit,l=a.isScrollMode,c=this.totalSize,f=this.content.nodes;if(-1===o||-1===i||null===f)return null;var d=f[o];if(!d)return null;var p=document.createRange();p.selectNodeContents(d);var h=p.getAdjustedBoundingClientRect();if(h.isEmpty){if("IMG"!==d.nodeName)return null;if(p.selectNode(d),(h=p.getAdjustedBoundingClientRect()).isEmpty)return null}var v=this.getPageFromRect(h);if(null===v||c<=u*v)return null;if("IMG"===d.nodeName&&0===i)return l?Math.max(h.top+this.pageYOffset-("bottom"===t?u:0),0):v;var m=d.nodeValue;if(null===m)return null;for(var y=m.split(s.default.getSplitWordRegex()),g=void 0,b=0,w=0;w<=Math.min(i,y.length-1);w++)b+=(g=y[w]).length+1;try{p.setStart(p.startContainer,b-g.length-1),p.setEnd(p.startContainer,b-1)}catch(e){return null}return h=p.getAdjustedBoundingClientRect(),null===(v=this.getPageFromRect(h))||c<=u*v?null:((h.left<0||(v+1)*u<h.left+h.width)&&(v+=h.width<u?1:Math.floor(h.width/u)),l?Math.max(h.top+this.pageYOffset-("bottom"===t?u:0),0):v)}},{key:"searchText",value:function(e){return window.find(e,0)?g.serializeRange(getSelection().getRangeAt(0),!0,this.content.body):"null"}},{key:"textAroundSearchResult",value:function(e,t){var n=getSelection().getRangeAt(0),r=n.startOffset,o=Math.max(n.startOffset-e,0),i=n.endOffset,a=Math.min(o+t,n.endContainer.length);n.setStart(n.startContainer,o),n.setEnd(n.endContainer,a);var u=n.toString();return n.setStart(n.startContainer,r),n.setEnd(n.endContainer,i),u}},{key:"getRectsOfSearchResult",value:function(){return getSelection().getRangeAt(0).getAdjustedClientRects()}},{key:"getPageOfSearchResult",value:function(){var e=this.getRectsOfSearchResult();return this.getPageFromRect(e[0])}},{key:"getRangeFromSerializedRange",value:function(e){var t=g.deserializeRange(e,this.content.body),n=document.createRange();return n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset),t.detach(),n}},{key:"getRectsFromSerializedRange",value:function(e){var t=this.getRangeFromSerializedRange(e);return a.default.getOnlyTextNodeRectsFromRange(t)}},{key:"_rectsToCoord",value:function(e){var t={left:0,top:0};arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.context.isScrollMode?t.top=this.pageYOffset:t.left=this.pageXOffset);for(var n="",r=0;r<e.length;r++){var o=e[r];n+=o.left+t.left+",",n+=o.top+t.top+",",n+=o.width+",",n+=o.height+","}return n}},{key:"rectsToAbsoluteCoord",value:function(e){return this._rectsToCoord(e,!0)}},{key:"rectsToRelativeCoord",value:function(e){return this._rectsToCoord(e)}}]),t}();n.default=f},{"./MutableClientRect":2,"./_Object":5,"./_Sel":7,"./_Util":8}],7:[function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(e("./_Object")),a=r(e("./_Util")),s=r(e("./tts/TTSUtil")),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._reader=e,n._maxLength=e.context.maxSelectionLength,n._startContainer=null,n._startOffset=null,n._endContainer=null,n._endOffset=null,n._overflowed=!1,n._nextPageContinuable=!1,n._continueContainer=null,n._continueOffset=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,i.default),o(t,[{key:"reader",get:function(){return this._reader}},{key:"nextPageContinuable",get:function(){return this._checkNextPageContinuable(this.getSelectedRange())}}]),o(t,[{key:"_caretRangeFromPoint",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.reader.adjustPoint(e,t),i=document.caretRangeFromPoint(o.x,o.y);return null===i?null:(i.expand(n),!r&&i.collapsed?null:i)}},{key:"_expandRangeByWord",value:function(e){var t=e.startContainer;if(null!==t.nodeValue){var n=[s.default.chineseCodeTable(),s.default.japaneseCodeTable()];if(s.default.getContainCharRegex(n).test(e.toString()))return void e.expand("character");for(var r=t.nodeValue.length,o=e.startOffset,i=o;o>0;){if(/^\s/.test(e.toString())){e.setStart(t,o+=1);break}o-=1,e.setStart(t,o)}for(;i<r;){if(/\s$/.test(e.toString())){e.setEnd(t,i-=1);break}i+=1,e.setEnd(t,i)}}}},{key:"isOutOfBounds",value:function(){return!1}},{key:"startSelectionMode",value:function(e,t,n){var r=this._caretRangeFromPoint(e,t,n);return null!==r&&(this._expandRangeByWord(r),this._startContainer=r.startContainer,this._startOffset=r.startOffset,this._endContainer=r.endContainer,this._endOffset=r.endOffset,!0)}},{key:"changeInitialSelection",value:function(e,t,n){var r=this._caretRangeFromPoint(e,t,n);return null!==r&&(this._startContainer=r.startContainer,this._startOffset=r.startOffset,this._endContainer=r.endContainer,this._endOffset=r.endOffset,!0)}},{key:"expandUpperSelection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"character",r=this._caretRangeFromPoint(e,t,n,!0);if(null===r)return!1;var o=this._endContainer.compareDocumentPosition(r.startContainer);if(o===Node.DOCUMENT_POSITION_FOLLOWING||0===o&&this._endOffset<r.startOffset)return!1;if(r.startContainer===this._startContainer&&r.startOffset===this._startOffset)return!1;r.startContainer.childNodes.length&&r.setStart(r.startContainer.childNodes[r.startOffset],0),r.endContainer.childNodes.length&&r.setEnd(r.endContainer.childNodes[r.endOffset],r.endContainer.childNodes[r.endOffset].textContent.length);var i=document.createRange();return i.setStart(r.startContainer,r.startOffset),i.setEnd(this._endContainer,this._endOffset),!i.collapsed&&!!this.validLength(i)&&(this._startContainer=r.startContainer,this._startOffset=r.startOffset,!0)}},{key:"expandLowerSelection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"character",r=this._caretRangeFromPoint(e,t,n,!0);if(null===r)return!1;var o=this._startContainer.compareDocumentPosition(r.endContainer);if(o===Node.DOCUMENT_POSITION_PRECEDING||0===o&&this._startOffset>r.endOffset)return!1;if(r.endContainer===this._endContainer&&r.endOffset===this._endOffset)return!1;if(r.startContainer.childNodes.length&&r.setStart(r.startContainer.childNodes[r.startOffset],0),r.endContainer.childNodes.length&&r.setEnd(r.endContainer.childNodes[r.endOffset],r.endContainer.childNodes[r.endOffset].textContent.length),this.isOutOfBounds(r))return!1;var i=document.createRange();return i.setStart(this._startContainer,this._startOffset),i.setEnd(r.endContainer,r.endOffset),!i.collapsed&&!!this.validLength(i)&&(this._endContainer=r.endContainer,this._endOffset=r.endOffset,!0)}},{key:"_checkNextPageContinuable",value:function(e){if(!this.reader.context.isScrollMode){var t=this.getUpperBound(),n=e.cloneRange(),r=n.endContainer,o=n.endOffset;do{for(var i=r.textContent.length;i>o;){if(n.setStart(r,o),n.setEnd(r,o+1),!/\s/.test(n.toString()))return this._clientLeftOfRangeForCheckingNextPageContinuable(n)<t?(this._nextPageContinuable=!1,this._nextPageContinuable):(this._expandRangeBySentenceInPage(n,2*t),this._continueContainer=n.endContainer,this._continueOffset=n.endOffset,this._nextPageContinuable=!0,this._nextPageContinuable);o+=1}o=0,this._nextPageContinuable=!1}while(r=this._getNextTextNode(n))}return this._nextPageContinuable}},{key:"_expandRangeBySentenceInPage",value:function(e,t){var n=e.endOffset;e.expand("sentence");for(var r=e.endOffset;r>n;)if(/\s$/.test(e.toString()))e.setEnd(e.endContainer,r-=1);else{if(e.getAdjustedBoundingClientRect().right<=t)break;e.setEnd(e.endContainer,r-=1)}}},{key:"_getNextTextNode",value:function(e){var t=e.endContainer.nextSibling;return t?t.nodeType===Node.TEXT_NODE?t:a.default.createTextNodeIterator(t).nextNode()||(e.setEnd(t,0),this._getNextTextNode(e)):(e.setEndAfter(e.endContainer),"BODY"===e.endContainer.nodeName?null:this._getNextTextNode(e))}},{key:"expandSelectionIntoNextPage",value:function(){return!!this._nextPageContinuable&&(this._endContainer=this._continueContainer,this._endOffset=this._continueOffset,this._nextPageContinuable=!1,!0)}},{key:"validLength",value:function(e){return e.toString().length<=this._maxLength||(this._overflowed||a.default.toast("최대 "+this._maxLength+"자까지 선택할 수 있습니다."),this._overflowed=!0,!1)}},{key:"getSelectedRange",value:function(){var e=document.createRange();return e.setStart(this._startContainer,this._startOffset),e.setEnd(this._endContainer,this._endOffset),e}},{key:"getSelectedSerializedRange",value:function(){return g.serializeRange(this.getSelectedRange(),!0,this.reader.content.body)}},{key:"getSelectedRangeRects",value:function(){return t.getOnlyTextNodeRectsFromRange(this.getSelectedRange())}},{key:"getSelectedText",value:function(){return this.getSelectedRange().toString()}},{key:"getSelectedRectsCoord",value:function(){var e=this.getSelectedRangeRects();return e.length?(this._overflowed=!1,this.reader.rectsToAbsoluteCoord(e)):""}}],[{key:"_isWhiteSpaceRange",value:function(e){return/^\s*$/.test(e.toString())}},{key:"getOnlyTextNodeRectsFromRange",value:function(e){if(e.startContainer===e.endContainer){var t=e.startContainer.innerText;return void 0!==t&&0===t.length?[]:e.getAdjustedClientRects()}var n=a.default.createTextNodeIterator(e.commonAncestorContainer),r=[],o=document.createRange();o.setStart(e.startContainer,e.startOffset),o.setEnd(e.startContainer,e.startContainer.length),r=a.default.concatArray(r,o.getAdjustedClientRects());for(var i=void 0;i=n.nextNode();)if(e.startContainer.compareDocumentPosition(i)!==Node.DOCUMENT_POSITION_PRECEDING&&e.startContainer!==i){if(e.endContainer.compareDocumentPosition(i)===Node.DOCUMENT_POSITION_FOLLOWING||e.endContainer===i)break;(o=document.createRange()).selectNodeContents(i),this._isWhiteSpaceRange(o)||(r=a.default.concatArray(r,o.getAdjustedClientRects()))}return(o=document.createRange()).setStart(e.endContainer,0),o.setEnd(e.endContainer,e.endOffset),this._isWhiteSpaceRange(o)||(r=a.default.concatArray(r,o.getAdjustedClientRects())),r}}]),t}();n.default=c},{"./_Object":5,"./_Util":8,"./tts/TTSUtil":9}],8:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=e("./_Object"))&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,i.default),o(t,null,[{key:"createTextNodeIterator",value:function(e){return document.createNodeIterator(e,NodeFilter.SHOW_TEXT,{acceptNode:function(){return NodeFilter.FILTER_ACCEPT}},!0)}},{key:"getFootnoteRegex",value:function(){return/^(\[|\{|\(|주|)[0-9].*(\)|\}|\]|\.|)$/gm}},{key:"getSplitWordRegex",value:function(){return new RegExp(" |\\u00A0")}},{key:"getImageSize",value:function(e){var n=e.attributes,r=document.createAttribute("size");return r.value="0px",{dWidth:e.width,dHeight:e.height,nWidth:e.naturalWidth,nHeight:e.naturalHeight,sWidth:t.getMatchedCSSValue(e,"width"),sHeight:t.getMatchedCSSValue(e,"height"),aWidth:(n.width||r).value,aHeight:(n.height||r).value}}},{key:"getStylePropertyIntValue",value:function(e,t){var n=e;return e.nodeType&&(n=window.getComputedStyle(e)),parseInt(n[t],10)||0}},{key:"getStylePropertiesIntValue",value:function(e,t){var n=e;e.nodeType&&(n=window.getComputedStyle(e));for(var r=0,o=0;o<t.length;o++)r+=parseInt(n[t[o]],10)||0;return r}},{key:"_getMatchedCSSValue",value:function(e,t){var n=e.style.getPropertyValue(t);if(e.style.getPropertyPriority(t))return n;var r=window.getMatchedCSSRules(e);if(null===r)return n;for(var o=r.length-1;o>=0;o--){var i=r[o],a=i.style.getPropertyPriority(t);if((null===n||0===n.length||a)&&(n=i.style.getPropertyValue(t),a))break}return n}},{key:"getMatchedCSSValue",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=void 0,o=e;!(r=this._getMatchedCSSValue(o,t))&&null!==(o=o.parentElement)&&n;);return r}},{key:"concatArray",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=0;r<t.length;r++)e.push(n(t[r]));return e}}]),t}();n.default=a},{"./_Object":5}],9:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=e("../_Util"))&&r.__esModule?r:{default:r},a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,null,[{key:"find",value:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}return null}},{key:"_createRegex",value:function(e,t,n,r){return new RegExp(""+(e||"")+(t||"")+(n||""),r||"gm")}},{key:"getSplitWordRegex",value:function(){return i.default.getSplitWordRegex()}},{key:"getWhitespaceRegex",value:function(e,t,n){return this._createRegex(e,"[ \\u00A0]",t,n)}},{key:"getNewLineRegex",value:function(e,t,n){return this._createRegex(e,"[\\r\\n]",t,n)}},{key:"getWhitespaceAndNewLineRegex",value:function(e,t,n){return this._createRegex(e,"[\\t\\r\\n\\s\\u00A0]",t,n)}},{key:"getSentenceRegex",value:function(e,t,n){return this._createRegex(e,"[.。?!\"”'’」』〞〟]",t,n)}},{key:"isLastCharOfSentence",value:function(){return null!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(this.getSentenceRegex())}},{key:"isDigitOrLatin",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").charCodeAt(0);return this.isLatinCharCode(e)||this.isDigitCharCode(e)}},{key:"isPeriodPointOrName",value:function(e,t){if(void 0===e||void 0===t)return!1;var n=0,r=e.search(/[.](\s{0,})$/gm);return r>0&&this.isDigitOrLatin(e[r-1])&&(n+=1),(r=t.search(/[^\s]/gm))>=0&&this.isDigitOrLatin(t[r])&&(n+=1),2===n}},{key:"getBrackets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{return e.match(/[\(\)\{\}\[\]]/gm)||[]}catch(e){return[]}}},{key:"isOnePairBracket",value:function(){return null!==((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")).match(/\(\)|\{\}|\[\]/gm)}},{key:"mergeSentencesWithinBrackets",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=[];return t.forEach(function(t){var o=r.length>0;e.getBrackets(t).forEach(function(t){var n=r.pop();n?e.isOnePairBracket(n,t)||(r.push(n),r.push(t)):r.push(t)}),n.push((o?n.pop():"")+t)}),r.length>0&&(console.error("Brackets does not match."),console.error({sentences:t,brackets:r,resultSentences:n})),n}},{key:"_containCharCode",value:function(e,t){if(!isNaN(e))for(var n=0;n<t.length;n+=2)if(t[n]<=e&&e<=t[n+1])return!0;return!1}},{key:"isDigitCharCode",value:function(e){return this._containCharCode(e,[48,57])}},{key:"isSpaceCharCode",value:function(e){return 32===e||160===e}},{key:"isTildeCharCode",value:function(e){return 126===e||8764===e||12316===e}},{key:"isColonCharCode",value:function(e){return 58===e}},{key:"hangulCodeTable",value:function(){return[44032,55215]}},{key:"isHangulCharCode",value:function(e){return this._containCharCode(e,this.hangulCodeTable())}},{key:"latinCodeTable",value:function(){return[32,127,160,255,256,383,384,591]}},{key:"isLatinCharCode",value:function(e,t){if(isNaN(e))return!1;if(e>=256&&e<=383){if("u"===t){if(e>=256&&e<=311&&e%2==0||e>=330&&e<=375&&e%2==0||e>=313&&e<=328&&e%2==1||e>=377&&e<=382&&e%2==1)return!0;if(376===e)return!0}else if("l"===t){if(e>=256&&e<=311&&e%2==1||e>=330&&e<=375&&e%2==1||e>=313&&e<=328&&e%2==0||e>=377&&e<=382&&e%2==0)return!0;if(312===e||329===e||383===e)return!0}return!1}if(e>=384&&e<=591)return!0;var n,r=[65,90,192,214,216,222],o=[97,122,223,246,248,255];return n="u"===t?r:"l"===t?o:[].concat(r).concat(o),this._containCharCode(e,n)}},{key:"chineseCodeTable",value:function(){return[19968,40959,63744,64255,13056,13311,13312,19903,131072,173791,173824,177983,177984,178207,178208,183983,183984,191471,194560,195103]}},{key:"isChineseCharCode",value:function(e){return this._containCharCode(e,this.chineseCodeTable())}},{key:"japaneseCodeTable",value:function(){return[12288,12351,12352,12447,12448,12543,65280,65519,19968,40959]}},{key:"isJapaneseCharCode",value:function(e){return this._containCharCode(e,this.japaneseCodeTable())}},{key:"getContainCharRegex",value:function(){var e=function(e){return e>65535?null:String.fromCharCode(e)},t="[";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(n){for(var r=0;r<n.length;r+=2){var o=e(n[r]),i=e(n[r+1]);o&&i&&(t+=o+"-"+i)}}),t+="]",new RegExp("^"+t+"{1,}$","gm")}},{key:"getInitialCharCode",value:function(e){return 12544+[49,50,52,55,56,57,65,66,67,70,71,72,73,74,75,76,77,78][(e-44032-(e-44032)%28)/28/21]}},{key:"getMedialCharCodeIndex",value:function(e){return(e-44032-(e-44032)%28)/28%21}},{key:"getMedialCharCode",value:function(e){return 12544+[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99][this.getMedialCharCodeIndex(e)]}},{key:"getFinalCharCode",value:function(e){var t=(e-44032)%28;return(0===t?0:12544)+[0,49,50,51,52,53,54,55,57,58,59,60,61,62,63,64,65,66,68,69,70,71,72,74,75,76,77,78][t]}},{key:"numericToNotationString",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=void 0,r=void 0,o=void 0;t?(n=["","일","이","삼","사","오","육","칠","팔","구"],r=["","일","이","삼","사","오","육","칠","팔","구"],o=["십","일","이","삼","사","오","육","칠","팔","구"]):(n=["","one","two","three","four","five","six","seven","eight","nine"],r=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],o=["ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"]);var i=function(e){if(e<10)return n[e];if(!t&&e>=10&&e<20)return o[e-10];if(t&&e<20)return"십"+n[e%10];var i=t?"십":" ";return""+r[Math.floor(e/10)]+i+n[e%10]},a=function(e){if(e>99){if(t&&e<200)return"백"+i(e%100);var r=t?"백":" hundred ";return""+n[Math.floor(e/100)]+r+i([e%100])}return i(e)},u=function e(n){if(n>=1e3){if(t&&n<2e3)return"천"+a(n%1e3);var r=t?"천":" thousand ";return""+e(Math.floor(n/1e3))+r+a([n%1e3])}return a(n)};return 0===e?t?"영":"zero":function e(n){var r=t?1e4:1e6;if(n>=r){if(t&&n<2*r)return"만"+u(n%r);var o=t?"만":" million ";return""+e(Math.floor(n/r))+o+u([n%r])}return u(n)}(e).trim()}},{key:"numericToOrdinalString",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=["","한","두","세","네","다섯","여섯","일곱","여덟","아홉"],o=["","하나","둘","셋","넷","다섯","여섯","일곱","여덟","아홉"],i=["","열","스물","서른","마흔","쉰","예순","일흔","여든","아흔"],a=null!==n.match(/^(명|공|달|시|종|벌|채|갈|쾌|근|문|큰|살|째)(?!러)/gm);if(!a&&n.length)return null;var u,l=function(e){if(e<10)return r[e];var t=a?r[e%10]:o[e%10];return""+i[Math.floor(e/10)]+t},s=function(e){return e>99?e<200?"백"+l(e%100):t.numericToNotationString(Math.floor(e/100))+"백"+l(e%100):l(e)},c=function(e){return e>=1e3?e<2e3?"천"+s(e%1e3):t.numericToNotationString(Math.floor(e/1e3))+"천"+s(e%1e3):s(e)};return 0===e?null:(u=e)>=1e4?u<2e4?"만"+c(u%1e4):t.numericToNotationString(Math.floor(u/1e4))+"만"+c(u%1e4):c(u)}}]),e}();n.default=a},{"../_Util":8}],10:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=e("../common/_Content"))&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,i.default),o(t,[{key:"fetchNodes",value:function(){return function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fetchNodes",this).call(this,!0)}}]),t}();n.default=a},{"../common/_Content":3}],11:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=(r=e("../common/_Context"))&&r.__esModule?r:{default:r},i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,o.default),t}();n.default=i},{"../common/_Context":4}],12:[function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(e("../common/_Reader")),s=r(e("./Content")),c=r(e("../common/Chrome")),f=function(e){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));o._content=new s.default(e);var i=new c.default(o,r);return i.version&&(o._chrome=i,o.chrome.addScrollListenerIfNeeded()),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,a.default),i(t,[{key:"chrome",get:function(){return this._chrome}},{key:"htmlClientWidth",get:function(){return document.documentElement.clientWidth}},{key:"bodyClientWidth",get:function(){return this.content.wrapper.clientWidth}}]),i(t,[{key:"adjustPoint",value:function(e,n){return this.chrome?this.chrome.adjustPoint(this,e,n):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"adjustPoint",this).call(this,e,n)}},{key:"adjustRect",value:function(e){return this.chrome?this.chrome.adjustRect(this,e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"adjustRect",this).call(this,e)}},{key:"setViewport",value:function(){}},{key:"unmount",value:function(){this.chrome&&this.chrome.removeScrollListenerIfNeeded()}},{key:"getPageFromRect",value:function(e,t){if(null===e)return null;var n=this.getOffsetDirectionFromElement(t),r=e[n]+this.pageOffset,o="left"===n?this.context.pageWidthUnit:this.context.pageHeightUnit;return Math.floor(r/o)}},{key:"getNodeLocationOfCurrentPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"top",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=this.context.pageUnit,r="-1"+t+"-1",o=this.findNodeLocation(0,n,e,t);return this.showNodeLocationIfNeeded(),o||r}}]),t}();n.default=f},{"../common/Chrome":1,"../common/_Reader":6,"./Content":10}],13:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o=(r=e("../common/_Util"))&&r.__esModule?r:{default:r},i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):l(e,t))}(t,o.default),t}();n.default=i},{"../common/_Util":8}],14:[function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Util=n.Reader=n.Context=void 0;var o=r(e("./Context")),i=r(e("./Reader")),a=r(e("./Util"));n.Context=o.default,n.Reader=i.default,n.Util=a.default,n.default={Context:o.default,Reader:i.default,Util:a.default}},{"./Context":11,"./Reader":12,"./Util":13}]},{},[14])(14),"function"!=typeof window.getMatchedCSSRules){var f=/[\w-]+/g,d=/#[\w-]+/g,p=/\.[\w-]+/g,h=/\[[^\]]+\]/g,v=/\:(?!not)[\w-]+(\(.*\))?/g,m=/\:\:?(after|before|first-letter|first-line|selection)/g;window.getMatchedCSSRules=function(e){var t,n,r,a,u=[];for(t=o(window.document.styleSheets);n=t.shift();)for(r=i(n);a=r.shift();)a.styleSheet?r=i(a.styleSheet).concat(r):a.media?r=i(a).concat(r):e.webkitMatchesSelector(a.selectorText)&&u.push(a);return function(e,t){return u.sort(function(t,n){return c(e,n.selectorText)-c(e,t.selectorText)})}(e)}}"function"!=typeof Object.assign&&(Object.assign=function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t});var y=function(){var e=null;return function(t){for(var n=function(e){for(var t,n=[],r=0,o=e.length;r<o;++r)(t=e.charCodeAt(r))<128?n.push(t):t<2048?n.push(t>>6|192,63&t|128):n.push(t>>12|224,t>>6&63|128,63&t|128);return n}(t),r=-1,o=(e||(e=function(){for(var e,t,n=[],r=0;r<256;++r){for(t=r,e=8;e--;)1==(1&t)?t=t>>>1^3988292384:t>>>=1;n[r]=t>>>0}return n}()),e),i=0,a=n.length;i<a;++i)r=r>>>8^o[255&(r^n[i])];return(-1^r)>>>0}}(),g={nodeToInfoString:function(e,t){var n=function(e){return e.replace(/</g,"<").replace(/>/g,">")};t=t||[];var r=e.nodeType,o=e.childNodes,i=o.length,a=[r,e.nodeName,i].join(":"),u="",l="";switch(r){case 3:u=n(e.nodeValue);break;case 8:u="\x3c!--"+n(e.nodeValue)+"--\x3e";break;default:u="<"+a+">",l="</>"}u&&t.push(u);for(var s=0;s<i;++s)g.nodeToInfoString(o[s],t);return l&&t.push(l),t},getElementChecksum:function(e){var t=g.nodeToInfoString(e).join("");return y(t).toString(16)},getDocument:function(e){if(9==e.nodeType)return e;if(void 0!==e.ownerDocument)return e.ownerDocument;if(void 0!==e.document)return e.document;if(e.parentNode)return g.getDocument(e.parentNode);throw new Error("Error in Rangy: getDocument: no document found for node")},getNodeIndex:function(e){for(var t=0;e=e.previousSibling;)++t;return t},getNodeLength:function(e){switch(e.nodeType){case 7:case 10:return 0;case 3:case 8:return e.length;default:return e.childNodes.length}},serializePosition:function(e,t,n){var r=[],o=e;for(n=n||g.getDocument(e).documentElement;o&&o!=n;)r.push(g.getNodeIndex(o,!0)),o=o.parentNode;return r.join("/")+":"+t},serializeRange:function(e,t,n){if(!function(e,t,n){for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}(n=n||g.getDocument(e).startContainer,e.commonAncestorContainer))throw new Error("Error in Rangy: serializeRange(): range is not wholly contained within specified root node.");var r=g.serializePosition(e.startContainer,e.startOffset,n)+","+g.serializePosition(e.endContainer,e.endOffset,n);return t||(r+="{"+g.getElementChecksum(n)+"}"),r},deserializePosition:function(e,t,n){t||(t=(n||document).documentElement);for(var r,o=e.split(":"),i=t,a=o[0]?o[0].split("/"):[],u=a.length;u--;){if(!((r=parseInt(a[u],10))<i.childNodes.length))throw new Error("Error in Rangy: deserializePosition() failed: node has no child with index "+r+", "+u+".");i=i.childNodes[r]}return{node:i,offset:parseInt(o[1],10)}},deserializeRegex:/^([^,]+),([^,\{]+)(\{([^}]+)\})?$/,deserializeRange:function(e,t,n){t?n=n||g.getDocument(t):t=(n=n||document).documentElement;var r,o=g.deserializeRegex.exec(e),i=o[4];if(i&&i!==(r=g.getElementChecksum(t)))throw new Error("deserializeRange: checksums of serialized range root node ("+i+") and target root node ("+r+") do not match");var a=g.deserializePosition(o[1],t,n),u=g.deserializePosition(o[2],t,n),l=document.createRange();return l.setStart(a.node,a.offset),l.setEnd(u.node,u.offset),l},canDeserializeRange:function(e,t,n){t||(t=(n||document).documentElement);var r=g.deserializeRegex.exec(e)[3];return!r||r===g.getElementChecksum(t)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(44),o=n(1),i=n(4),a=n(10),u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._node=t,this._context=this._createContext(n),this._readerJs=new r.Reader(this._node,this._context)}return e.prototype._createContext=function(e){var t=r.Util.getStylePropertyIntValue(this._node,"column-gap"),n=(0,i.screenWidth)()-t,o=(0,i.screenHeight)();return new r.Context(n,o,t,!1,e)},e.prototype.invalidateContext=function(e){this._context=this._createContext(e),this._readerJs.changeContext(this._context)},e.prototype.setDebugMode=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._readerJs.debugNodeLocation=e},e.prototype.getOffsetFromNodeLocation=function(e){return(0,o.isExist)(e)&&e!==a.EMPTY_READ_POSITION?this._readerJs.getOffsetFromNodeLocation(e,"top"):null},e.prototype.getNodeLocationOfCurrentPage=function(){return this._readerJs.getNodeLocationOfCurrentPage("top")},e}();t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(18)),o=n(6),i=n(9),a=s(n(19)),l=n(7);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.setReaderJs=function(e){this.readerJs=e},t.prototype.updateCurrentPosition=function(e){if(a.default.isCompleted()){var t=(0,o.selectReaderSetting)(this.getState()).viewType,n=a.default.getIndexAtOffset(e),r=a.default.getTotal(n),u=(e-a.default.getStartOffset(n))/r,l=this.readerJs.getNodeLocationOfCurrentPage();this.dispatch((0,i.updateCurrent)({contentIndex:n,offset:e,position:u,viewType:t,location:l}))}},t.prototype.restoreCurrentOffset=function(){if(a.default.isCompleted()){var e=(0,o.selectReaderSetting)(this.getState()).viewType,t=(0,o.selectReaderCurrent)(this.getState()),n=t.position,r=t.contentIndex,u=a.default.getTotal(r),l=a.default.getStartOffset(r)+(u-1),s=Math.min(Math.round(n*u)+a.default.getStartOffset(r),l);this.dispatch((0,i.updateCurrent)({offset:s,viewType:e}))}},t.prototype.isOnFooter=function(){return!!a.default.getHasFooter()&&!!a.default.isCompleted()&&(0,o.selectReaderCurrentContentIndex)(this.getState())===l.FOOTER_INDEX},t}(r.default);t.default=new c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StyledScrollFooter=t.StyledPageFooter=void 0;var r,o=u(["\n box-sizing: border-box;\n visibility: ",";\n"],["\n box-sizing: border-box;\n visibility: ",";\n"]),i=u(["\n vertical-align: top;\n white-space: initial;\n overflow: auto;\n display: inline-block;\n width: ",";\n"],["\n vertical-align: top;\n white-space: initial;\n overflow: auto;\n display: inline-block;\n width: ",";\n"]),a=u(["\n position: absolute;\n top: ",";\n margin: ",";\n width: 100%;\n"],["\n position: absolute;\n top: ",";\n margin: ",";\n width: 100%;\n"]);function u(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var l=((r=n(17))&&r.__esModule?r:{default:r}).default.section(o,function(e){return e.visible?"visible":"hidden"});t.StyledPageFooter=l.extend(i,function(e){return e.width}),t.StyledScrollFooter=l.extend(a,function(e){return e.startOffset+"px"},function(e){return e.containerVerticalMargin+"px 0"})},function(e,t,n){
/** @license React v16.4.1
* react-is.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.timeout"):60113;function v(e){if("object"==(void 0===e?"undefined":u(e))&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case a:case s:case l:return e;default:switch(e=e&&e.$$typeof){case f:case p:case c:return e;default:return t}}case i:return t}}}t.typeOf=v,t.AsyncMode=d,t.ContextConsumer=f,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Profiler=s,t.Portal=i,t.StrictMode=l,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===l||e===h||"object"==(void 0===e?"undefined":u(e))&&null!==e&&(e.$$typeof===c||e.$$typeof===f||e.$$typeof===p)},t.isAsyncMode=function(e){return v(e)===d},t.isContextConsumer=function(e){return v(e)===f},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==(void 0===e?"undefined":u(e))&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===a},t.isProfiler=function(e){return v(e)===s},t.isPortal=function(e){return v(e)===i},t.isStrictMode=function(e){return v(e)===l}},function(e,t,n){
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
e.exports=function(e){return null!=e&&"object"==(void 0===e?"undefined":u(e))&&!1===Array.isArray(e)}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,s=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?s=l.concat(s):f=-1,s.length&&p())}function p(){if(!c){var e=u(d);c=!0;for(var t=s.length;t;){for(l=s,s=[];++f<t;)l&&l[f].run();f=-1,t=s.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||c||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StyledImagePageTouchable=t.StyledHtmlPageTouchable=t.StyledImageScrollTouchable=t.StyledHtmlScrollTouchable=void 0;var r=f(["\n box-sizing: border-box;\n"],["\n box-sizing: border-box;\n"]),o=f([""],[""]),i=f(["\n overflow: hidden;\n white-space: nowrap;\n font-size: 0px;\n letter-spacing: 0;\n word-spacing: 0;\n height: ","\n \n .page_move_button {\n position: fixed;\n top: 0;\n display: block;\n height: 100%;\n width: ",";\n cursor: default;\n background: transparent;\n border: 0;\n z-index: 1;\n \n &.left_button {\n left: 0;\n }\n &.right_button {\n right: 0;\n }\n }\n"],["\n overflow: hidden;\n white-space: nowrap;\n font-size: 0px;\n letter-spacing: 0;\n word-spacing: 0;\n height: ","\n \n .page_move_button {\n position: fixed;\n top: 0;\n display: block;\n height: 100%;\n width: ",";\n cursor: default;\n background: transparent;\n border: 0;\n z-index: 1;\n \n &.left_button {\n left: 0;\n }\n &.right_button {\n right: 0;\n }\n }\n"]),a=f(["\n min-height: calc(100vh + 100px);\n height: ",";\n"],["\n min-height: calc(100vh + 100px);\n height: ",";\n"]),u=c(n(17)),l=c(n(3)),s=n(4);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=u.default.div(r),p=d.extend(o),h=d.extend(i,function(){return(0,s.screenHeight)()+"px"},function(){return l.default.setting.getSideTouchWidth(!0)});t.StyledHtmlScrollTouchable=p.extend(a,function(e){return e.total+"px"}),t.StyledImageScrollTouchable=p.extend(o),t.StyledHtmlPageTouchable=h.extend(o),t.StyledImagePageTouchable=h.extend(o)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(18))&&r.__esModule?r:{default:r},i=n(4),a=n(22),l=n(8),s=n(10),c=n(6),f=n(9),d=n(52),p=n(16),h=n(47);var v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.getMaxWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderSetting)(this.getState()).maxWidth;return e?t+"px":t},t.prototype.getExtendedSideTouchWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderSetting)(this.getState()).extendedSideTouchWidth;return e?t+"px":t},t.prototype.getSideTouchWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,i.screenWidth)();return t>=2*(this.getMaxWidth()-this.getExtendedSideTouchWidth())?(t-this.getMaxWidth())/2+this.getExtendedSideTouchWidth()+"px":e?.25*t+"px":.25*t},t.prototype.getHorizontalPadding=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if((0,c.selectReaderContentFormat)(this.getState())===l.ContentFormat.IMAGE)return 0;var t=(0,c.selectReaderSetting)(this.getState()).paddingLevel;return e?a.MAX_PADDING_LEVEL-Number(t)+"%":a.MAX_PADDING_LEVEL-Number(t)},t.prototype.getContentWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if((0,c.selectReaderContentFormat)(this.getState())===l.ContentFormat.HTML)return"100%";var t=(0,c.selectReaderSetting)(this.getState()).contentWidthLevel,n=10*Number(t)+40;return e?n+"%":n},t.prototype.getFontSize=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderSetting)(this.getState()).fontSizeLevel,n=16;switch(Number(t)){case 1:n*=.8;break;case 2:n*=.85;break;case 3:n*=.9;break;case 4:n*=.95;break;case 5:n*=1;break;case 6:n*=1.15;break;case 7:n*=1.25;break;case 8:n*=1.4;break;case 9:n*=1.6;break;case 10:n*=1.8;break;case 11:n*=2.05;break;case 12:n*=2.3;break;default:n*=1}return e?n+"px":n},t.prototype.getLineHeight=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderSetting)(this.getState()).lineHeightLevel,n=1.67;switch(Number(t)){case 1:n=1.35;break;case 2:n=1.51;break;case 3:n=1.67;break;case 4:n=1.85;break;case 5:n=2.05;break;case 6:n=2.27;break;default:n=1.67}return e?n+"em":n},t.prototype.getColumnGap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderSetting)(this.getState()).columnGap;return(0,c.selectReaderContentFormat)(this.getState())===l.ContentFormat.HTML?e?t+"px":t:e?"0px":0},t.prototype.getContainerHorizontalMargin=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderContentFormat)(this.getState()),n=(0,c.selectReaderSetting)(this.getState()),r=n.containerHorizontalMargin,o=n.viewType;return t===l.ContentFormat.IMAGE&&o===s.ViewType.PAGE?e?"0px":0:e?r+"px":r},t.prototype.getColumnWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderSetting)(this.getState()).columnsInPage,n=(0,c.selectReaderContentFormat)(this.getState()),r=(0,i.screenWidth)()-2*this.getContainerHorizontalMargin();return n===l.ContentFormat.HTML?((t>1?r:Math.min(r,this.getMaxWidth()))-this.getColumnGap()*(t-1))/t+"px":e?r/t+"px":r/t},t.prototype.getContentFooterHeight=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.selectReaderSetting)(this.getState()).contentFooterHeight;return e?t+"px":t},t.prototype.getChapterIndicatorId=function(e){return""+a.CHAPTER_INDICATOR_ID_PREFIX+e},t.prototype.getChapterId=function(e){return""+a.CHAPTER_ID_PREFIX+e},t.prototype.getStyledTouchable=function(){var e=(0,c.selectReaderContentFormat)(this.getState()),t=(0,c.selectReaderSetting)(this.getState()).viewType;return e===l.ContentFormat.HTML&&t===s.ViewType.SCROLL?d.StyledHtmlScrollTouchable:e===l.ContentFormat.HTML&&t===s.ViewType.PAGE?d.StyledHtmlPageTouchable:e===l.ContentFormat.IMAGE&&t===s.ViewType.SCROLL?d.StyledImageScrollTouchable:e===l.ContentFormat.IMAGE&&t===s.ViewType.PAGE?d.StyledImagePageTouchable:null},t.prototype.getStyledContent=function(){var e=(0,c.selectReaderContentFormat)(this.getState()),t=(0,c.selectReaderSetting)(this.getState()).viewType;return e===l.ContentFormat.HTML&&t===s.ViewType.SCROLL?p.StyledHtmlScrollContent:e===l.ContentFormat.HTML&&t===s.ViewType.PAGE?p.StyledHtmlPageContent:e===l.ContentFormat.IMAGE&&t===s.ViewType.SCROLL?p.StyledImageScrollContent:e===l.ContentFormat.IMAGE&&t===s.ViewType.PAGE?p.StyledImagePageContent:null},t.prototype.getStyledFooter=function(){var e=(0,c.selectReaderSetting)(this.getState()).viewType;return e===s.ViewType.SCROLL?h.StyledScrollFooter:e===s.ViewType.PAGE?h.StyledPageFooter:null},t.prototype.updateSetting=function(e){this.dispatch((0,f.updateSetting)(e))},t}(o.default);t.default=new v},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){e.exports=function(e,t,n,r,o,i,a,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;(l=new Error(t.replace(/%s/g,function(){return s[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){var r=n(56),o=n(55),i=n(54);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=w(n(0)),o=n(12),i=n(6),a=n(4),l=n(5),s=w(l),c=n(14),f=w(c),d=w(n(3)),p=w(n(13)),h=n(29),v=w(h),m=n(8),y=n(1),g=w(n(42)),b=n(7);function w(e){return e&&e.__esModule?e:{default:e}}var C=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.calculate=function(e,t){var n=this.props.setting.columnGap,r=Math.ceil(t.scrollWidth/(this.getWidth()+n));d.default.calculations.setTotal(e,r)},t.prototype.onTouchableScreenTouched=function(t){var n=t.position;e.prototype.onTouchableScreenTouched.call(this,{position:n});var r=this.props,o=r.bindingType,i=r.calculationsTotal,a=r.onMoveWrongDirection,u=this.props.current.offset;if(n!==h.Position.MIDDLE)if(n!==h.Position.RIGHT||o!==m.BindingType.RIGHT||0!==u){var l=u;n===h.Position.LEFT?l=o===m.BindingType.LEFT?u-1:u+1:n===h.Position.RIGHT&&(l=o===m.BindingType.LEFT?u+1:u-1),u!==(l=Math.max(0,Math.min(l,i-1)))&&d.default.current.updateCurrentPosition(l)}else(0,y.isExist)(a)&&a()},t.prototype.getWidth=function(){var e=this.props.maxWidth,t=this.props.setting,n=t.columnsInPage,r=t.containerHorizontalMargin;return n>1?(0,a.screenWidth)()-2*r:Math.min((0,a.screenWidth)()-2*r,e)},t.prototype.getTouchableScreen=function(){return v.default},t.prototype.moveToOffset=function(){var e=this.props.current.contentIndex;(0,a.setScrollTop)(0),e===b.FOOTER_INDEX?this.wrapper.current.scrollLeft=this.wrapper.current.scrollWidth:this.wrapper.current.scrollLeft=0},t.prototype.needRender=function(e){var t=this.props.current,n=d.default.calculations.isCalculated(e.index);return t.contentIndex===e.index||!n},t.prototype.renderFooter=function(){var e=this.props.footer,t=this.props.setting.containerVerticalMargin,n=d.default.calculations.getStartOffset(b.FOOTER_INDEX),o=d.default.calculations.getHasFooter();return r.default.createElement(p.default,{content:e,startOffset:n,onContentRendered:function(){return d.default.calculations.setTotal(b.FOOTER_INDEX,o?1:0)},containerVerticalMargin:t})},t.prototype.renderContent=function(e){var t=this,n=this.props,o=n.current,i=n.setting,u=n.contentFooter,l=d.default.calculations.getStartOffset(e.index);return r.default.createElement(g.default,{key:e.uri+":"+e.index,content:e,startOffset:l,isCalculated:d.default.calculations.isCalculated(e.index),setting:i,currentOffset:o.offset,width:this.getWidth(),containerHorizontalMargin:((0,a.screenWidth)()-this.getWidth())/2,containerVerticalMargin:i.containerVerticalMargin,onContentLoaded:function(e,n){return t.onContentLoaded(e,n)},onContentError:function(e,n){return t.onContentError(e,n)},onContentRendered:function(e,n){return t.calculate(e,n)},contentFooter:d.default.calculations.isLastContent(e.index)?u:null})},t.prototype.renderContents=function(){var e=this;return this.props.contents.filter(function(t){return e.needRender(t)}).map(function(t){return e.renderContent(t)})},t}(f.default);C.defaultProps=Object.assign({},f.default.defaultProps,{footer:null,contentFooter:null,onMoveWrongDirection:null}),C.propTypes=Object.assign({},f.default.propTypes,{contentsCalculations:s.default.arrayOf(l.ContentCalculationsType).isRequired,footer:s.default.node,contentFooter:s.default.node,footerCalculations:l.FooterCalculationsType.isRequired,bindingType:s.default.oneOf(m.BindingType.toList()).isRequired,calculationsTotal:s.default.number.isRequired,onMoveWrongDirection:s.default.func}),t.default=(0,o.connect)(function(e){return Object.assign({},(0,c.mapStateToProps)(e),{contentsCalculations:(0,i.selectReaderContentsCalculations)(e),calculationsTotal:(0,i.selectReaderCalculationsTotal)(e),footerCalculations:(0,i.selectReaderFooterCalculations)(e),bindingType:(0,i.selectReaderBindingType)(e)})},function(e){return Object.assign({},(0,c.mapDispatchToProps)(e))})(C)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=n(12),i=g(n(58)),a=g(n(41)),l=n(6),s=n(5),c=g(s),f=n(8),d=n(10),p=g(n(19)),h=n(1),v=g(n(39)),m=g(n(38)),y=n(22);function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return p.default.setHasFooter(!!n.footer),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}(t,e),t.prototype.componentDidMount=function(){var e=this.props.onMount;(0,h.isExist)(e)&&e()},t.prototype.componentWillUnmount=function(){var e=this.props.onUnmount;(0,h.isExist)(e)&&e()},t.prototype.onScreenTouched=function(){var e=this.props.onTouched;(0,h.isExist)(e)&&e()},t.prototype.getScreen=function(){var e=this.props.setting.viewType,t=this.props.contentFormat;return e===d.ViewType.SCROLL?t===f.ContentFormat.HTML?a.default:v.default:t===f.ContentFormat.HTML?i.default:m.default},t.prototype.render=function(){var e=this,t=this.props,n=t.maxWidth,o=t.footer,i=t.contentFooter,a=t.onMoveWrongDirection,u={maxWidth:n,footer:o,contentFooter:i,ignoreScroll:t.ignoreScroll,disableCalculation:t.disableCalculation,onTouched:function(){return e.onScreenTouched()},onMoveWrongDirection:a},l=this.getScreen();return r.default.createElement(l,u)},t}(r.default.Component);b.defaultProps={footer:null,contentFooter:null,onTouched:null,onMoveWrongDirection:null,onMount:null,onUnmount:null,ignoreScroll:!1,disableCalculation:!1,maxWidth:y.DEFAULT_MAX_WIDTH},b.propTypes={setting:s.SettingType,footer:c.default.node,contentFooter:c.default.node,onTouched:c.default.func,onMoveWrongDirection:c.default.func,onMount:c.default.func,onUnmount:c.default.func,ignoreScroll:c.default.bool,disableCalculation:c.default.bool,contentFormat:c.default.oneOf(f.ContentFormat.toList()).isRequired,maxWidth:c.default.number},t.default=(0,o.connect)(function(e){return{setting:(0,l.selectReaderSetting)(e),contentFormat:(0,l.selectReaderContentFormat)(e)}})(b)},function(e,t,n){function r(e,t){return e===t}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,l=r.pop(),s=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return void 0===e?"undefined":u(e)}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),c=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(n)),f=o(function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return c.apply(null,e)});return f.resultFunc=l,f.recomputations=function(){return a},f.resetRecomputations=function(){return a=0},f}}t.__esModule=!0,t.defaultMemoize=o,t.createSelectorCreator=i,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if("object"!=(void 0===e?"undefined":u(e)))throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+(void 0===e?"undefined":u(e)));var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})};var a=t.createSelector=i(o)}])},"object"==u(t)&&"object"==u(e)?e.exports=a(n(47),n(154)):(o=[n(47),n(154)],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i))}).call(this,n(149)(e))},,,,,,,,function(e,t,n){e.exports=n(492)()},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(0),i=n.n(o),a=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),u=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired});function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:u.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=u.isRequired,e[n]=a,e),o}var s=l(),c=n(219),f=n.n(c),d=n(106),p=n.n(d);var h=null,v={notify:function(){}};var m=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=v}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==h&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=v)},e}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var g=0,b={};function w(){}function C(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=o.methodName,c=void 0===s?"connectAdvanced":s,d=o.renderCountProp,h=void 0===d?void 0:d,v=o.shouldHandleStateChanges,C=void 0===v||v,_=o.storeKey,E=void 0===_?"store":_,O=o.withRef,T=void 0!==O&&O,S=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),P=E+"Subscription",x=g++,N=((t={})[E]=u,t[P]=a,t),k=((n={})[P]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),i=y({},S,{getDisplayName:l,methodName:c,renderCountProp:h,shouldHandleStateChanges:C,storeKey:E,withRef:T,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=x,r.state={},r.renderCount=0,r.store=e[E]||t[E],r.propsMode=Boolean(e[E]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+E+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+E+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[P]=t||this.context[P],e},a.prototype.componentDidMount=function(){C&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=w,this.store=null,this.selector.run=w,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return p()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(C){var e=(this.propsMode?this.props:this.context)[P];this.subscription=new m(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(T||h||this.propsMode&&this.subscription))return e;var t=y({},e);return T&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[P]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=k,a.contextTypes=N,a.propTypes=N,f()(a,t)}}var _=Object.prototype.hasOwnProperty;function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function O(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!_.call(t,n[o])||!E(e[n[o]],t[n[o]]))return!1;return!0}var T=n(104);n(74);function S(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function P(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function x(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=P(o),o=r(t,n)),o},r}}var N=[function(e){return"function"==typeof e?x(e):void 0},function(e){return e?void 0:S(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?S(function(t){return Object(T.bindActionCreators)(e,t)}):void 0}];var k=[function(e){return"function"==typeof e?x(e):void 0},function(e){return e?void 0:S(function(){return{}})}],R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function M(e,t,n){return R({},n,e,t)}var j=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r=n.pure,o=n.areMergedPropsEqual,i=!1,a=void 0;return function(t,n,u){var l=e(t,n,u);return i?r&&o(l,a)||(a=l):(i=!0,a=l),a}}}(e):void 0},function(e){return e?void 0:function(){return M}}];function A(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function I(e,t,n,r,o){var i=o.areStatesEqual,a=o.areOwnPropsEqual,u=o.areStatePropsEqual,l=!1,s=void 0,c=void 0,f=void 0,d=void 0,p=void 0;function h(o,l){var h,v,m=!a(l,c),y=!i(o,s);return s=o,c=l,m&&y?(f=e(s,c),t.dependsOnOwnProps&&(d=t(r,c)),p=n(f,d,c)):m?(e.dependsOnOwnProps&&(f=e(s,c)),t.dependsOnOwnProps&&(d=t(r,c)),p=n(f,d,c)):y?(h=e(s,c),v=!u(h,f),f=h,v&&(p=n(f,d,c)),p):p}return function(o,i){return l?h(o,i):(f=e(s=o,c=i),d=t(r,c),p=n(f,d,c),l=!0,p)}}function L(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),l=o(e,i);return(i.pure?I:A)(a,u,l,e,i)}var D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function F(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function U(e,t){return e===t}var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?C:t,r=e.mapStateToPropsFactories,o=void 0===r?k:r,i=e.mapDispatchToPropsFactories,a=void 0===i?N:i,u=e.mergePropsFactories,l=void 0===u?j:u,s=e.selectorFactory,c=void 0===s?L:s;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.pure,s=void 0===u||u,f=i.areStatesEqual,d=void 0===f?U:f,p=i.areOwnPropsEqual,h=void 0===p?O:p,v=i.areStatePropsEqual,m=void 0===v?O:v,y=i.areMergedPropsEqual,g=void 0===y?O:y,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=F(e,o,"mapStateToProps"),C=F(t,a,"mapDispatchToProps"),_=F(r,l,"mergeProps");return n(c,D({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:C,initMergeProps:_,pure:s,areStatesEqual:d,areOwnPropsEqual:h,areStatePropsEqual:m,areMergedPropsEqual:g},b))}}();n.d(t,"Provider",function(){return s}),n.d(t,"createProvider",function(){return l}),n.d(t,"connectAdvanced",function(){return C}),n.d(t,"connect",function(){return H})},,,,function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e){return void 0!==e&&null!==e}function i(e){return Array.isArray(e)}function a(e){return!i(e)&&e===Object(e)}t.isExist=o,t.isEmpty=function(e){if(!o(e))return!0;if("string"==typeof e||e instanceof String)return""===e.trim();if(Array.isArray(e))return 0===e.length;return!1},t.isArray=i,t.isObject=a,t.invert=function(e){for(var t={},n=Object.keys(e),r=0,o=n.length;r<o;r+=1)t[e[n[r]]]=n[r];return t},t.nullSafeGet=function(e,t,n){var r=e;if(!o(e))return n;return t.every(function(e){return o(r[e])?(r=r[e],!0):(r=n,!1)}),r},t.nullSafeSet=function(e,t,n){var r=e;o(r)||(r={});return t.forEach(function(e,i){i===t.length-1?r[e]=n:o(r[e])||(r[e]={}),r=r[e]}),e},t.debounce=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=void 0;return function(){for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=t;r&&!o&&e.apply(l,a),o&&(clearTimeout(o),o=null),o=setTimeout(function(){o=null,e.apply(l,a)},n)}},t.throttle=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1;return function(){for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=t;o||(r?setTimeout(function(){return e.apply(l,a)},n):e.apply(l,a),o=!0,setTimeout(function(){o=!1},n))}};var u=t.cloneObject=function e(t){if(null===t||"object"!==(void 0===t?"undefined":r(t)))return t;var n=t.constructor();return Object.keys(t).forEach(function(r){Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]))}),n};t.updateObject=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o(t)?function e(t,n){var o=t;return a(t)&&a(n)?Object.keys(n).forEach(function(i){"object"!==r(n[i])||null==t[i]?o[i]=n[i]:o[i]=e(t[i],n[i])}):o=n,o}(n?u(e):e,t):e};t.hasIntersect=function(e,t){return e[0]<t[0]?e[1]>t[0]:t[1]>e[0]},t.makeSequence=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e).keys()));return t>0?n.map(function(e){return e+t}):n}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.svgClass,n=e.svgColor,o=e.svgName;return r.default.createElement("svg",{className:"svg_component "+t,version:"1.0",xmlns:"http://www.w3.org/2000/svg",fill:n},r.default.createElement("use",{xlinkHref:"#"+o}))};a.propTypes={svgClass:o.default.string,svgColor:o.default.string,svgName:o.default.string.isRequired},a.defaultProps={svgClass:"",svgColor:""},t.default=a},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r;
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},,,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";e.exports=n(495)},,,,,,,,,,,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(79)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(80),o=n(205),i=n(146),a=Object.defineProperty;t.f=n(60)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},,,,,function(e,t,n){var r=n(142)("wks"),o=n(97),i=n(46).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(202),o=n(145);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(61),o=n(99);e.exports=n(60)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(46),o=n(62),i=n(206),a=n(70),u=function(e,t,n){var l,s,c,f=e&u.F,d=e&u.G,p=e&u.S,h=e&u.P,v=e&u.B,m=e&u.W,y=d?o:o[t]||(o[t]={}),g=y.prototype,b=d?r:p?r[t]:(r[t]||{}).prototype;for(l in d&&(n=t),n)(s=!f&&b&&void 0!==b[l])&&l in y||(c=s?b[l]:n[l],y[l]=d&&"function"!=typeof b[l]?n[l]:v&&s?i(c,r):m&&b[l]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):h&&"function"==typeof c?i(Function.call,c):c,h&&((y.virtual||(y.virtual={}))[l]=c,e&u.R&&g&&!g[l]&&a(g,l,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(471)),o=a(n(459)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){"use strict";var r=n(220),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,u=a.hasOwnProperty,l=a.toString,s=i?i.toStringTag:void 0;var c=function(e){var t=u.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=l.call(e);return r&&(t?e[s]=n:delete e[s]),o},f=Object.prototype.toString;var d=function(e){return f.call(e)},p="[object Null]",h="[object Undefined]",v=i?i.toStringTag:void 0;var m=function(e){return null==e?void 0===e?h:p:v&&v in Object(e)?c(e):d(e)};var y=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var g=function(e){return null!=e&&"object"==typeof e},b="[object Object]",w=Function.prototype,C=Object.prototype,_=w.toString,E=C.hasOwnProperty,O=_.call(Object);t.a=function(e){if(!g(e)||m(e)!=b)return!1;var t=y(e);if(null===t)return!0;var n=E.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_.call(n)==O}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(195),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},,,,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(69);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},,,,,,,,,,,,,,,function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ViewerComicSpinType=t.ViewerSpinType=void 0;var o,i=n(208),a=(o=i)&&o.__esModule?o:{default:o},u=n(38);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={FONT_SIZE:"font_size",PADDING:"padding",LINE_HEIGHT:"line_height"},c=(t.ViewerSpinType=(0,a.default)((0,u.updateObject)(s,{_LIST:[s.FONT_SIZE,s.PADDING,s.LINE_HEIGHT],_STRING_MAP:(r={},l(r,s.FONT_SIZE,"글자 크기"),l(r,s.PADDING,"문단 너비"),l(r,s.LINE_HEIGHT,"줄 간격"),r)}),{toReaderSettingType:function(e){switch(e){case s.FONT_SIZE:return"fontSizeLevel";case s.PADDING:return"paddingLevel";case s.LINE_HEIGHT:return"lineHeightLevel";default:return"fontSizeLevel"}}}),{CONTENT_WIDTH:"width"});t.ViewerComicSpinType=(0,a.default)((0,u.updateObject)(c,{_LIST:[c.CONTENT_WIDTH],_STRING_MAP:l({},c.CONTENT_WIDTH,"콘텐츠 너비")}),{toReaderSettingType:function(e){switch(e){case c.CONTENT_WIDTH:default:return"contentWidthLevel"}}})},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(203),o=n(141);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.redirect=t.pageDown=t.pageUp=t.preventScrollEvent=t.removeScrollEvent=t.isScrolledToBottom=t.isScrolledToTop=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(484)),i=n(38),a=n(207),u=(r=a)&&r.__esModule?r:{default:r};t.isScrolledToTop=function(){return o.scrollTop()<=100},t.isScrolledToBottom=function(){return o.scrollTop()>=o.scrollHeight()-o.screenHeight()-100};var l=function(e){return e.preventDefault()},s=t.removeScrollEvent=function(e){(0,i.isExist)(e)&&(e.removeEventListener(u.default.SCROLL,l),e.removeEventListener(u.default.TOUCH_MOVE,l),e.removeEventListener(u.default.MOUSE_WHEEL,l))};t.preventScrollEvent=function(e){s(e),(0,i.isExist)(e)&&(e.addEventListener(u.default.SCROLL,l,{passive:!1}),e.addEventListener(u.default.TOUCH_MOVE,l,{passive:!1}),e.addEventListener(u.default.MOUSE_WHEEL,l))},t.pageUp=function(){return window.scrollTo(0,window.scrollY-.9*o.screenHeight())},t.pageDown=function(){return window.scrollTo(0,window.scrollY+.9*o.screenHeight())},t.redirect=function(e){document.location=e,document.location.href=e,window.location=e,window.location.href=e,location.href=e}},function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentType=t.AvailableViewType=void 0;var i,a=n(208),u=(i=a)&&i.__esModule?i:{default:i},l=n(38);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={BOTH:0,SCROLL:1,PAGE:2},f=(t.AvailableViewType=(0,u.default)((0,l.updateObject)(c,{_LIST:[c.BOTH,c.SCROLL,c.PAGE],_STRING_MAP:(r={},s(r,c.BOTH,"보기 방식 가능"),s(r,c.SCROLL,"스크롤 보기 전용"),s(r,c.PAGE,"페이지 보기 전용"),r)}),{}),{WEB_NOVEL:10,COMIC:20,WEBTOON:30});t.ContentType=(0,u.default)((0,l.updateObject)(f,{_LIST:[f.WEB_NOVEL,f.COMIC,f.WEBTOON],_STRING_MAP:(o={},s(o,f.WEB_NOVEL,"웹소설"),s(o,f.COMIC,"만화"),s(o,f.WEBTOON,"웹툰"),o)}),{})},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,u,l){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,a,u,l],f=0;(s=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var s in n=Object(arguments[l]))o.call(n,s)&&(u[s]=n[s]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(u[a[c]]=n[a[c]])}}return u}},function(e,t,n){"use strict";n.r(t);var r=n(74),o=n(153),i=n.n(o),a={INIT:"@@redux/INIT"};function u(e,t,n){var o;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,s=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){return s}function v(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),f.push(e),function(){if(t){t=!1,p();var n=f.indexOf(e);f.splice(n,1)}}}function m(e){if(!Object(r.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,s=l(s,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++){(0,t[n])()}return e}return m({type:a.INIT}),(o={dispatch:m,subscribe:v,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,m({type:a.INIT})}})[i.a]=function(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.a]=function(){return this},e},o}function l(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i=Object.keys(n);var u=void 0;try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){u=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var r=!1,o={},a=0;a<i.length;a++){var s=i[a],c=n[s],f=e[s],d=c(f,t);if(void 0===d){var p=l(s,t);throw new Error(p)}o[s]=d,r=r||d!==f}return r?o:e}}function c(e,t){return function(){return t(e.apply(void 0,arguments))}}function f(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=c(a,t))}return r}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i,a=e(n,r,o),u=a.dispatch,l={getState:a.getState,dispatch:function(e){return u(e)}};return i=t.map(function(e){return e(l)}),u=d.apply(void 0,i)(a.dispatch),p({},a,{dispatch:u})}}}n.d(t,"createStore",function(){return u}),n.d(t,"combineReducers",function(){return s}),n.d(t,"bindActionCreators",function(){return f}),n.d(t,"applyMiddleware",function(){return h}),n.d(t,"compose",function(){return d})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;(l=new Error(t.replace(/%s/g,function(){return s[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;(l=new Error(t.replace(/%s/g,function(){return s[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(46),o=n(62),i=n(139),a=n(135),u=n(61).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(67)},function(e,t,n){var r=n(61).f,o=n(59),i=n(67)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(80),o=n(466),i=n(141),a=n(143)("IE_PROTO"),u=function(){},l=function(){var e,t=n(204)("iframe"),r=i.length;for(t.style.display="none",n(465).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(46),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(142)("keys"),o=n(97);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(69);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectIsFullScreen=t.selectIsVisibleSettingPopup=void 0;var r,o=n(481),i=n(209),a=(r=i)&&r.__esModule?r:{default:r},u=n(38);var l=function(e){return e.viewer||{}};t.selectIsVisibleSettingPopup=(0,o.createSelector)([l],function(e){return(0,u.nullSafeGet)(e,a.default.isVisibleSettingPopup(),!1)}),t.selectIsFullScreen=(0,o.createSelector)([l],function(e){return(0,u.nullSafeGet)(e,a.default.isFullScreen(),!1)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onScreenTouched=t.requestLoadContent=t.updateViewerSettings=t.viewerSettingChanged=t.onToggleViewerSetting=t.ViewerUiActions=void 0;var r=n(18),o=n(487),i=t.ViewerUiActions={TOGGLE_VIEWER_SETTING:"VIEWER_FOOTER:TOGGLE_SETTING",VIEWER_SETTING_CHANGED:"VIEWER:SETTING_CHANGED",TOUCHED:"VIEWER:TOUCHED"},a=(t.onToggleViewerSetting=function(){return{type:i.TOGGLE_VIEWER_SETTING}},t.viewerSettingChanged=function(e){return{type:i.VIEWER_SETTING_CHANGED,changedSetting:e}});t.updateViewerSettings=function(e){return function(t){t(a(e))}},t.requestLoadContent=function(e){var t=e.id,n=e.contentFormat,i=e.bindingType;return function(e){(0,o.getJson)("./resources/contents/"+t+"/spine.json").then(function(t){var o=t.contents;return e((0,r.setContents)(n,i,o))})}},t.onScreenTouched=function(){return{type:i.TOUCHED}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";e.exports={}},function(e,t,n){e.exports=n(490)},function(e,t,n){e.exports=n(497)},function(e,t,n){"use strict";n.r(t);var r=n(47),o=n(26),i=n.n(o),a=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),u=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired});function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:u.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=u.isRequired,e[n]=a,e),o}var s=l(),c=n(218),f=n.n(c),d=n(105),p=n.n(d);var h=null,v={notify:function(){}};var m=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=v}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==h&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=v)},e}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var g=0,b={};function w(){}function C(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=o.methodName,c=void 0===s?"connectAdvanced":s,d=o.renderCountProp,h=void 0===d?void 0:d,v=o.shouldHandleStateChanges,C=void 0===v||v,_=o.storeKey,E=void 0===_?"store":_,O=o.withRef,T=void 0!==O&&O,S=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),P=E+"Subscription",x=g++,N=((t={})[E]=u,t[P]=a,t),k=((n={})[P]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),i=y({},S,{getDisplayName:l,methodName:c,renderCountProp:h,shouldHandleStateChanges:C,storeKey:E,withRef:T,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=x,r.state={},r.renderCount=0,r.store=e[E]||t[E],r.propsMode=Boolean(e[E]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+E+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+E+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[P]=t||this.context[P],e},a.prototype.componentDidMount=function(){C&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=w,this.store=null,this.selector.run=w,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return p()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(C){var e=(this.propsMode?this.props:this.context)[P];this.subscription=new m(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(T||h||this.propsMode&&this.subscription))return e;var t=y({},e);return T&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[P]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=k,a.contextTypes=N,a.propTypes=N,f()(a,t)}}var _=Object.prototype.hasOwnProperty;function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function O(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!_.call(t,n[o])||!E(e[n[o]],t[n[o]]))return!1;return!0}var T=n(217),S="object"==typeof self&&self&&self.Object===Object&&self,P=(T.a||S||Function("return this")()).Symbol,x=Object.prototype;x.hasOwnProperty,x.toString,P&&P.toStringTag;Object.prototype.toString;P&&P.toStringTag;Object.getPrototypeOf,Object;var N=Function.prototype,k=Object.prototype,R=N.toString;k.hasOwnProperty,R.call(Object);n(152);function M(e,t){return function(){return t(e.apply(void 0,arguments))}}Object.assign;var j=n(511),A="object"==typeof self&&self&&self.Object===Object&&self,I=(j.a||A||Function("return this")()).Symbol,L=Object.prototype;L.hasOwnProperty,L.toString,I&&I.toStringTag;Object.prototype.toString;I&&I.toStringTag;Object.getPrototypeOf,Object;var D=Function.prototype,F=Object.prototype,U=D.toString;F.hasOwnProperty,U.call(Object);function H(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function V(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function W(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=V(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=V(o),o=r(t,n)),o},r}}var B=[function(e){return"function"==typeof e?W(e):void 0},function(e){return e?void 0:H(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?H(function(t){return function(e,t){if("function"==typeof e)return M(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=M(a,t))}return r}(e,t)}):void 0}];var z=[function(e){return"function"==typeof e?W(e):void 0},function(e){return e?void 0:H(function(){return{}})}],G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function q(e,t,n){return G({},n,e,t)}var K=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r=n.pure,o=n.areMergedPropsEqual,i=!1,a=void 0;return function(t,n,u){var l=e(t,n,u);return i?r&&o(l,a)||(a=l):(i=!0,a=l),a}}}(e):void 0},function(e){return e?void 0:function(){return q}}];function $(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Y(e,t,n,r,o){var i=o.areStatesEqual,a=o.areOwnPropsEqual,u=o.areStatePropsEqual,l=!1,s=void 0,c=void 0,f=void 0,d=void 0,p=void 0;function h(o,l){var h,v,m=!a(l,c),y=!i(o,s);return s=o,c=l,m&&y?(f=e(s,c),t.dependsOnOwnProps&&(d=t(r,c)),p=n(f,d,c)):m?(e.dependsOnOwnProps&&(f=e(s,c)),t.dependsOnOwnProps&&(d=t(r,c)),p=n(f,d,c)):y?(h=e(s,c),v=!u(h,f),f=h,v&&(p=n(f,d,c)),p):p}return function(o,i){return l?h(o,i):(f=e(s=o,c=i),d=t(r,c),p=n(f,d,c),l=!0,p)}}function X(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),l=o(e,i);return(i.pure?Y:$)(a,u,l,e,i)}var Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Z(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function J(e,t){return e===t}var ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?C:t,r=e.mapStateToPropsFactories,o=void 0===r?z:r,i=e.mapDispatchToPropsFactories,a=void 0===i?B:i,u=e.mergePropsFactories,l=void 0===u?K:u,s=e.selectorFactory,c=void 0===s?X:s;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.pure,s=void 0===u||u,f=i.areStatesEqual,d=void 0===f?J:f,p=i.areOwnPropsEqual,h=void 0===p?O:p,v=i.areStatePropsEqual,m=void 0===v?O:v,y=i.areMergedPropsEqual,g=void 0===y?O:y,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=Z(e,o,"mapStateToProps"),C=Z(t,a,"mapDispatchToProps"),_=Z(r,l,"mergeProps");return n(c,Q({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:C,initMergeProps:_,pure:s,areStatesEqual:d,areOwnPropsEqual:h,areStatePropsEqual:m,areMergedPropsEqual:g},b))}}();n.d(t,"Provider",function(){return s}),n.d(t,"createProvider",function(){return l}),n.d(t,"connectAdvanced",function(){return C}),n.d(t,"connect",function(){return ee})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapStateToProps=void 0;var r=u(n(2)),o=u(n(0)),i=n(18),a=n(147);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var s=["viewType","font","fontSizeLevel","paddingLevel","contentWidthLevel","lineHeightLevel","columnsInPage","startWithBlankPage"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return l(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.setting.colorTheme;t!==this.props.setting.colorTheme&&(document.body.className=t)},t.prototype.componentDidUpdate=function(e){this.shouldUpdatePagination(e,this.props)&&i.Connector.calculations.invalidate()},t.prototype.onSettingChanged=function(e){i.Connector.setting.updateSetting(e)},t.prototype.shouldUpdatePagination=function(e,t){var n=s.map(function(t){return e.setting[t]}),r=s.map(function(e){return t.setting[e]});return JSON.stringify(n)!==JSON.stringify(r)},t.prototype.renderSettings=function(){return null},t.prototype.render=function(){var e=this.props,t=e.isVisibleSettingPopup,n=e.setting;return r.default.createElement("div",{id:"setting_popup",className:"\n "+(n.viewType===i.ViewType.PAGE?"page_setting_popup":"")+"\n "+(t?"active":"")+"\n android_setting_popup\n "},r.default.createElement("h2",{className:"indent_hidden"},"보기설정 팝업"),this.renderSettings())},t}(r.default.Component);t.default=c,c.propTypes={setting:o.default.object.isRequired,isVisibleSettingPopup:o.default.bool.isRequired};t.mapStateToProps=function(e){return{isVisibleSettingPopup:(0,a.selectIsVisibleSettingPopup)(e),setting:(0,i.selectReaderSetting)(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=s(r),i=s(n(0)),a=n(27),u=n(18),l=s(n(41));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return c(t,e),t.prototype.renderColumnOptionList=function(){var e=this.props.onChanged,t=this.props.setting,n=t.columnsInPage,r=t.startWithBlankPage;return[1,2,3].map(function(t){return o.default.createElement("li",{className:"setting_button_list",key:t},o.default.createElement("button",{type:"button",className:"setting_button "+(n===t?"active":""),onClick:function(){return e&&e({columnsInPage:t,startWithBlankPage:r})}},t," 단"))})},t.prototype.renderBlankPageOptionList=function(){var e=this.props.onChanged,t=this.props.setting,n=t.columnsInPage,r=t.startWithBlankPage;return[0,1,2].map(function(t){return o.default.createElement("li",{className:"setting_button_list",key:t},o.default.createElement("button",{type:"button",className:"setting_button "+(r===t?"active":""),onClick:function(){return e&&e({columnsInPage:n,startWithBlankPage:t})}},t," 페이지"))})},t.prototype.render=function(){var e=this.props.setting.columnsInPage;return o.default.createElement(o.default.Fragment,null,o.default.createElement("li",{className:"setting_list"},o.default.createElement(l.default,{svgName:"svg_column",svgClass:"setting_title_icon svg_column_icon"}),o.default.createElement("div",{className:"table_wrapper"},o.default.createElement("p",{className:"setting_title"},"다단 보기",o.default.createElement("span",{className:"indent_hidden"},"변경")),o.default.createElement("div",{className:"setting_buttons_wrapper font_family_setting"},o.default.createElement("ul",{className:"setting_buttons font_family_buttons"},this.renderColumnOptionList())))),e>1&&o.default.createElement("li",{className:"setting_list"},o.default.createElement(l.default,{svgName:"svg_column",svgClass:"setting_title_icon svg_column_icon"}),o.default.createElement("div",{className:"table_wrapper"},o.default.createElement("p",{className:"setting_title"},"빈 페이지 보기",o.default.createElement("span",{className:"indent_hidden"},"변경")),o.default.createElement("div",{className:"setting_buttons_wrapper font_family_setting"},o.default.createElement("ul",{className:"setting_buttons font_family_buttons"},this.renderBlankPageOptionList())))))},t}(r.Component);f.propTypes={onChanged:i.default.func,setting:i.default.object},f.defaultProps={onChanged:function(){},setting:{}};t.default=(0,a.connect)(function(e){return{setting:(0,u.selectReaderSetting)(e)}})(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(2)),o=a(n(0)),i=a(n(41));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.state={value:n.initialValue},r.handleMinus=r.handleMinus.bind(r),r.handlePlus=r.handlePlus.bind(r),r}return u(t,e),t.prototype.handleMinus=function(){var e=this.state.value;if(this.state.value>this.props.min){var t=this.state.value-1;this.props.onChange(e,t),this.setState({value:t}),this.minusButton.disabled=t===this.props.min,this.plusButton.disabled=!1}this.minusButton.blur()},t.prototype.handlePlus=function(){var e=this.state.value;if(this.state.value<this.props.max){var t=this.state.value+1;this.props.onChange(e,t),this.setState({value:t}),this.minusButton.disabled=!1,this.plusButton.disabled=t===this.props.max}this.plusButton.blur()},t.prototype.render=function(){var e=this;return r.default.createElement("div",{className:"table_wrapper"},r.default.createElement("div",{className:"setting_title"},this.props.title,r.default.createElement("span",{className:"indent_hidden"},"변경, 현재 "),r.default.createElement("span",{className:"setting_num"},this.state.value)),r.default.createElement("div",{className:"setting_buttons_wrapper spin_setting"},r.default.createElement("ul",{className:"spin_button_wrapper "+this.props.buttonTarget},r.default.createElement("li",{className:"spin_button_list"},r.default.createElement("button",{type:"button",className:"spin_button minus_button",disabled:this.state.value===this.props.min,onClick:this.handleMinus,ref:function(t){e.minusButton=t}},r.default.createElement(i.default,{svgName:"svg_minus_1",svgClass:"spin_icon"}),r.default.createElement("span",{className:"indent_hidden"},"감소"))),r.default.createElement("li",{className:"spin_button_list"},r.default.createElement("button",{type:"button",className:"spin_button plus_button",disabled:this.state.value===this.props.max,onClick:this.handlePlus,ref:function(t){e.plusButton=t}},r.default.createElement(i.default,{svgName:"svg_plus_1",svgClass:"spin_icon"}),r.default.createElement("span",{className:"indent_hidden"},"증가"))))))},t}(r.default.Component);t.default=l,l.propTypes={title:o.default.string.isRequired,buttonTarget:o.default.string.isRequired,initialValue:o.default.number.isRequired,min:o.default.number.isRequired,max:o.default.number.isRequired,onChange:o.default.func},l.defaultProps={onChange:function(){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=f(r),i=f(n(0)),a=n(27),u=n(18),l=f(n(41)),s=n(101),c=n(100);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return d(t,e),t.prototype.renderViewType=function(){var e=this.props,t=e.viewerScreenSettings,n=e.contentViewType,r=e.onChanged;return n===s.AvailableViewType.BOTH?u.ViewType.toList().map(function(e){return o.default.createElement("li",{className:"view_type_list setting_button_list",key:e},o.default.createElement("button",{type:"button",className:"view_type_button setting_button "+e+" "+(t.viewType===e?"active":""),onClick:function(){return r(e)}},u.ViewType.toString(e)))}):o.default.createElement("p",{className:"setting_info_text"},"이 콘텐츠는 ",n===s.AvailableViewType.PAGE?"페이지 넘김":"스크롤 보기","만 지원됩니다.")},t.prototype.render=function(){return o.default.createElement("li",{className:"setting_list",ref:function(e){(0,c.preventScrollEvent)(e)}},o.default.createElement(l.default,{svgName:"svg_view_type_1",svgClass:"setting_title_icon svg_view_type_icon"}),o.default.createElement("div",{className:"table_wrapper"},o.default.createElement("p",{className:"setting_title"},"보기 방식",o.default.createElement("span",{className:"indent_hidden"},"변경")),o.default.createElement("div",{className:"setting_buttons_wrapper view_type_setting"},o.default.createElement("ul",{className:"setting_buttons view_type_buttons"},this.renderViewType()))))},t}(r.Component);p.propTypes={contentViewType:i.default.number.isRequired,onChanged:i.default.func,viewerScreenSettings:i.default.object},p.defaultProps={onChanged:function(){},viewerScreenSettings:{}};t.default=(0,a.connect)(function(e){return{viewerScreenSettings:(0,u.selectReaderSetting)(e)}})(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=l(r),i=l(n(0)),a=n(18),u=l(n(41));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return s(t,e),t.prototype.renderThemeList=function(){var e=this.props.onChanged;return a.ReaderThemeType.toList().map(function(t){return o.default.createElement("li",{className:"theme_list setting_button_list",key:t},o.default.createElement("button",{className:"theme_select_button setting_button "+t+"_button",type:"button",onClick:function(){e(t)}},o.default.createElement(u.default,{svgName:"svg_check_3",svgClass:"theme_check_icon"}),o.default.createElement("span",{className:"indent_hidden"},"white")))})},t.prototype.render=function(){return o.default.createElement("li",{className:"setting_list theme_setting_list"},o.default.createElement(u.default,{svgName:"svg_beaker_2",svgClass:"setting_title_icon svg_beaker_icon"}),o.default.createElement("p",{className:"setting_title"},o.default.createElement("span",{className:"indent_hidden"},"색상테마 선택")),o.default.createElement("div",{className:"theme_setting_wrapper"},o.default.createElement("div",{className:"theme_scroll_area"},o.default.createElement("ul",{className:"theme_setting"},this.renderThemeList()))))},t}(r.Component);t.default=c,c.propTypes={onChanged:i.default.func},c.defaultProps={onChanged:function(){}}},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,n){e.exports={default:n(439),__esModule:!0}},function(e,t,n){var r=n(96),o=n(99),i=n(68),a=n(146),u=n(59),l=n(205),s=Object.getOwnPropertyDescriptor;t.f=n(60)?s:function(e,t){if(e=i(e),t=a(t,!0),l)try{return s(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(203),o=n(141).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){e.exports=n(70)},function(e,t,n){"use strict";var r=n(139),o=n(71),i=n(198),a=n(70),u=n(59),l=n(138),s=n(467),c=n(136),f=n(464),d=n(67)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,v,m,y,g){s(n,t,v);var b,w,C,_=function(e){if(!p&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",O="values"==m,T=!1,S=e.prototype,P=S[d]||S["@@iterator"]||m&&S[m],x=!p&&P||_(m),N=m?O?_("entries"):x:void 0,k="Array"==t&&S.entries||P;if(k&&(C=f(k.call(new e)))!==Object.prototype&&C.next&&(c(C,E,!0),r||u(C,d)||a(C,d,h)),O&&P&&"values"!==P.name&&(T=!0,x=function(){return P.call(this)}),r&&!g||!p&&!T&&S[d]||a(S,d,x),l[t]=x,l[E]=h,m)if(b={values:O?x:_("values"),keys:y?x:_("keys"),entries:N},g)for(w in b)w in S||i(S,w,b[w]);else o(o.P+o.F*(p||T),t,b);return b}},function(e,t,n){var r=n(145);e.exports=function(e){return Object(r(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(201);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(59),o=n(68),i=n(474)(!1),a=n(143)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),l=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;t.length>l;)r(u,n=t[l++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(69),o=n(46).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=!n(60)&&!n(79)(function(){return 7!=Object.defineProperty(n(204)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(476);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={CLICK:"click",SCROLL:"scroll",TOUCH_MOVE:"touchmove",MOUSE_WHEEL:"mousewheel",KEY_DOWN:"keydown",RESIZE:"resize",FOCUS:"focus",BLUR:"blur",ERROR:"error",CHANGE:"change",ANIMATION_END:"animationend",TRANSITION_END:"transitionend",WEBKIT_TRANSITION_END:"webkitTransitionEnd"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return n.toList=function(){if(!(0,r.isExist)(this._LIST))throw new Error("_LIST가 존재하지 않습니다.");return this._LIST}.bind(n),n.toString=function(e){if(!(0,r.isExist)(this._STRING_MAP))throw new Error("_STRING_MAP이 존재하지 않습니다.");return this._STRING_MAP[e]||""}.bind(n),n.toStringList=function(){var e=this;if(!(0,r.isExist)(this._STRING_MAP)||!(0,r.isExist)(this._LIST))throw new Error("_STRING_MAP 혹은 _LIST가 존재하지 않습니다.");return this._LIST.map(function(t){return e._STRING_MAP[t]})}.bind(n),n.fromString=function(e){if(!(0,r.isExist)(this._STRING_MAP))throw new Error("_STRING_MAP이 존재하지 않습니다.");return(0,r.invert)(this._STRING_MAP)[e]||""}.bind(n),n.getDefault=function(){if(!(0,r.isExist)(this._DEFAULT))throw new Error("_DEFAULT이 존재하지 않습니다.");return this._DEFAULT}.bind(n),Object.keys(t).forEach(function(e){n[e]=t[e].bind(n)}),n};var r=n(38)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialState=void 0;var r=n(101);t.initialState={ui:{isVisibleSettingPopup:!1,viewerSettings:{},isFullScreen:!1,availableViewType:r.AvailableViewType.BOTH}};t.default={isVisibleSettingPopup:function(){return["ui","isVisibleSettingPopup"]},viewerSettings:function(){return["ui","viewerSettings"]},isFullScreen:function(){return["ui","isFullScreen"]},availableViewType:function(){return["ui","availableViewType"]}}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,u,l){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,a,u,l],f=0;(s=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){try{var r=n(194)}catch(e){r=n(194)}var o=/\s+/,i=Object.prototype.toString;function a(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}e.exports=function(e){return new a(e)},a.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(" "),this},a.prototype.remove=function(e){if("[object RegExp]"==i.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},a.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},a.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},a.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(o);return""===e[0]&&e.shift(),e},a.prototype.has=a.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(195),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(2),o=n(440);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var s=i[l];if(!u(s))return!1;var c=e[s],f=t[s];if(!1===(o=n?n.call(r,c,f,s):void 0)||void 0===o&&c!==f)return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){function r(t){var r=new i.default(t);n.call(e,r)}if(e.addEventListener)return e.addEventListener(t,r,!1),{remove:function(){e.removeEventListener(t,r,!1)}};if(e.attachEvent)return e.attachEvent("on"+t,r),{remove:function(){e.detachEvent("on"+t,r)}}};var r,o=n(442),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(42))},function(e,t,n){e.exports=function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,u=a&&a(Object);return function l(s,c,f){if("string"!=typeof c){if(u){var d=a(c);d&&d!==u&&l(s,d,f)}var p=r(c);o&&(p=p.concat(o(c)));for(var h=0;h<p.length;++h){var v=p[h];if(!(e[v]||t[v]||f&&f[v])){var m=i(c,v);try{n(s,v,m)}catch(e){}}}return s}return s}}()},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,c=s&&s(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(c){var d=s(n);d&&d!==c&&e(t,d,f)}var p=a(n);u&&(p=p.concat(u(n)));for(var h=0;h<p.length;++h){var v=p[h];if(!(r[v]||o[v]||f&&f[v])){var m=l(n,v);try{i(t,v,m)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(42))},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),i=n(10),a=n.n(i),u=n(8),l=n.n(u),s=n(9),c=n.n(s),f=n(2),d=n.n(f),p=n(0),h=n.n(p),v=n(72),m=n.n(v),y=function(e){var t=e.className,n=e.included,r=e.vertical,i=e.offset,a=e.length,u=e.style,l=r?{bottom:i+"%",height:a+"%"}:{left:i+"%",width:a+"%"},s=o()({visibility:n?"visible":"hidden"},u,l);return d.a.createElement("div",{className:t,style:s})},g=n(31),b=n.n(g),w=n(216),C=n.n(w),_=n(12),E=n.n(_);function O(e,t,n){var r=E.a.unstable_batchedUpdates?function(e){E.a.unstable_batchedUpdates(n,e)}:n;return C()(e,t,r)}var T=n(43),S=n.n(T),P=function(e){var t=e.prefixCls,n=e.vertical,r=e.marks,i=e.dots,a=e.step,u=e.included,l=e.lowerBound,s=e.upperBound,c=e.max,f=e.min,p=e.dotStyle,h=e.activeDotStyle,v=c-f,y=function(e,t,n,r,o,i){m()(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat);if(n)for(var u=o;u<=i;u+=r)a.indexOf(u)>=0||a.push(u);return a}(0,r,i,a,f,c).map(function(e){var r,i=Math.abs(e-f)/v*100+"%",a=!u&&e===s||u&&e<=s&&e>=l,c=n?o()({bottom:i},p):o()({left:i},p);a&&(c=o()({},c,h));var m=S()(((r={})[t+"-dot"]=!0,r[t+"-dot-active"]=a,r));return d.a.createElement("span",{className:m,style:c,key:e})});return d.a.createElement("div",{className:t+"-step"},y)},x=function(e){var t=e.className,n=e.vertical,r=e.marks,i=e.included,a=e.upperBound,u=e.lowerBound,l=e.max,s=e.min,c=Object.keys(r),f=c.length,p=.9*(f>1?100/(f-1):100),h=l-s,v=c.map(parseFloat).sort(function(e,t){return e-t}).map(function(e){var l,c=r[e],f="object"==typeof c&&!d.a.isValidElement(c),v=f?c.label:c;if(!v)return null;var m=!i&&e===a||i&&e<=a&&e>=u,y=S()(((l={})[t+"-text"]=!0,l[t+"-text-active"]=m,l)),g=n?{marginBottom:"-50%",bottom:(e-s)/h*100+"%"}:{width:p+"%",marginLeft:-p/2+"%",left:(e-s)/h*100+"%"},b=f?o()({},g,c.style):g;return d.a.createElement("span",{className:y,style:b,key:e},v)});return d.a.createElement("div",{className:t},v)},N=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.focus=function(){this.handle.focus()},t.prototype.blur=function(){this.handle.blur()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.vertical,i=t.offset,a=t.style,u=t.disabled,l=t.min,s=t.max,c=t.value,f=b()(t,["className","vertical","offset","style","disabled","min","max","value"]),p=r?{bottom:i+"%"}:{left:i+"%"},h=o()({},a,p),v={};return void 0!==c&&(v=o()({},v,{"aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":c,"aria-disabled":!!u})),d.a.createElement("div",o()({ref:function(t){return e.handle=t},role:"slider",tabIndex:"0"},v,f,{className:n,style:h}))},t}(d.a.Component),k=N;N.propTypes={className:h.a.string,vertical:h.a.bool,offset:h.a.number,style:h.a.object,disabled:h.a.bool,min:h.a.number,max:h.a.number,value:h.a.number};var R={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=R.F1&&t<=R.F12)return!1;switch(t){case R.ALT:case R.CAPS_LOCK:case R.CONTEXT_MENU:case R.CTRL:case R.DOWN:case R.END:case R.ESC:case R.HOME:case R.INSERT:case R.LEFT:case R.MAC_FF_META:case R.META:case R.NUMLOCK:case R.NUM_CENTER:case R.PAGE_DOWN:case R.PAGE_UP:case R.PAUSE:case R.PRINT_SCREEN:case R.RIGHT:case R.SHIFT:case R.UP:case R.WIN_KEY:case R.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=R.ZERO&&e<=R.NINE)return!0;if(e>=R.NUM_ZERO&&e<=R.NUM_MULTIPLY)return!0;if(e>=R.A&&e<=R.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case R.SPACE:case R.QUESTION_MARK:case R.NUM_PLUS:case R.NUM_MINUS:case R.NUM_PERIOD:case R.NUM_DIVISION:case R.SEMICOLON:case R.DASH:case R.EQUALS:case R.COMMA:case R.PERIOD:case R.SLASH:case R.APOSTROPHE:case R.SINGLE_QUOTE:case R.OPEN_SQUARE_BRACKET:case R.BACKSLASH:case R.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},M=R;function j(e,t){return Object.keys(t).some(function(n){return e.target===Object(_.findDOMNode)(t[n])})}function A(e,t){var n=t.min,r=t.max;return e<n||e>r}function I(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function L(e,t){return e?t.clientY:t.pageX}function D(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function F(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:n.left+.5*n.width}function U(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function H(e,t){var n=t.step,r=function(e,t){var n=t.marks,r=t.step,o=t.min,i=Object.keys(n).map(parseFloat);if(null!==r){var a=Math.round((e-o)/r)*r+o;i.push(a)}var u=i.map(function(t){return Math.abs(e-t)});return i[u.indexOf(Math.min.apply(Math,u))]}(e,t);return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function V(e){e.stopPropagation(),e.preventDefault()}function W(){}function B(e){var t,n;return n=t=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return r.onMouseDown=function(e){if(0===e.button){var t=r.props.vertical,n=L(t,e);if(j(e,r.handlesRefs)){var o=F(t,e.target);r.dragOffset=n-o,n=o}else r.dragOffset=0;r.removeDocumentEvents(),r.onStart(n),r.addDocumentMouseEvents(),V(e)}},r.onTouchStart=function(e){if(!I(e)){var t=r.props.vertical,n=D(t,e);if(j(e,r.handlesRefs)){var o=F(t,e.target);r.dragOffset=n-o,n=o}else r.dragOffset=0;r.onStart(n),r.addDocumentTouchEvents(),V(e)}},r.onFocus=function(e){var t=r.props,n=t.onFocus,o=t.vertical;if(j(e,r.handlesRefs)){var i=F(o,e.target);r.dragOffset=0,r.onStart(i),V(e),n&&n(e)}},r.onBlur=function(e){var t=r.props.onBlur;r.onEnd(e),t&&t(e)},r.onMouseUp=function(){r.onEnd(),r.removeDocumentEvents()},r.onMouseMove=function(e){if(r.sliderRef){var t=L(r.props.vertical,e);r.onMove(e,t-r.dragOffset)}else r.onEnd()},r.onTouchMove=function(e){if(!I(e)&&r.sliderRef){var t=D(r.props.vertical,e);r.onMove(e,t-r.dragOffset)}else r.onEnd()},r.onKeyDown=function(e){r.sliderRef&&j(e,r.handlesRefs)&&r.onKeyboard(e)},r.saveSlider=function(e){r.sliderRef=e},r.handlesRefs={},r}return c()(t,e),t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount&&e.prototype.componentWillUnmount.call(this),this.removeDocumentEvents()},t.prototype.componentDidMount=function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument},t.prototype.addDocumentTouchEvents=function(){this.onTouchMoveListener=O(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=O(this.document,"touchend",this.onEnd)},t.prototype.addDocumentMouseEvents=function(){this.onMouseMoveListener=O(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=O(this.document,"mouseup",this.onEnd)},t.prototype.removeDocumentEvents=function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},t.prototype.focus=function(){this.props.disabled||this.handlesRefs[0].focus()},t.prototype.blur=function(){this.props.disabled||this.handlesRefs[0].blur()},t.prototype.getSliderStart=function(){var e=this.sliderRef.getBoundingClientRect();return this.props.vertical?e.top:e.left},t.prototype.getSliderLength=function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width},t.prototype.calcValue=function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r},t.prototype.calcValueByPos=function(e){var t=e-this.getSliderStart();return this.trimAlignValue(this.calcValue(t))},t.prototype.calcOffset=function(e){var t=this.props,n=t.min;return 100*((e-n)/(t.max-n))},t.prototype.saveHandle=function(e,t){this.handlesRefs[e]=t},t.prototype.render=function(){var t,n=this.props,r=n.prefixCls,i=n.className,a=n.marks,u=n.dots,l=n.step,s=n.included,c=n.disabled,f=n.vertical,p=n.min,h=n.max,v=n.children,m=n.maximumTrackStyle,y=n.style,g=n.railStyle,b=n.dotStyle,w=n.activeDotStyle,C=e.prototype.render.call(this),_=C.tracks,E=C.handles,O=S()(r,((t={})[r+"-with-marks"]=Object.keys(a).length,t[r+"-disabled"]=c,t[r+"-vertical"]=f,t[i]=i,t));return d.a.createElement("div",{ref:this.saveSlider,className:O,onTouchStart:c?W:this.onTouchStart,onMouseDown:c?W:this.onMouseDown,onMouseUp:c?W:this.onMouseUp,onKeyDown:c?W:this.onKeyDown,onFocus:c?W:this.onFocus,onBlur:c?W:this.onBlur,style:y},d.a.createElement("div",{className:r+"-rail",style:o()({},m,g)}),_,d.a.createElement(P,{prefixCls:r,vertical:f,marks:a,dots:u,step:l,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:p,dotStyle:b,activeDotStyle:w}),E,d.a.createElement(x,{className:r+"-mark",vertical:f,marks:a,included:s,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:p}),v)},t}(e),t.displayName="ComponentEnhancer("+e.displayName+")",t.propTypes=o()({},e.propTypes,{min:h.a.number,max:h.a.number,step:h.a.number,marks:h.a.object,included:h.a.bool,className:h.a.string,prefixCls:h.a.string,disabled:h.a.bool,children:h.a.any,onBeforeChange:h.a.func,onChange:h.a.func,onAfterChange:h.a.func,handle:h.a.func,dots:h.a.bool,vertical:h.a.bool,style:h.a.object,minimumTrackStyle:h.a.object,maximumTrackStyle:h.a.object,handleStyle:h.a.oneOfType([h.a.object,h.a.arrayOf(h.a.object)]),trackStyle:h.a.oneOfType([h.a.object,h.a.arrayOf(h.a.object)]),railStyle:h.a.object,dotStyle:h.a.object,activeDotStyle:h.a.object,autoFocus:h.a.bool,onFocus:h.a.func,onBlur:h.a.func}),t.defaultProps=o()({},e.defaultProps,{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=b()(e,["index"]);return delete n.dragging,d.a.createElement(k,o()({},n,{key:t}))},onBeforeChange:W,onChange:W,onAfterChange:W,included:!0,disabled:!1,dots:!1,vertical:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),n}var z=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));r.onEnd=function(){r.setState({dragging:!1}),r.removeDocumentEvents(),r.props.onAfterChange(r.getValue())};var o=void 0!==n.defaultValue?n.defaultValue:n.min,i=void 0!==n.value?n.value:o;return r.state={value:r.trimAlignValue(i),dragging:!1},r}return c()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()},t.prototype.componentWillReceiveProps=function(e){if("value"in e||"min"in e||"max"in e){var t=this.state.value,n=void 0!==e.value?e.value:t,r=this.trimAlignValue(n,e);r!==t&&(this.setState({value:r}),A(n,e)&&this.props.onChange(r))}},t.prototype.onChange=function(e){var t=this.props;!("value"in t)&&this.setState(e);var n=e.value;t.onChange(n)},t.prototype.onStart=function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&this.onChange({value:r})},t.prototype.onMove=function(e,t){V(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})},t.prototype.onKeyboard=function(e){var t=function(e){switch(e.keyCode){case M.UP:case M.RIGHT:return function(e,t){return e+t.step};case M.DOWN:case M.LEFT:return function(e,t){return e-t.step};case M.END:return function(e,t){return t.max};case M.HOME:return function(e,t){return t.min};case M.PAGE_UP:return function(e,t){return e+2*t.step};case M.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}}(e);if(t){V(e);var n=this.state.value,r=t(n,this.props),o=this.trimAlignValue(r);if(o===n)return;this.onChange({value:o})}},t.prototype.getValue=function(){return this.state.value},t.prototype.getLowerBound=function(){return this.props.min},t.prototype.getUpperBound=function(){return this.state.value},t.prototype.trimAlignValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o()({},this.props,t);return H(U(e,n),n)},t.prototype.render=function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,i=t.included,a=t.disabled,u=t.minimumTrackStyle,l=t.trackStyle,s=t.handleStyle,c=t.min,f=t.max,p=t.handle,h=this.state,v=h.value,m=h.dragging,g=this.calcOffset(v),b=p({className:n+"-handle",vertical:r,offset:g,value:v,dragging:m,disabled:a,min:c,max:f,index:0,style:s[0]||s,ref:function(t){return e.saveHandle(0,t)}}),w=l[0]||l;return{tracks:d.a.createElement(y,{className:n+"-track",vertical:r,included:i,offset:0,length:g,style:o()({},u,w)}),handles:b}},t}(d.a.Component);z.propTypes={defaultValue:h.a.number,value:h.a.number,disabled:h.a.bool,autoFocus:h.a.bool};var G=B(z),q=n(215),K=n.n(q),$=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));r.onEnd=function(){r.setState({handle:null}),r.removeDocumentEvents(),r.props.onAfterChange(r.getValue())};var o=n.count,i=n.min,u=n.max,s=Array.apply(null,Array(o+1)).map(function(){return i}),c="defaultValue"in n?n.defaultValue:s,f=(void 0!==n.value?n.value:c).map(function(e){return r.trimAlignValue(e)}),d=f[0]===u?0:f.length-1;return r.state={handle:null,recent:d,bounds:f},r}return c()(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this;if(("value"in e||"min"in e||"max"in e)&&(this.props.min!==e.min||this.props.max!==e.max||!K()(this.props.value,e.value))){var n=this.state.bounds,r=(e.value||n).map(function(n){return t.trimAlignValue(n,e)});r.length===n.length&&r.every(function(e,t){return e===n[t]})||(this.setState({bounds:r}),n.some(function(t){return A(t,e)})&&this.props.onChange(r))}},t.prototype.onChange=function(e){var t=this.props;!("value"in t)?this.setState(e):void 0!==e.handle&&this.setState({handle:e.handle});var n=o()({},this.state,e).bounds;t.onChange(n)},t.prototype.onStart=function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o),a=this.getBoundNeedMoving(o,i);if(this.setState({handle:a,recent:a}),o!==r[a]){var u=[].concat(n.bounds);u[a]=o,this.onChange({bounds:u})}},t.prototype.onMove=function(e,t){V(e);var n=this.props,r=this.state,o=this.calcValueByPos(t);if(o!==r.bounds[r.handle]){var i=[].concat(r.bounds);i[r.handle]=o;var a=r.handle;if(!1!==n.pushable){var u=r.bounds[a];this.pushSurroundingHandles(i,a,u)}else n.allowCross&&(i.sort(function(e,t){return e-t}),a=i.indexOf(o));this.onChange({handle:a,bounds:i})}},t.prototype.onKeyboard=function(){m()(!0,"Keyboard support is not yet supported for ranges.")},t.prototype.getValue=function(){return this.state.bounds},t.prototype.getClosestBound=function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;++r)e>t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n},t.prototype.getBoundNeedMoving=function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i},t.prototype.getLowerBound=function(){return this.state.bounds[0]},t.prototype.getUpperBound=function(){var e=this.state.bounds;return e[e.length-1]},t.prototype.getPoints=function(){var e=this.props,t=e.marks,n=e.step,r=e.min,i=e.max,a=this._getPointsCache;if(!a||a.marks!==t||a.step!==n){var u=o()({},t);if(null!==n)for(var l=r;l<=i;l+=n)u[l]=l;var s=Object.keys(u).map(parseFloat);s.sort(function(e,t){return e-t}),this._getPointsCache={marks:t,step:n,points:s}}return this._getPointsCache.points},t.prototype.pushSurroundingHandles=function(e,t,n){var r=this.props.pushable,o=e[t],i=0;if(e[t+1]-o<r&&(i=1),o-e[t-1]<r&&(i=-1),0!==i){var a=t+i,u=i*(e[a]-o);this.pushHandle(e,a,i,r-u)||(e[t]=n)}},t.prototype.pushHandle=function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0},t.prototype.pushHandleOnePoint=function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],u=this.props.pushable,l=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-l)&&(e[t]=a,!0)},t.prototype.trimAlignValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o()({},this.props,t),r=U(e,n);return H(this.ensureValueNotConflict(r,n),n)},t.prototype.ensureValueNotConflict=function(e,t){var n=t.allowCross,r=this.state||{},o=r.handle,i=r.bounds;if(!n&&null!=o){if(o>0&&e<=i[o-1])return i[o-1];if(o<i.length-1&&e>=i[o+1])return i[o+1]}return e},t.prototype.render=function(){var e=this,t=this.state,n=t.handle,r=t.bounds,o=this.props,i=o.prefixCls,a=o.vertical,u=o.included,l=o.disabled,s=o.min,c=o.max,f=o.handle,p=o.trackStyle,h=o.handleStyle,v=r.map(function(t){return e.calcOffset(t)}),m=i+"-handle",g=r.map(function(t,r){var o;return f({className:S()((o={},o[m]=!0,o[m+"-"+(r+1)]=!0,o)),vertical:a,offset:v[r],value:t,dragging:n===r,index:r,min:s,max:c,disabled:l,style:h[r],ref:function(t){return e.saveHandle(r,t)}})});return{tracks:r.slice(0,-1).map(function(e,t){var n,r=t+1,o=S()(((n={})[i+"-track"]=!0,n[i+"-track-"+r]=!0,n));return d.a.createElement(y,{className:o,vertical:a,included:u,offset:v[r-1],length:v[r]-v[r-1],style:p[t],key:r})}),handles:g}},t}(d.a.Component);$.displayName="Range",$.propTypes={defaultValue:h.a.arrayOf(h.a.number),value:h.a.arrayOf(h.a.number),count:h.a.number,pushable:h.a.oneOfType([h.a.bool,h.a.number]),allowCross:h.a.bool,disabled:h.a.bool},$.defaultProps={count:1,allowCross:!0,pushable:!1};var Y=B($),X=n(214),Q=n.n(X);function Z(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var J=void 0,ee={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function te(){if(void 0!==J)return J;J="";var e=document.createElement("p").style;for(var t in ee)t+"Transform"in e&&(J=t);return J}function ne(){return te()?te()+"TransitionProperty":"transitionProperty"}function re(){return te()?te()+"Transform":"transform"}function oe(e,t){var n=ne();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function ie(e,t){var n=re();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var ae=/matrix\((.*)\)/,ue=/matrix3d\((.*)\)/;var le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se=void 0;function ce(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function fe(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":le(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):se(e,t);for(var o in t)t.hasOwnProperty(o)&&fe(e,o,t[o])}function de(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function pe(e){return de(e)}function he(e){return de(e,!0)}function ve(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=pe(r),t.top+=he(r),t}function me(e){return null!==e&&void 0!==e&&e==e.window}function ye(e){return me(e)?e.document:9===e.nodeType?e:e.ownerDocument}var ge=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),be=/^(top|right|bottom|left)$/,we="currentStyle",Ce="runtimeStyle",_e="left",Ee="px";function Oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Te(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Se(e,t,n){"static"===fe(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=Oe("left",n),a=Oe("top",n),u=Te(i),l=Te(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,c="",f=ve(e);("left"in t||"top"in t)&&(c=(s=e).style.transitionProperty||s.style[ne()]||"",oe(e,"none")),"left"in t&&(e.style[u]="",e.style[i]=r+"px"),"top"in t&&(e.style[l]="",e.style[a]=o+"px"),ce(e);var d=ve(e),p={};for(var h in t)if(t.hasOwnProperty(h)){var v=Oe(h,n),m="left"===h?r:o,y=f[h]-d[h];p[v]=v===h?m+y:m-y}fe(e,p),ce(e),("left"in t||"top"in t)&&oe(e,c);var g={};for(var b in t)if(t.hasOwnProperty(b)){var w=Oe(b,n),C=t[b]-f[b];g[w]=b===w?p[w]+C:p[w]-C}fe(e,g)}function Pe(e,t){var n=ve(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(re());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(re());if(r&&"none"!==r){var o=void 0,i=r.match(ae);i?((o=(i=i[1]).split(",").map(function(e){return parseFloat(e,10)}))[4]=t.x,o[5]=t.y,ie(e,"matrix("+o.join(",")+")")):((o=r.match(ue)[1].split(",").map(function(e){return parseFloat(e,10)}))[12]=t.x,o[13]=t.y,ie(e,"matrix3d("+o.join(",")+")"))}else ie(e,"translateX("+t.x+"px) translateY("+t.y+"px) translateZ(0)")}(e,o)}function xe(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Ne(e){return"border-box"===se(e,"boxSizing")}"undefined"!=typeof window&&(se=window.getComputedStyle?function(e,t,n){var r=n,o="",i=ye(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[we]&&e[we][t];if(ge.test(n)&&!be.test(t)){var r=e.style,o=r[_e],i=e[Ce][_e];e[Ce][_e]=e[we][_e],r[_e]="fontSize"===t?"1em":n||0,n=r.pixelLeft+Ee,r[_e]=o,e[Ce][_e]=i}return""===n?"auto":n});var ke=["margin","border","padding"],Re=-1,Me=2,je=1;function Ae(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var u=void 0;u="border"===o?""+o+n[a]+"Width":o+n[a],r+=parseFloat(se(e,u))||0}return r}var Ie={};function Le(e,t,n){var r=n;if(me(e))return"width"===t?Ie.viewportWidth(e):Ie.viewportHeight(e);if(9===e.nodeType)return"width"===t?Ie.docWidth(e):Ie.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=(se(e),Ne(e)),u=0;(null===i||void 0===i||i<=0)&&(i=void 0,(null===(u=se(e,t))||void 0===u||Number(u)<0)&&(u=e.style[t]||0),u=parseFloat(u)||0),void 0===r&&(r=a?je:Re);var l=void 0!==i||a,s=i||u;return r===Re?l?s-Ae(e,["border","padding"],o):u:l?r===je?s:s+(r===Me?-Ae(e,["border"],o):Ae(e,["margin"],o)):u+Ae(e,ke.slice(r),o)}xe(["Width","Height"],function(e){Ie["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],Ie["viewport"+e](n))},Ie["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}});var De={position:"absolute",visibility:"hidden",display:"block"};function Fe(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0,o=t[0];return 0!==o.offsetWidth?r=Le.apply(void 0,t):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(o,De,function(){r=Le.apply(void 0,t)}),r}function Ue(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}xe(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Ie["outer"+t]=function(t,n){return t&&Fe(t,e,n?0:je)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Ie[e]=function(t,r){var o=r;if(void 0===o)return t&&Fe(t,e,Re);if(t){se(t);return Ne(t)&&(o+=Ae(t,["padding","border"],n)),fe(t,e,o)}}});var He={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:ye,offset:function(e,t,n){if(void 0===t)return ve(e);!function(e,t,n){n.useCssRight||n.useCssBottom?Se(e,t,n):n.useCssTransform&&re()in document.body.style?Pe(e,t):Se(e,t,n)}(e,t,n||{})},isWindow:me,each:xe,css:fe,clone:function(e){var t=void 0,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Ue,getWindowScrollLeft:function(e){return pe(e)},getWindowScrollTop:function(e){return he(e)},merge:function(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0;o<n.length;o++)He.mix(e,n[o]);return e},viewportWidth:0,viewportHeight:0};Ue(He,Ie);var Ve=He;var We=function(e){if(Ve.isWindow(e)||9===e.nodeType)return null;var t=Ve.getDocument(e).body,n=void 0,r=Ve.css(e,"position");if("fixed"!==r&&"absolute"!==r)return"html"===e.nodeName.toLowerCase()?null:e.parentNode;for(n=e.parentNode;n&&n!==t;n=n.parentNode)if("static"!==(r=Ve.css(n,"position")))return n;return null};var Be=function(e){for(var t={left:0,right:1/0,top:0,bottom:1/0},n=We(e),r=Ve.getDocument(e),o=r.defaultView||r.parentWindow,i=r.body,a=r.documentElement;n;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===n.clientWidth||n===i||n===a||"visible"===Ve.css(n,"overflow")){if(n===i||n===a)break}else{var u=Ve.offset(n);u.left+=n.clientLeft,u.top+=n.clientTop,t.top=Math.max(t.top,u.top),t.right=Math.min(t.right,u.left+n.clientWidth),t.bottom=Math.min(t.bottom,u.top+n.clientHeight),t.left=Math.max(t.left,u.left)}n=We(n)}var l=null;Ve.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===Ve.css(e,"position")&&(e.style.position="fixed"));var s=Ve.getWindowScrollLeft(o),c=Ve.getWindowScrollTop(o),f=Ve.viewportWidth(o),d=Ve.viewportHeight(o),p=a.scrollWidth,h=a.scrollHeight;if(e.style&&(e.style.position=l),function(e){if(Ve.isWindow(e)||9===e.nodeType)return!1;var t=Ve.getDocument(e).body,n=null;for(n=e.parentNode;n&&n!==t;n=n.parentNode)if("fixed"===Ve.css(n,"position"))return!0;return!1}(e))t.left=Math.max(t.left,s),t.top=Math.max(t.top,c),t.right=Math.min(t.right,s+f),t.bottom=Math.min(t.bottom,c+d);else{var v=Math.max(p,s+f);t.right=Math.min(t.right,v);var m=Math.max(h,c+d);t.bottom=Math.min(t.bottom,m)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null};var ze=function(e,t,n,r){var o=Ve.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),Ve.mix(o,i)};var Ge=function(e){var t=void 0,n=void 0,r=void 0;if(Ve.isWindow(e)||9===e.nodeType){var o=Ve.getWindow(e);t={left:Ve.getWindowScrollLeft(o),top:Ve.getWindowScrollTop(o)},n=Ve.viewportWidth(o),r=Ve.viewportHeight(o)}else t=Ve.offset(e),n=Ve.outerWidth(e),r=Ve.outerHeight(e);return t.width=n,t.height=r,t};var qe=function(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}};var Ke=function(e,t,n,r,o){var i=qe(t,n[1]),a=qe(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:e.left-u[0]+r[0]-o[0],top:e.top-u[1]+r[1]-o[1]}};function $e(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ye(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Xe(e,t,n){var r=[];return Ve.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function Qe(e,t){return e[t]=-e[t],e}function Ze(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Je(e,t){e[0]=Ze(e[0],t.width),e[1]=Ze(e[1],t.height)}function et(e,t,n){var r=n.points,o=n.offset||[0,0],i=n.targetOffset||[0,0],a=n.overflow,u=n.target||t,l=n.source||e;o=[].concat(o),i=[].concat(i),a=a||{};var s={},c=0,f=Be(l),d=Ge(l),p=Ge(u);Je(o,d),Je(i,p);var h=Ke(d,p,r,o,i),v=Ve.merge(d,h),m=!function(e){var t=Be(e),n=Ge(e);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}(u);if(f&&(a.adjustX||a.adjustY)&&m){if(a.adjustX&&$e(h,d,f)){var y=Xe(r,/[lr]/gi,{l:"r",r:"l"}),g=Qe(o,0),b=Qe(i,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Ke(d,p,y,g,b),d,f)||(c=1,r=y,o=g,i=b)}if(a.adjustY&&Ye(h,d,f)){var w=Xe(r,/[tb]/gi,{t:"b",b:"t"}),C=Qe(o,1),_=Qe(i,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Ke(d,p,w,C,_),d,f)||(c=1,r=w,o=C,i=_)}c&&(h=Ke(d,p,r,o,i),Ve.mix(v,h)),s.adjustX=a.adjustX&&$e(h,d,f),s.adjustY=a.adjustY&&Ye(h,d,f),(s.adjustX||s.adjustY)&&(v=ze(h,d,f,s))}return v.width!==d.width&&Ve.css(l,"width",Ve.width(l)+v.width-d.width),v.height!==d.height&&Ve.css(l,"height",Ve.height(l)+v.height-d.height),Ve.offset(l,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform}),{points:r,offset:o,targetOffset:i,overflow:s}}et.__getOffsetParent=We,et.__getVisibleRectForElement=Be;var tt=et;function nt(e){return null!=e&&e==e.window}var rt=function(e){function t(){var n,r,o;a()(this,t);for(var i=arguments.length,u=Array(i),s=0;s<i;s++)u[s]=arguments[s];return n=r=l()(this,e.call.apply(e,[this].concat(u))),r.forceAlign=function(){var e=r.props;if(!e.disabled){var t=E.a.findDOMNode(r);e.onAlign(t,tt(t,e.target(),e.align))}},o=n,l()(r,o)}return c()(t,e),t.prototype.componentDidMount=function(){var e=this.props;this.forceAlign(),!e.disabled&&e.monitorWindowResize&&this.startMonitorWindowResize()},t.prototype.componentDidUpdate=function(e){var t=!1,n=this.props;if(!n.disabled)if(e.disabled||e.align!==n.align)t=!0;else{var r=e.target(),o=n.target();nt(r)&&nt(o)?t=!1:r!==o&&(t=!0)}t&&this.forceAlign(),n.monitorWindowResize&&!n.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()},t.prototype.componentWillUnmount=function(){this.stopMonitorWindowResize()},t.prototype.startMonitorWindowResize=function(){this.resizeHandler||(this.bufferMonitor=function(e,t){var n=void 0;function r(){n&&(clearTimeout(n),n=null)}function o(){r(),n=setTimeout(e,t)}return o.clear=r,o}(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=O(window,"resize",this.bufferMonitor))},t.prototype.stopMonitorWindowResize=function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)},t.prototype.render=function(){var e=this.props,t=e.childrenProps,n=e.children,r=d.a.Children.only(n);if(t){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=this.props[t[i]]);return d.a.cloneElement(r,o)}return r},t}(f.Component);rt.propTypes={childrenProps:h.a.object,align:h.a.object.isRequired,target:h.a.func,onAlign:h.a.func,monitorBufferTime:h.a.number,monitorWindowResize:h.a.bool,disabled:h.a.bool,children:h.a.any},rt.defaultProps={target:function(){return window},onAlign:function(){},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1};var ot=rt,it=n(213),at=n.n(it),ut=n(75),lt=n.n(ut);function st(e){var t=[];return d.a.Children.forEach(e,function(e){t.push(e)}),t}function ct(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function ft(e,t,n){var r=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}}),r}var dt=n(73),pt=n.n(dt),ht={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},vt=[];"undefined"!=typeof window&&"undefined"!=typeof document&&function(){var e=document.createElement("div").style;for(var t in"AnimationEvent"in window||delete ht.animationend.animation,"TransitionEvent"in window||delete ht.transitionend.transition,ht)if(ht.hasOwnProperty(t)){var n=ht[t];for(var r in n)if(r in e){vt.push(n[r]);break}}}();var mt={addEndEventListener:function(e,t){0!==vt.length?vt.forEach(function(n){!function(e,t,n){e.addEventListener(t,n,!1)}(e,n,t)}):window.setTimeout(t,0)},endEvents:vt,removeEndEventListener:function(e,t){0!==vt.length&&vt.forEach(function(n){!function(e,t,n){e.removeEventListener(t,n,!1)}(e,n,t)})}},yt=n(212),gt=n.n(yt),bt=0!==mt.endEvents.length,wt=["Webkit","Moz","O","ms"],Ct=["-webkit-","-moz-","-o-","ms-",""];function _t(e,t){for(var n=window.getComputedStyle(e,null),r="",o=0;o<Ct.length&&!(r=n.getPropertyValue(Ct[o]+t));o++);return r}function Et(e){if(bt){var t=parseFloat(_t(e,"transition-delay"))||0,n=parseFloat(_t(e,"transition-duration"))||0,r=parseFloat(_t(e,"animation-delay"))||0,o=parseFloat(_t(e,"animation-duration"))||0,i=Math.max(n+t,o+r);e.rcEndAnimTimeout=setTimeout(function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()},1e3*i+200)}}function Ot(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}var Tt=function(e,t,n){var r="object"===(void 0===t?"undefined":pt()(t)),o=r?t.name:t,i=r?t.active:t+"-active",a=n,u=void 0,l=void 0,s=gt()(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(a=n.end,u=n.start,l=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),Ot(e),s.remove(o),s.remove(i),mt.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,a&&a())},mt.addEndEventListener(e,e.rcEndListener),u&&u(),s.add(o),e.rcAnimTimeout=setTimeout(function(){e.rcAnimTimeout=null,s.add(i),l&&setTimeout(l,0),Et(e)},30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};Tt.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),Ot(e),mt.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},mt.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout(function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,Et(e)},0)},Tt.setTransition=function(e,t,n){var r=t,o=n;void 0===n&&(o=r,r=""),r=r||"",wt.forEach(function(t){e.style[t+"Transition"+r]=o})},Tt.isCssAnimationSupported=bt;var St=Tt,Pt={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}},xt={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},Nt=function(e){function t(){return a()(this,t),l()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c()(t,e),lt()(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){Pt.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){Pt.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){Pt.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=E.a.findDOMNode(this),o=this.props,i=o.transitionName,a="object"===(void 0===i?"undefined":pt()(i));this.stop();var u=function(){n.stopper=null,t()};if((bt||!o.animation[e])&&i&&o[xt[e]]){var l=a?i[e]:i+"-"+e,s=l+"-active";a&&i[e+"Active"]&&(s=i[e+"Active"]),this.stopper=St(r,{name:l,active:s},u)}else this.stopper=o.animation[e](r,u)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(d.a.Component);Nt.propTypes={children:h.a.any};var kt=Nt,Rt="rc_animate_"+Date.now();function Mt(e){var t=e.children;return d.a.isValidElement(t)&&!t.key?d.a.cloneElement(t,{key:Rt}):t}function jt(){}var At=function(e){function t(e){a()(this,t);var n=l()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return It.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:st(Mt(n.props))},n.childrenRefs={},n}return c()(t,e),lt()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=st(Mt(e)),r=this.props;r.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var o,i,a,u,l=r.showProp,s=this.currentlyAnimatingKeys,c=r.exclusive?st(Mt(r)):this.state.children,f=[];l?(c.forEach(function(e){var t=e&&ct(n,e.key),r=void 0;(r=t&&t.props[l]||!e.props[l]?t:d.a.cloneElement(t||e,at()({},l,!0)))&&f.push(r)}),n.forEach(function(e){e&&ct(c,e.key)||f.push(e)})):(o=n,i=[],a={},u=[],c.forEach(function(e){e&&ct(o,e.key)?u.length&&(a[e.key]=u,u=[]):u.push(e)}),o.forEach(function(e){e&&a.hasOwnProperty(e.key)&&(i=i.concat(a[e.key])),i.push(e)}),f=i=i.concat(u)),this.setState({children:f}),n.forEach(function(e){var n=e&&e.key;if(!e||!s[n]){var r=e&&ct(c,n);if(l){var o=e.props[l];if(r)!ft(c,n,l)&&o&&t.keysToEnter.push(n);else o&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}}),c.forEach(function(e){var r=e&&e.key;if(!e||!s[r]){var o=e&&ct(n,r);if(l){var i=e.props[l];if(o)!ft(n,r,l)&&i&&t.keysToLeave.push(r);else i&&t.keysToLeave.push(r)}else o||t.keysToLeave.push(r)}})}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?ft(e,t,n):ct(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map(function(n){if(null===n||void 0===n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return d.a.createElement(kt,{key:n.key,ref:function(t){return e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var i=t.component;if(i){var a=t;return"string"==typeof i&&(a=o()({className:t.className,style:t.style},t.componentProps)),d.a.createElement(i,a,r)}return r[0]||null}}]),t}(d.a.Component);At.propTypes={component:h.a.any,componentProps:h.a.object,animation:h.a.object,transitionName:h.a.oneOfType([h.a.string,h.a.object]),transitionEnter:h.a.bool,transitionAppear:h.a.bool,exclusive:h.a.bool,transitionLeave:h.a.bool,onEnd:h.a.func,onEnter:h.a.func,onLeave:h.a.func,onAppear:h.a.func,showProp:h.a.string},At.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:jt,onEnter:jt,onLeave:jt,onAppear:jt};var It=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var o=st(Mt(r));e.isValidChildByKey(o,t)?"appear"===n?Pt.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):Pt.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r,o,i,a,u=st(Mt(n));if(e.isValidChildByKey(u,t))e.performEnter(t);else{var l=function(){Pt.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};r=e.state.children,o=u,i=n.showProp,(a=r.length===o.length)&&r.forEach(function(e,t){var n=o[t];e&&n&&(e&&!n||!e&&n?a=!1:e.key!==n.key?a=!1:i&&e.props[i]!==n.props[i]&&(a=!1))}),a?l():e.setState({children:u},l)}}}},Lt=At,Dt=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e){return e.hiddenClassName||e.visible},t.prototype.render=function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=b()(e,["hiddenClassName","visible"]);return t||d.a.Children.count(r.children)>1?(!n&&t&&(r.className+=" "+t),d.a.createElement("div",r)):d.a.Children.only(r.children)},t}(f.Component);Dt.propTypes={children:h.a.any,className:h.a.string,visible:h.a.bool,hiddenClassName:h.a.string};var Ft=Dt,Ut=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),d.a.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,style:e.style},d.a.createElement(Ft,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(f.Component);Ut.propTypes={hiddenClassName:h.a.string,className:h.a.string,prefixCls:h.a.string,onMouseEnter:h.a.func,onMouseLeave:h.a.func,children:h.a.any};var Ht=Ut;function Vt(e,t){this[e]=t}var Wt=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return Bt.call(r),r.savePopupRef=Vt.bind(r,"popupInstance"),r.saveAlignRef=Vt.bind(r,"alignInstance"),r}return c()(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode()},t.prototype.getPopupDomNode=function(){return E.a.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this.savePopupRef,t=this.props,n=t.align,r=t.style,i=t.visible,a=t.prefixCls,u=t.destroyPopupOnHide,l=this.getClassName(this.currentAlignClassName||t.getClassNameFromAlign(n)),s=a+"-hidden";i||(this.currentAlignClassName=null);var c=o()({},r,this.getZIndexStyle()),f={className:l,prefixCls:a,ref:e,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,style:c};return u?d.a.createElement(Lt,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},i?d.a.createElement(ot,{target:this.getTarget,key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:n,onAlign:this.onAlign},d.a.createElement(Ht,o()({visible:!0},f),t.children)):null):d.a.createElement(Lt,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},d.a.createElement(ot,{target:this.getTarget,key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:i,childrenProps:{visible:"xVisible"},disabled:!i,align:n,onAlign:this.onAlign},d.a.createElement(Ht,o()({hiddenClassName:s},f),t.children)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=d.a.createElement(Ft,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=d.a.createElement(Lt,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return d.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(f.Component);Wt.propTypes={visible:h.a.bool,style:h.a.object,getClassNameFromAlign:h.a.func,onAlign:h.a.func,getRootDomNode:h.a.func,onMouseEnter:h.a.func,align:h.a.any,destroyPopupOnHide:h.a.bool,className:h.a.string,prefixCls:h.a.string,onMouseLeave:h.a.func};var Bt=function(){var e=this;this.onAlign=function(t,n){var r=e.props,o=r.getClassNameFromAlign(n);e.currentAlignClassName!==o&&(e.currentAlignClassName=o,t.className=e.getClassName(o)),r.onAlign(t,n)},this.getTarget=function(){return e.props.getRootDomNode()}},zt=Wt;function Gt(){var e=document.createElement("div");return document.body.appendChild(e),e}var qt=function(e){function t(){return a()(this,t),l()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c()(t,e),lt()(t,[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?E.a.createPortal(this.props.children,this._container):null}}]),t}(d.a.Component);qt.propTypes={getContainer:h.a.func.isRequired,children:h.a.node.isRequired,didUpdate:h.a.func};var Kt=qt;function $t(){}function Yt(){return""}function Xt(){return window.document}var Qt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],Zt=!!_.createPortal,Jt=[];Zt||Jt.push(function(e){var t=e.autoMount,n=void 0===t||t,r=e.autoDestroy,i=void 0===r||r,a=e.isVisible,u=e.isForceRender,l=e.getComponent,s=e.getContainer,c=void 0===s?Gt:s,f=void 0;function d(e,t,n){if(!a||e._component||a(e)||u&&u(e)){e._container||(e._container=c(e));var r=void 0;r=e.getComponent?e.getComponent(t):l(e,t),E.a.unstable_renderSubtreeIntoContainer(e,r,e._container,function(){e._component=this,n&&n.call(this)})}}function p(e){if(e._container){var t=e._container;E.a.unmountComponentAtNode(t),t.parentNode.removeChild(t),e._container=null}}return n&&(f=o()({},f,{componentDidMount:function(){d(this)},componentDidUpdate:function(){d(this)}})),n&&i||(f=o()({},f,{renderComponent:function(e,t){d(this,e,t)}})),f=i?o()({},f,{componentWillUnmount:function(){p(this)}}):o()({},f,{removeContainer:function(){p(this)}})}({autoMount:!1,isVisible:function(e){return e.state.popupVisible},isForceRender:function(e){return e.props.forceRender},getContainer:function(e){return e.getContainer()}}));var en=Q()({displayName:"Trigger",propTypes:{children:h.a.any,action:h.a.oneOfType([h.a.string,h.a.arrayOf(h.a.string)]),showAction:h.a.any,hideAction:h.a.any,getPopupClassNameFromAlign:h.a.any,onPopupVisibleChange:h.a.func,afterPopupVisibleChange:h.a.func,popup:h.a.oneOfType([h.a.node,h.a.func]).isRequired,popupStyle:h.a.object,prefixCls:h.a.string,popupClassName:h.a.string,popupPlacement:h.a.string,builtinPlacements:h.a.object,popupTransitionName:h.a.oneOfType([h.a.string,h.a.object]),popupAnimation:h.a.any,mouseEnterDelay:h.a.number,mouseLeaveDelay:h.a.number,zIndex:h.a.number,focusDelay:h.a.number,blurDelay:h.a.number,getPopupContainer:h.a.func,getDocument:h.a.func,forceRender:h.a.bool,destroyPopupOnHide:h.a.bool,mask:h.a.bool,maskClosable:h.a.bool,onPopupAlign:h.a.func,popupAlign:h.a.object,popupVisible:h.a.bool,maskTransitionName:h.a.oneOfType([h.a.string,h.a.object]),maskAnimation:h.a.string},mixins:Jt,getDefaultProps:function(){return{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Yt,getDocument:Xt,onPopupVisibleChange:$t,afterPopupVisibleChange:$t,onPopupAlign:$t,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]}},getInitialState:function(){var e=this.props,t=void 0;return t="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,this.prevPopupVisible=t,{popupVisible:t}},componentWillMount:function(){var e=this;Qt.forEach(function(t){e["fire"+t]=function(n){e.fireEvents(t,n)}})},componentDidMount:function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},componentWillReceiveProps:function(e){var t=e.popupVisible;void 0!==t&&this.setState({popupVisible:t})},componentDidUpdate:function(e,t){var n=this.props,r=this.state;if(Zt||this.renderComponent(null,function(){t.popupVisible!==r.popupVisible&&n.afterPopupVisibleChange(r.popupVisible)}),this.prevPopupVisible=t.popupVisible,r.popupVisible){var o=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(o=n.getDocument(),this.clickOutsideHandler=O(o,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(o=o||n.getDocument(),this.touchOutsideHandler=O(o,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(o=o||n.getDocument(),this.contextMenuOutsideHandler1=O(o,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=O(window,"blur",this.onContextMenuClose)))}this.clearOutsideHandler()},componentWillUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler()},onMouseEnter:function(e){this.fireEvents("onMouseEnter",e),this.delaySetPopupVisible(!0,this.props.mouseEnterDelay)},onMouseLeave:function(e){this.fireEvents("onMouseLeave",e),this.delaySetPopupVisible(!1,this.props.mouseLeaveDelay)},onPopupMouseEnter:function(){this.clearDelayTimer()},onPopupMouseLeave:function(e){e.relatedTarget&&!e.relatedTarget.setTimeout&&this._component&&this._component.getPopupDomNode&&Z(this._component.getPopupDomNode(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.props.focusDelay))},onMouseDown:function(e){this.fireEvents("onMouseDown",e),this.preClickTime=Date.now()},onTouchStart:function(e){this.fireEvents("onTouchStart",e),this.preTouchTime=Date.now()},onBlur:function(e){this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.props.blurDelay)},onContextMenu:function(e){e.preventDefault(),this.fireEvents("onContextMenu",e),this.setPopupVisible(!0)},onContextMenuClose:function(){this.isContextMenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t=void 0;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,e.preventDefault();var n=!this.state.popupVisible;(this.isClickToHide()&&!n||n&&this.isClickToShow())&&this.setPopupVisible(!this.state.popupVisible)},onDocumentClick:function(e){if(!this.props.mask||this.props.maskClosable){var t=e.target,n=Object(_.findDOMNode)(this),r=this.getPopupDomNode();Z(n,t)||Z(r,t)||this.close()}},handlePortalUpdate:function(){this.prevPopupVisible!==this.state.popupVisible&&this.props.afterPopupVisibleChange(this.state.popupVisible)},getPopupDomNode:function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},getRootDomNode:function(){return Object(_.findDOMNode)(this)},getPopupClassNameFromAlign:function(e){var t=[],n=this.props,r=n.popupPlacement,o=n.builtinPlacements,i=n.prefixCls;return r&&o&&t.push(function(e,t,n){var r,o,i=n.points;for(var a in e)if(e.hasOwnProperty(a)&&(r=e[a].points,o=i,r[0]===o[0]&&r[1]===o[1]))return t+"-placement-"+a;return""}(o,i,e)),n.getPopupClassNameFromAlign&&t.push(n.getPopupClassNameFromAlign(e)),t.join(" ")},getPopupAlign:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return o()({},r,n)}(r,t,n):n},getComponent:function(){var e=this.props,t=this.state,n={};return this.isMouseEnterToShow()&&(n.onMouseEnter=this.onPopupMouseEnter),this.isMouseLeaveToHide()&&(n.onMouseLeave=this.onPopupMouseLeave),d.a.createElement(zt,o()({prefixCls:e.prefixCls,destroyPopupOnHide:e.destroyPopupOnHide,visible:t.popupVisible,className:e.popupClassName,action:e.action,align:this.getPopupAlign(),onAlign:e.onPopupAlign,animation:e.popupAnimation,getClassNameFromAlign:this.getPopupClassNameFromAlign},n,{getRootDomNode:this.getRootDomNode,style:e.popupStyle,mask:e.mask,zIndex:e.zIndex,transitionName:e.popupTransitionName,maskAnimation:e.maskAnimation,maskTransitionName:e.maskTransitionName,ref:this.savePopup}),"function"==typeof e.popup?e.popup():e.popup)},getContainer:function(){var e=this.props,t=document.createElement("div");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",(e.getPopupContainer?e.getPopupContainer(Object(_.findDOMNode)(this)):e.getDocument().body).appendChild(t),t},setPopupVisible:function(e){this.clearDelayTimer(),this.state.popupVisible!==e&&("popupVisible"in this.props||this.setState({popupVisible:e}),this.props.onPopupVisibleChange(e))},delaySetPopupVisible:function(e,t){var n=this,r=1e3*t;this.clearDelayTimer(),r?this.delayTimer=setTimeout(function(){n.setPopupVisible(e),n.clearDelayTimer()},r):this.setPopupVisible(e)},clearDelayTimer:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},isClickToShow:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isContextMenuToShow:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")},isClickToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isMouseEnterToShow:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")},isMouseLeaveToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")},isFocusToShow:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},isBlurToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},forcePopupAlign:function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},fireEvents:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)},close:function(){this.setPopupVisible(!1)},savePopup:function(e){Zt&&(this._component=e)},render:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=d.a.Children.only(n),o={key:"trigger"};this.isContextMenuToShow()?o.onContextMenu=this.onContextMenu:o.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMouseDown=this.onMouseDown,o.onTouchStart=this.onTouchStart):(o.onClick=this.createTwoChains("onClick"),o.onMouseDown=this.createTwoChains("onMouseDown"),o.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?o.onMouseEnter=this.onMouseEnter:o.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?o.onMouseLeave=this.onMouseLeave:o.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=this.createTwoChains("onBlur"));var i=d.a.cloneElement(r,o);if(!Zt)return i;var a=void 0;return(e||this._component||t.forceRender)&&(a=d.a.createElement(Kt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[i,a]}}),tn={adjustX:1,adjustY:1},nn=[0,0],rn={left:{points:["cr","cl"],overflow:tn,offset:[-4,0],targetOffset:nn},right:{points:["cl","cr"],overflow:tn,offset:[4,0],targetOffset:nn},top:{points:["bc","tc"],overflow:tn,offset:[0,-4],targetOffset:nn},bottom:{points:["tc","bc"],overflow:tn,offset:[0,4],targetOffset:nn},topLeft:{points:["bl","tl"],overflow:tn,offset:[0,-4],targetOffset:nn},leftTop:{points:["tr","tl"],overflow:tn,offset:[-4,0],targetOffset:nn},topRight:{points:["br","tr"],overflow:tn,offset:[0,-4],targetOffset:nn},rightTop:{points:["tl","tr"],overflow:tn,offset:[4,0],targetOffset:nn},bottomRight:{points:["tr","br"],overflow:tn,offset:[0,4],targetOffset:nn},rightBottom:{points:["bl","br"],overflow:tn,offset:[4,0],targetOffset:nn},bottomLeft:{points:["tl","bl"],overflow:tn,offset:[0,4],targetOffset:nn},leftBottom:{points:["br","bl"],overflow:tn,offset:[-4,0],targetOffset:nn}},on=function(e){function t(){var n,r,o;a()(this,t);for(var i=arguments.length,u=Array(i),s=0;s<i;s++)u[s]=arguments[s];return n=r=l()(this,e.call.apply(e,[this].concat(u))),r.getPopupElement=function(){var e=r.props,t=e.arrowContent,n=e.overlay,o=e.prefixCls,i=e.id;return[d.a.createElement("div",{className:o+"-arrow",key:"arrow"},t),d.a.createElement("div",{className:o+"-inner",key:"content",id:i},"function"==typeof n?n():n)]},r.saveTrigger=function(e){r.trigger=e},o=n,l()(r,o)}return c()(t,e),t.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},t.prototype.render=function(){var e=this.props,t=e.overlayClassName,n=e.trigger,r=e.mouseEnterDelay,i=e.mouseLeaveDelay,a=e.overlayStyle,u=e.prefixCls,l=e.children,s=e.onVisibleChange,c=e.afterVisibleChange,f=e.transitionName,p=e.animation,h=e.placement,v=e.align,m=e.destroyTooltipOnHide,y=e.defaultVisible,g=e.getTooltipContainer,w=b()(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),C=o()({},w);return"visible"in this.props&&(C.popupVisible=this.props.visible),d.a.createElement(en,o()({popupClassName:t,ref:this.saveTrigger,prefixCls:u,popup:this.getPopupElement,action:n,builtinPlacements:rn,popupPlacement:h,popupAlign:v,getPopupContainer:g,onPopupVisibleChange:s,afterPopupVisibleChange:c,popupTransitionName:f,popupAnimation:p,defaultPopupVisible:y,destroyPopupOnHide:m,mouseLeaveDelay:i,popupStyle:a,mouseEnterDelay:r},C),l)},t}(f.Component);on.propTypes={trigger:h.a.any,children:h.a.any,defaultVisible:h.a.bool,visible:h.a.bool,placement:h.a.string,transitionName:h.a.oneOfType([h.a.string,h.a.object]),animation:h.a.any,onVisibleChange:h.a.func,afterVisibleChange:h.a.func,overlay:h.a.oneOfType([h.a.node,h.a.func]).isRequired,overlayStyle:h.a.object,overlayClassName:h.a.string,prefixCls:h.a.string,mouseEnterDelay:h.a.number,mouseLeaveDelay:h.a.number,getTooltipContainer:h.a.func,destroyTooltipOnHide:h.a.bool,align:h.a.object,arrowContent:h.a.any,id:h.a.string},on.defaultProps={prefixCls:"rc-tooltip",mouseEnterDelay:0,destroyTooltipOnHide:!1,mouseLeaveDelay:.1,align:{},placement:"right",trigger:["hover"],arrowContent:null};var an=on;function un(e){var t,n;return n=t=function(t){function n(e){a()(this,n);var r=l()(this,t.call(this,e));return r.handleTooltipVisibleChange=function(e,t){r.setState(function(n){var r;return{visibles:o()({},n.visibles,(r={},r[e]=t,r))}})},r.handleWithTooltip=function(e){var t=e.value,n=e.dragging,i=e.index,a=e.disabled,u=b()(e,["value","dragging","index","disabled"]),l=r.props,s=l.tipFormatter,c=l.tipProps,f=l.handleStyle,p=c.prefixCls,h=void 0===p?"rc-slider-tooltip":p,v=c.overlay,m=void 0===v?s(t):v,y=c.placement,g=void 0===y?"top":y,w=b()(c,["prefixCls","overlay","placement"]);return d.a.createElement(an,o()({},w,{prefixCls:h,overlay:m,placement:g,visible:!a&&(r.state.visibles[i]||n),key:i}),d.a.createElement(k,o()({},u,{style:o()({},f[0]),value:t,onMouseEnter:function(){return r.handleTooltipVisibleChange(i,!0)},onMouseLeave:function(){return r.handleTooltipVisibleChange(i,!1)}})))},r.state={visibles:{}},r}return c()(n,t),n.prototype.render=function(){return d.a.createElement(e,o()({},this.props,{handle:this.handleWithTooltip}))},n}(d.a.Component),t.propTypes={tipFormatter:h.a.func,handleStyle:h.a.arrayOf(h.a.object),tipProps:h.a.object},t.defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{}},n}n.d(t,"Range",function(){return Y}),n.d(t,"Handle",function(){return k}),n.d(t,"createSliderWithTooltip",function(){return un}),G.Range=Y,G.Handle=k,G.createSliderWithTooltip=un;t.default=G},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e){e.exports={contents:[{id:1,title:"BEHIND THE FOOTLIGHTS",contentType:10,bindingType:0,viewType:0,contentFormat:0},{id:2,title:"무정",contentType:10,bindingType:0,viewType:0,contentFormat:0},{id:3,title:"AllTrueRomance (HTML)",contentType:20,bindingType:0,viewType:0,contentFormat:0},{id:4,title:"AllTrueRomance",contentType:20,bindingType:1,viewType:0,contentFormat:1},{id:6,title:"지저 탐험",contentType:10,bindingType:0,viewType:0,contentFormat:0}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=f(r),i=f(n(0)),a=n(27),u=n(18),l=n(101),s=n(38),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return d(t,e),t.prototype.onClickShowComments=function(){alert("not available in demo page")},t.prototype.checkIsPageView=function(){var e=this.props,t=e.content,n=e.viewerScreenSettings;return t.viewType===l.AvailableViewType.BOTH&&n.viewType===u.ViewType.PAGE||t.viewType===l.AvailableViewType.PAGE},t.prototype.renderBestComments=function(){return o.default.createElement("div",{className:"comment_empty"},o.default.createElement("p",{className:"empty_text"},"댓글이 없습니다."))},t.prototype.render=function(){var e=this,t=this.props,n=t.content,r=t.calculationsTotal;return(0,s.isExist)(n)?o.default.createElement("div",{className:"viewer_bottom"},o.default.createElement("div",{className:"viewer_bottom_information"},o.default.createElement("p",{className:"content_title"},n.title)),o.default.createElement("div",{role:"presentation",className:"viewer_bottom_best_comment empty",onClick:function(){return e.onClickShowComments()},onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||e.onClickShowComments()}},this.renderBestComments(),o.default.createElement("button",{className:"more_comment_button"},"전체 댓글 보러가기",o.default.createElement(c.default,{svgName:"svg_arrow_4_right",svgClass:"arrow_icon"}))),o.default.createElement("div",{className:"viewer_bottom_button_wrapper"},this.checkIsPageView()?o.default.createElement("button",{className:"move_prev_page_button",onClick:function(){return u.Connector.current.updateCurrentPosition(r-2)}},o.default.createElement(c.default,{svgName:"svg_arrow_6_left",svgClass:"svg_arrow_6_left"}),"이전 페이지로 돌아가기"):null)):null},t}(r.Component);p.propTypes={content:i.default.object.isRequired,viewerScreenSettings:i.default.object,calculationsTotal:i.default.number.isRequired},p.defaultProps={viewerScreenSettings:{}};t.default=(0,a.connect)(function(e){return{viewerScreenSettings:(0,u.selectReaderSetting)(e),calculationsTotal:(0,u.selectReaderCalculationsTotal)(e)}})(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IconsSprite=void 0;var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.IconsSprite=function(){return i.default.createElement("svg",{className:"hidden"},i.default.createElement("symbol",{id:"svg_setting_1",viewBox:"0 0 20 20"},i.default.createElement("path",{d:"M9.972,7c-1.694,0-2.989,1.3-2.989,3s1.295,3,2.989,3c1.694,0,2.989-1.3,2.989-3S11.666,7,9.972,7z M9.972,12c-1.096,0-1.993-0.9-1.993-2c0-1.1,0.897-2,1.993-2c1.096,0,1.993,0.9,1.993,2C11.965,11.1,11.068,12,9.972,12z"}),i.default.createElement("path",{d:"M19.339,11.3l-0.996-0.8v-1l1.096-0.9c0.598-0.5,0.698-1.2,0.399-1.9l-1.893-3.4c-0.399-0.6-1.196-0.9-1.893-0.7l-1.295,0.5l-0.897-0.5l-0.199-1.4C13.46,0.5,12.862,0,12.164,0H7.78C7.083,0,6.485,0.5,6.286,1.3L6.086,2.6L5.189,3.2L3.894,2.7c-0.698-0.3-1.495,0-1.893,0.7L0.207,6.7c-0.399,0.7-0.199,1.5,0.399,1.9l1.096,0.9v1.1l-1.096,0.9c-0.598,0.5-0.698,1.2-0.399,1.9l1.893,3.4c0.399,0.6,1.196,0.9,1.893,0.7L5.289,17l0.897,0.5l0.199,1.4c0,0.6,0.698,1.1,1.395,1.1h4.285c0.698,0,1.395-0.5,1.495-1.3l0.199-1.4l0.897-0.5l1.295,0.5c0.698,0.3,1.495,0,1.893-0.7l1.893-3.4C20.136,12.5,19.936,11.7,19.339,11.3z M18.84,12.8l-1.893,3.4c-0.1,0.2-0.399,0.3-0.598,0.2l-1.694-0.7l-1.794,1l-0.299,1.8c0,0.2-0.299,0.4-0.498,0.4H7.78c-0.199,0-0.498-0.2-0.498-0.4l-0.299-1.7l-1.794-1l-1.694,0.7c-0.199,0.1-0.498,0-0.598-0.2l-1.893-3.4c-0.1-0.3-0.1-0.5,0.1-0.7L2.599,11V9L1.204,7.8c-0.199-0.1-0.299-0.4-0.1-0.6l1.893-3.4c0.1-0.2,0.399-0.3,0.598-0.2l1.694,0.7l1.794-1l0.299-1.8C7.382,1.2,7.581,1,7.78,1h4.285c0.299,0,0.498,0.2,0.498,0.4l0.399,1.9l1.794,1l1.694-0.7c0.199-0.1,0.498,0,0.598,0.2l1.893,3.4c0.1,0.2,0.1,0.5-0.1,0.7L17.346,9v2l1.395,1.2C18.94,12.3,19.04,12.6,18.84,12.8z"})),i.default.createElement("symbol",{id:"svg_setting_fill_1",viewBox:"0 0 20 20"},i.default.createElement("path",{d:"M19.339,11.3l-0.996-0.8v-1l1.096-0.9c0.598-0.5,0.698-1.2,0.399-1.9l-1.893-3.4c-0.399-0.6-1.196-0.9-1.893-0.7l-1.295,0.5l-0.897-0.5l-0.199-1.4C13.46,0.5,12.862,0,12.164,0H7.78C7.083,0,6.485,0.5,6.285,1.3L6.086,2.6L5.189,3.2L3.894,2.7c-0.698-0.3-1.495,0-1.893,0.7L0.207,6.7c-0.399,0.7-0.199,1.5,0.399,1.9l1.096,0.9v1.1l-1.096,0.9c-0.598,0.5-0.698,1.2-0.399,1.9l1.893,3.4c0.399,0.6,1.196,0.9,1.893,0.7L5.289,17l0.897,0.5l0.199,1.4c0,0.6,0.698,1.1,1.395,1.1h4.285c0.698,0,1.395-0.5,1.495-1.3l0.199-1.4l0.897-0.5l1.295,0.5c0.698,0.3,1.495,0,1.893-0.7l1.893-3.4C20.136,12.5,19.936,11.7,19.339,11.3z M9.972,13c-1.694,0-2.989-1.3-2.989-3s1.295-3,2.989-3c1.694,0,2.989,1.3,2.989,3S11.666,13,9.972,13z"})),i.default.createElement("symbol",{id:"svg_setting_thick_1",viewBox:"0 0 20 20"},i.default.createElement("path",{d:"M9.978,6.665C8.113,6.665,6.653,8.13,6.653,10s1.46,3.335,3.324,3.335S13.302,11.87,13.302,10S11.842,6.665,9.978,6.665z M8.555,10c0-0.788,0.638-1.429,1.423-1.429c0.784,0,1.422,0.641,1.422,1.429s-0.637,1.429-1.422,1.429C9.193,11.429,8.555,10.788,8.555,10z"}),i.default.createElement("path",{d:"M19.185,10.855l-0.757-0.608V9.749l0.875-0.717c0.701-0.587,0.892-1.47,0.489-2.407l-1.824-3.271c-0.493-0.743-1.474-1.105-2.371-0.849l-1.026,0.396l-0.454-0.253l-0.169-1.162c-0.253-0.891-1.01-1.49-1.882-1.49H7.889c-0.89,0-1.649,0.643-1.895,1.642L5.836,2.67L5.361,2.988L4.375,2.608C3.486,2.223,2.472,2.591,1.964,3.484L0.26,6.621c-0.49,0.862-0.263,1.912,0.491,2.414l0.871,0.715v0.597l-0.875,0.717c-0.702,0.587-0.892,1.471-0.489,2.408l1.823,3.27c0.495,0.745,1.478,1.105,2.373,0.849l1.025-0.396l0.454,0.253l0.151,1.033c0,0.812,0.844,1.524,1.806,1.524h4.082c0.964,0,1.78-0.712,1.896-1.648l0.156-1.101l0.453-0.252l1.01,0.389c0.886,0.384,1.901,0.019,2.407-0.873l1.802-3.235C20.182,12.429,19.962,11.389,19.185,10.855z M16.236,15.658l-1.827-0.756l-2.11,1.177l-0.329,2.019c0-0.059,0.018-0.101,0.011-0.101c-0.002,0-0.005,0.002-0.009,0.007l-4.096-0.034L7.56,16.172l-2.108-1.175L3.653,15.77l-1.767-3.157c-0.04-0.121-0.034-0.161-0.058-0.147l1.6-1.286V8.829L1.949,7.556L3.72,4.342l1.826,0.756l2.111-1.177L7.979,1.98l0.013-0.078l3.988,0.006l0.424,2.02l2.099,1.17l1.798-0.773l1.794,3.22c0.013,0.027,0.02,0.085,0.048,0.072l-1.618,1.19v2.365l1.479,1.273L16.236,15.658z M7.883,18.016L7.883,18.016c0.001,0.001,0.002,0.002,0.002,0.002C7.884,18.017,7.884,18.017,7.883,18.016z"})),i.default.createElement("symbol",{id:"svg_beaker_2",viewBox:"0 0 24 22"},i.default.createElement("path",{d:"M23.972,18.355c-0.271-2.02-2.398-4.636-2.638-4.927l-0.619-0.735l-0.604,0.735c-0.24,0.292-2.351,2.908-2.623,4.927c-0.017,0.108-0.026,0.219-0.03,0.332h0.001l-0.002,0.18c0.036,1.717,1.494,3.113,3.258,3.13c1.63-0.017,3.239-1.413,3.275-3.13l0.006-0.18H24C23.996,18.575,23.989,18.463,23.972,18.355z M22.99,18.656l-0.006,0.191c-0.025,1.221-1.217,2.148-2.269,2.166c-1.213-0.017-2.219-0.979-2.252-2.151l0.002-0.163v-0.011c0.003-0.068,0.01-0.132,0.021-0.205c0.178-1.326,1.418-3.185,2.237-4.225c0.826,1.047,2.076,2.916,2.255,4.243c0.006,0.037,0.01,0.079,0.013,0.131L22.99,18.656z M20.715,22L20.715,22C20.717,22,20.718,21.999,20.715,22C20.712,21.999,20.713,21.999,20.715,22z M20.98,9.536c0-0.394-0.157-0.763-0.441-1.041L12.295,0.43C12.001,0.143,11.616,0,11.23,0c-0.385,0-0.77,0.143-1.064,0.43L0.44,9.95c-0.587,0.574-0.587,1.507,0,2.081l8.244,8.063c0.285,0.278,0.663,0.432,1.065,0.432s0.78-0.154,1.064-0.431l9.725-9.517C20.823,10.299,20.98,9.929,20.98,9.536z M10.101,19.399c-0.095,0.094-0.217,0.143-0.352,0.143s-0.257-0.05-0.354-0.144l-8.244-8.063C0.993,11.18,0.97,10.95,1.069,10.766h17.853L10.101,19.399z M19.891,9.788H2.027l8.851-8.662c0.126-0.123,0.275-0.142,0.352-0.142c0.078,0,0.227,0.018,0.353,0.143l8.245,8.064c0.096,0.094,0.146,0.212,0.146,0.344C19.974,9.628,19.94,9.712,19.891,9.788z"})),i.default.createElement("symbol",{id:"svg_view_type_1",viewBox:"0 0 34 20"},i.default.createElement("g",null,i.default.createElement("path",{d:"M24.6,0H9.7C8.9,0,8.2,0.7,8.2,1.5v17c0,0.8,0.7,1.5,1.5,1.5h14.9c0.8,0,1.5-0.7,1.5-1.5v-17C26.1,0.7,25.4,0,24.6,0z M25.1,18.5c0,0.3-0.2,0.5-0.5,0.5H9.7c-0.3,0-0.5-0.2-0.5-0.5v-17C9.2,1.2,9.4,1,9.7,1h14.9c0.3,0,0.5,0.2,0.5,0.5V18.5z"}),i.default.createElement("path",{d:"M3.4,6.9c-0.2-0.2-0.5-0.2-0.6,0L0.1,9.7C0,9.9,0,10.1,0.1,10.3l2.6,2.8c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1c0.2-0.2,0.2-0.5,0-0.6L1.1,10l2.3-2.4C3.6,7.4,3.5,7.1,3.4,6.9z"}),i.default.createElement("path",{d:"M33.9,9.7l-2.6-2.8c-0.1-0.1-0.2-0.1-0.3-0.1c-0.1,0-0.2,0-0.3,0.1c-0.2,0.2-0.2,0.5,0,0.6l2.3,2.4l-2.3,2.4c-0.2,0.2-0.2,0.5,0,0.6c0.2,0.2,0.5,0.2,0.6,0l2.6-2.8C34,10.1,34,9.9,33.9,9.7z"}),i.default.createElement("polygon",{points:"17.6,6.2 19,6.6 17.1,3.8 15.3,6.6 16.7,6.2 16.7,13.8 15.3,13.3 17.1,16.2 19,13.3 17.6,13.8"}))),i.default.createElement("symbol",{id:"svg_width_1",viewBox:"0 0 20 20"},i.default.createElement("g",null,i.default.createElement("path",{d:"M1.504,12.002h16.993c0.8,0,1.499-0.702,1.499-1.504V1.506c0-0.802-0.7-1.504-1.499-1.504H1.504c-0.8,0-1.499,0.702-1.499,1.504v8.992C0.004,11.3,0.704,12.002,1.504,12.002z M1.004,1.506c0-0.301,0.2-0.501,0.5-0.501h16.993c0.3,0,0.5,0.201,0.5,0.501v8.992c0,0.301-0.2,0.501-0.5,0.501H1.504c-0.3,0-0.5-0.2-0.5-0.501V1.506z"}),i.default.createElement("polygon",{points:"20,18.141 17.229,16.286 17.692,17.681 2.308,17.681 2.751,16.297 0,18.141 2.751,19.9982.298,18.607 17.692,18.607 17.239,19.998"}))),i.default.createElement("symbol",{id:"svg_exclamation_1",viewBox:"0 0 16 14"},i.default.createElement("path",{d:"M15.447,12.428L8.941,0.518C8.769,0.205,8.42,0,8.053,0c-0.382-0.001-0.716,0.2-0.892,0.511L0.496,12.477c-0.175,0.312-0.176,0.686,0.013,0.983c0.19,0.297,0.506,0.485,0.873,0.486l13.233,0.053c0.556,0.003,1.018-0.432,1.021-0.994C15.636,12.787,15.557,12.585,15.447,12.428L15.447,12.428z M7.985,9.075C7.699,9.074,7.414,8.793,7.367,8.481c-0.25-1.312-0.372-2.716-0.493-3.886C6.86,4.331,7.082,4.035,7.37,3.974c0.524-0.09,0.827-0.089,1.351,0.005c0.303,0.063,0.492,0.36,0.475,0.626C9.062,5.774,8.931,7.177,8.67,8.486c-0.048,0.312-0.335,0.591-0.637,0.59L7.985,9.075L7.985,9.075z M8.002,12.616c-0.636-0.002-1.144-0.504-1.141-1.127c0.003-0.624,0.514-1.121,1.15-1.119c0.637,0.003,1.144,0.505,1.141,1.127C9.149,12.122,8.639,12.619,8.002,12.616z"})),i.default.createElement("symbol",{id:"svg_font_1",viewBox:"0 0 28 24"},i.default.createElement("path",{d:"M21.5,3.5h-15c-0.6,0-1,0.5-1,1v3H7l0.5-2H13v13L9.5,19v1.5h9V19L15,18.5v-13h5.5l0.5,2h1.5v-3C22.5,4,22,3.5,21.5,3.5z"})),i.default.createElement("symbol",{id:"svg_font_2",viewBox:"0 0 14 14"},i.default.createElement("path",{d:"M13.007,0H0.993C0.445,0,0,0.444,0,0.992L0,2.5h0.5L1,1h5.5v12l-3,0.5V14h7v-0.5l-3-0.5V1H13l0.5,1.5H14l0-1.508C14,0.444,13.555,0,13.007,0z"})),i.default.createElement("symbol",{id:"svg_font_size_1",viewBox:"0 0 28 24"},i.default.createElement("path",{d:"M18.8,4.5c0-0.5-0.5-1-1-1l0,0h-14l0,0c-0.5,0-1,0.5-1,1v3h1.5l0.5-2l0,0h5v13l-3,0.5v1.5l0,0h8l0,0V19l-3-0.5v-13h5l0,0l0.5,2h1.5V4.5z"}),i.default.createElement("path",{d:"M25.2,13v-1.5h-3V8h-2c0,1.1,0,1.6,0,2c0,1.6-1.5,1.5-1.5,1.5h-1V13h2.5v4.5c0,1.6,1.4,3,3,3c1.2,0,2-0.5,2-0.5v-2c0,0-0.9,0.6-2,0.5c-0.5,0-1-0.5-1-1V13H25.2z"})),i.default.createElement("symbol",{id:"svg_arrow_6_left",viewBox:"0 0 20 20"},i.default.createElement("path",{d:"M0,10c0,5.523,4.477,10,10,10s10-4.477,10-10S15.523,0,10,0S0,4.477,0,10z M19,10c0,4.963-4.037,9-9,9s-9-4.037-9-9c0-4.963,4.037-9,9-9S19,5.037,19,10z"}),i.default.createElement("path",{d:"M7.595,9.288C7.55,9.336,7.505,9.389,7.477,9.449C7.445,9.502,7.408,9.571,7.39,9.618C7.38,9.647,7.359,9.729,7.349,9.768c-0.028,0.138-0.022,0.279-0.01,0.355c0.009,0.075,0.023,0.139,0.042,0.188c0.012,0.034,0.049,0.112,0.063,0.139c0.028,0.055,0.097,0.158,0.143,0.208l2.52,2.772c0.187,0.202,0.439,0.315,0.711,0.319c0.272,0.004,0.529-0.103,0.723-0.3c0.185-0.189,0.286-0.44,0.286-0.706c0-0.254-0.094-0.496-0.264-0.679L9.671,9.982l1.884-2.042c0.366-0.396,0.361-1.004-0.009-1.379c-0.185-0.198-0.446-0.312-0.717-0.312c-0.275,0-0.539,0.116-0.726,0.319L7.595,9.288z"})),i.default.createElement("symbol",{id:"svg_font_size_2",viewBox:"0 0 20 14"},i.default.createElement("path",{d:"M12.895,1l0.496,1.5h0.496l0-1.508C13.887,0.444,13.446,0,12.902,0H0.985C0.441,0,0,0.444,0,0.992L0,2.5h0.496L0.992,1h5.455v12l-2.976,0.5V14h6.943v-0.5L7.439,13V1H12.895z"}),i.default.createElement("path",{d:"M18.016,12.989c-1.04,0-1.488-0.949-1.488-1.5v-5h2.976v-1h-2.976v-3h-0.992v2c0,1.132-0.992,1-0.992,1h-1.488v1h2.48v5c0,1.654,0.839,2.5,2.48,2.5c1.257,0,1.984-0.5,1.984-0.5v-1C20,12.489,19.18,12.999,18.016,12.989z"})),i.default.createElement("symbol",{id:"svg_minus_1",viewBox:"0 0 10 2"},i.default.createElement("path",{d:"M9.165,0H0.835C0.375,0,0,0.412,0,0.918v0.164C0,1.588,0.375,2,0.835,2h8.331C9.625,2,10,1.588,10,1.082V0.918C10,0.412,9.625,0,9.165,0z"})),i.default.createElement("symbol",{id:"svg_padding_1",viewBox:"0 0 28 24"},i.default.createElement("path",{d:"M4.6,2.508h20v2.017h-20V2.508z M4.6,7.508h20v2.018h-20V7.508z M4.6,12.508h20v2.016h-20V12.508z"}),i.default.createElement("path",{d:"M22.057,19H7.056l0.526-1.492L4.6,19.963l2.982,2.545l-0.526-1.49h15.001l-0.439,1.49l2.982-2.545l-2.982-2.455L22.057,19z"})),i.default.createElement("symbol",{id:"svg_padding_2",viewBox:"0 0 18 17"},i.default.createElement("path",{d:"M0,0v0.944h18V0H0z M0,5.667h18V4.722H0V5.667z M0,10.389h18V9.444H0V10.389z M15.632,14.639H2.368l0.474-1.417L0,15.111L2.842,17l-0.474-1.417h13.263L15.158,17L18,15.111l-2.842-1.889L15.632,14.639z"})),i.default.createElement("symbol",{id:"svg_plus_1",viewBox:"0 0 10 10"},i.default.createElement("path",{d:"M9.165,4.091H5.909V0.835C5.909,0.375,5.534,0,5.075,0H4.925c-0.46,0-0.835,0.375-0.835,0.835v3.256H0.835C0.375,4.091,0,4.466,0,4.925v0.149c0,0.46,0.375,0.835,0.835,0.835h3.256v3.256C4.091,9.625,4.466,10,4.925,10h0.149c0.46,0,0.835-0.375,0.835-0.835V5.909h3.256C9.625,5.909,10,5.534,10,5.075V4.925C10,4.466,9.625,4.091,9.165,4.091z"})),i.default.createElement("symbol",{id:"svg_plus_2",viewBox:"0 0 16 16"},i.default.createElement("path",{d:"M8,0C3.582,0,0,3.582,0,8s3.582,8,8,8c4.418,0,8-3.582,8-8S12.418,0,8,0z M11.807,8.8H8.8v3H7.2v-3H4.207V7.2H7.2v-3h1.6v3h3.007V8.8z"})),i.default.createElement("symbol",{id:"svg_line_height_1",viewBox:"0 0 28 24"},i.default.createElement("path",{d:"M4.6,3.4h20v2h-20V3.4z"}),i.default.createElement("path",{d:"M4.6,8.4h13v2h-13V8.4z"}),i.default.createElement("path",{d:"M4.6,13.9h10.5v2H4.6V13.9z"}),i.default.createElement("path",{d:"M4.6,18.9h12.5v2H4.6V18.9z"}),i.default.createElement("path",{d:"M21.1,18.4l-1.5-0.5l2.5,3l2.5-3l-1.5,0.5v-7.5l1.5,0.5l-2.5-3l-2.5,3l1.5-0.5V18.4z"})),i.default.createElement("symbol",{id:"svg_line_height_2",viewBox:"0 0 18 15"},i.default.createElement("path",{d:"M0,0v0.937h18V0H0z M0,5.625h11.842V4.687H0V5.625z M9.474,9.375H0v0.938h9.474V9.375z M0,15h11.368v-0.938H0V15z M18,7.5l-1.895-2.812L14.211,7.5l1.421-0.469v5.625l-1.421-0.469L16.105,15L18,12.187l-1.421,0.469V7.031L18,7.5z"})),i.default.createElement("symbol",{id:"svg_column",viewBox:"0 0 31 24"},i.default.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M16.25 20h12V4h-12v16zm-13.5 0h12V4h-12v16zM16.225 2.5H2.216a.96.96 0 0 0-.966.95v17.1c0 .523.434.95.966.95H28.784a.959.959 0 0 0 .966-.95V3.45a.959.959 0 0 0-.966-.95h-12.56z",opacity:".45"})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=l(r),i=l(n(0)),a=l(n(41)),u=n(38);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n.colorList={normal:"#868a8e",active:"#0282da"},n.iconList={android:{list:{normal:"svg_list_fill_1",active:"svg_list_fill_1"},ticket:{normal:"svg_ticket_fill_1",active:"svg_ticket_fill_1"},comment:{normal:"svg_comment_fill_1",active:"svg_comment_fill_1"},setting:{normal:"svg_setting_fill_1",active:"svg_setting_fill_1"}},ios:{list:{normal:"svg_list_1",active:"svg_list_fill_1"},ticket:{normal:"svg_ticket_1",active:"svg_ticket_fill_1"},comment:{normal:"svg_comment_1",active:"svg_comment_fill_1"},setting:{normal:"svg_setting_1",active:"svg_setting_fill_1"}}},n}return s(t,e),t.prototype.getColor=function(){var e=this.props,t=e.icon,n=e.isSelected;return(0,u.isExist)(t)?n?this.colorList.active:this.colorList.normal:""},t.prototype.getIconName=function(){var e=this.props,t=e.icon,n=e.isSelected;if(!(0,u.isExist)(t))return"";var r=this.iconList.ios;return n?r[t].active:r[t].normal},t.prototype.render=function(){var e=this.props,t=e.onClickTabItem,n=e.isSelected,r=e.title;return o.default.createElement("div",{className:"viewer_footer_tabitem"},o.default.createElement("button",{onClick:function(e){e.preventDefault(),e.stopPropagation(),t()},disabled:Boolean(!1)},o.default.createElement("div",{className:"viewer_footer_tabitem_content_wrapper "+(n?"active":"")},o.default.createElement(a.default,{svgName:this.getIconName(),svgClass:"viewer_footer_tabitem_icon "+this.getIconName(),svgColor:this.getColor()}),o.default.createElement("span",{className:"viewer_footer_tabitem_title"},r))))},t}(r.Component);t.default=c,c.propTypes={title:i.default.string.isRequired,icon:i.default.string.isRequired,isSelected:i.default.bool.isRequired,onClickTabItem:i.default.func.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return r.default.createElement("div",{className:"viewer_footer_tabbar"},e.children)};a.propTypes={children:o.default.node},a.defaultProps={children:null},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=d(r),i=d(n(0)),a=n(27),u=n(18),l=n(95),s=d(n(191)),c=d(n(41)),f=n(100);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return h(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.onChanged,r=e.setting;return o.default.createElement("li",{className:"setting_list",key:t,ref:function(e){(0,f.preventScrollEvent)(e)}},o.default.createElement(c.default,{svgName:"svg_"+t+"_1",svgClass:"setting_title_icon svg_"+t+"_icon"}),o.default.createElement(s.default,{title:l.ViewerComicSpinType.toString(t),buttonTarget:"set_"+t,initialValue:p({},l.ViewerComicSpinType.CONTENT_WIDTH,r.contentWidthLevel)[t],min:p({},l.ViewerComicSpinType.CONTENT_WIDTH,1)[t],max:p({},l.ViewerComicSpinType.CONTENT_WIDTH,6)[t],onChange:function(e,r){return n(p({},l.ViewerComicSpinType.toReaderSettingType(t),r))}}))},t}(r.Component);v.propTypes={item:i.default.string.isRequired,onChanged:i.default.func,setting:i.default.object},v.defaultProps={onChanged:function(){},setting:{}};t.default=(0,a.connect)(function(e){return{setting:(0,u.selectReaderSetting)(e)}})(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(2)),o=p(n(0)),i=n(27),a=p(n(193)),u=p(n(192)),l=p(n(433)),s=p(n(190)),c=n(18),f=n(95),d=n(189);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return h(t,e),t.prototype.renderSettings=function(){var e=this,t=this.props,n=t.content,o=t.setting;return r.default.createElement("ul",{className:"setting_group"},r.default.createElement(a.default,{onChanged:function(t){return e.onSettingChanged({colorTheme:t})}}),r.default.createElement(u.default,{onChanged:function(t){return e.onSettingChanged({viewType:t})},contentViewType:n.viewType}),o.viewType===c.ViewType.PAGE?r.default.createElement(s.default,{onChanged:function(t){return e.onSettingChanged(t)}}):null,f.ViewerComicSpinType.toList().map(function(t){return r.default.createElement(l.default,{item:t,key:t,onChanged:function(t){return e.onSettingChanged(t)}})}))},t}(p(d).default);v.propTypes={content:o.default.object.isRequired},t.default=(0,i.connect)(d.mapStateToProps)(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(2)),o=c(n(0)),i=n(27),a=n(18),u=n(95),l=c(n(191)),s=c(n(41));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){var t,n,o,i=e.item,a=e.onChanged,c=e.setting;return r.default.createElement("li",{className:"setting_list",key:i},r.default.createElement(s.default,{svgName:"svg_"+i+"_2",svgClass:"setting_title_icon svg_"+i+"_icon"}),r.default.createElement(l.default,{title:u.ViewerSpinType.toString(i),buttonTarget:"set_"+i,initialValue:(t={},f(t,u.ViewerSpinType.FONT_SIZE,c.fontSizeLevel),f(t,u.ViewerSpinType.LINE_HEIGHT,c.lineHeightLevel),f(t,u.ViewerSpinType.PADDING,c.paddingLevel),t)[i],min:(n={},f(n,u.ViewerSpinType.FONT_SIZE,1),f(n,u.ViewerSpinType.LINE_HEIGHT,1),f(n,u.ViewerSpinType.PADDING,1),n)[i],max:(o={},f(o,u.ViewerSpinType.FONT_SIZE,12),f(o,u.ViewerSpinType.LINE_HEIGHT,6),f(o,u.ViewerSpinType.PADDING,6),o)[i],onChange:function(e,t){return a(f({},u.ViewerSpinType.toReaderSettingType(i),t))}}))};d.propTypes={item:o.default.string.isRequired,onChanged:o.default.func.isRequired,setting:o.default.object},d.defaultProps={setting:{}};t.default=(0,i.connect)(function(e){return{setting:(0,a.selectReaderSetting)(e)}})(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=s(r),i=s(n(0)),a=n(27),u=n(18),l=s(n(41));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var f=[{name:"KoPup 돋움",family:"kopup_dotum"},{name:"KoPup 바탕",family:"kopup_batang"}],d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return c(t,e),t.prototype.renderFontList=function(){var e=this.props,t=e.onChanged,n=e.viewerScreenSettings;return f.map(function(e){return o.default.createElement("li",{className:"font_list setting_button_list",key:e.family},o.default.createElement("button",{type:"button",className:"font_button setting_button "+e.family+" "+(n.font===e.family?"active":""),onClick:function(){return t&&t(e.family)}},e.name))})},t.prototype.render=function(){return o.default.createElement("li",{className:"setting_list"},o.default.createElement(l.default,{svgName:"svg_font_2",svgClass:"setting_title_icon svg_font_icon"}),o.default.createElement("div",{className:"table_wrapper"},o.default.createElement("p",{className:"setting_title"},"글꼴",o.default.createElement("span",{className:"indent_hidden"},"변경")),o.default.createElement("div",{className:"setting_buttons_wrapper font_family_setting"},o.default.createElement("ul",{className:"setting_buttons font_family_buttons"},this.renderFontList()))))},t}(r.Component);d.propTypes={onChanged:i.default.func,viewerScreenSettings:i.default.object},d.defaultProps={onChanged:function(){},viewerScreenSettings:{}};t.default=(0,a.connect)(function(e){return{viewerScreenSettings:(0,u.selectReaderSetting)(e)}})(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n(2)),o=h(n(0)),i=n(27),a=h(n(193)),u=h(n(192)),l=h(n(436)),s=h(n(435)),c=h(n(190)),f=n(18),d=n(95),p=n(189);function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return v(t,e),t.prototype.renderSettings=function(){var e=this,t=this.props,n=t.content,o=t.setting;return r.default.createElement("ul",{className:"setting_group"},r.default.createElement(a.default,{onChanged:function(t){return e.onSettingChanged({colorTheme:t})}}),r.default.createElement(u.default,{onChanged:function(t){return e.onSettingChanged({viewType:t})},contentViewType:n.viewType}),o.viewType===f.ViewType.PAGE?r.default.createElement(c.default,{onChanged:function(t){return e.onSettingChanged(t)}}):null,r.default.createElement(l.default,{onChanged:function(t){return e.onSettingChanged({font:t})}}),d.ViewerSpinType.toList().map(function(t){return r.default.createElement(s.default,{item:t,key:t,onChanged:function(t){return e.onSettingChanged(t)}})}))},t}(h(p).default);m.propTypes={content:o.default.object.isRequired},t.default=(0,i.connect)(p.mapStateToProps)(m)},function(e,t,n){var r=n(71);r(r.S+r.F*!n(60),"Object",{defineProperty:n(61).f})},function(e,t,n){n(438);var r=n(62).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){"use strict";var r=n(103),o=n(151),i=n(102),a="mixins";e.exports=function(e,t,n){var u=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},s={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)f(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in s;i(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;i(!a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}(e,t)},autobind:function(){}};function c(e,t){var n=l.hasOwnProperty(t)?l[t]:null;g.hasOwnProperty(t)&&i("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function f(e,n){if(n){i("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),i(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var u in n.hasOwnProperty(a)&&s.mixins(e,n.mixins),n)if(n.hasOwnProperty(u)&&u!==a){var f=n[u],d=r.hasOwnProperty(u);if(c(d,u),s.hasOwnProperty(u))s[u](e,f);else{var v=l.hasOwnProperty(u);if("function"!=typeof f||v||d||!1===n.autobind)if(d){var m=l[u];i(v&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,u),"DEFINE_MANY_MERGED"===m?r[u]=p(r[u],f):"DEFINE_MANY"===m&&(r[u]=h(r[u],f))}else r[u]=f;else o.push(u,f),r[u]=f}}}}function d(e,t){for(var n in i(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(i(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return d(o,n),d(o,r),o}}function h(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}var m={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},g={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},b=function(){};return r(b.prototype,e.prototype,g),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=v(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=a||n,this.state=null;var u=this.getInitialState?this.getInitialState():null;i("object"==typeof u&&!Array.isArray(u),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=u};for(var r in t.prototype=new b,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],u.forEach(f.bind(null,t)),f(t,m),f(t,e),f(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";function r(){return!1}function o(){return!0}function i(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),i.prototype={isEventObject:1,constructor:i,isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r,preventDefault:function(){this.isDefaultPrevented=o},stopPropagation:function(){this.isPropagationStopped=o},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(441)),o=i(n(103));function i(e){return e&&e.__esModule?e:{default:e}}var a=!0,u=!1,l=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"];function s(e){return null===e||void 0===e}var c=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){s(e.which)&&(e.which=s(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,o=void 0,i=t.wheelDelta,a=t.axis,u=t.wheelDeltaY,l=t.wheelDeltaX,s=t.detail;i&&(o=i/120),s&&(o=0-(s%3==0?s/3:s)),void 0!==a&&(a===e.HORIZONTAL_AXIS?(r=0,n=0-o):a===e.VERTICAL_AXIS&&(n=0,r=o)),void 0!==u&&(r=u/120),void 0!==l&&(n=-1*l/120),n||r||(r=o),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==o&&(e.delta=o)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,o=void 0,i=e.target,a=t.button;return i&&s(e.pageX)&&!s(t.clientX)&&(r=(n=i.ownerDocument||document).documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===i?e.toElement:e.fromElement),e}}];function f(){return a}function d(){return u}function p(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;r.default.call(this),this.nativeEvent=e;var o=d;"defaultPrevented"in e?o=e.defaultPrevented?f:d:"getPreventDefault"in e?o=e.getPreventDefault()?f:d:"returnValue"in e&&(o=e.returnValue===u?f:d),this.isDefaultPrevented=o;var i=[],a=void 0,s=void 0,p=l.concat();for(c.forEach(function(e){t.match(e.reg)&&(p=p.concat(e.props),e.fix&&i.push(e.fix))}),a=p.length;a;)this[s=p[--a]]=e[s];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),a=i.length;a;)(0,i[--a])(this,e);this.timeStamp=e.timeStamp||Date.now()}var h=r.default.prototype;(0,o.default)(p.prototype,h,{constructor:p,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=u,h.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=a,h.stopPropagation.call(this)}}),t.default=p,e.exports=t.default},function(e,t,n){var r=n(71);r(r.S,"Object",{create:n(137)})},function(e,t,n){n(443);var r=n(62).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){e.exports={default:n(444),__esModule:!0}},function(e,t,n){var r=n(69),o=n(80),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(206)(Function.call,n(196).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(71);r(r.S,"Object",{setPrototypeOf:n(446).set})},function(e,t,n){n(447),e.exports=n(62).Object.setPrototypeOf},function(e,t,n){e.exports={default:n(448),__esModule:!0}},function(e,t,n){n(134)("observable")},function(e,t,n){n(134)("asyncIterator")},function(e,t){},function(e,t,n){var r=n(68),o=n(197).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(201);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(98),o=n(140),i=n(96);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,u=n(e),l=i.f,s=0;u.length>s;)l.call(e,a=u[s++])&&t.push(a);return t}},function(e,t,n){var r=n(97)("meta"),o=n(69),i=n(59),a=n(61).f,u=0,l=Object.isExtensible||function(){return!0},s=!n(79)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&l(e)&&!i(e,r)&&c(e),e}}},function(e,t,n){"use strict";var r=n(46),o=n(59),i=n(60),a=n(71),u=n(198),l=n(456).KEY,s=n(79),c=n(142),f=n(136),d=n(97),p=n(67),h=n(135),v=n(134),m=n(455),y=n(454),g=n(80),b=n(69),w=n(68),C=n(146),_=n(99),E=n(137),O=n(453),T=n(196),S=n(61),P=n(98),x=T.f,N=S.f,k=O.f,R=r.Symbol,M=r.JSON,j=M&&M.stringify,A=p("_hidden"),I=p("toPrimitive"),L={}.propertyIsEnumerable,D=c("symbol-registry"),F=c("symbols"),U=c("op-symbols"),H=Object.prototype,V="function"==typeof R,W=r.QObject,B=!W||!W.prototype||!W.prototype.findChild,z=i&&s(function(){return 7!=E(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=x(H,t);r&&delete H[t],N(e,t,n),r&&e!==H&&N(H,t,r)}:N,G=function(e){var t=F[e]=E(R.prototype);return t._k=e,t},q=V&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===H&&K(U,t,n),g(e),t=C(t,!0),g(n),o(F,t)?(n.enumerable?(o(e,A)&&e[A][t]&&(e[A][t]=!1),n=E(n,{enumerable:_(0,!1)})):(o(e,A)||N(e,A,_(1,{})),e[A][t]=!0),z(e,t,n)):N(e,t,n)},$=function(e,t){g(e);for(var n,r=m(t=w(t)),o=0,i=r.length;i>o;)K(e,n=r[o++],t[n]);return e},Y=function(e){var t=L.call(this,e=C(e,!0));return!(this===H&&o(F,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(F,e)||o(this,A)&&this[A][e])||t)},X=function(e,t){if(e=w(e),t=C(t,!0),e!==H||!o(F,t)||o(U,t)){var n=x(e,t);return!n||!o(F,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=k(w(e)),r=[],i=0;n.length>i;)o(F,t=n[i++])||t==A||t==l||r.push(t);return r},Z=function(e){for(var t,n=e===H,r=k(n?U:w(e)),i=[],a=0;r.length>a;)!o(F,t=r[a++])||n&&!o(H,t)||i.push(F[t]);return i};V||(u((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(U,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),z(this,e,_(1,n))};return i&&B&&z(H,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),T.f=X,S.f=K,n(197).f=O.f=Q,n(96).f=Y,n(140).f=Z,i&&!n(139)&&u(H,"propertyIsEnumerable",Y,!0),h.f=function(e){return G(p(e))}),a(a.G+a.W+a.F*!V,{Symbol:R});for(var J="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;J.length>ee;)p(J[ee++]);for(var te=P(p.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return o(D,e+="")?D[e]:D[e]=R(e)},keyFor:function(e){if(!q(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?E(e):$(E(e),t)},defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),M&&a(a.S+a.F*(!V||s(function(){var e=R();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!q(t))return t}),r[1]=t,j.apply(M,r)}}),R.prototype[I]||n(70)(R.prototype,I,R.prototype.valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(457),n(452),n(451),n(450),e.exports=n(62).Symbol},function(e,t,n){e.exports={default:n(458),__esModule:!0}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(461),o=n(460),i=n(138),a=n(68);e.exports=n(199)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){n(462);for(var r=n(46),o=n(70),i=n(138),a=n(67)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<u.length;l++){var s=u[l],c=r[s],f=c&&c.prototype;f&&!f[a]&&o(f,a,s),i[s]=i.Array}},function(e,t,n){var r=n(59),o=n(200),i=n(143)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(46).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(61),o=n(80),i=n(98);e.exports=n(60)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,l=0;u>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){"use strict";var r=n(137),o=n(99),i=n(136),a={};n(70)(a,n(67)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(144),o=n(145);e.exports=function(e){return function(t,n){var i,a,u=String(o(t)),l=r(n),s=u.length;return l<0||l>=s?e?"":void 0:(i=u.charCodeAt(l))<55296||i>56319||l+1===s||(a=u.charCodeAt(l+1))<56320||a>57343?e?u.charAt(l):i:e?u.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(468)(!0);n(199)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){n(469),n(463),e.exports=n(135).f("iterator")},function(e,t,n){e.exports={default:n(470),__esModule:!0}},function(e,t,n){var r=n(144),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(144),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(68),o=n(473),i=n(472);e.exports=function(e){return function(t,n,a){var u,l=r(t),s=o(l.length),c=i(a,s);if(e&&n!=n){for(;s>c;)if((u=l[c++])!=u)return!0}else for(;s>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(98),o=n(140),i=n(96),a=n(200),u=n(202),l=Object.assign;e.exports=!l||n(79)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=a(e),l=arguments.length,s=1,c=o.f,f=i.f;l>s;)for(var d,p=u(arguments[s++]),h=c?r(p).concat(c(p)):r(p),v=h.length,m=0;v>m;)f.call(p,d=h[m++])&&(n[d]=p[d]);return n}:l},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(71);r(r.S+r.F,"Object",{assign:n(475)})},function(e,t,n){n(477),e.exports=n(62).Object.assign},function(e,t,n){e.exports={default:n(478),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(2),i=c(o),a=c(n(0)),u=n(27),l=c(n(221)),s=n(18);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var d=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n)),o=n.currentOffset;return r.state={value:"number"==typeof o?o+1:1},r}return f(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.currentOffset;this.setState({value:"number"==typeof t?t+1:1})},t.prototype.onSlideChanged=function(e){this.setState({value:e})},t.prototype.onSlideAfterChanged=function(e){s.Connector.current.updateCurrentPosition(e)},t.prototype.render=function(){var e=this,t=this.props.total,n={min:1,max:t,value:this.state.value};return i.default.createElement("div",{className:"viewer_footer_page_navigator"},i.default.createElement("p",{className:"page_mark"},i.default.createElement("span",{className:"current_page"},this.state.value),i.default.createElement("span",{className:"slash"},"/"),i.default.createElement("span",{className:"total_page"},t)),i.default.createElement("div",{className:"page_slider_wrapper"},i.default.createElement(l.default,r({},n,{onChange:function(t){return e.onSlideChanged(t)},onAfterChange:function(t){return e.onSlideAfterChanged(t-1)}}))))},t}(o.Component);d.propTypes={currentOffset:a.default.number.isRequired,total:a.default.number.isRequired,isDisableComment:a.default.bool},d.defaultProps={isDisableComment:!1};t.default=(0,u.connect)(function(e){return{currentOffset:(0,s.selectReaderCurrentOffset)(e),total:(0,s.selectReaderCalculationsTotal)(e)}})(d)},function(e,t,n){"use strict";function r(e,t){return e===t}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,u=r.pop(),l=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),s=e.apply(void 0,[function(){return a++,u.apply(null,arguments)}].concat(n)),c=o(function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return s.apply(null,e)});return c.resultFunc=u,c.recomputations=function(){return a},c.resetRecomputations=function(){return a=0},c}}t.__esModule=!0,t.defaultMemoize=o,t.createSelectorCreator=i,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})};var a=t.createSelector=i(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=y(r),i=y(n(0)),a=n(27),u=n(18),l=n(101),s=n(148),c=n(147),f=y(n(480)),d=y(n(437)),p=y(n(434)),h=y(n(432)),v=y(n(431)),m=n(100);function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return g(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.isFullScreen,r=t.content,i=t.isVisibleSettingPopup,a=t.toggleViewerSetting,s=this.props.setting.viewType;return o.default.createElement("section",null,r.contentType===l.ContentType.WEB_NOVEL?o.default.createElement(d.default,{content:r}):o.default.createElement(p.default,{content:r}),o.default.createElement("footer",{className:"viewer_footer "+(n?"":"active"),ref:function(t){e.footer=t,(0,m.preventScrollEvent)(t)}},s===u.ViewType.PAGE?o.default.createElement(f.default,null):null,o.default.createElement(h.default,null,o.default.createElement(v.default,{title:"보기설정",icon:"setting",isSelected:i,onClickTabItem:function(){return a()}}))))},t}(r.Component);b.propTypes={content:i.default.object.isRequired,isFullScreen:i.default.bool.isRequired,setting:i.default.object.isRequired,isVisibleSettingPopup:i.default.bool.isRequired,toggleViewerSetting:i.default.func.isRequired};t.default=(0,a.connect)(function(e){var t=e.viewer.ui.isVisibleSettingPopup;return{isFullScreen:(0,c.selectIsFullScreen)(e),isVisibleSettingPopup:t,setting:(0,u.selectReaderSetting)(e)}},function(e){return{toggleViewerSetting:function(){return e((0,s.onToggleViewerSetting)())}}})(b)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.title,n=e.isVisible,o=e.chapter;return r.default.createElement("header",{id:"story_header"},r.default.createElement("nav",{className:"top_nav_bar viewer_header no_button "+(n?"active":"")},r.default.createElement("div",{className:"nav_first_line"},r.default.createElement("div",{className:"page_title"},r.default.createElement("h2",{className:"title_text"},t," (Chapter ",o,")"))),r.default.createElement("hr",{className:"clear_both"})))};a.propTypes={title:o.default.string.isRequired,isVisible:o.default.bool,chapter:o.default.oneOfType([o.default.string,o.default.number])},a.defaultProps={isVisible:!0,chapter:1},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.documentRemoveEventListener=t.documentAddEventListener=t.documentAppendChild=t.documentAddClassList=t.offsetHeight=t.offsetWidth=t.setScrollTop=t.scrollHeight=t.scrollTop=t.screenHeight=t.screenWidth=void 0;var r,o=n(38),i=n(207),a=(r=i)&&r.__esModule?r:{default:r};var u={},l=function(e,t){return function(){return void 0===u[e]&&(u[e]=t()),u[e]}};window.addEventListener(a.default.RESIZE,(0,o.debounce)(function(){u={}},0));var s=t.screenWidth=l("screenWidth",function(){return window.innerWidth}),c=t.screenHeight=l("screenHeight",function(){return window.innerHeight}),f=t.scrollTop=function(){return document.scrollingElement?document.scrollingElement.scrollTop:document.documentElement.scrollTop||document.body.scrollTop},d=t.scrollHeight=function(){return document.scrollingElement?document.scrollingElement.scrollHeight:document.documentElement.scrollHeight||document.body.scrollHeight},p=t.setScrollTop=function(e){document.scrollingElement?document.scrollingElement.scrollTop=e:(document.body.scrollTop=e,document.documentElement.scrollTop=e)},h=t.offsetWidth=function(){return document.body.offsetWidth},v=t.offsetHeight=function(){return document.body.offsetHeight},m=t.documentAddClassList=function(e){return document.body.classList.add(e)},y=t.documentAppendChild=function(e){return document.body.appendChild(e)},g=t.documentAddEventListener=function(e,t,n){return document.addEventListener(e,t,n)},b=t.documentRemoveEventListener=function(e,t,n){return document.removeEventListener(e,t,n)};t.default={screenWidth:s,screenHeight:c,scrollTop:f,scrollHeight:d,setScrollTop:p,offsetWidth:h,offsetHeight:v,documentAddClassList:m,documentAppendChild:y,documentAddEventListener:g,documentRemoveEventListener:b}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments[1];return Object.prototype.hasOwnProperty.call(t,r.type)?t[r.type](n,r):n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImmutableObjectBuilder=void 0;var r=n(38);var o=t.ImmutableObjectBuilder=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._state=(0,r.cloneObject)(t)}return e.prototype.set=function(e,t){return(0,r.nullSafeSet)(this._state,e,t),this},e.prototype.build=function(){return this._state},e}();t.default={ImmutableObjectBuilder:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getJson=function(e){return fetch(e).then(function(e){return e.json()})}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0});var o=n(148),i=n(18),a=n(209),u=d(a),l=n(486),s=n(38),c=d(n(485)),f=n(100);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=(0,c.default)(a.initialState,(p(r={},o.ViewerUiActions.TOGGLE_VIEWER_SETTING,function(e){return new l.ImmutableObjectBuilder(e).set(u.default.isVisibleSettingPopup(),!e.ui.isVisibleSettingPopup).build()}),p(r,o.ViewerUiActions.VIEWER_SETTING_CHANGED,function(e,t){return new l.ImmutableObjectBuilder(e).set(u.default.viewerSettings(),(0,s.updateObject)(e.ui.viewerSettings,t.changeSetting)).build()}),p(r,o.ViewerUiActions.TOUCHED,function(e){return new l.ImmutableObjectBuilder(e).set(u.default.isFullScreen(),!e.ui.isFullScreen).set(u.default.isVisibleSettingPopup(),!1).build()}),p(r,i.actions.SCROLLED,function(e){return new l.ImmutableObjectBuilder(e).set(u.default.isFullScreen(),!((0,f.isScrolledToTop)()||(0,f.isScrolledToBottom)())).set(u.default.isVisibleSettingPopup(),!1).build()}),p(r,i.actions.UPDATE_CURRENT,function(e){return new l.ImmutableObjectBuilder(e).set(u.default.isVisibleSettingPopup(),!1).build()}),r))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(489),u=(o=a)&&o.__esModule?o:{default:o};i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var l=(0,u.default)(i);t.default=l}).call(this,n(42),n(149)(e))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(210),o=n(211),i=n(491);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var s in n=Object(arguments[l]))o.call(n,s)&&(u[s]=n[s]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(u[a[c]]=n[a[c]])}}return u}},function(e,t,n){"use strict";
/** @license React v16.4.1
* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(494),o=n(211),i=n(493),a=n(210),u="function"==typeof Symbol&&Symbol.for,l=u?Symbol.for("react.element"):60103,s=u?Symbol.for("react.portal"):60106,c=u?Symbol.for("react.fragment"):60107,f=u?Symbol.for("react.strict_mode"):60108,d=u?Symbol.for("react.profiler"):60114,p=u?Symbol.for("react.provider"):60109,h=u?Symbol.for("react.context"):60110,v=u?Symbol.for("react.async_mode"):60111,m=u?Symbol.for("react.forward_ref"):60112;u&&Symbol.for("react.timeout");var y="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function w(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||b}function C(){}function _(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&g("85"),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=w.prototype;var E=_.prototype=new C;E.constructor=_,r(E,w.prototype),E.isPureReactComponent=!0;var O={current:null},T=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r=void 0,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)T.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:l,type:e,key:i,ref:a,props:o,_owner:O.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var N=/\/+/g,k=[];function R(e,t,n,r){if(k.length){var o=k.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>k.length&&k.push(e)}function j(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case s:i=!0}}if(i)return n(r,e,""===t?"."+A(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var u=t+A(o=e[a],a);i+=j(o,u,n,r)}else if(null===e||void 0===e?u=null:u="function"==typeof(u=y&&e[y]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),a=0;!(o=e.next()).done;)i+=j(o=o.value,u=t+A(o,a++),n,r);else"object"===o&&g("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return i}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D(e,r,n,a.thatReturnsArgument):null!=e&&(x(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n,e={$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function D(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),t=R(t,i,r,o),null==e||j(e,"",L,t),M(t)}var F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=R(null,null,t,n),null==e||j(e,"",I,t),M(t)},count:function(e){return null==e?0:j(e,"",a.thatReturnsNull,null)},toArray:function(e){var t=[];return D(e,t,null,a.thatReturnsArgument),t},only:function(e){return x(e)||g("143"),e}},createRef:function(){return{current:null}},Component:w,PureComponent:_,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:m,render:e}},Fragment:c,StrictMode:f,unstable_AsyncMode:v,unstable_Profiler:d,createElement:P,cloneElement:function(e,t,n){(null===e||void 0===e)&&g("267",e);var o=void 0,i=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=O.current),void 0!==t.key&&(a=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)T.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))i.children=n;else if(1<o){c=Array(o);for(var f=0;f<o;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:l,type:e.type,key:a,ref:u,props:i,_owner:s}},createFactory:function(e){var t=P.bind(null,e);return t.type=e,t},isValidElement:x,version:"16.4.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:O,assign:r}},U={default:F},H=U&&F||U;e.exports=H.default?H.default:H},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(496),u=(o=a)&&o.__esModule?o:{default:o};i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var l=(0,u.default)(i);t.default=l}).call(this,n(42),n(149)(e))},function(e,t,n){"use strict";var r=n(104).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},t.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(500);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";var r=n(501);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a<n.length;a++)if(!r.call(t,n[a])||!o(e[n[a]],t[n[a]]))return!1;return!0}},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";
/** @license React v16.4.1
* react-dom.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(102),o=n(2),i=n(505),a=n(103),u=n(150),l=n(504),s=n(503),c=n(502),f=n(151);function d(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);r(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}o||d("227");var p={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,r,o,i,a,u,l){(function(e,t,n,r,o,i,a,u,l){this._hasCaughtError=!1,this._caughtError=null;var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}).apply(p,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,i,a,u,l){if(p.invokeGuardedCallback.apply(this,arguments),p.hasCaughtError()){var s=p.clearCaughtError();p._hasRethrowError||(p._hasRethrowError=!0,p._rethrowError=s)}},rethrowCaughtError:function(){return function(){if(p._hasRethrowError){var e=p._rethrowError;throw p._rethrowError=null,p._hasRethrowError=!1,e}}.apply(p,arguments)},hasCaughtError:function(){return p._hasCaughtError},clearCaughtError:function(){if(p._hasCaughtError){var e=p._caughtError;return p._caughtError=null,p._hasCaughtError=!1,e}d("198")}};var h=null,v={};function m(){if(h)for(var e in v){var t=v[e],n=h.indexOf(e);if(-1<n||d("96",e),!g[n])for(var r in t.extractEvents||d("97",e),g[n]=t,n=t.eventTypes){var o=void 0,i=n[r],a=t,u=r;b.hasOwnProperty(u)&&d("99",u),b[u]=i;var l=i.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&y(l[o],a,u);o=!0}else i.registrationName?(y(i.registrationName,a,u),o=!0):o=!1;o||d("98",r,e)}}}function y(e,t,n){w[e]&&d("100",e),w[e]=t,C[e]=t.eventTypes[n].dependencies}var g=[],b={},w={},C={};function _(e){h&&d("101"),h=Array.prototype.slice.call(e),m()}function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];v.hasOwnProperty(t)&&v[t]===r||(v[t]&&d("102",t),v[t]=r,n=!0)}n&&m()}var O={plugins:g,eventNameDispatchConfigs:b,registrationNameModules:w,registrationNameDependencies:C,possibleRegistrationNames:null,injectEventPluginOrder:_,injectEventPluginsByName:E},T=null,S=null,P=null;function x(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=P(r),p.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function N(e,t){return null==t&&d("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function k(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var R=null;function M(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)x(e,t,n[o],r[o]);else n&&x(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function j(e){return M(e,!0)}function A(e){return M(e,!1)}var I={injectEventPluginOrder:_,injectEventPluginsByName:E};function L(e,t){var n=e.stateNode;if(!n)return null;var r=T(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&d("231",t,typeof n),n)}function D(e,t){null!==e&&(R=N(R,e)),e=R,R=null,e&&(k(e,t?j:A),R&&d("95"),p.rethrowCaughtError())}function F(e,t,n,r){for(var o=null,i=0;i<g.length;i++){var a=g[i];a&&(a=a.extractEvents(e,t,n,r))&&(o=N(o,a))}D(o,!1)}var U={injection:I,getListener:L,runEventsInBatch:D,runExtractedEventsInBatch:F},H=Math.random().toString(36).slice(2),V="__reactInternalInstance$"+H,W="__reactEventHandlers$"+H;function B(e){if(e[V])return e[V];for(;!e[V];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[V]).tag||6===e.tag?e:null}function z(e){if(5===e.tag||6===e.tag)return e.stateNode;d("33")}function G(e){return e[W]||null}var q={precacheFiberNode:function(e,t){t[V]=e},getClosestInstanceFromNode:B,getInstanceFromNode:function(e){return!(e=e[V])||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:z,getFiberCurrentPropsFromNode:G,updateFiberProps:function(e,t){e[W]=t}};function K(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function $(e,t,n){for(var r=[];e;)r.push(e),e=K(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function Y(e,t,n){(t=L(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=N(n._dispatchListeners,t),n._dispatchInstances=N(n._dispatchInstances,e))}function X(e){e&&e.dispatchConfig.phasedRegistrationNames&&$(e._targetInst,Y,e)}function Q(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;$(t=t?K(t):null,Y,e)}}function Z(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=L(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=N(n._dispatchListeners,t),n._dispatchInstances=N(n._dispatchInstances,e))}function J(e){e&&e.dispatchConfig.registrationName&&Z(e._targetInst,null,e)}function ee(e){k(e,X)}function te(e,t,n,r){if(n&&r)e:{for(var o=n,i=r,a=0,u=o;u;u=K(u))a++;u=0;for(var l=i;l;l=K(l))u++;for(;0<a-u;)o=K(o),a--;for(;0<u-a;)i=K(i),u--;for(;a--;){if(o===i||o===i.alternate)break e;o=K(o),i=K(i)}o=null}else o=null;for(i=o,o=[];n&&n!==i&&(null===(a=n.alternate)||a!==i);)o.push(n),n=K(n);for(n=[];r&&r!==i&&(null===(a=r.alternate)||a!==i);)n.push(r),r=K(r);for(r=0;r<o.length;r++)Z(o[r],"bubbled",e);for(e=n.length;0<e--;)Z(n[e],"captured",t)}var ne={accumulateTwoPhaseDispatches:ee,accumulateTwoPhaseDispatchesSkipTarget:function(e){k(e,Q)},accumulateEnterLeaveDispatches:te,accumulateDirectDispatches:function(e){k(e,J)}};function re(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var oe={animationend:re("Animation","AnimationEnd"),animationiteration:re("Animation","AnimationIteration"),animationstart:re("Animation","AnimationStart"),transitionend:re("Transition","TransitionEnd")},ie={},ae={};function ue(e){if(ie[e])return ie[e];if(!oe[e])return e;var t,n=oe[e];for(t in n)if(n.hasOwnProperty(t)&&t in ae)return ie[e]=n[t];return e}i.canUseDOM&&(ae=document.createElement("div").style,"AnimationEvent"in window||(delete oe.animationend.animation,delete oe.animationiteration.animation,delete oe.animationstart.animation),"TransitionEvent"in window||delete oe.transitionend.transition);var le=ue("animationend"),se=ue("animationiteration"),ce=ue("animationstart"),fe=ue("transitionend"),de="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pe=null;function he(){return!pe&&i.canUseDOM&&(pe="textContent"in document.documentElement?"textContent":"innerText"),pe}var ve={_root:null,_startText:null,_fallbackText:null};function me(){if(ve._fallbackText)return ve._fallbackText;var e,t,n=ve._startText,r=n.length,o=ye(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return ve._fallbackText=o.slice(e,1<t?1-t:void 0),ve._fallbackText}function ye(){return"value"in ve._root?ve._root.value:ve._root[he()]}var ge="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),be={type:null,target:null,currentTarget:u.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function we(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?u.thatReturnsTrue:u.thatReturnsFalse,this.isPropagationStopped=u.thatReturnsFalse,this}function Ce(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function _e(e){e instanceof this||d("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Ee(e){e.eventPool=[],e.getPooled=Ce,e.release=_e}a(we.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<ge.length;t++)this[ge[t]]=null}}),we.Interface=be,we.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return a(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,Ee(n),n},Ee(we);var Oe=we.extend({data:null}),Te=we.extend({data:null}),Se=[9,13,27,32],Pe=i.canUseDOM&&"CompositionEvent"in window,xe=null;i.canUseDOM&&"documentMode"in document&&(xe=document.documentMode);var Ne=i.canUseDOM&&"TextEvent"in window&&!xe,ke=i.canUseDOM&&(!Pe||xe&&8<xe&&11>=xe),Re=String.fromCharCode(32),Me={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},je=!1;function Ae(e,t){switch(e){case"keyup":return-1!==Se.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ie(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Le=!1;var De={eventTypes:Me,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(Pe)e:{switch(e){case"compositionstart":o=Me.compositionStart;break e;case"compositionend":o=Me.compositionEnd;break e;case"compositionupdate":o=Me.compositionUpdate;break e}o=void 0}else Le?Ae(e,n)&&(o=Me.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Me.compositionStart);return o?(ke&&(Le||o!==Me.compositionStart?o===Me.compositionEnd&&Le&&(i=me()):(ve._root=r,ve._startText=ye(),Le=!0)),o=Oe.getPooled(o,t,n,r),i?o.data=i:null!==(i=Ie(n))&&(o.data=i),ee(o),i=o):i=null,(e=Ne?function(e,t){switch(e){case"compositionend":return Ie(t);case"keypress":return 32!==t.which?null:(je=!0,Re);case"textInput":return(e=t.data)===Re&&je?null:e;default:return null}}(e,n):function(e,t){if(Le)return"compositionend"===e||!Pe&&Ae(e,t)?(e=me(),ve._root=null,ve._startText=null,ve._fallbackText=null,Le=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ke?null:t.data;default:return null}}(e,n))?((t=Te.getPooled(Me.beforeInput,t,n,r)).data=e,ee(t)):t=null,null===i?t:null===t?i:[i,t]}},Fe=null,Ue={injectFiberControlledHostComponent:function(e){Fe=e}},He=null,Ve=null;function We(e){if(e=S(e)){Fe&&"function"==typeof Fe.restoreControlledState||d("194");var t=T(e.stateNode);Fe.restoreControlledState(e.stateNode,e.type,t)}}function Be(e){He?Ve?Ve.push(e):Ve=[e]:He=e}function ze(){return null!==He||null!==Ve}function Ge(){if(He){var e=He,t=Ve;if(Ve=He=null,We(e),t)for(e=0;e<t.length;e++)We(t[e])}}var qe={injection:Ue,enqueueStateRestore:Be,needsStateRestore:ze,restoreStateIfNeeded:Ge};function Ke(e,t){return e(t)}function $e(e,t,n){return e(t,n)}function Ye(){}var Xe=!1;function Qe(e,t){if(Xe)return e(t);Xe=!0;try{return Ke(e,t)}finally{Xe=!1,ze()&&(Ye(),Ge())}}var Ze={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Je(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ze[e.type]:"textarea"===t}function et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function tt(e,t){return!(!i.canUseDOM||t&&!("addEventListener"in document))&&((t=(e="on"+e)in document)||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t)}function nt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function rt(e){e._valueTracker||(e._valueTracker=function(e){var t=nt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var it=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,at="function"==typeof Symbol&&Symbol.for,ut=at?Symbol.for("react.element"):60103,lt=at?Symbol.for("react.portal"):60106,st=at?Symbol.for("react.fragment"):60107,ct=at?Symbol.for("react.strict_mode"):60108,ft=at?Symbol.for("react.profiler"):60114,dt=at?Symbol.for("react.provider"):60109,pt=at?Symbol.for("react.context"):60110,ht=at?Symbol.for("react.async_mode"):60111,vt=at?Symbol.for("react.forward_ref"):60112,mt=at?Symbol.for("react.timeout"):60113,yt="function"==typeof Symbol&&Symbol.iterator;function gt(e){return null===e||void 0===e?null:"function"==typeof(e=yt&&e[yt]||e["@@iterator"])?e:null}function bt(e){var t=e.type;if("function"==typeof t)return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case ht:return"AsyncMode";case pt:return"Context.Consumer";case st:return"ReactFragment";case lt:return"ReactPortal";case ft:return"Profiler("+e.pendingProps.id+")";case dt:return"Context.Provider";case ct:return"StrictMode";case mt:return"Timeout"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case vt:return""!==(e=t.render.displayName||t.render.name||"")?"ForwardRef("+e+")":"ForwardRef"}return null}function wt(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,o=bt(e),i=null;n&&(i=bt(n)),n=r,o="\n in "+(o||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":i?" (created by "+i+")":"");break e;default:o=""}t+=o,e=e.return}while(e);return t}var Ct=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_t={},Et={};function Ot(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new Ot(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new Ot(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new Ot(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){Tt[e]=new Ot(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Tt[e]=new Ot(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new Ot(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){Tt[e]=new Ot(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){Tt[e]=new Ot(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){Tt[e]=new Ot(e,5,!1,e.toLowerCase(),null)});var St=/[\-:]([a-z])/g;function Pt(e){return e[1].toUpperCase()}function xt(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||void 0===t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Et.hasOwnProperty(e)||!_t.hasOwnProperty(e)&&(Ct.test(e)?Et[e]=!0:(_t[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Nt(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function kt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=It(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Rt(e,t){null!=(t=t.checked)&&xt(e,"checked",t,!1)}function Mt(e,t){Rt(e,t);var n=It(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?At(e,t.type,n):t.hasOwnProperty("defaultValue")&&At(e,t.type,It(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function jt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){t=""+e._wrapperState.initialValue;var r=e.value;n||t===r||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==n&&(e.name=n)}function At(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function It(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(St,Pt);Tt[t]=new Ot(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(St,Pt);Tt[t]=new Ot(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(St,Pt);Tt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),Tt.tabIndex=new Ot("tabIndex",1,!1,"tabindex",null);var Lt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Dt(e,t,n){return(e=we.getPooled(Lt.change,e,t,n)).type="change",Be(n),ee(e),e}var Ft=null,Ut=null;function Ht(e){D(e,!1)}function Vt(e){if(ot(z(e)))return e}function Wt(e,t){if("change"===e)return t}var Bt=!1;function zt(){Ft&&(Ft.detachEvent("onpropertychange",Gt),Ut=Ft=null)}function Gt(e){"value"===e.propertyName&&Vt(Ut)&&Qe(Ht,e=Dt(Ut,e,et(e)))}function qt(e,t,n){"focus"===e?(zt(),Ut=n,(Ft=t).attachEvent("onpropertychange",Gt)):"blur"===e&&zt()}function Kt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vt(Ut)}function $t(e,t){if("click"===e)return Vt(t)}function Yt(e,t){if("input"===e||"change"===e)return Vt(t)}i.canUseDOM&&(Bt=tt("input")&&(!document.documentMode||9<document.documentMode));var Xt={eventTypes:Lt,_isInputEventSupported:Bt,extractEvents:function(e,t,n,r){var o=t?z(t):window,i=void 0,a=void 0,u=o.nodeName&&o.nodeName.toLowerCase();if("select"===u||"input"===u&&"file"===o.type?i=Wt:Je(o)?Bt?i=Yt:(i=Kt,a=qt):(u=o.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=$t),i&&(i=i(e,t)))return Dt(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&At(o,"number",o.value)}},Qt=we.extend({view:null,detail:null}),Zt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Zt[e])&&!!t[e]}function en(){return Jt}var tn=Qt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:en,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),nn=tn.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),rn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},on={eventTypes:rn,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?B(t):null):i=null,i===t)return null;var a=void 0,u=void 0,l=void 0,s=void 0;return"mouseout"===e||"mouseover"===e?(a=tn,u=rn.mouseLeave,l=rn.mouseEnter,s="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=nn,u=rn.pointerLeave,l=rn.pointerEnter,s="pointer"),e=null==i?o:z(i),o=null==t?o:z(t),(u=a.getPooled(u,i,n,r)).type=s+"leave",u.target=e,u.relatedTarget=o,(n=a.getPooled(l,t,n,r)).type=s+"enter",n.target=o,n.relatedTarget=e,te(u,n,i,t),[u,n]}};function an(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function un(e){2!==an(e)&&d("188")}function ln(e){var t=e.alternate;if(!t)return 3===(t=an(e))&&d("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var a=o.child;a;){if(a===n)return un(o),e;if(a===r)return un(o),t;a=a.sibling}d("188")}if(n.return!==r.return)n=o,r=i;else{a=!1;for(var u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a){for(u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}a||d("189")}}n.alternate!==r&&d("190")}return 3!==n.tag&&d("188"),n.stateNode.current===n?e:t}function sn(e){if(!(e=ln(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var cn=we.extend({animationName:null,elapsedTime:null,pseudoElement:null}),fn=we.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dn=Qt.extend({relatedTarget:null});function pn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var hn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn=Qt.extend({key:function(e){if(e.key){var t=hn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=pn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:en,charCode:function(e){return"keypress"===e.type?pn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?pn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yn=tn.extend({dataTransfer:null}),gn=Qt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:en}),bn=we.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),wn=tn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),Cn=[["abort","abort"],[le,"animationEnd"],[se,"animationIteration"],[ce,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[fe,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],_n={},En={};function On(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},_n[e]=t,En[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){On(e,!0)}),Cn.forEach(function(e){On(e,!1)});var Tn={eventTypes:_n,isInteractiveTopLevelEventType:function(e){return void 0!==(e=En[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=En[e];if(!o)return null;switch(e){case"keypress":if(0===pn(n))return null;case"keydown":case"keyup":e=mn;break;case"blur":case"focus":e=dn;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=gn;break;case le:case se:case ce:e=cn;break;case fe:e=bn;break;case"scroll":e=Qt;break;case"wheel":e=wn;break;case"copy":case"cut":case"paste":e=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=nn;break;default:e=we}return ee(t=e.getPooled(o,t,n,r)),t}},Sn=Tn.isInteractiveTopLevelEventType,Pn=[];function xn(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=B(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],F(e.topLevelType,t,e.nativeEvent,et(e.nativeEvent))}var Nn=!0;function kn(e){Nn=!!e}function Rn(e,t){if(!t)return null;var n=(Sn(e)?jn:An).bind(null,e);t.addEventListener(e,n,!1)}function Mn(e,t){if(!t)return null;var n=(Sn(e)?jn:An).bind(null,e);t.addEventListener(e,n,!0)}function jn(e,t){$e(An,e,t)}function An(e,t){if(Nn){var n=et(t);if(null===(n=B(n))||"number"!=typeof n.tag||2===an(n)||(n=null),Pn.length){var r=Pn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Qe(xn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Pn.length&&Pn.push(e)}}}var In={get _enabled(){return Nn},setEnabled:kn,isEnabled:function(){return Nn},trapBubbledEvent:Rn,trapCapturedEvent:Mn,dispatchEvent:An},Ln={},Dn=0,Fn="_reactListenersID"+(""+Math.random()).slice(2);function Un(e){return Object.prototype.hasOwnProperty.call(e,Fn)||(e[Fn]=Dn++,Ln[e[Fn]]={}),Ln[e[Fn]]}function Hn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vn(e,t){var n,r=Hn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Hn(r)}}function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Bn=i.canUseDOM&&"documentMode"in document&&11>=document.documentMode,zn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Gn=null,qn=null,Kn=null,$n=!1;function Yn(e,t){if($n||null==Gn||Gn!==l())return null;var n=Gn;return"selectionStart"in n&&Wn(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,Kn&&s(Kn,n)?null:(Kn=n,(e=we.getPooled(zn.select,qn,e,t)).type="select",e.target=Gn,ee(e),e)}var Xn={eventTypes:zn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Un(i),o=C.onSelect;for(var a=0;a<o.length;a++){var u=o[a];if(!i.hasOwnProperty(u)||!i[u]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?z(t):window,e){case"focus":(Je(i)||"true"===i.contentEditable)&&(Gn=i,qn=t,Kn=null);break;case"blur":Kn=qn=Gn=null;break;case"mousedown":$n=!0;break;case"contextmenu":case"mouseup":return $n=!1,Yn(n,r);case"selectionchange":if(Bn)break;case"keydown":case"keyup":return Yn(n,r)}return null}};I.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),T=q.getFiberCurrentPropsFromNode,S=q.getInstanceFromNode,P=q.getNodeFromInstance,I.injectEventPluginsByName({SimpleEventPlugin:Tn,EnterLeaveEventPlugin:on,ChangeEventPlugin:Xt,SelectEventPlugin:Xn,BeforeInputEventPlugin:De});var Qn="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,Zn=Date,Jn=setTimeout,er=clearTimeout,tr=void 0;if("object"==typeof performance&&"function"==typeof performance.now){var nr=performance;tr=function(){return nr.now()}}else tr=function(){return Zn.now()};var rr=void 0,or=void 0;if(i.canUseDOM){var ir="function"==typeof Qn?Qn:function(){d("276")},ar=null,ur=null,lr=-1,sr=!1,cr=!1,fr=0,dr=33,pr=33,hr={didTimeout:!1,timeRemaining:function(){var e=fr-tr();return 0<e?e:0}},vr=function(e,t){var n=e.scheduledCallback,r=!1;try{n(t),r=!0}finally{or(e),r||(sr=!0,window.postMessage(mr,"*"))}},mr="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===mr&&(sr=!1,null!==ar)){if(null!==ar){var t=tr();if(!(-1===lr||lr>t)){e=-1;for(var n=[],r=ar;null!==r;){var o=r.timeoutTime;-1!==o&&o<=t?n.push(r):-1!==o&&(-1===e||o<e)&&(e=o),r=r.next}if(0<n.length)for(hr.didTimeout=!0,t=0,r=n.length;t<r;t++)vr(n[t],hr);lr=e}}for(e=tr();0<fr-e&&null!==ar;)e=ar,hr.didTimeout=!1,vr(e,hr),e=tr();null===ar||cr||(cr=!0,ir(yr))}},!1);var yr=function(e){cr=!1;var t=e-fr+pr;t<pr&&dr<pr?(8>t&&(t=8),pr=t<dr?dr:t):dr=t,fr=e+pr,sr||(sr=!0,window.postMessage(mr,"*"))};rr=function(e,t){var n=-1;return null!=t&&"number"==typeof t.timeout&&(n=tr()+t.timeout),(-1===lr||-1!==n&&n<lr)&&(lr=n),e={scheduledCallback:e,timeoutTime:n,prev:null,next:null},null===ar?ar=e:null!==(t=e.prev=ur)&&(t.next=e),ur=e,cr||(cr=!0,ir(yr)),e},or=function(e){if(null!==e.prev||ar===e){var t=e.next,n=e.prev;e.next=null,e.prev=null,null!==t?null!==n?(n.next=t,t.prev=n):(t.prev=null,ar=t):null!==n?(n.next=null,ur=n):ur=ar=null}}}else{var gr=new Map;rr=function(e){var t={scheduledCallback:e,timeoutTime:0,next:null,prev:null},n=Jn(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return gr.set(e,n),t},or=function(e){var t=gr.get(e.scheduledCallback);gr.delete(e),er(t)}}function br(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(t.children))&&(e.children=t),e}function wr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Cr(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function _r(e,t){return null!=t.dangerouslySetInnerHTML&&d("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Er(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&d("92"),Array.isArray(t)&&(1>=t.length||d("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Or(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Tr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}var Sr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Pr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Pr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Nr,kr=void 0,Rr=(Nr=function(e,t){if(e.namespaceURI!==Sr.svg||"innerHTML"in e)e.innerHTML=t;else{for((kr=kr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=kr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Nr(e,t)})}:Nr);function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var jr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ar=["Webkit","ms","Moz","O"];function Ir(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,i=t[n];o=null==i||"boolean"==typeof i||""===i?"":r||"number"!=typeof i||0===i||jr.hasOwnProperty(o)&&jr[o]?(""+i).trim():i+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(jr).forEach(function(e){Ar.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jr[t]=jr[e]})});var Lr=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Dr(e,t,n){t&&(Lr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&d("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&d("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||d("61")),null!=t.style&&"object"!=typeof t.style&&d("62",n()))}function Fr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ur=u.thatReturns("");function Hr(e,t){var n=Un(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=C[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":Mn("scroll",e);break;case"focus":case"blur":Mn("focus",e),Mn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":tt(o,!0)&&Mn(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===de.indexOf(o)&&Rn(o,e)}n[o]=!0}}}function Vr(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===Sr.html&&(r=Pr(e)),r===Sr.html?"script"===e?((e=n.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function Wr(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function Br(e,t,n,r){var o=Fr(t,n);switch(t){case"iframe":case"object":Rn("load",e);var i=n;break;case"video":case"audio":for(i=0;i<de.length;i++)Rn(de[i],e);i=n;break;case"source":Rn("error",e),i=n;break;case"img":case"image":case"link":Rn("error",e),Rn("load",e),i=n;break;case"form":Rn("reset",e),Rn("submit",e),i=n;break;case"details":Rn("toggle",e),i=n;break;case"input":kt(e,n),i=Nt(e,n),Rn("invalid",e),Hr(r,"onChange");break;case"option":i=br(e,n);break;case"select":Cr(e,n),i=a({},n,{value:void 0}),Rn("invalid",e),Hr(r,"onChange");break;case"textarea":Er(e,n),i=_r(e,n),Rn("invalid",e),Hr(r,"onChange");break;default:i=n}Dr(t,i,Ur);var l,s=i;for(l in s)if(s.hasOwnProperty(l)){var c=s[l];"style"===l?Ir(e,c):"dangerouslySetInnerHTML"===l?null!=(c=c?c.__html:void 0)&&Rr(e,c):"children"===l?"string"==typeof c?("textarea"!==t||""!==c)&&Mr(e,c):"number"==typeof c&&Mr(e,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(w.hasOwnProperty(l)?null!=c&&Hr(r,l):null!=c&&xt(e,l,c,o))}switch(t){case"input":rt(e),jt(e,n,!1);break;case"textarea":rt(e),Tr(e);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,null!=(t=n.value)?wr(e,!!n.multiple,t,!1):null!=n.defaultValue&&wr(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=u)}}function zr(e,t,n,r,o){var i=null;switch(t){case"input":n=Nt(e,n),r=Nt(e,r),i=[];break;case"option":n=br(e,n),r=br(e,r),i=[];break;case"select":n=a({},n,{value:void 0}),r=a({},r,{value:void 0}),i=[];break;case"textarea":n=_r(e,n),r=_r(e,r),i=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=u)}Dr(t,r,Ur),t=e=void 0;var l=null;for(e in n)if(!r.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var s=n[e];for(t in s)s.hasOwnProperty(t)&&(l||(l={}),l[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(w.hasOwnProperty(e)?i||(i=[]):(i=i||[]).push(e,null));for(e in r){var c=r[e];if(s=null!=n?n[e]:void 0,r.hasOwnProperty(e)&&c!==s&&(null!=c||null!=s))if("style"===e)if(s){for(t in s)!s.hasOwnProperty(t)||c&&c.hasOwnProperty(t)||(l||(l={}),l[t]="");for(t in c)c.hasOwnProperty(t)&&s[t]!==c[t]&&(l||(l={}),l[t]=c[t])}else l||(i||(i=[]),i.push(e,l)),l=c;else"dangerouslySetInnerHTML"===e?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(e,""+c)):"children"===e?s===c||"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(e,""+c):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(w.hasOwnProperty(e)?(null!=c&&Hr(o,e),i||s===c||(i=[])):(i=i||[]).push(e,c))}return l&&(i=i||[]).push("style",l),i}function Gr(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&Rt(e,o),Fr(n,r),r=Fr(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],u=t[i+1];"style"===a?Ir(e,u):"dangerouslySetInnerHTML"===a?Rr(e,u):"children"===a?Mr(e,u):xt(e,a,u,r)}switch(n){case"input":Mt(e,o);break;case"textarea":Or(e,o);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,null!=(n=o.value)?wr(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?wr(e,!!o.multiple,o.defaultValue,!0):wr(e,!!o.multiple,o.multiple?[]:"",!1))}}function qr(e,t,n,r,o){switch(t){case"iframe":case"object":Rn("load",e);break;case"video":case"audio":for(r=0;r<de.length;r++)Rn(de[r],e);break;case"source":Rn("error",e);break;case"img":case"image":case"link":Rn("error",e),Rn("load",e);break;case"form":Rn("reset",e),Rn("submit",e);break;case"details":Rn("toggle",e);break;case"input":kt(e,n),Rn("invalid",e),Hr(o,"onChange");break;case"select":Cr(e,n),Rn("invalid",e),Hr(o,"onChange");break;case"textarea":Er(e,n),Rn("invalid",e),Hr(o,"onChange")}for(var i in Dr(t,n,Ur),r=null,n)if(n.hasOwnProperty(i)){var a=n[i];"children"===i?"string"==typeof a?e.textContent!==a&&(r=["children",a]):"number"==typeof a&&e.textContent!==""+a&&(r=["children",""+a]):w.hasOwnProperty(i)&&null!=a&&Hr(o,i)}switch(t){case"input":rt(e),jt(e,n,!0);break;case"textarea":rt(e),Tr(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=u)}return r}function Kr(e,t){return e.nodeValue!==t}var $r={createElement:Vr,createTextNode:Wr,setInitialProperties:Br,diffProperties:zr,updateProperties:Gr,diffHydratedProperties:qr,diffHydratedText:Kr,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Mt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=G(r);o||d("90"),ot(r),Mt(r,o)}}}break;case"textarea":Or(e,n);break;case"select":null!=(t=n.value)&&wr(e,!!n.multiple,t,!1)}}},Yr=null,Xr=null;function Qr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Zr(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html}var Jr=tr,eo=rr,to=or;function no(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function ro(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var oo=[],io=-1;function ao(e){return{current:e}}function uo(e){0>io||(e.current=oo[io],oo[io]=null,io--)}function lo(e,t){oo[++io]=e.current,e.current=t}var so=ao(f),co=ao(!1),fo=f;function po(e){return vo(e)?fo:so.current}function ho(e,t){var n=e.type.contextTypes;if(!n)return f;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vo(e){return 2===e.tag&&null!=e.type.childContextTypes}function mo(e){vo(e)&&(uo(co),uo(so))}function yo(e){uo(co),uo(so)}function go(e,t,n){so.current!==f&&d("168"),lo(so,t),lo(co,n)}function bo(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var o in n=n.getChildContext())o in r||d("108",bt(e)||"Unknown",o);return a({},t,n)}function wo(e){if(!vo(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||f,fo=so.current,lo(so,t),lo(co,co.current),!0}function Co(e,t){var n=e.stateNode;if(n||d("169"),t){var r=bo(e,fo);n.__reactInternalMemoizedMergedChildContext=r,uo(co),uo(so),lo(so,r)}else uo(co);lo(co,t)}function _o(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Eo(e,t,n){var r=e.alternate;return null===r?((r=new _o(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Oo(e,t,n){var r=e.type,o=e.key;if(e=e.props,"function"==typeof r)var i=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)i=5;else switch(r){case st:return To(e.children,t,n,o);case ht:i=11,t|=3;break;case ct:i=11,t|=2;break;case ft:return(r=new _o(15,e,o,4|t)).type=ft,r.expirationTime=n,r;case mt:i=16,t|=2;break;default:e:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case dt:i=13;break e;case pt:i=12;break e;case vt:i=14;break e;default:d("130",null==r?r:typeof r,"")}i=void 0}}return(t=new _o(i,e,o,t)).type=r,t.expirationTime=n,t}function To(e,t,n,r){return(e=new _o(10,e,r,t)).expirationTime=n,e}function So(e,t,n){return(e=new _o(6,e,null,t)).expirationTime=n,e}function Po(e,t,n){return(t=new _o(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xo(e,t,n){return e={current:t=new _o(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}var No=null,ko=null;function Ro(e){return function(t){try{return e(t)}catch(e){}}}function Mo(e){"function"==typeof No&&No(e)}function jo(e){"function"==typeof ko&&ko(e)}var Ao=!1;function Io(e){return{expirationTime:0,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Lo(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Do(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Fo(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n)}function Uo(e,t,n){var r=e.alternate;if(null===r){var o=e.updateQueue,i=null;null===o&&(o=e.updateQueue=Io(e.memoizedState))}else o=e.updateQueue,i=r.updateQueue,null===o?null===i?(o=e.updateQueue=Io(e.memoizedState),i=r.updateQueue=Io(r.memoizedState)):o=e.updateQueue=Lo(i):null===i&&(i=r.updateQueue=Lo(o));null===i||o===i?Fo(o,t,n):null===o.lastUpdate||null===i.lastUpdate?(Fo(o,t,n),Fo(i,t,n)):(Fo(o,t,n),i.lastUpdate=t)}function Ho(e,t,n){var r=e.updateQueue;null===(r=null===r?e.updateQueue=Io(e.memoizedState):Vo(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Vo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Lo(t)),t}function Wo(e,t,n,r,o,i){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(i,r,o):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null===(o="function"==typeof(e=n.payload)?e.call(i,r,o):e)||void 0===o)break;return a({},r,o);case 2:Ao=!0}return r}function Bo(e,t,n,r,o){if(Ao=!1,!(0===t.expirationTime||t.expirationTime>o)){for(var i=(t=Vo(e,t)).baseState,a=null,u=0,l=t.firstUpdate,s=i;null!==l;){var c=l.expirationTime;c>o?(null===a&&(a=l,i=s),(0===u||u>c)&&(u=c)):(s=Wo(e,0,l,s,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f>o?(null===c&&(c=l,null===a&&(i=s)),(0===u||u>f)&&(u=f)):(s=Wo(e,0,l,s,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=s),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,t.expirationTime=u,e.memoizedState=s}}function zo(e,t){"function"!=typeof e&&d("191",e),e.call(t)}function Go(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,zo(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)null!==(t=e.callback)&&(e.callback=null,zo(t,n)),e=e.nextEffect}function qo(e,t){return{value:e,source:t,stack:wt(t)}}var Ko=ao(null),$o=ao(null),Yo=ao(0);function Xo(e){var t=e.type._context;lo(Yo,t._changedBits),lo($o,t._currentValue),lo(Ko,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function Qo(e){var t=Yo.current,n=$o.current;uo(Ko),uo($o),uo(Yo),(e=e.type._context)._currentValue=n,e._changedBits=t}var Zo={},Jo=ao(Zo),ei=ao(Zo),ti=ao(Zo);function ni(e){return e===Zo&&d("174"),e}function ri(e,t){lo(ti,t),lo(ei,e),lo(Jo,Zo);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xr(null,"");break;default:t=xr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}uo(Jo),lo(Jo,t)}function oi(e){uo(Jo),uo(ei),uo(ti)}function ii(e){ei.current===e&&(uo(Jo),uo(ei))}function ai(e,t,n){var r=e.memoizedState;r=null===(t=t(n,r))||void 0===t?r:a({},r,t),e.memoizedState=r,null!==(e=e.updateQueue)&&0===e.expirationTime&&(e.baseState=r)}var ui={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===an(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ba(),o=Do(r=ya(r,e));o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Uo(e,o,r),ga(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ba(),o=Do(r=ya(r,e));o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),Uo(e,o,r),ga(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ba(),r=Do(n=ya(n,e));r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Uo(e,r,n),ga(e,n)}};function li(e,t,n,r,o,i){var a=e.stateNode;return e=e.type,"function"==typeof a.shouldComponentUpdate?a.shouldComponentUpdate(n,o,i):!e.prototype||!e.prototype.isPureReactComponent||(!s(t,n)||!s(r,o))}function si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ui.enqueueReplaceState(t,t.state,null)}function ci(e,t){var n=e.type,r=e.stateNode,o=e.pendingProps,i=po(e);r.props=o,r.state=e.memoizedState,r.refs=f,r.context=ho(e,i),null!==(i=e.updateQueue)&&(Bo(e,i,o,r,t),r.state=e.memoizedState),"function"==typeof(i=e.type.getDerivedStateFromProps)&&(ai(e,i,o),r.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&ui.enqueueReplaceState(r,r.state,null),null!==(i=e.updateQueue)&&(Bo(e,i,o,r,t),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var fi=Array.isArray;function di(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){var r=void 0;(n=n._owner)&&(2!==n.tag&&d("110"),r=n.stateNode),r||d("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs===f?r.refs={}:r.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&d("148"),n._owner||d("254",e)}return e}function pi(e,t){"textarea"!==e.type&&d("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function hi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=Eo(e,t,n)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=So(n,e.mode,r)).return=e,t):((t=o(t,n,r)).return=e,t)}function l(e,t,n,r){return null!==t&&t.type===n.type?((r=o(t,n.props,r)).ref=di(e,t,n),r.return=e,r):((r=Oo(n,e.mode,r)).ref=di(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Po(n,e.mode,r)).return=e,t):((t=o(t,n.children||[],r)).return=e,t)}function c(e,t,n,r,i){return null===t||10!==t.tag?((t=To(n,e.mode,r,i)).return=e,t):((t=o(t,n,r)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=So(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ut:return(n=Oo(t,e.mode,n)).ref=di(e,null,t),n.return=e,n;case lt:return(t=Po(t,e.mode,n)).return=e,t}if(fi(t)||gt(t))return(t=To(t,e.mode,n,null)).return=e,t;pi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ut:return n.key===o?n.type===st?c(e,t,n.props.children,r,o):l(e,t,n,r):null;case lt:return n.key===o?s(e,t,n,r):null}if(fi(n)||gt(n))return null!==o?null:c(e,t,n,r,null);pi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ut:return e=e.get(null===r.key?n:r.key)||null,r.type===st?c(t,e,r.props.children,o,r.key):l(t,e,r,o);case lt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(fi(r)||gt(r))return c(t,e=e.get(n)||null,r,o,null);pi(t,r)}return null}function v(o,a,u,l){for(var s=null,c=null,d=a,v=a=0,m=null;null!==d&&v<u.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var y=p(o,d,u[v],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(o,d),a=i(y,a,v),null===c?s=y:c.sibling=y,c=y,d=m}if(v===u.length)return n(o,d),s;if(null===d){for(;v<u.length;v++)(d=f(o,u[v],l))&&(a=i(d,a,v),null===c?s=d:c.sibling=d,c=d);return s}for(d=r(o,d);v<u.length;v++)(m=h(d,o,v,u[v],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),a=i(m,a,v),null===c?s=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(o,e)}),s}function m(o,a,u,l){var s=gt(u);"function"!=typeof s&&d("150"),null==(u=s.call(u))&&d("151");for(var c=s=null,v=a,m=a=0,y=null,g=u.next();null!==v&&!g.done;m++,g=u.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(o,v,g.value,l);if(null===b){v||(v=y);break}e&&v&&null===b.alternate&&t(o,v),a=i(b,a,m),null===c?s=b:c.sibling=b,c=b,v=y}if(g.done)return n(o,v),s;if(null===v){for(;!g.done;m++,g=u.next())null!==(g=f(o,g.value,l))&&(a=i(g,a,m),null===c?s=g:c.sibling=g,c=g);return s}for(v=r(o,v);!g.done;m++,g=u.next())null!==(g=h(v,o,m,g.value,l))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?s=g:c.sibling=g,c=g);return e&&v.forEach(function(e){return t(o,e)}),s}return function(e,r,i,u){var l="object"==typeof i&&null!==i&&i.type===st&&null===i.key;l&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case ut:e:{for(s=i.key,l=r;null!==l;){if(l.key===s){if(10===l.tag?i.type===st:l.type===i.type){n(e,l.sibling),(r=o(l,i.type===st?i.props.children:i.props,u)).ref=di(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===st?((r=To(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Oo(i,e.mode,u)).ref=di(e,r,i),u.return=e,e=u)}return a(e);case lt:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[],u)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Po(i,e.mode,u)).return=e,e=r}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i,u)).return=e,e=r):(n(e,r),(r=So(i,e.mode,u)).return=e,e=r),a(e);if(fi(i))return v(e,r,i,u);if(gt(i))return m(e,r,i,u);if(s&&pi(e,i),void 0===i&&!l)switch(e.tag){case 2:case 1:d("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var vi=hi(!0),mi=hi(!1),yi=null,gi=null,bi=!1;function wi(e,t){var n=new _o(5,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function _i(e){if(bi){var t=gi;if(t){var n=t;if(!Ci(e,t)){if(!(t=no(n))||!Ci(e,t))return e.effectTag|=2,bi=!1,void(yi=e);wi(yi,n)}yi=e,gi=ro(t)}else e.effectTag|=2,bi=!1,yi=e}}function Ei(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;yi=e}function Oi(e){if(e!==yi)return!1;if(!bi)return Ei(e),bi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Zr(t,e.memoizedProps))for(t=gi;t;)wi(e,t),t=no(t);return Ei(e),gi=yi?no(e.stateNode):null,!0}function Ti(){gi=yi=null,bi=!1}function Si(e,t,n){Pi(e,t,n,t.expirationTime)}function Pi(e,t,n,r){t.child=null===e?mi(t,null,n,r):vi(t,e.child,n,r)}function xi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ni(e,t,n,r,o){xi(e,t);var i=0!=(64&t.effectTag);if(!n&&!i)return r&&Co(t,!1),Mi(e,t);n=t.stateNode,it.current=t;var a=i?null:n.render();return t.effectTag|=1,i&&(Pi(e,t,null,o),t.child=null),Pi(e,t,a,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&Co(t,!0),t.child}function ki(e){var t=e.stateNode;t.pendingContext?go(0,t.pendingContext,t.pendingContext!==t.context):t.context&&go(0,t.context,!1),ri(e,t.containerInfo)}function Ri(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){switch(o.tag){case 12:var i=0|o.stateNode;if(o.type===t&&0!=(i&n)){for(i=o;null!==i;){var a=i.alternate;if(0===i.expirationTime||i.expirationTime>r)i.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}i=i.return}i=null}else i=o.child;break;case 13:i=o.type===e.type?null:o.child;break;default:i=o.child}if(null!==i)i.return=o;else for(i=o;null!==i;){if(i===e){i=null;break}if(null!==(o=i.sibling)){o.return=i.return,i=o;break}i=i.return}o=i}}function Mi(e,t){if(null!==e&&t.child!==e.child&&d("153"),null!==t.child){var n=Eo(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Eo(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function ji(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:ki(t);break;case 2:wo(t);break;case 4:ri(t,t.stateNode.containerInfo);break;case 13:Xo(t)}return null}switch(t.tag){case 0:null!==e&&d("155");var r=t.type,o=t.pendingProps,i=po(t);return r=r(o,i=ho(t,i)),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(i=t.type,t.tag=2,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(i=i.getDerivedStateFromProps)&&ai(t,i,o),o=wo(t),r.updater=ui,t.stateNode=r,r._reactInternalFiber=t,ci(t,n),e=Ni(e,t,!0,o,n)):(t.tag=1,Si(e,t,r),t.memoizedProps=o,e=t.child),e;case 1:return o=t.type,n=t.pendingProps,co.current||t.memoizedProps!==n?(o=o(n,r=ho(t,r=po(t))),t.effectTag|=1,Si(e,t,o),t.memoizedProps=n,e=t.child):e=Mi(e,t),e;case 2:if(o=wo(t),null===e)if(null===t.stateNode){var a=t.pendingProps,u=t.type;r=po(t);var l=2===t.tag&&null!=t.type.contextTypes;a=new u(a,i=l?ho(t,r):f),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ui,t.stateNode=a,a._reactInternalFiber=t,l&&((l=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,l.__reactInternalMemoizedMaskedChildContext=i),ci(t,n),r=!0}else{u=t.type,r=t.stateNode,l=t.memoizedProps,i=t.pendingProps,r.props=l;var s=r.context;a=ho(t,a=po(t));var c=u.getDerivedStateFromProps;(u="function"==typeof c||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(l!==i||s!==a)&&si(t,r,i,a),Ao=!1;var p=t.memoizedState;s=r.state=p;var h=t.updateQueue;null!==h&&(Bo(t,h,i,r,n),s=t.memoizedState),l!==i||p!==s||co.current||Ao?("function"==typeof c&&(ai(t,c,i),s=t.memoizedState),(l=Ao||li(t,l,i,p,s,a))?(u||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.effectTag|=4)):("function"==typeof r.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=s),r.props=i,r.state=s,r.context=a,r=l):("function"==typeof r.componentDidMount&&(t.effectTag|=4),r=!1)}else u=t.type,r=t.stateNode,i=t.memoizedProps,l=t.pendingProps,r.props=i,s=r.context,a=ho(t,a=po(t)),(u="function"==typeof(c=u.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(i!==l||s!==a)&&si(t,r,l,a),Ao=!1,s=t.memoizedState,p=r.state=s,null!==(h=t.updateQueue)&&(Bo(t,h,l,r,n),p=t.memoizedState),i!==l||s!==p||co.current||Ao?("function"==typeof c&&(ai(t,c,l),p=t.memoizedState),(c=Ao||li(t,i,l,s,p,a))?(u||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(l,p,a),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(l,p,a)),"function"==typeof r.componentDidUpdate&&(t.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof r.componentDidUpdate||i===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||i===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=l,t.memoizedState=p),r.props=l,r.state=p,r.context=a,r=c):("function"!=typeof r.componentDidUpdate||i===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||i===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return Ni(e,t,r,o,n);case 3:return ki(t),null!==(o=t.updateQueue)?(r=null!==(r=t.memoizedState)?r.element:null,Bo(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(Ti(),e=Mi(e,t)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(gi=ro(t.stateNode.containerInfo),yi=t,r=bi=!0),r?(t.effectTag|=2,t.child=mi(t,null,o,n)):(Ti(),Si(e,t,o)),e=t.child)):(Ti(),e=Mi(e,t)),e;case 5:return ni(ti.current),(o=ni(Jo.current))!==(r=xr(o,t.type))&&(lo(ei,t),lo(Jo,r)),null===e&&_i(t),o=t.type,l=t.memoizedProps,r=t.pendingProps,i=null!==e?e.memoizedProps:null,co.current||l!==r||((l=1&t.mode&&!!r.hidden)&&(t.expirationTime=1073741823),l&&1073741823===n)?(l=r.children,Zr(o,r)?l=null:i&&Zr(o,i)&&(t.effectTag|=16),xi(e,t),1073741823!==n&&1&t.mode&&r.hidden?(t.expirationTime=1073741823,t.memoizedProps=r,e=null):(Si(e,t,l),t.memoizedProps=r,e=t.child)):e=Mi(e,t),e;case 6:return null===e&&_i(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return ri(t,t.stateNode.containerInfo),o=t.pendingProps,co.current||t.memoizedProps!==o?(null===e?t.child=vi(t,null,o,n):Si(e,t,o),t.memoizedProps=o,e=t.child):e=Mi(e,t),e;case 14:return o=t.type.render,n=t.pendingProps,r=t.ref,co.current||t.memoizedProps!==n||r!==(null!==e?e.ref:null)?(Si(e,t,o=o(n,r)),t.memoizedProps=n,e=t.child):e=Mi(e,t),e;case 10:return n=t.pendingProps,co.current||t.memoizedProps!==n?(Si(e,t,n),t.memoizedProps=n,e=t.child):e=Mi(e,t),e;case 11:return n=t.pendingProps.children,co.current||null!==n&&t.memoizedProps!==n?(Si(e,t,n),t.memoizedProps=n,e=t.child):e=Mi(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=Mi(e,t):(Si(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return function(e,t,n){var r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=!0;if(co.current)a=!1;else if(i===o)return t.stateNode=0,Xo(t),Mi(e,t);var u=o.value;if(t.memoizedProps=o,null===i)u=1073741823;else if(i.value===o.value){if(i.children===o.children&&a)return t.stateNode=0,Xo(t),Mi(e,t);u=0}else{var l=i.value;if(l===u&&(0!==l||1/l==1/u)||l!=l&&u!=u){if(i.children===o.children&&a)return t.stateNode=0,Xo(t),Mi(e,t);u=0}else if(u="function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,u):1073741823,0==(u|=0)){if(i.children===o.children&&a)return t.stateNode=0,Xo(t),Mi(e,t)}else Ri(t,r,u,n)}return t.stateNode=u,Xo(t),Si(e,t,o.children),t.child}(e,t,n);case 12:e:if(r=t.type,i=t.pendingProps,l=t.memoizedProps,o=r._currentValue,a=r._changedBits,co.current||0!==a||l!==i){if(t.memoizedProps=i,void 0!==(u=i.unstable_observedBits)&&null!==u||(u=1073741823),t.stateNode=u,0!=(a&u))Ri(t,r,a,n);else if(l===i){e=Mi(e,t);break e}n=(n=i.children)(o),t.effectTag|=1,Si(e,t,n),e=t.child}else e=Mi(e,t);return e;default:d("156")}}function Ai(e){e.effectTag|=4}var Ii=void 0,Li=void 0,Di=void 0;function Fi(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return mo(t),null;case 3:oi(),yo();var r=t.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Oi(t),t.effectTag&=-3),Ii(t),null;case 5:ii(t),r=ni(ti.current);var o=t.type;if(null!==e&&null!=t.stateNode){var i=e.memoizedProps,a=t.stateNode,u=ni(Jo.current);a=zr(a,o,i,n,r),Li(e,t,a,o,i,n,r,u),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return null===t.stateNode&&d("166"),null;if(e=ni(Jo.current),Oi(t))n=t.stateNode,o=t.type,i=t.memoizedProps,n[V]=t,n[W]=i,r=qr(n,o,i,e,r),t.updateQueue=r,null!==r&&Ai(t);else{(e=Vr(o,n,r,e))[V]=t,e[W]=n;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}Br(e,o,n,r),Qr(o,n)&&Ai(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Di(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return null===t.stateNode&&d("166"),null;r=ni(ti.current),ni(Jo.current),Oi(t)?(r=t.stateNode,n=t.memoizedProps,r[V]=t,Kr(r,n)&&Ai(t)):((r=Wr(n,r))[V]=t,t.stateNode=r)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return oi(),Ii(t),null;case 13:return Qo(t),null;case 12:return null;case 0:d("167");default:d("156")}}function Ui(e,t){var n=t.source;null===t.stack&&null!==n&&wt(n),null!==n&&bt(n),t=t.value,null!==e&&2===e.tag&&bt(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function Hi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){va(e,t)}else t.current=null}function Vi(e){switch(jo(e),e.tag){case 2:Hi(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){va(e,t)}break;case 5:Hi(e);break;case 4:zi(e)}}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function Bi(e){e:{for(var t=e.return;null!==t;){if(Wi(t)){var n=t;break e}t=t.return}d("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:d("161")}16&n.effectTag&&(Mr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,a=o.stateNode,u=n;8===i.nodeType?i.parentNode.insertBefore(a,u):i.insertBefore(a,u)}else t.insertBefore(o.stateNode,n);else r?(i=t,a=o.stateNode,8===i.nodeType?i.parentNode.insertBefore(a,i):i.appendChild(a)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function zi(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&d("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,a=i;;)if(Vi(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===i)break;for(;null===a.sibling;){if(null===a.return||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(i=r,a=t.stateNode,8===i.nodeType?i.parentNode.removeChild(a):i.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag?r=t.stateNode.containerInfo:Vi(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Gi(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&(n[W]=r,Gr(n,i,o,e,r))}break;case 6:null===t.stateNode&&d("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 15:case 16:break;default:d("163")}}function qi(e,t,n){(n=Do(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Za(r),Ui(e,t)},n}function Ki(e,t,n){(n=Do(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===ca?ca=new Set([this]):ca.add(this);var n=t.value,r=t.stack;Ui(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function $i(e,t,n,r,o,i){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=qo(r,n),e=t;do{switch(e.tag){case 3:return e.effectTag|=1024,void Ho(e,r=qi(e,r,i),i);case 2:if(t=r,n=e.stateNode,0==(64&e.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===ca||!ca.has(n)))return e.effectTag|=1024,void Ho(e,r=Ki(e,t,i),i)}e=e.return}while(null!==e)}function Yi(e){switch(e.tag){case 2:mo(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return oi(),yo(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return ii(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 4:return oi(),null;case 13:return Qo(e),null;default:return null}}Ii=function(){},Li=function(e,t,n){(t.updateQueue=n)&&Ai(t)},Di=function(e,t,n,r){n!==r&&Ai(t)};var Xi=Jr(),Qi=2,Zi=Xi,Ji=0,ea=0,ta=!1,na=null,ra=null,oa=0,ia=-1,aa=!1,ua=null,la=!1,sa=!1,ca=null;function fa(){if(null!==na)for(var e=na.return;null!==e;){var t=e;switch(t.tag){case 2:mo(t);break;case 3:oi(),yo();break;case 5:ii(t);break;case 4:oi();break;case 13:Qo(t)}e=e.return}ra=null,oa=0,ia=-1,aa=!1,na=null,sa=!1}function da(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){t=Fi(t,e);var o=e;if(1073741823===oa||1073741823!==o.expirationTime){var i=0;switch(o.tag){case 3:case 2:var a=o.updateQueue;null!==a&&(i=a.expirationTime)}for(a=o.child;null!==a;)0!==a.expirationTime&&(0===i||i>a.expirationTime)&&(i=a.expirationTime),a=a.sibling;o.expirationTime=i}if(null!==t)return t;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){sa=!0;break}e=n}else{if(null!==(e=Yi(e)))return e.effectTag&=511,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;e=n}}return null}function pa(e){var t=ji(e.alternate,e,oa);return null===t&&(t=da(e)),it.current=null,t}function ha(e,t,n){ta&&d("243"),ta=!0,t===oa&&e===ra&&null!==na||(fa(),oa=t,ia=-1,na=Eo((ra=e).current,null,oa),e.pendingCommitExpirationTime=0);var r=!1;for(aa=!n||oa<=Qi;;){try{if(n)for(;null!==na&&!Qa();)na=pa(na);else for(;null!==na;)na=pa(na)}catch(t){if(null===na)r=!0,Za(t);else{null===na&&d("271");var o=(n=na).return;if(null===o){r=!0,Za(t);break}$i(e,o,n,t,0,oa),na=da(n)}}break}if(ta=!1,r)return null;if(null===na){if(sa)return e.pendingCommitExpirationTime=t,e.current.alternate;aa&&d("262"),0<=ia&&setTimeout(function(){var t=e.current.expirationTime;0!==t&&(0===e.remainingExpirationTime||e.remainingExpirationTime<t)&&Wa(e,t)},ia),function(e){null===Pa&&d("246"),Pa.remainingExpirationTime=e}(e.current.expirationTime)}return null}function va(e,t){var n;e:{for(ta&&!la&&d("263"),n=e.return;null!==n;){switch(n.tag){case 2:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===ca||!ca.has(r))){Uo(n,e=Ki(n,e=qo(t,e),1),1),ga(n,1),n=void 0;break e}break;case 3:Uo(n,e=qi(n,e=qo(t,e),1),1),ga(n,1),n=void 0;break e}n=n.return}3===e.tag&&(Uo(e,n=qi(e,n=qo(t,e),1),1),ga(e,1)),n=void 0}return n}function ma(){var e=2+25*(1+((ba()-2+500)/25|0));return e<=Ji&&(e=Ji+1),Ji=e}function ya(e,t){return e=0!==ea?ea:ta?la?1:oa:1&t.mode?La?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)):1,La&&(0===Na||e>Na)&&(Na=e),e}function ga(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!ta&&0!==oa&&t<oa&&fa();var r=n.current.expirationTime;ta&&!la&&ra===n||Wa(n,r),Ua>Fa&&d("185")}e=e.return}}function ba(){return Zi=Jr()-Xi,Qi=2+(Zi/10|0)}function wa(e){var t=ea;ea=2+25*(1+((ba()-2+500)/25|0));try{return e()}finally{ea=t}}function Ca(e,t,n,r,o){var i=ea;ea=1;try{return e(t,n,r,o)}finally{ea=i}}var _a=null,Ea=null,Oa=0,Ta=void 0,Sa=!1,Pa=null,xa=0,Na=0,ka=!1,Ra=!1,Ma=null,ja=null,Aa=!1,Ia=!1,La=!1,Da=null,Fa=1e3,Ua=0,Ha=1;function Va(e){if(0!==Oa){if(e>Oa)return;null!==Ta&&to(Ta)}var t=Jr()-Xi;Oa=e,Ta=eo(za,{timeout:10*(e-2)-t})}function Wa(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===Ea?(_a=Ea=e,e.nextScheduledRoot=e):(Ea=Ea.nextScheduledRoot=e).nextScheduledRoot=_a;else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}Sa||(Aa?Ia&&(Pa=e,xa=1,Ya(e,1,!1)):1===t?Ga():Va(t))}function Ba(){var e=0,t=null;if(null!==Ea)for(var n=Ea,r=_a;null!==r;){var o=r.remainingExpirationTime;if(0===o){if((null===n||null===Ea)&&d("244"),r===r.nextScheduledRoot){_a=Ea=r.nextScheduledRoot=null;break}if(r===_a)_a=o=r.nextScheduledRoot,Ea.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===Ea){(Ea=n).nextScheduledRoot=_a,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||o<e)&&(e=o,t=r),r===Ea)break;n=r,r=r.nextScheduledRoot}}null!==(n=Pa)&&n===t&&1===e?Ua++:Ua=0,Pa=t,xa=e}function za(e){qa(0,!0,e)}function Ga(){qa(1,!1,null)}function qa(e,t,n){if(ja=n,Ba(),t)for(;null!==Pa&&0!==xa&&(0===e||e>=xa)&&(!ka||ba()>=xa);)ba(),Ya(Pa,xa,!ka),Ba();else for(;null!==Pa&&0!==xa&&(0===e||e>=xa);)Ya(Pa,xa,!1),Ba();null!==ja&&(Oa=0,Ta=null),0!==xa&&Va(xa),ja=null,ka=!1,$a()}function Ka(e,t){Sa&&d("253"),Pa=e,xa=t,Ya(e,t,!1),Ga(),$a()}function $a(){if(Ua=0,null!==Da){var e=Da;Da=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Ra||(Ra=!0,Ma=e)}}}if(Ra)throw e=Ma,Ma=null,Ra=!1,e}function Ya(e,t,n){Sa&&d("245"),Sa=!0,n?null!==(n=e.finishedWork)?Xa(e,n,t):null!==(n=ha(e,t,!0))&&(Qa()?e.finishedWork=n:Xa(e,n,t)):null!==(n=e.finishedWork)?Xa(e,n,t):null!==(n=ha(e,t,!1))&&Xa(e,n,t),Sa=!1}function Xa(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===Da?Da=[r]:Da.push(r),r._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);if(e.finishedWork=null,la=ta=!0,(n=t.stateNode).current===t&&d("177"),0===(r=n.pendingCommitExpirationTime)&&d("261"),n.pendingCommitExpirationTime=0,ba(),it.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var o=t.firstEffect}else o=t;else o=t.firstEffect;Yr=Nn;var i=l();if(Wn(i)){if("selectionStart"in i)var a={start:i.selectionStart,end:i.selectionEnd};else e:{var u=window.getSelection&&window.getSelection();if(u&&0!==u.rangeCount){a=u.anchorNode;var s=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{a.nodeType,f.nodeType}catch(e){a=null;break e}var p=0,h=-1,v=-1,m=0,y=0,g=i,b=null;t:for(;;){for(var w;g!==a||0!==s&&3!==g.nodeType||(h=p+s),g!==f||0!==u&&3!==g.nodeType||(v=p+u),3===g.nodeType&&(p+=g.nodeValue.length),null!==(w=g.firstChild);)b=g,g=w;for(;;){if(g===i)break t;if(b===a&&++m===s&&(h=p),b===f&&++y===u&&(v=p),null!==(w=g.nextSibling))break;b=(g=b).parentNode}g=w}a=-1===h||-1===v?null:{start:h,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xr={focusedElem:i,selectionRange:a},kn(!1),ua=o;null!==ua;){i=!1,a=void 0;try{for(;null!==ua;){if(256&ua.effectTag){var C=ua.alternate;switch((s=ua).tag){case 2:if(256&s.effectTag&&null!==C){var _=C.memoizedProps,E=C.memoizedState,O=s.stateNode;O.props=s.memoizedProps,O.state=s.memoizedState;var T=O.getSnapshotBeforeUpdate(_,E);O.__reactInternalSnapshotBeforeUpdate=T}break;case 3:case 5:case 6:case 4:break;default:d("163")}}ua=ua.nextEffect}}catch(e){i=!0,a=e}i&&(null===ua&&d("178"),va(ua,a),null!==ua&&(ua=ua.nextEffect))}for(ua=o;null!==ua;){C=!1,_=void 0;try{for(;null!==ua;){var S=ua.effectTag;if(16&S&&Mr(ua.stateNode,""),128&S){var P=ua.alternate;if(null!==P){var x=P.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(14&S){case 2:Bi(ua),ua.effectTag&=-3;break;case 6:Bi(ua),ua.effectTag&=-3,Gi(ua.alternate,ua);break;case 4:Gi(ua.alternate,ua);break;case 8:zi(E=ua),E.return=null,E.child=null,E.alternate&&(E.alternate.child=null,E.alternate.return=null)}ua=ua.nextEffect}}catch(e){C=!0,_=e}C&&(null===ua&&d("178"),va(ua,_),null!==ua&&(ua=ua.nextEffect))}if(x=Xr,P=l(),S=x.focusedElem,C=x.selectionRange,P!==S&&c(document.documentElement,S)){null!==C&&Wn(S)&&(P=C.start,void 0===(x=C.end)&&(x=P),"selectionStart"in S?(S.selectionStart=P,S.selectionEnd=Math.min(x,S.value.length)):window.getSelection&&(P=window.getSelection(),_=S[he()].length,x=Math.min(C.start,_),C=void 0===C.end?x:Math.min(C.end,_),!P.extend&&x>C&&(_=C,C=x,x=_),_=Vn(S,x),E=Vn(S,C),_&&E&&(1!==P.rangeCount||P.anchorNode!==_.node||P.anchorOffset!==_.offset||P.focusNode!==E.node||P.focusOffset!==E.offset)&&((O=document.createRange()).setStart(_.node,_.offset),P.removeAllRanges(),x>C?(P.addRange(O),P.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),P.addRange(O))))),P=[];for(x=S;x=x.parentNode;)1===x.nodeType&&P.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof S.focus&&S.focus(),S=0;S<P.length;S++)(x=P[S]).element.scrollLeft=x.left,x.element.scrollTop=x.top}for(Xr=null,kn(Yr),Yr=null,n.current=t,ua=o;null!==ua;){o=!1,S=void 0;try{for(P=r;null!==ua;){var N=ua.effectTag;if(36&N){var k=ua.alternate;switch(C=P,(x=ua).tag){case 2:var R=x.stateNode;if(4&x.effectTag)if(null===k)R.props=x.memoizedProps,R.state=x.memoizedState,R.componentDidMount();else{var M=k.memoizedProps,j=k.memoizedState;R.props=x.memoizedProps,R.state=x.memoizedState,R.componentDidUpdate(M,j,R.__reactInternalSnapshotBeforeUpdate)}var A=x.updateQueue;null!==A&&(R.props=x.memoizedProps,R.state=x.memoizedState,Go(x,A,R));break;case 3:var I=x.updateQueue;if(null!==I){if(_=null,null!==x.child)switch(x.child.tag){case 5:_=x.child.stateNode;break;case 2:_=x.child.stateNode}Go(x,I,_)}break;case 5:var L=x.stateNode;null===k&&4&x.effectTag&&Qr(x.type,x.memoizedProps)&&L.focus();break;case 6:case 4:case 15:case 16:break;default:d("163")}}if(128&N){x=void 0;var D=ua.ref;if(null!==D){var F=ua.stateNode;switch(ua.tag){case 5:x=F;break;default:x=F}"function"==typeof D?D(x):D.current=x}}var U=ua.nextEffect;ua.nextEffect=null,ua=U}}catch(e){o=!0,S=e}o&&(null===ua&&d("178"),va(ua,S),null!==ua&&(ua=ua.nextEffect))}ta=la=!1,Mo(t.stateNode),0===(t=n.current.expirationTime)&&(ca=null),e.remainingExpirationTime=t}function Qa(){return!(null===ja||ja.timeRemaining()>Ha)&&(ka=!0)}function Za(e){null===Pa&&d("246"),Pa.remainingExpirationTime=0,Ra||(Ra=!0,Ma=e)}function Ja(e,t){var n=Aa;Aa=!0;try{return e(t)}finally{(Aa=n)||Sa||Ga()}}function eu(e,t){if(Aa&&!Ia){Ia=!0;try{return e(t)}finally{Ia=!1}}return e(t)}function tu(e,t){Sa&&d("187");var n=Aa;Aa=!0;try{return Ca(e,t)}finally{Aa=n,Ga()}}function nu(e,t,n){if(La)return e(t,n);Aa||Sa||0===Na||(qa(Na,!1,null),Na=0);var r=La,o=Aa;Aa=La=!0;try{return e(t,n)}finally{La=r,(Aa=o)||Sa||Ga()}}function ru(e){var t=Aa;Aa=!0;try{Ca(e)}finally{(Aa=t)||Sa||qa(1,!1,null)}}function ou(e,t,n,r,o){var i=t.current;if(n){var a;n=n._reactInternalFiber;e:{for(2===an(n)&&2===n.tag||d("170"),a=n;3!==a.tag;){if(vo(a)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}(a=a.return)||d("171")}a=a.stateNode.context}n=vo(n)?bo(n,a):a}else n=f;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=Do(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Uo(i,o,r),ga(i,r),r}function iu(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?d("188"):d("268",Object.keys(e))),null===(e=sn(t))?null:e.stateNode}function au(e,t,n,r){var o=t.current;return ou(e,t,n,o=ya(ba(),o),r)}function uu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function lu(e){var t=e.findFiberByHostInstance;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);No=Ro(function(e){return t.onCommitFiberRoot(n,e)}),ko=Ro(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}(a({},e,{findHostInstanceByFiber:function(e){return null===(e=sn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}var su=Ja,cu=nu,fu=function(){Sa||0===Na||(qa(Na,!1,null),Na=0)};function du(e){this._expirationTime=ma(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function pu(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function hu(e,t,n){this._internalRoot=xo(e,t,n)}function vu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function mu(e,t,n,r,o){vu(n)||d("200");var i=n._reactRootContainer;if(i){if("function"==typeof o){var a=o;o=function(){var e=uu(i._internalRoot);a.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new hu(e,!1,t)}(n,r),"function"==typeof o){var u=o;o=function(){var e=uu(i._internalRoot);u.call(e)}}eu(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return uu(i._internalRoot)}function yu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return vu(t)||d("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:lt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ue.injectFiberControlledHostComponent($r),du.prototype.render=function(e){this._defer||d("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new pu;return ou(e,t,null,n,r._onCommit),r},du.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},du.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||d("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&d("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Ka(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},du.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},pu.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},pu.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&d("191",n),n()}}},hu.prototype.render=function(e,t){var n=this._internalRoot,r=new pu;return null!==(t=void 0===t?null:t)&&r.then(t),au(e,n,null,r._onCommit),r},hu.prototype.unmount=function(e){var t=this._internalRoot,n=new pu;return null!==(e=void 0===e?null:e)&&n.then(e),au(null,t,null,n._onCommit),n},hu.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new pu;return null!==(n=void 0===n?null:n)&&o.then(n),au(t,r,e,o._onCommit),o},hu.prototype.createBatch=function(){var e=new du(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ke=su,$e=cu,Ye=fu;var gu={createPortal:yu,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:iu(e)},hydrate:function(e,t,n){return mu(null,e,t,!0,n)},render:function(e,t,n){return mu(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&d("38"),mu(e,t,n,!1,r)},unmountComponentAtNode:function(e){return vu(e)||d("40"),!!e._reactRootContainer&&(eu(function(){mu(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return yu.apply(void 0,arguments)},unstable_batchedUpdates:Ja,unstable_deferredUpdates:wa,unstable_interactiveUpdates:nu,flushSync:tu,unstable_flushControlled:ru,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:U,EventPluginRegistry:O,EventPropagators:ne,ReactControlledComponent:qe,ReactDOMComponentTree:q,ReactDOMEventListener:In},unstable_createRoot:function(e,t){return new hu(e,!0,null!=t&&!0===t.hydrate)}};lu({findFiberByHostInstance:B,bundleType:0,version:"16.4.1",rendererPackageName:"react-dom"});var bu={default:gu},wu=bu&&gu||bu;e.exports=wu.default?wu.default:wu},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(150),o=n(102),i=n(507);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";
/** @license React v16.4.1
* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(103),o=n(102),i=n(151),a=n(150),u="function"==typeof Symbol&&Symbol.for,l=u?Symbol.for("react.element"):60103,s=u?Symbol.for("react.portal"):60106,c=u?Symbol.for("react.fragment"):60107,f=u?Symbol.for("react.strict_mode"):60108,d=u?Symbol.for("react.profiler"):60114,p=u?Symbol.for("react.provider"):60109,h=u?Symbol.for("react.context"):60110,v=u?Symbol.for("react.async_mode"):60111,m=u?Symbol.for("react.forward_ref"):60112;u&&Symbol.for("react.timeout");var y="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);o(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function w(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||b}function C(){}function _(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||b}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&g("85"),this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=w.prototype;var E=_.prototype=new C;E.constructor=_,r(E,w.prototype),E.isPureReactComponent=!0;var O={current:null},T=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r=void 0,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)T.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:l,type:e,key:i,ref:a,props:o,_owner:O.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var N=/\/+/g,k=[];function R(e,t,n,r){if(k.length){var o=k.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>k.length&&k.push(e)}function j(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case s:i=!0}}if(i)return n(r,e,""===t?"."+A(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var u=t+A(o=e[a],a);i+=j(o,u,n,r)}else if(null===e||void 0===e?u=null:u="function"==typeof(u=y&&e[y]||e["@@iterator"])?u:null,"function"==typeof u)for(e=u.call(e),a=0;!(o=e.next()).done;)i+=j(o=o.value,u=t+A(o,a++),n,r);else"object"===o&&g("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return i}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D(e,r,n,a.thatReturnsArgument):null!=e&&(x(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n,e={$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function D(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),t=R(t,i,r,o),null==e||j(e,"",L,t),M(t)}var F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=R(null,null,t,n),null==e||j(e,"",I,t),M(t)},count:function(e){return null==e?0:j(e,"",a.thatReturnsNull,null)},toArray:function(e){var t=[];return D(e,t,null,a.thatReturnsArgument),t},only:function(e){return x(e)||g("143"),e}},createRef:function(){return{current:null}},Component:w,PureComponent:_,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:m,render:e}},Fragment:c,StrictMode:f,unstable_AsyncMode:v,unstable_Profiler:d,createElement:P,cloneElement:function(e,t,n){(null===e||void 0===e)&&g("267",e);var o=void 0,i=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=O.current),void 0!==t.key&&(a=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)T.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==c?c[o]:t[o])}if(1===(o=arguments.length-2))i.children=n;else if(1<o){c=Array(o);for(var f=0;f<o;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:l,type:e.type,key:a,ref:u,props:i,_owner:s}},createFactory:function(e){var t=P.bind(null,e);return t.type=e,t},isValidElement:x,version:"16.4.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:O,assign:r}},U={default:F},H=U&&F||U;e.exports=H.default?H.default:H},function(e,t,n){"use strict";var r=n(2),o=C(r),i=C(n(0)),a=C(n(12)),u=C(n(499)),l=n(498),s=n(27),c=n(104),f=n(18),d=C(f),p=C(n(488)),h=C(n(483)),v=C(n(482)),m=n(430),y=n(147),g=C(n(429)),b=C(n(428)),w=n(148);function C(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}}(e,t))}var E=(0,c.combineReducers)({viewer:p.default,reader:(0,f.reducers)({setting:{font:"kopup_dotum",containerHorizontalMargin:15,containerVerticalMargin:50}})}),O=(0,l.composeWithDevTools)((0,c.applyMiddleware)(u.default)),T=(0,c.createStore)(E,{},O);f.Connector.connect(T);var S=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return _(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.content;(0,e.actionRequestLoadContent)(t)},t.prototype.render=function(){var e=this.props,t=e.isFullScreen,n=e.content,r=e.currentContentIndex,i=e.actionOnScreenTouched;return o.default.createElement("section",{id:"viewer_page"},o.default.createElement(h.default,{title:n.title,chapter:r,isVisible:!t}),o.default.createElement(d.default,{footer:o.default.createElement(g.default,{content:n}),contentFooter:o.default.createElement("small",null,"content footer area..."),onMoveWrongDirection:function(){return alert("move to the wrong direction")},onMount:function(){return console.log("onMount")},onUnmount:function(){return console.log("onUnmount")},onTouched:function(){return i()}}),o.default.createElement(v.default,{content:n}),o.default.createElement(m.IconsSprite,null))},t}(r.Component);S.propTypes={content:i.default.object.isRequired,currentContentIndex:i.default.oneOfType([i.default.string,i.default.number]).isRequired,isFullScreen:i.default.bool.isRequired,actionRequestLoadContent:i.default.func.isRequired,actionOnScreenTouched:i.default.func.isRequired};var P=(0,s.connect)(function(e){var t=e.viewer.ui.isVisibleSettingPopup;return{isFullScreen:(0,y.selectIsFullScreen)(e),isVisibleSettingPopup:t,currentContentIndex:(0,f.selectReaderCurrentContentIndex)(e)}},function(e){return{actionRequestLoadContent:function(t){return e((0,w.requestLoadContent)(t))},actionOnScreenTouched:function(){return e((0,w.onScreenTouched)())}}})(S),x=b.default.contents,N=new URLSearchParams(window.location.search).get("contentId"),k=x.filter(function(e){return e.id.toString()===N}),R=1===k.length?k[0]:x[Math.floor(Math.random()*x.length)];a.default.render(o.default.createElement(s.Provider,{store:T},o.default.createElement(P,{content:R})),document.getElementById("app"))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(42))}]);
| 6,992.671429 | 167,123 | 0.716464 |
bbca243b5a1e7946b789ff5ba0cc4eaa2c5e2862 | 209 | js | JavaScript | node_modules/@iconify/icons-mdi/arrow-right-thick.js | Ehtisham-Ayaan/aoo-ghr-bnain-update | fb857ffe2159f59d11cfb1faf4e7889a778dceca | [
"MIT"
] | 1 | 2021-05-15T00:26:49.000Z | 2021-05-15T00:26:49.000Z | node_modules/@iconify/icons-mdi/arrow-right-thick.js | Ehtisham-Ayaan/aoo-ghr-bnain-update | fb857ffe2159f59d11cfb1faf4e7889a778dceca | [
"MIT"
] | 1 | 2021-12-09T01:30:41.000Z | 2021-12-09T01:30:41.000Z | node_modules/@iconify/icons-mdi/arrow-right-thick.js | Ehtisham-Ayaan/aoo-ghr-bnain-update | fb857ffe2159f59d11cfb1faf4e7889a778dceca | [
"MIT"
] | null | null | null | var data = {
"body": "<path d=\"M4 10v4h9l-3.5 3.5l2.42 2.42L19.84 12l-7.92-7.92L9.5 6.5L13 10H4z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data;
| 26.125 | 113 | 0.636364 |
bbcaaf11932f118603c35f4561cd260beec2a776 | 53,817 | js | JavaScript | dist/compact-calendar-card.js | jayknott/lovelace-compact-calendar-card | 425778206c9bd26fc2842f8ead14404055bfafe1 | [
"MIT"
] | null | null | null | dist/compact-calendar-card.js | jayknott/lovelace-compact-calendar-card | 425778206c9bd26fc2842f8ead14404055bfafe1 | [
"MIT"
] | null | null | null | dist/compact-calendar-card.js | jayknott/lovelace-compact-calendar-card | 425778206c9bd26fc2842f8ead14404055bfafe1 | [
"MIT"
] | null | null | null | /*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function e(e,t,i,s){var n,r=arguments.length,o=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/}const t="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(e,t,i=null)=>{for(;t!==i;){const i=t.nextSibling;e.removeChild(t),t=i}},s=`{{lit-${String(Math.random()).slice(2)}}}`,n=`\x3c!--${s}--\x3e`,r=new RegExp(`${s}|${n}`);class o{constructor(e,t){this.parts=[],this.element=t;const i=[],n=[],o=document.createTreeWalker(t.content,133,null,!1);let l=0,h=-1,u=0;const{strings:p,values:{length:_}}=e;for(;u<_;){const e=o.nextNode();if(null!==e){if(h++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:i}=t;let s=0;for(let e=0;e<i;e++)a(t[e].name,"$lit$")&&s++;for(;s-- >0;){const t=p[u],i=c.exec(t)[2],s=i.toLowerCase()+"$lit$",n=e.getAttribute(s);e.removeAttribute(s);const o=n.split(r);this.parts.push({type:"attribute",index:h,name:i,strings:o}),u+=o.length-1}}"TEMPLATE"===e.tagName&&(n.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(s)>=0){const s=e.parentNode,n=t.split(r),o=n.length-1;for(let t=0;t<o;t++){let i,r=n[t];if(""===r)i=d();else{const e=c.exec(r);null!==e&&a(e[2],"$lit$")&&(r=r.slice(0,e.index)+e[1]+e[2].slice(0,-"$lit$".length)+e[3]),i=document.createTextNode(r)}s.insertBefore(i,e),this.parts.push({type:"node",index:++h})}""===n[o]?(s.insertBefore(d(),e),i.push(e)):e.data=n[o],u+=o}}else if(8===e.nodeType)if(e.data===s){const t=e.parentNode;null!==e.previousSibling&&h!==l||(h++,t.insertBefore(d(),e)),l=h,this.parts.push({type:"node",index:h}),null===e.nextSibling?e.data="":(i.push(e),h--),u++}else{let t=-1;for(;-1!==(t=e.data.indexOf(s,t+1));)this.parts.push({type:"node",index:-1}),u++}}else o.currentNode=n.pop()}for(const e of i)e.parentNode.removeChild(e)}}const a=(e,t)=>{const i=e.length-t.length;return i>=0&&e.slice(i)===t},l=e=>-1!==e.index,d=()=>document.createComment(""),c=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function h(e,t){const{element:{content:i},parts:s}=e,n=document.createTreeWalker(i,133,null,!1);let r=p(s),o=s[r],a=-1,l=0;const d=[];let c=null;for(;n.nextNode();){a++;const e=n.currentNode;for(e.previousSibling===c&&(c=null),t.has(e)&&(d.push(e),null===c&&(c=e)),null!==c&&l++;void 0!==o&&o.index===a;)o.index=null!==c?-1:o.index-l,r=p(s,r),o=s[r]}d.forEach(e=>e.parentNode.removeChild(e))}const u=e=>{let t=11===e.nodeType?0:1;const i=document.createTreeWalker(e,133,null,!1);for(;i.nextNode();)t++;return t},p=(e,t=-1)=>{for(let i=t+1;i<e.length;i++){const t=e[i];if(l(t))return i}return-1};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
const _=new WeakMap,m=e=>"function"==typeof e&&_.has(e),g={},v={};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
class y{constructor(e,t,i){this.__parts=[],this.template=e,this.processor=t,this.options=i}update(e){let t=0;for(const i of this.__parts)void 0!==i&&i.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=t?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),i=[],s=this.template.parts,n=document.createTreeWalker(e,133,null,!1);let r,o=0,a=0,d=n.nextNode();for(;o<s.length;)if(r=s[o],l(r)){for(;a<r.index;)a++,"TEMPLATE"===d.nodeName&&(i.push(d),n.currentNode=d.content),null===(d=n.nextNode())&&(n.currentNode=i.pop(),d=n.nextNode());if("node"===r.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(d.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(d,r.name,r.strings,this.options));o++}else this.__parts.push(void 0),o++;return t&&(document.adoptNode(e),customElements.upgrade(e)),e}}
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/const f=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),w=` ${s} `;class S{constructor(e,t,i,s){this.strings=e,this.values=t,this.type=i,this.processor=s}getHTML(){const e=this.strings.length-1;let t="",i=!1;for(let r=0;r<e;r++){const e=this.strings[r],o=e.lastIndexOf("\x3c!--");i=(o>-1||i)&&-1===e.indexOf("--\x3e",o+1);const a=c.exec(e);t+=null===a?e+(i?w:n):e.substr(0,a.index)+a[1]+a[2]+"$lit$"+a[3]+s}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==f&&(t=f.createHTML(t)),e.innerHTML=t,e}}
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/const b=e=>null===e||!("object"==typeof e||"function"==typeof e),P=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class x{constructor(e,t,i){this.dirty=!0,this.element=e,this.name=t,this.strings=i,this.parts=[];for(let e=0;e<i.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new E(this)}_getValue(){const e=this.strings,t=e.length-1,i=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=i[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!P(e))return e}let s="";for(let n=0;n<t;n++){s+=e[n];const t=i[n];if(void 0!==t){const e=t.value;if(b(e)||!P(e))s+="string"==typeof e?e:String(e);else for(const t of e)s+="string"==typeof t?t:String(t)}}return s+=e[t],s}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class E{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===g||b(e)&&e===this.value||(this.value=e,m(e)||(this.committer.dirty=!0))}commit(){for(;m(this.value);){const e=this.value;this.value=g,e(this)}this.value!==g&&this.committer.commit()}}class C{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(d()),this.endNode=e.appendChild(d())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=d()),e.__insert(this.endNode=d())}insertAfterPart(e){e.__insert(this.startNode=d()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;m(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=g,e(this)}const e=this.__pendingValue;e!==g&&(b(e)?e!==this.value&&this.__commitText(e):e instanceof S?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):P(e)?this.__commitIterable(e):e===v?(this.value=v,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,i="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=i:this.__commitNode(document.createTextNode(i)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof y&&this.value.template===t)this.value.update(e.values);else{const i=new y(t,e.processor,this.options),s=i._clone();i.update(e.values),this.__commitNode(s),this.value=i}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let i,s=0;for(const n of e)i=t[s],void 0===i&&(i=new C(this.options),t.push(i),0===s?i.appendIntoPart(this):i.insertAfterPart(t[s-1])),i.setValue(n),i.commit(),s++;s<t.length&&(t.length=s,this.clear(i&&i.endNode))}clear(e=this.startNode){i(this.startNode.parentNode,e.nextSibling,this.endNode)}}class ${constructor(e,t,i){if(this.value=void 0,this.__pendingValue=void 0,2!==i.length||""!==i[0]||""!==i[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=i}setValue(e){this.__pendingValue=e}commit(){for(;m(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=g,e(this)}if(this.__pendingValue===g)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=g}}class N extends x{constructor(e,t,i){super(e,t,i),this.single=2===i.length&&""===i[0]&&""===i[1]}_createPart(){return new A(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class A extends E{}let M=!1;(()=>{try{const e={get capture(){return M=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class T{constructor(e,t,i){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=i,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;m(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=g,e(this)}if(this.__pendingValue===g)return;const e=this.__pendingValue,t=this.value,i=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),s=null!=e&&(null==t||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),s&&(this.__options=k(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=g}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const k=e=>e&&(M?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/;function O(e){let t=D.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},D.set(e.type,t));let i=t.stringsArray.get(e.strings);if(void 0!==i)return i;const n=e.strings.join(s);return i=t.keyString.get(n),void 0===i&&(i=new o(e,e.getTemplateElement()),t.keyString.set(n,i)),t.stringsArray.set(e.strings,i),i}const D=new Map,V=new WeakMap;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/const U=new
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
class{handleAttributeExpressions(e,t,i,s){const n=t[0];if("."===n){return new N(e,t.slice(1),i).parts}if("@"===n)return[new T(e,t.slice(1),s.eventContext)];if("?"===n)return[new $(e,t.slice(1),i)];return new x(e,t,i).parts}handleTextExpression(e){return new C(e)}};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.3.0");const R=(e,...t)=>new S(e,t,"html",U)
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/,H=(e,t)=>`${e}--${t}`;let Y=!0;void 0===window.ShadyCSS?Y=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),Y=!1);const I=e=>t=>{const i=H(t.type,e);let n=D.get(i);void 0===n&&(n={stringsArray:new WeakMap,keyString:new Map},D.set(i,n));let r=n.stringsArray.get(t.strings);if(void 0!==r)return r;const a=t.strings.join(s);if(r=n.keyString.get(a),void 0===r){const i=t.getTemplateElement();Y&&window.ShadyCSS.prepareTemplateDom(i,e),r=new o(t,i),n.keyString.set(a,r)}return n.stringsArray.set(t.strings,r),r},z=["html","svg"],j=new Set,L=(e,t,i)=>{j.add(e);const s=i?i.element:document.createElement("template"),n=t.querySelectorAll("style"),{length:r}=n;if(0===r)return void window.ShadyCSS.prepareTemplateStyles(s,e);const o=document.createElement("style");for(let e=0;e<r;e++){const t=n[e];t.parentNode.removeChild(t),o.textContent+=t.textContent}(e=>{z.forEach(t=>{const i=D.get(H(t,e));void 0!==i&&i.keyString.forEach(e=>{const{element:{content:t}}=e,i=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{i.add(e)}),h(e,i)})})})(e);const a=s.content;i?function(e,t,i=null){const{element:{content:s},parts:n}=e;if(null==i)return void s.appendChild(t);const r=document.createTreeWalker(s,133,null,!1);let o=p(n),a=0,l=-1;for(;r.nextNode();){l++;for(r.currentNode===i&&(a=u(t),i.parentNode.insertBefore(t,i));-1!==o&&n[o].index===l;){if(a>0){for(;-1!==o;)n[o].index+=a,o=p(n,o);return}o=p(n,o)}}}(i,o,a.firstChild):a.insertBefore(o,a.firstChild),window.ShadyCSS.prepareTemplateStyles(s,e);const l=a.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==l)t.insertBefore(l.cloneNode(!0),t.firstChild);else if(i){a.insertBefore(o,a.firstChild);const e=new Set;e.add(o),h(i,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const q={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},F=(e,t)=>t!==e&&(t==t||e==e),W={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:F};class B extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,i)=>{const s=this._attributeNameForProperty(i,t);void 0!==s&&(this._attributeToPropertyMap.set(s,i),e.push(s))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=W){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const i="symbol"==typeof e?Symbol():"__"+e,s=this.getPropertyDescriptor(e,i,t);void 0!==s&&Object.defineProperty(this.prototype,e,s)}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(s){const n=this[e];this[t]=s,this.requestUpdateInternal(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||W}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty("finalized")||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const i of t)this.createProperty(i,e[i])}}static _attributeNameForProperty(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,i=F){return i(e,t)}static _propertyValueFromAttribute(e,t){const i=t.type,s=t.converter||q,n="function"==typeof s?s:s.fromAttribute;return n?n(e,i):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const i=t.type,s=t.converter;return(s&&s.toAttribute||q.toAttribute)(e,i)}initialize(){this._updateState=0,this._updatePromise=new Promise(e=>this._enableUpdatingResolver=e),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,i){t!==i&&this._attributeToProperty(e,i)}_propertyToAttribute(e,t,i=W){const s=this.constructor,n=s._attributeNameForProperty(e,i);if(void 0!==n){const e=s._propertyValueToAttribute(t,i);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(n):this.setAttribute(n,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const i=this.constructor,s=i._attributeToPropertyMap.get(e);if(void 0!==s){const e=i.getPropertyOptions(s);this._updateState=16|this._updateState,this[s]=i._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,i){let s=!0;if(void 0!==e){const n=this.constructor;i=i||n.getPropertyOptions(e),n._valueHasChanged(this[e],t,i.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==i.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,i))):s=!1}!this._hasRequestedUpdate&&s&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}B.finalized=!0;
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
const J=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:s}=t;return{kind:i,elements:s,finisher(t){window.customElements.define(e,t)}}})(e,t),Z=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?Object.assign(Object.assign({},t),{finisher(i){i.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};function G(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):Z(e,t)}function K(e){return G({attribute:!1,hasChanged:null==e?void 0:e.hasChanged})}
/**
@license
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/const Q=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol();class ee{constructor(e,t){if(t!==X)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(Q?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const te=(e,...t)=>{const i=t.reduce((t,i,s)=>t+(e=>{if(e instanceof ee)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(i)+e[s+1],e[0]);return new ee(i,X)};
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at
* http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");const ie={};class se extends B{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,i)=>e.reduceRight((e,i)=>Array.isArray(i)?t(i,e):(e.add(i),e),i),i=t(e,new Set),s=[];i.forEach(e=>s.unshift(e)),this._styles=s}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map(e=>{if(e instanceof CSSStyleSheet&&!Q){const t=Array.prototype.slice.call(e.cssRules).reduce((e,t)=>e+t.cssText,"");return new ee(String(t),X)}return e})}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?Q?this.renderRoot.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==ie&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return ie}}se.finalized=!0,se.render=(e,t,s)=>{if(!s||"object"!=typeof s||!s.scopeName)throw new Error("The `scopeName` option is required.");const n=s.scopeName,r=V.has(t),o=Y&&11===t.nodeType&&!!t.host,a=o&&!j.has(n),l=a?document.createDocumentFragment():t;if(((e,t,s)=>{let n=V.get(t);void 0===n&&(i(t,t.firstChild),V.set(t,n=new C(Object.assign({templateFactory:O},s))),n.appendInto(t)),n.setValue(e),n.commit()})(e,l,Object.assign({templateFactory:I(n)},s)),a){const e=V.get(l);V.delete(l);const s=e.value instanceof y?e.value.template:void 0;L(n,l,s),i(t,t.firstChild),t.appendChild(l),V.set(t,e)}!r&&o&&window.ShadyCSS.styleElement(t.host)};var ne=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,re="[^\\s]+",oe=/\[([^]*?)\]/gm;function ae(e,t){for(var i=[],s=0,n=e.length;s<n;s++)i.push(e[s].substr(0,t));return i}var le=function(e){return function(t,i){var s=i[e].map((function(e){return e.toLowerCase()})).indexOf(t.toLowerCase());return s>-1?s:null}};function de(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var s=0,n=t;s<n.length;s++){var r=n[s];for(var o in r)e[o]=r[o]}return e}var ce=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],he=["January","February","March","April","May","June","July","August","September","October","November","December"],ue=ae(he,3),pe={dayNamesShort:ae(ce,3),dayNames:ce,monthNamesShort:ue,monthNames:he,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10?1:0)*e%10]}},_e=de({},pe),me=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},ge={D:function(e){return String(e.getDate())},DD:function(e){return me(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return me(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return me(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return me(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return me(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return me(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return me(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return me(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return me(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return me(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return me(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+me(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+me(Math.floor(Math.abs(t)/60),2)+":"+me(Math.abs(t)%60,2)}},ve=function(e){return+e-1},ye=[null,"[1-9]\\d?"],fe=[null,re],we=["isPm",re,function(e,t){var i=e.toLowerCase();return i===t.amPm[0]?0:i===t.amPm[1]?1:null}],Se=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var i=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?i:-i}return 0}],be=(le("monthNamesShort"),le("monthNames"),{default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"});var Pe=function(e,t,i){if(void 0===t&&(t=be.default),void 0===i&&(i={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var s=[];t=(t=be[t]||t).replace(oe,(function(e,t){return s.push(t),"@@@"}));var n=de(de({},_e),i);return(t=t.replace(ne,(function(t){return ge[t](e,n)}))).replace(/@@@/g,(function(){return s.shift()}))};(function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}})(),function(){try{(new Date).toLocaleString("i")}catch(e){return"RangeError"===e.name}}(),function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}}();const xe=e=>{let t=[];function i(i,s){e=s?i:Object.assign(Object.assign({},e),i);let n=t;for(let t=0;t<n.length;t++)n[t](e)}return{get state(){return e},action(t){function s(e){i(e,!1)}return function(){let i=[e];for(let e=0;e<arguments.length;e++)i.push(arguments[e]);let n=t.apply(this,i);if(null!=n)return n instanceof Promise?n.then(s):s(n)}},setState:i,subscribe:e=>(t.push(e),()=>{!function(e){let i=[];for(let s=0;s<t.length;s++)t[s]===e?e=null:i.push(t[s]);t=i}(e)})}},Ee=(e,t,i,s,n)=>((e,t,i,s)=>{if(e[t])return e[t];let n,r=0,o=xe();const a=()=>i(e).then(e=>o.setState(e,!0)),l=()=>a().catch(t=>{if(e.connected)throw t});return e[t]={get state(){return o.state},refresh:a,subscribe(t){r++,1===r&&(s&&(n=s(e,o)),e.addEventListener("ready",l),l());const i=o.subscribe(t);return void 0!==o.state&&setTimeout(()=>t(o.state),0),()=>{i(),r--,r||(n&&n.then(e=>{e()}),e.removeEventListener("ready",a))}}},e[t]})(s,e,t,i).subscribe(n);var Ce={version:"Version",invalid_configuration:"Invalid configuration",show_warning:"Show Warning",show_error:"Show Error"},$e={hide_intro:"Hide Introduction",hide_title:"Hide Title",registry:"Registry"},Ne={one:"Area",other:"Areas"},Ae={one:"Entity",other:"Entities"},Me={area:"Update settings for rooms (areas).",entity:"Update settings for devices (entities).",person:"Update settings for persons (users).",update:"After updating, you will need to reload Lovelace to see your changes."},Te={one:"Person",other:"Persons"},ke={area:"Area",area_description:"Overwrite the area set in the registry for this entity.",entity_type:"Entity Type",sort_order:"Sort Order",visible:"Visible",visible_area_description:"Areas that are not visible will not be displayed automatically in dashboards."},Oe={area:"Area Settings",entity:"Entity Settings",person:"Person Settings"},De={one:"Update",other:"Updates"},Ve={common:Ce,config:$e,area:Ne,entity:Ae,intro:Me,person:Te,settings:ke,title:Oe,update:De};const Ue={en:Object.freeze({__proto__:null,common:Ce,config:$e,area:Ne,entity:Ae,intro:Me,person:Te,settings:ke,title:Oe,update:De,default:Ve})};function Re(e,t="",i=""){const s=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_");let n;try{n=e.split(".").reduce((e,t)=>e[t],Ue[s])}catch(t){n=e.split(".").reduce((e,t)=>e[t],Ue.en)}return void 0===n&&(n=e.split(".").reduce((e,t)=>e[t],Ue.en)),""!==t&&""!==i&&(n=n.replace(t,i)),n}let He=class extends se{constructor(){super(...arguments),this._initialized=!1}setConfig(e){this._config=e,this.loadCardHelpers()}shouldUpdate(){return this._initialized||this._initialize(),!0}render(){var e,t,i;return this._helpers?(this._helpers.importMoreInfoControl("climate"),R`
<div class="card-config">
<div class="values">
<paper-dropdown-menu label="${Re("config.registry")}">
<paper-listbox
slot="dropdown-content"
.selected=${(null===(e=this._config)||void 0===e?void 0:e.registry)||"area"}
attr-for-selected="value"
@selected-changed=${this._valueChanged}
.configValue=${"registry"}
>
<paper-item value="area">${Re("area.one")}</paper-item>
<paper-item value="entity">${Re("entity.one")}</paper-item>
<paper-item value="person">${Re("person.one")}</paper-item>
</paper-listbox>
</paper-dropdown-menu>
<div class="row">
<ha-switch
style="--mdc-theme-secondary:var(--switch-checked-color);"
.checked=${!!(null===(t=this._config)||void 0===t?void 0:t.hide_title)}
@change=${this._valueChanged}
.configValue=${"hide_title"}
>
</ha-switch>
<div>
<div>${Re("config.hide_title")}</div>
</div>
</div>
<div class="row">
<ha-switch
style="--mdc-theme-secondary:var(--switch-checked-color);"
.checked=${!!(null===(i=this._config)||void 0===i?void 0:i.hide_intro)}
@change=${this._valueChanged}
.configValue=${"hide_intro"}
>
</ha-switch>
<div>
<div>${Re("config.hide_intro")}</div>
</div>
</div>
</div>
</div>
`):R``}_initialize(){void 0!==this.hass&&void 0!==this._config&&void 0!==this._helpers&&(this._initialized=!0)}async loadCardHelpers(){this._helpers=await window.loadCardHelpers()}_valueChanged(e){if(!this._config)return;const t=e.target;if(!t.configValue)return;const i="registry"===t.configValue?e.detail.value:t.checked;i!==this._config[t.configValue]&&(console.log(`value changed for ${t.configValue}: ${i}`),["",null,void 0].includes(i)?delete this._config[t.configValue]:this._config=Object.assign(Object.assign({},this._config),{[t.configValue]:i}),function(e,t,i,s){s=s||{},i=null==i?{}:i;var n=new Event(t,{bubbles:void 0===s.bubbles||s.bubbles,cancelable:Boolean(s.cancelable),composed:void 0===s.composed||s.composed});n.detail=i,e.dispatchEvent(n)}(this,"config-changed",{config:this._config}))}static get styles(){return te`
.row {
margin-bottom: 16px;
margin-top: 16px;
color: var(--primary-text-color);
display: flex;
align-items: center;
}
.values {
padding-left: 16px;
background: var(--secondary-background-color);
display: grid;
}
ha-switch {
margin-right: 16px;
}
`}};e([G({attribute:!1})],He.prototype,"hass",void 0),e([K()],He.prototype,"_config",void 0),e([K()],He.prototype,"_helpers",void 0),He=e([J("enhanced-templates-card-editor")],He);console.info(`%c ENHANCED-TEMPLATES-CARD \n%c ${Re("common.version")} 0.1.0 `,"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),window.customCards=window.customCards||[],window.customCards.push({type:"enhanced-templates-card",name:"Enhanced Templates Settings Card",description:"Update areas or entities with custom settings."});const Ye=e=>e.sendMessagePromise({type:"config/area_registry/list"}).then(e=>e.sort((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),Ie=(e,t,i=!1)=>{let s;return function(...n){const r=this,o=i&&!s;clearTimeout(s),s=setTimeout(()=>{s=null,i||e.apply(r,n)},t),o&&e.apply(r,n)}},ze=(e,t)=>e.subscribeEvents(Ie(()=>Ye(e).then(e=>t.setState(e,!0)),500,!0),"area_registry_updated");let je=class extends se{constructor(){super(...arguments),this._last_hash=""}static async getConfigElement(){return document.createElement("enhanced-templates-card-editor")}static getStubConfig(){return{}}set hass(e){var t;this._hass=e,this._entity_types||this._load_entity_types();const i=null===(t=location.hash)||void 0===t?void 0:t.substr(1);if(i&&i!==this._last_hash)switch(this.config.registry){case"entity":this._entityPicked({detail:{value:i}});break;case"person":this._personPicked({detail:{value:i}});break;case"area":default:this._areaPicked({detail:{value:i}})}var s;this._last_hash=i,this._unsub||(Ye(this._hass.connection).then(e=>this._areas=e),this._unsub=(s=this._hass.connection,Ee("_areaRegistry",Ye,ze,s,e=>{this._areas=e})))}async setConfig(e){e.test_gui&&function(){var e=document.querySelector("home-assistant");if(e=(e=(e=(e=(e=(e=(e=(e=e&&e.shadowRoot)&&e.querySelector("home-assistant-main"))&&e.shadowRoot)&&e.querySelector("app-drawer-layout partial-panel-resolver"))&&e.shadowRoot||e)&&e.querySelector("ha-panel-lovelace"))&&e.shadowRoot)&&e.querySelector("hui-root")){var t=e.lovelace;return t.current_view=e.___curView,t}return null}().setEditMode(!0),this.config=e,await(async()=>{if(customElements.get("ha-entity-picker"))return;await customElements.whenDefined("partial-panel-resolver");const e=document.createElement("partial-panel-resolver");e.hass={panels:[{url_path:"tmp",component_name:"developer-tools"}]},e._updateRoutes(),await e.routerOptions.routes.tmp.load(),await customElements.whenDefined("developer-tools-router");const t=document.createElement("developer-tools-router");await t.routerOptions.routes.state.load()})(),await(async()=>{if(customElements.get("ha-area-picker"))return;await customElements.whenDefined("partial-panel-resolver");const e=document.createElement("partial-panel-resolver");e.hass={panels:[{url_path:"tmp",component_name:"config"}]},e._updateRoutes(),await e.routerOptions.routes.tmp.load(),await customElements.whenDefined("ha-panel-config");const t=document.createElement("ha-panel-config");await t.routerOptions.routes.devices.load(),await customElements.whenDefined("ha-config-devices");document.createElement("ha-config-devices").firstUpdated({}),await customElements.whenDefined("ha-config-device-page");document.createElement("ha-config-device-page").firstUpdated({}),await customElements.whenDefined("dialog-device-registry-detail");document.createElement("dialog-device-registry-detail").render(),await t.routerOptions.routes.entities.load(),await customElements.whenDefined("ha-config-entities");document.createElement("ha-config-entities").firstUpdated({}),await customElements.whenDefined("ha-area-picker");document.createElement("ha-area-picker");console.log("You're finally here")})(),this.addEventListener("config-changed",this.handleConfigChanged)}handleConfigChanged(e){this.config=e.detail.config}async _load_entity_types(){this._entity_types=await this._hass.callWS({type:"enhanced_templates_entity_types"})||[]}render(){let e,t,i,s;switch(this.config.registry){case"entity":e=Re("title.entity"),t=Re("intro.entity"),i=()=>this._entitySettings(),s=this._updateEntitySettings;break;case"person":e=Re("title.person"),t=Re("intro.person"),i=()=>this._personSettings(),s=this._updatePersonSettings;break;case"area":default:e=Re("title.area"),t=Re("intro.area"),i=()=>this._areaSettings(),s=this._updateAreaSettings}return R`
<ha-card .header=${this.config.hide_title?null:e}>
<div class="card-content">${this._intro(t)} ${i()}</div>
<div class="buttons">
<mwc-button @click=${s} .disabled=${this._disabled()}>
${Re("update.one")}
</mwc-button>
</div>
</ha-card>
`}_disabled(){switch(this.config.registry){case"entity":return!this._selectedEntity||""===this._selectedEntity.entity_id;case"person":return!this._selectedPerson||""===this._selectedPerson.id;case"area":default:return!this._selectedArea||""===this._selectedArea.id}}_intro(e){if(!this.config.hide_intro)return R`<p>${e} ${Re("intro.update")}</p>`}_areaDropDown({allow_null:e=!1,disabled:t=!1,onSelectedChanged:i,placeholder:s,show_description:n=!1}){var r,o;return R`
<paper-dropdown-menu
class="full-width"
label-float
dynamic-align
.label=${Re("settings.area")}
.disabled=${t}
.placeholder=${s}
>
<paper-listbox
slot="dropdown-content"
attr-for-selected="item-name"
.selected=${null===(r=this._selectedArea)||void 0===r?void 0:r.id}
@selected-changed=${i}
>
${e?R`<paper-item item-name="">None</paper-item>`:null}
${null===(o=this._areas)||void 0===o?void 0:o.map(e=>R`
<paper-item item-name=${e.area_id}> ${e.name} </paper-item>
`)}
</paper-listbox>
</paper-dropdown-menu>
${n?R`<div class=${t?"disabled":"secondary"}>
${Re("settings.area_description")}
</div>`:null}
`}_nameInput({placeholder:e}){return R`
<paper-input
.value=${this._name}
@value-changed=${this._nameChanged}
.label=${this._hass.localize("ui.dialogs.entity_registry.editor.name")}
.placeholder=${e}
.disabled=${this._disabled()}
>
</paper-input>
`}_sortOrderInput(){return R`
<paper-input
.value=${this._sortOrder}
@value-changed=${this._sortOrderChanged}
pattern="[0-9]+([.][0-9]+)?"
type="number"
.label=${Re("settings.sort_order")}
.placeholder=${5e5}
.disabled=${this._disabled()}
>
</paper-input>
`}_visibleInput(){return R`
<div class="row">
<ha-switch
style="--mdc-theme-secondary:var(--switch-checked-color);"
.checked=${this._visible}
@change=${this._visibleChanged}
.disabled=${this._disabled()}
>
</ha-switch>
<div>
<div class=${this._disabled()?"disabled":""}>
${Re("settings.visible")}
</div>
<div class=${this._disabled()?"disabled":"secondary"}>
${Re("settings.visible_area_description")}
</div>
</div>
</div>
`}_areaSettings(){var e;return R`
${this._areaDropDown({onSelectedChanged:this._areaPicked})}
<div>
<ha-icon-input
.value=${this._icon}
@value-changed=${this._iconChanged}
.label=${this._hass.localize("ui.dialogs.entity_registry.editor.icon")}
.placeholder=${"mdi:square-rounded-outline"}
.disabled=${this._disabled()}
.errorMessage=${this._hass.localize("ui.dialogs.entity_registry.editor.icon_error")}
>
</ha-icon-input>
</div>
${this._nameInput({placeholder:null===(e=this._selectedArea)||void 0===e?void 0:e.original_name})}
${this._sortOrderInput()} ${this._visibleInput()}
`}_entitySettings(){var e,t,i,s,n,r,o,a;const l=(null===(e=this._selectedEntity)||void 0===e?void 0:e.original_area_id)?null===(i=null===(t=this._areas)||void 0===t?void 0:t.find(e=>{var t;return e.area_id===(null===(t=this._selectedEntity)||void 0===t?void 0:t.original_area_id)}))||void 0===i?void 0:i.name:void 0,d=0==(null===(s=this._entity_types)||void 0===s?void 0:s.length)?void 0:R`<paper-dropdown-menu
class="full-width"
label-float
dynamic-align
.label=${Re("settings.entity_type")}
.disabled=${this._disabled()||0==(null===(n=this._entity_types)||void 0===n?void 0:n.length)}
.placeholder=${null===(r=this._selectedEntity)||void 0===r?void 0:r.original_entity_type}
>
<paper-listbox
slot="dropdown-content"
attr-for-selected="item-name"
.selected=${this._entity_type||""}
@selected-changed=${this._entityTypePicked}
>
<paper-item item-name="">None</paper-item>
${null===(o=this._entity_types)||void 0===o?void 0:o.map(e=>R`
<paper-item item-name=${e}> ${e} </paper-item>
`)}
</paper-listbox>
</paper-dropdown-menu>`;return R`
<div>
<ha-entity-picker
.hass=${this._hass}
.value=${null===(a=this._selectedEntity)||void 0===a?void 0:a.entity_id}
@value-changed=${this._entityPicked}
/>
</ha-entity-picker>
</div>
${this._areaDropDown({allow_null:!0,disabled:this._disabled(),onSelectedChanged:this._entityAreaPicked,placeholder:l})}
${d}
${this._sortOrderInput()}
${this._visibleInput()}
`}_personSettings(){var e,t;return R`
<div>
<ha-entity-picker
.hass=${this._hass}
.value=${"person."+(null===(e=this._selectedPerson)||void 0===e?void 0:e.id)}
.includeDomains=${["person"]}
.hideClearIcon=${!0}
.label=${Re("person.one")}
@value-changed=${this._personPicked}
/>
</ha-entity-picker>
</div>
${this._nameInput({placeholder:null===(t=this._selectedPerson)||void 0===t?void 0:t.original_name})}
${this._sortOrderInput()}
${this._visibleInput()}
`}async _areaPicked(e){var t,i,s,n,r,o,a,l;if(""===e.detail.value)this._selectedArea={id:e.detail.value};else try{this._selectedArea=await this._hass.callWS({type:"enhanced_templates_area_settings",area_id:e.detail.value})}catch(e){}this._icon="mdi:square-rounded-outline"===(null===(t=this._selectedArea)||void 0===t?void 0:t.icon)||null===(i=this._selectedArea)||void 0===i?void 0:i.icon,this._name=(null===(s=this._selectedArea)||void 0===s?void 0:s.name)===(null===(n=this._selectedArea)||void 0===n?void 0:n.original_name)||null===(r=this._selectedArea)||void 0===r?void 0:r.name,this._sortOrder=5e5===(null===(o=this._selectedArea)||void 0===o?void 0:o.sort_order)||null===(a=this._selectedArea)||void 0===a?void 0:a.sort_order,this._visible=null===(l=this._selectedArea)||void 0===l?void 0:l.visible}async _entityPicked(e){var t,i,s,n,r,o,a,l,d;if(""===e.detail.value)this._selectedEntity={entity_id:e.detail.value};else try{this._selectedEntity=await this._hass.callWS({type:"enhanced_templates_entity_settings",entity_id:e.detail.value})}catch(e){}this._area_id=(null===(t=this._selectedEntity)||void 0===t?void 0:t.area_id)===(null===(i=this._selectedEntity)||void 0===i?void 0:i.original_area_id)||null===(s=this._selectedEntity)||void 0===s?void 0:s.area_id,this._entity_type=(null===(n=this._selectedEntity)||void 0===n?void 0:n.entity_type)===(null===(r=this._selectedEntity)||void 0===r?void 0:r.original_entity_type)||null===(o=this._selectedEntity)||void 0===o?void 0:o.entity_type,this._sortOrder=5e5===(null===(a=this._selectedEntity)||void 0===a?void 0:a.sort_order)||null===(l=this._selectedEntity)||void 0===l?void 0:l.sort_order,this._visible=null===(d=this._selectedEntity)||void 0===d?void 0:d.visible}async _personPicked(e){var t,i,s,n,r,o;if(""===e.detail.value)this._selectedPerson={id:e.detail.value};else try{console.log(e.detail.value.split(".")[1]),this._selectedPerson=await this._hass.callWS({type:"enhanced_templates_person_settings",person_id:e.detail.value.split(".")[1]})}catch(e){}console.log(this._selectedPerson),this._name=(null===(t=this._selectedPerson)||void 0===t?void 0:t.name)===(null===(i=this._selectedPerson)||void 0===i?void 0:i.original_name)||null===(s=this._selectedPerson)||void 0===s?void 0:s.name,this._sortOrder=5e5===(null===(n=this._selectedPerson)||void 0===n?void 0:n.sort_order)||null===(r=this._selectedPerson)||void 0===r?void 0:r.sort_order,this._visible=null===(o=this._selectedPerson)||void 0===o?void 0:o.visible}_entityAreaPicked(e){this._area_id=e.detail.value}_entityTypePicked(e){this._entity_type=e.detail.value}_iconChanged(e){this._icon=e.detail.value}_nameChanged(e){this._name=e.detail.value}_sortOrderChanged(e){this._sortOrder=e.detail.value}_visibleChanged(e){this._visible=e.target.checked}_updateAreaSettings(){var e;this._hass.callService("enhanced_templates","set_area",{area_id:null===(e=this._selectedArea)||void 0===e?void 0:e.id,icon:this._icon,name:this._name,sort_order:this._sortOrder,visible:this._visible})}_updateEntitySettings(){var e;this._hass.callService("enhanced_templates","set_entity",{entity_id:null===(e=this._selectedEntity)||void 0===e?void 0:e.entity_id,area_id:this._area_id,entity_type:this._entity_type,sort_order:this._sortOrder,visible:this._visible})}_updatePersonSettings(){var e;this._hass.callService("enhanced_templates","set_person",{id:null===(e=this._selectedPerson)||void 0===e?void 0:e.id,name:this._name,sort_order:this._sortOrder,visible:this._visible})}static get styles(){return te`
.row {
margin-top: 8px;
color: var(--primary-text-color);
display: flex;
align-items: center;
}
.secondary {
color: var(--secondary-text-color);
}
.disabled {
color: var(--disabled-text-color);
}
.full-width {
width: 100%;
}
.buttons {
width: 100%;
box-sizing: border-box;
border-top: 1px solid
var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12));
display: flex;
justify-content: space-between;
flex-direction: row-reverse;
padding-top: 8px;
padding-right: 8px;
padding-left: 8px;
padding-bottom: max(env(safe-area-inset-bottom), 8px);
}
ha-switch {
margin-right: 16px;
}
`}getCardSize(){return 8+(this.config.hide_title?0:2)+(this.config.hide_intro?0:1)}};e([G({attribute:!1})],je.prototype,"_hass",void 0),e([K()],je.prototype,"config",void 0),e([K()],je.prototype,"_areas",void 0),e([K()],je.prototype,"_area_id",void 0),e([K()],je.prototype,"_entity_type",void 0),e([K()],je.prototype,"_entity_types",void 0),e([K()],je.prototype,"_icon",void 0),e([K()],je.prototype,"_name",void 0),e([K()],je.prototype,"_selectedArea",void 0),e([K()],je.prototype,"_selectedEntity",void 0),e([K()],je.prototype,"_selectedPerson",void 0),e([K()],je.prototype,"_sortOrder",void 0),e([K()],je.prototype,"_visible",void 0),e([K()],je.prototype,"_last_hash",void 0),e([K()],je.prototype,"_unsub",void 0),je=e([J("enhanced-templates-card")],je);export{je as EnhancedTemplateCard};
| 129.057554 | 8,889 | 0.695226 |
bbcb0a51eacfadd4bf9d8c9267a6a36fb08aa651 | 2,759 | js | JavaScript | src/TabBar/TabBar.web.js | kokizzu/react-web | bcdd7c015134785710c9ffd9e844532d6aa6f53d | [
"BSD-3-Clause"
] | 103 | 2019-05-02T09:31:29.000Z | 2022-03-03T08:01:52.000Z | src/TabBar/TabBar.web.js | kokizzu/react-web | bcdd7c015134785710c9ffd9e844532d6aa6f53d | [
"BSD-3-Clause"
] | null | null | null | src/TabBar/TabBar.web.js | kokizzu/react-web | bcdd7c015134785710c9ffd9e844532d6aa6f53d | [
"BSD-3-Clause"
] | 18 | 2019-05-02T09:31:30.000Z | 2021-11-20T12:25:05.000Z | /**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
*/
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TabBarItem from './TabBarItem.web';
import TabBarContents from './TabBarContents.web';
import {View, StyleSheet} from 'react-native-web';
class TabBar extends Component {
state = {
selectedIndex: 0
}
static Item = TabBarItem
static propTypes = {
style: PropTypes.object,
/**
* Color of the currently selected tab icon
*/
tintColor: PropTypes.string,
/**
* Background color of the tab bar
*/
barTintColor: PropTypes.string,
clientHeight: PropTypes.number
}
getStyles() {
return StyleSheet.create({
container: {
width: '100%',
height: this.props.clientHeight || document.documentElement.clientHeight,
position: 'relative',
overflow: 'hidden'
},
content: {
width: '100%',
height: '100%'
},
bar: {
width: '100%',
position: 'absolute',
padding: 0,
margin: 0,
listStyle: 'none',
left: 0,
bottom: 0,
// borderTop: '1px solid #e1e1e1',
backgroundColor: 'rgba(250,250,250,.96)',
display: 'table'
}
});
}
handleTouchTap(index) {
this.setState({
selectedIndex: index
});
}
render() {
let self = this;
let styles = self.getStyles();
let barStyle = {
...styles.bar,
...this.props.style || {},
...this.props.barTintColor ? {backgroundColor: this.props.barTintColor} : {}
};
let tabContent = [];
let tabs = React.Children.map(this.props.children, (tab,
index) => {
if (tab.type.displayName === 'TabBarItem') {
if (tab.props.children) {
tabContent.push(React.createElement(TabBarContents, {
key: index,
selected: self.state.selectedIndex === index
}, tab.props.children));
} else {
tabContent.push(undefined);
}
return React.cloneElement(tab, {
index: index,
selected: self.state.selectedIndex === index,
selectedColor: self.props.tintColor,
handleTouchTap: self.handleTouchTap
});
} else {
let type = tab.type.displayName || tab.type;
throw 'Tabbar only accepts TabBar.Item Components as children. Found ' + type + ' as child number ' + (index + 1) + ' of Tabbar';
}
});
return (
<View style={styles.container}>
<View style={styles.content}>{tabContent}</View>
<ul style={barStyle}>
{tabs}
</ul>
</View>
);
}
}
export default TabBar;
| 23.784483 | 137 | 0.567235 |
bbcb50dee8bcfa6f4ed2966f9c84e6a8dd161da3 | 592 | js | JavaScript | app/javascript/shared/confirm.js | takayamaki/kaku_tail_uploader | c813c1e2b53059da1d0495c077897f8573c7596b | [
"MIT"
] | null | null | null | app/javascript/shared/confirm.js | takayamaki/kaku_tail_uploader | c813c1e2b53059da1d0495c077897f8573c7596b | [
"MIT"
] | 12 | 2020-02-29T01:03:24.000Z | 2022-03-30T23:02:20.000Z | app/javascript/shared/confirm.js | takayamaki/kaku_tail_uploader | c813c1e2b53059da1d0495c077897f8573c7596b | [
"MIT"
] | null | null | null | 'use strict';
class Confirm{
constructor(elm){
this.message = elm.getAttribute('data-confirm')
if(this.message){
elm.form.addEventListener('submit', this.confirm.bind(this))
} else {
console && console.warn('No value specified in `data-confirm`', elm)
}
}
confirm(e) {
if (!window.confirm(this.message)) {
e.preventDefault();
}
}
}
export const setConfirmHandler = () =>{
const targets = document.querySelectorAll('.is-danger')
console.log(targets)
if(targets){
targets.forEach((target) => {
new Confirm(target)
})
}
} | 21.925926 | 74 | 0.625 |
bbcb6d6b1ddba0c6dfc8cf14a0e2f69608b006cc | 5,012 | js | JavaScript | public/js/react/0.chunck.js | MustafaGondalwala/School-ERP | 72a1a1d992a6c18a115faf78b6111b54740bae88 | [
"MIT"
] | null | null | null | public/js/react/0.chunck.js | MustafaGondalwala/School-ERP | 72a1a1d992a6c18a115faf78b6111b54740bae88 | [
"MIT"
] | 2 | 2021-02-02T18:47:47.000Z | 2021-02-27T09:33:51.000Z | public/js/react/0.chunck.js | MustafaGondalwala/School-ERP | 72a1a1d992a6c18a115faf78b6111b54740bae88 | [
"MIT"
] | null | null | null | (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{328:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var l=n(0),a=n.n(l),r=n(2),c=n(3),u=(n(34),n(6)),o=n(1);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,l=E(e);if(t){var a=E(this).constructor;n=Reflect.construct(l,arguments,a)}else n=l.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(o,e);var t,n,l,u=f(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=u.call(this,e)).state={receiptDetails:"",rowInfo:""},t.viewReceipt=t.viewReceipt.bind(d(t)),t}return t=o,(n=[{key:"viewReceipt",value:function(e,t){var n=this,l=this.props.fee_receipts;this.setState({rowInfo:l[t],receiptDetails:""}),c.a.adminclerk.fee.view_receipt(e).then((function(e){var t=e.receiptDetails;n.setState({receiptDetails:t})}))}},{key:"render",value:function(){var e=this,t=this.props.fee_receipts,n=this.state,l=n.receiptDetails,c=n.rowInfo;return a.a.createElement("span",null,t.length>0&&a.a.createElement(r.default,{title:"Fee Receipts",back_link:this.props.back_link},a.a.createElement("div",{className:"table-responsive"},a.a.createElement("table",{className:"table"},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",null,"Sr no."),a.a.createElement("th",null,"Receipts ID:"),a.a.createElement("th",null,"View"),a.a.createElement("th",null,"Print"),a.a.createElement("th",null,"Created By"))),a.a.createElement("tbody",null,t.map((function(t,n){return a.a.createElement("tr",{key:n},a.a.createElement("td",null,n+1),a.a.createElement("td",null,t.id),a.a.createElement("td",null,a.a.createElement("button",{className:"btn btn-primary",onClick:function(l){return e.viewReceipt(t.id,n)}},"View")),a.a.createElement("td",null,a.a.createElement("button",{className:"btn btn-success"},"Print")),a.a.createElement("td",null,t.amount_name))})))))),l&&a.a.createElement(h,{rowInfo:c,receipt:l}))}}])&&m(t.prototype,n),l&&m(t,l),o}(l.Component),h=function(e){var t=e.receipt,n=e.rowInfo,l=n.payment_type,c=(n.id,n.amount_name),i=n.created_at,m="Receipt ID: "+n.id,p=0,f=0,s=0,d=0;return a.a.createElement(r.default,{title:m},a.a.createElement(u.default,null,a.a.createElement(o.c,{md:"6",sm:"6"},a.a.createElement("h4",null,"Payment Type: ",l),a.a.createElement("h4",null,"Created By: ",c),a.a.createElement("h4",null,"Publish At: ",new Date(i).toLocaleDateString()))),a.a.createElement("br",null),a.a.createElement(u.default,null,a.a.createElement(o.o,null,a.a.createElement(o.p,null,a.a.createElement("th",null,"Sr no."),a.a.createElement("th",null,"Fee Type"),a.a.createElement("th",null,"Total Amount"),a.a.createElement("th",null,"Waiver Amount"),a.a.createElement("th",null,"Old Total Pending"),a.a.createElement("th",null,"Total Paid"),a.a.createElement("th",null,"Current Paid"),a.a.createElement("th",null,"New Total Pending")),a.a.createElement("tbody",null,t.map((function(e,t){return p+=e.current_paid,s+=e.total_pending,d+=e.total_amount,f+=e.total_pending-e.current_paid,a.a.createElement("tr",null,a.a.createElement("td",null,t+1),a.a.createElement("td",null,e.fee_type),a.a.createElement("td",null,e.total_amount),a.a.createElement("td",null,e.waiver_amount),a.a.createElement("td",null,e.total_pending),a.a.createElement("td",null,e.total_paid),a.a.createElement("td",null,e.current_paid),a.a.createElement("td",null,e.total_pending-e.current_paid))})),a.a.createElement("tr",null,a.a.createElement("td",null),a.a.createElement("td",null),a.a.createElement("td",null,d),a.a.createElement("td",null),a.a.createElement("td",null,s),a.a.createElement("td",null),a.a.createElement("td",null,p),a.a.createElement("td",null,f))))))}}}]); | 5,012 | 5,012 | 0.723464 |
bbcba640e7f722fb7de550b6596a9e894a5edc28 | 895 | js | JavaScript | panel/src/station/calculation/CalculationList.js | mhsh88/cgs-spring-electron-react | aef720cbb40de13027e496ae7d0b1a5e256c29b2 | [
"MIT"
] | null | null | null | panel/src/station/calculation/CalculationList.js | mhsh88/cgs-spring-electron-react | aef720cbb40de13027e496ae7d0b1a5e256c29b2 | [
"MIT"
] | null | null | null | panel/src/station/calculation/CalculationList.js | mhsh88/cgs-spring-electron-react | aef720cbb40de13027e496ae7d0b1a5e256c29b2 | [
"MIT"
] | null | null | null | import React from 'react';
import {
ColumnActions,
List,
Datagrid,
TextField, EditButton, ReferenceField,
} from '../../core';
export const CalculationList = props => (
<List {...props}>
<Datagrid bodyOptions={{ stripedRows: true, showRowHover: true }} >
<TextField source="id"/>
<ReferenceField source="cityGateStation.id" reference="citygatestations" allowEmpty>
<TextField source="city" />
</ReferenceField>
<ReferenceField source="condition.id" reference="conditions" allowEmpty>
<TextField source="id" />
</ReferenceField>
<ReferenceField source="gas.id" reference="gass" allowEmpty>
<TextField source="name" />
</ReferenceField>
<ColumnActions />
</Datagrid>
</List>
);
export default CalculationList; | 31.964286 | 96 | 0.591061 |
bbcbc7a42d611b13cc5e434760a4ee490d9c649f | 436 | js | JavaScript | webpack.test.js | glitchless/RhythmBlastFrontend | f4148d445b2a516b1d52d377829ea01490e14436 | [
"MIT"
] | 6 | 2017-09-04T14:00:37.000Z | 2018-01-09T08:17:38.000Z | webpack.test.js | glitchless/RhythmBlastFrontend | f4148d445b2a516b1d52d377829ea01490e14436 | [
"MIT"
] | 10 | 2017-09-27T13:44:57.000Z | 2022-02-09T23:16:35.000Z | webpack.test.js | glitchless/RhythmBlastFrontend | f4148d445b2a516b1d52d377829ea01490e14436 | [
"MIT"
] | 3 | 2018-02-19T04:44:41.000Z | 2020-04-08T18:04:50.000Z | const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = merge([
{
entry: {
main: './test/lib/index.js',
},
plugins: [
new HtmlWebpackPlugin({
template: 'test/lib/index.html',
}),
],
},
require('./webpack/common'),
require('./webpack/dev'),
require('./webpack/watch'),
]);
| 22.947368 | 57 | 0.511468 |
bbcbe7ff8cd9e4dee531a47ebaf817c941a23f61 | 8,167 | js | JavaScript | shared/types.js | brotzky/spectrum | 2048fe4a2925ec865dc02d9070e6f71afa9adac7 | [
"BSD-3-Clause"
] | 1 | 2019-08-21T03:16:11.000Z | 2019-08-21T03:16:11.000Z | shared/types.js | rafaelalmeidatk/spectrum | 3de272fafe16f64602f256cec72f9da006ed4d48 | [
"BSD-3-Clause"
] | null | null | null | shared/types.js | rafaelalmeidatk/spectrum | 3de272fafe16f64602f256cec72f9da006ed4d48 | [
"BSD-3-Clause"
] | 1 | 2019-09-13T11:23:05.000Z | 2019-09-13T11:23:05.000Z | // @flow
/*
The purpose of this is file is to share flowtypes of our database records across
API and our workers. When type checking results directly from a database query,
attempt to use or update the types here
*/
import type { MessageType } from 'shared/draft-utils/message-types';
export type DBChannel = {
communityId: string,
createdAt: Date,
deletedAt?: Date,
deletedBy?: string,
description: string,
id: string,
isDefault: boolean,
isPrivate: boolean,
name: string,
slug: string,
archivedAt?: Date,
memberCount: number,
};
export type DBCommunity = {
coverPhoto: string,
createdAt: Date,
description: string,
id: string,
name: string,
profilePhoto: string,
slug: string,
website?: ?string,
deletedAt?: Date,
deletedBy?: string,
pinnedThreadId?: string,
watercoolerId?: string,
creatorId: string,
administratorEmail: ?string,
pendingAdministratorEmail?: string,
isPrivate: boolean,
memberCount: number,
};
export type DBCommunitySettings = {
id: string,
communityId: string,
brandedLogin: ?{
customMessage: ?string,
},
slackSettings: ?{
connectedAt: ?string,
connectedBy: ?string,
invitesSentAt: ?string,
teamName: ?string,
teamId: ?string,
scope: ?string,
token: ?string,
invitesMemberCount: ?string,
invitesCustomMessage: ?string,
},
joinSettings: {
tokenJoinEnabled: boolean,
token: ?string,
},
};
export type DBChannelSettings = {
id: string,
channelId: string,
joinSettings?: {
tokenJoinEnabled: boolean,
token: string,
},
slackSettings?: {
botLinks: {
threadCreated: ?string,
},
},
};
export type DBCuratedContent = {
type: string,
id: string,
data: any,
};
export type DBDirectMessageThread = {
createdAt: Date,
id: string,
name?: string,
threadLastActive: Date,
};
type DBMessageEdits = {
content: {
body: string,
},
timestamp: string,
};
export type DBMessage = {
content: {
body: string,
},
id: string,
messageType: MessageType,
senderId: string,
deletedAt?: Date,
deletedBy?: string,
threadId: string,
threadType: 'story' | 'directMessageThread',
timestamp: Date,
parentId?: string,
edits?: Array<DBMessageEdits>,
modifiedAt?: string,
};
export type NotificationPayloadType =
| 'REACTION'
| 'THREAD_REACTION'
| 'MESSAGE'
| 'THREAD'
| 'CHANNEL'
| 'COMMUNITY'
| 'USER'
| 'DIRECT_MESSAGE_THREAD';
export type NotificationEventType =
| 'REACTION_CREATED'
| 'THREAD_REACTION_CREATED'
| 'MESSAGE_CREATED'
| 'THREAD_CREATED'
| 'CHANNEL_CREATED'
| 'DIRECT_MESSAGE_THREAD_CREATED'
| 'USER_JOINED_COMMUNITY'
| 'USER_REQUESTED_TO_JOIN_PRIVATE_CHANNEL'
| 'USER_APPROVED_TO_JOIN_PRIVATE_CHANNEL'
| 'THREAD_LOCKED_BY_OWNER'
| 'THREAD_DELETED_BY_OWNER'
| 'COMMUNITY_INVITE'
| 'MENTION_THREAD'
| 'MENTION_MESSAGE'
| 'PRIVATE_CHANNEL_REQUEST_SENT'
| 'PRIVATE_CHANNEL_REQUEST_APPROVED'
| 'PRIVATE_COMMUNITY_REQUEST_SENT'
| 'PRIVATE_COMMUNITY_REQUEST_APPROVED';
type NotificationPayload = {
id: string,
payload: string,
type: NotificationPayloadType,
};
export type DBNotification = {
id: string,
actors: Array<NotificationPayload>,
context: NotificationPayload,
createdAt: Date,
entities: Array<NotificationPayload>,
event: NotificationEventType,
modifiedAt: Date,
};
type ReactionType = 'like';
export type DBReaction = {
id: string,
messageId: string,
timestamp: Date,
type: ReactionType,
userId: string,
};
export type DBThreadReaction = {
id: string,
threadId: string,
createdAt: Date,
type: ReactionType,
deletedAt?: Date,
score?: number,
scoreUpdatedAt?: Date,
userId: string,
};
export type DBReputationEvent = {
communityId: string,
id: string,
score: number,
timestamp: Date,
type: string,
userId: string,
};
export type DBSlackUser = {
email: string,
firstName: string,
lastName: string,
};
export type DBSlackImport = {
id: string,
communityId: string,
members?: Array<DBSlackUser>,
senderId?: string,
teamId: string,
teamName: string,
token: string,
};
type DBThreadAttachment = {
attachmentType: 'photoPreview',
data: {
name: string,
type: string,
url: string,
},
};
type DBThreadEdits = {
attachment?: {
photos: Array<DBThreadAttachment>,
},
content: {
body?: any,
title: string,
},
timestamp: Date,
};
export type DBThread = {
id: string,
channelId: string,
communityId: string,
content: {
body?: any,
title: string,
},
createdAt: Date,
creatorId: string,
isPublished: boolean,
isLocked: boolean,
lockedBy?: string,
lockedAt?: Date,
lastActive: Date,
modifiedAt?: Date,
deletedAt?: string,
deletedBy: ?string,
attachments?: Array<DBThreadAttachment>,
edits?: Array<DBThreadEdits>,
watercooler?: boolean,
messageCount: number,
reactionCount: number,
type: string,
};
export type DBUser = {
id: string,
email?: string,
createdAt: string,
name: string,
coverPhoto: string,
profilePhoto: string,
providerId?: ?string,
githubProviderId?: ?string,
githubUsername?: ?string,
fbProviderId?: ?string,
googleProviderId?: ?string,
username: ?string,
timezone?: ?number,
isOnline?: boolean,
lastSeen?: ?string,
description?: ?string,
website?: ?string,
modifiedAt: ?string,
betaSupporter?: boolean,
};
export type DBUsersChannels = {
id: string,
channelId: string,
createdAt: Date,
isBlocked: boolean,
isMember: boolean,
isModerator: boolean,
isOwner: boolean,
isPending: boolean,
receiveNotifications: boolean,
userId: string,
};
export type DBUsersCommunities = {
id: string,
communityId: string,
createdAt: Date,
isBlocked: boolean,
isMember: boolean,
isModerator: boolean,
isOwner: boolean,
isPending: boolean,
receiveNotifications: boolean,
reputation: number,
userId: string,
};
export type DBUsersDirectMessageThreads = {
id: string,
createdAt: Date,
lastActive?: Date,
lastSeen?: Date,
receiveNotifications: boolean,
threadId: string,
userId: string,
};
export type DBUsersNotifications = {
id: string,
createdAt: Date,
entityAddedAt: Date,
isRead: boolean,
isSeen: boolean,
notificationId: string,
userId: string,
};
export type DBNotificationsJoin = {
...$Exact<DBUsersNotifications>,
...$Exact<DBNotification>,
};
type NotificationSetting = { email: boolean };
export type DBUsersSettings = {
id: string,
userId: string,
notifications: {
types: {
dailyDigest: NotificationSetting,
newDirectMessage: NotificationSetting,
newMessageInThreads: NotificationSetting,
newThreadCreated: NotificationSetting,
weeklyDigest: NotificationSetting,
newMention: NotificationSetting,
},
},
};
export type DBUsersThreads = {
id: string,
createdAt: Date,
isParticipant: boolean,
receiveNotifications: boolean,
threadId: string,
userId: string,
lastSeen?: Date | number,
};
export type SearchThread = {
channelId: string,
communityId: string,
creatorId: string,
lastActive: number,
messageContent: {
body: ?string,
},
threadContent: {
title: string,
body: ?string,
},
createdAt: number,
threadId: string,
objectID: string,
};
export type SearchUser = {
description: ?string,
name: string,
username: ?string,
website: ?string,
objectID: string,
};
export type SearchCommunity = {
description: ?string,
name: string,
slug: string,
website: ?string,
objectID: string,
};
export type DBExpoPushSubscription = {
id: string,
token: string,
userId: string,
};
export type FileUpload = {
filename: string,
mimetype: string,
encoding: string,
stream: any,
};
export type EntityTypes = 'communities' | 'channels' | 'users' | 'threads';
export type DBCoreMetric = {
dau: number,
wau: number,
mau: number,
dac: number,
dacSlugs: Array<string>,
wac: number,
wacSlugs: Array<string>,
mac: number,
macSlugs: Array<string>,
cpu: number,
mpu: number,
tpu: number,
users: number,
communities: number,
threads: number,
dmThreads: number,
};
| 19.39905 | 82 | 0.687278 |
bbcc31b7600c47e561255b4d79d5d883112481fd | 867 | js | JavaScript | truffle.js | zerocarbonproject/ZeroCarbonDistribution | b0de71f1b9e5997b827848692b01b1a1a0930958 | [
"MIT"
] | 1 | 2019-12-18T04:52:47.000Z | 2019-12-18T04:52:47.000Z | truffle.js | zerocarbonproject/ZeroCarbonDistribution | b0de71f1b9e5997b827848692b01b1a1a0930958 | [
"MIT"
] | null | null | null | truffle.js | zerocarbonproject/ZeroCarbonDistribution | b0de71f1b9e5997b827848692b01b1a1a0930958 | [
"MIT"
] | null | null | null | require('babel-register');
require('babel-polyfill');
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
mainnet: {
host: 'localhost',
port: 8545,
network_id: '1', // Match any network id
gas: 3500000,
gasPrice: 10000000000
},
development: {
host: "localhost",
port: 7545,
network_id: "*", // Match any network id
gas: 4500000,
},
coverage: {
host: "localhost",
port: 7546,
network_id: "*", // Match any network id
gas: 45000000,
},
ropsten : {
host: "127.0.0.1",
port: 8545,
network_id: "3", // Match any network id
gas: 4500000,
}
},
dependencies: {},
solc: {
optimizer: {
enabled: true,
runs: 200,
},
},
}; | 21.146341 | 66 | 0.546713 |
bbcc7971d7b8aa4ffd24e7416209a71ce4ac4bad | 2,000 | js | JavaScript | node_modules/web3/packages/web3-core-promiEvent/src/index.js | roller-project/web3s | 6c3772844b95516116fa1169c295e3f7f9ca4d07 | [
"MIT"
] | null | null | null | node_modules/web3/packages/web3-core-promiEvent/src/index.js | roller-project/web3s | 6c3772844b95516116fa1169c295e3f7f9ca4d07 | [
"MIT"
] | null | null | null | node_modules/web3/packages/web3-core-promiEvent/src/index.js | roller-project/web3s | 6c3772844b95516116fa1169c295e3f7f9ca4d07 | [
"MIT"
] | 2 | 2018-03-28T14:06:22.000Z | 2018-03-28T14:53:11.000Z | /*
This file is part of web3.js.
web3.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
web3.js is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file index.js
* @author Fabian Vogelsteller <fabian@ethereum.org>
* @date 2016
*/
"use strict";
var EventEmitter = require('eventemitter3');
var Promise = require("bluebird");
/**
* This function generates a defer promise and adds eventEmitter functionality to it
*
* @method eventifiedPromise
*/
var PromiEvent = function PromiEvent(justPromise) {
var resolve, reject,
eventEmitter = new Promise(function() {
resolve = arguments[0];
reject = arguments[1];
});
if(justPromise) {
return {
resolve: resolve,
reject: reject,
eventEmitter: eventEmitter
};
}
// get eventEmitter
var emitter = new EventEmitter();
// add eventEmitter to the promise
eventEmitter._events = emitter._events;
eventEmitter.emit = emitter.emit;
eventEmitter.on = emitter.on;
eventEmitter.once = emitter.once;
eventEmitter.off = emitter.off;
eventEmitter.listeners = emitter.listeners;
eventEmitter.addListener = emitter.addListener;
eventEmitter.removeListener = emitter.removeListener;
eventEmitter.removeAllListeners = emitter.removeAllListeners;
return {
resolve: resolve,
reject: reject,
eventEmitter: eventEmitter
};
};
module.exports = PromiEvent;
| 28.571429 | 84 | 0.692 |
bbcd4e937677101940508511379361fcd5ef0e64 | 814 | js | JavaScript | node_modules/unzip-response/index.js | yumikohey/WaiterCar | bb15c5b7a661765c3bc710fa4946229e986fde0c | [
"MIT"
] | null | null | null | node_modules/unzip-response/index.js | yumikohey/WaiterCar | bb15c5b7a661765c3bc710fa4946229e986fde0c | [
"MIT"
] | null | null | null | node_modules/unzip-response/index.js | yumikohey/WaiterCar | bb15c5b7a661765c3bc710fa4946229e986fde0c | [
"MIT"
] | null | null | null | 'use strict';
var zlib = require('zlib');
module.exports = function (res) {
;res.headers = res.headers || {};if (['gzip', 'deflate'].indexOf(res.headers['content-encoding']) !== -1) {
var unzip = zlib.createUnzip();
unzip.httpVersion = res.httpVersion;
unzip.headers = res.headers;
unzip.rawHeaders = res.rawHeaders;
unzip.trailers = res.trailers;
unzip.rawTrailers = res.rawTrailers;
unzip.setTimeout = res.setTimeout.bind(res);
unzip.statusCode = res.statusCode;
unzip.statusMessage = res.statusMessage;
unzip.socket = res.socket;
unzip.once('error', function (err) {
if (err.code === 'Z_BUF_ERROR') {
res.emit('end');
return;
}
res.emit('error', err);
});
res.on('close', function () {
unzip.emit('close');
});
res = res.pipe(unzip);
}
return res;
};
| 22.611111 | 108 | 0.642506 |
bbcd954c4abc4083f1cd80faf54d3f06b773ddb9 | 1,913 | js | JavaScript | src/assets/data/accordion.js | abiha-aftab/heartValve | 548b49ff454d38e2a9d27529b4653c844ff16b3c | [
"MIT"
] | null | null | null | src/assets/data/accordion.js | abiha-aftab/heartValve | 548b49ff454d38e2a9d27529b4653c844ff16b3c | [
"MIT"
] | null | null | null | src/assets/data/accordion.js | abiha-aftab/heartValve | 548b49ff454d38e2a9d27529b4653c844ff16b3c | [
"MIT"
] | null | null | null | export const accordionData = [
{ title: 'What is a heart valve?', body: 'Your heart has four valves: the mitral valve and the aortic valve on the left side of your heart and the tricuspid valve and the pulmonic valve on the right side of your heart. In order for blood to move properly through your heart, each of these valves must open and close properly as the heart beats. The valves are composed of tissue (usually referred to as leaflets or cusps). This tissue comes together to close the valve, preventing blood from improperly mixing in the heart’s four chambers (right and left atrium and right and left ventricle).'},
{ title: 'When do the heart valves open and close?', body: 'You may notice that the beating of your heart makes a “lubb-dubb, lubb-dubb” sound. This sound corresponds to the opening and closing of the valves in your heart. The first “lubb” sound is softer than the second; this is the sound of the mitral and tricuspid valves closing after the ventricles have filled with blood. As the mitral and tricuspid valves close, the aortic and pulmonic valves open to allow blood to flow from the contracting ventricles. Blood from the left ventricle is pumped through the aortic valve to the rest of the body, while blood from the right ventricle goes through the pulmonic valve and on to the lungs. The second “dubb,” which is much louder, is the sound of the aortic and pulmonic valves closing.'},
{ title: 'How often do my heart valves open and close?', body: 'The average human heart beats 100,000 times per day. Over the life of an average 70-year-old, that means over 2.5 billion beats.'},
{ title: 'How big are my heart valves?', body: 'Your heart is about the size of your two hands clasped together. The aortic and pulmonic valves are about the size of a quarter or half dollar, while the mitral and tricuspid valves are about the size of an old-fashioned silver dollar.'},
]
| 273.285714 | 794 | 0.774177 |
bbcdbfbf8a4132656e2dbfc22dc2dfb423df5588 | 18,184 | js | JavaScript | framework/images/webapp/images/dojo/src/io/common.js | ZhangUranus/partner-fq | 23e12895c6923bfa2a8700aef81d27dec46d6ba7 | [
"Apache-2.0"
] | 10 | 2015-12-10T11:53:32.000Z | 2022-02-28T13:00:09.000Z | framework/images/webapp/images/dojo/src/io/common.js | ZhangUranus/partner-fq | 23e12895c6923bfa2a8700aef81d27dec46d6ba7 | [
"Apache-2.0"
] | null | null | null | framework/images/webapp/images/dojo/src/io/common.js | ZhangUranus/partner-fq | 23e12895c6923bfa2a8700aef81d27dec46d6ba7 | [
"Apache-2.0"
] | 13 | 2015-11-16T10:01:22.000Z | 2021-12-05T06:47:00.000Z | /*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.io.common");
dojo.require("dojo.string");
dojo.require("dojo.lang.extras");
/******************************************************************************
* Notes about dojo.io design:
*
* The dojo.io.* package has the unenviable task of making a lot of different
* types of I/O feel natural, despite a universal lack of good (or even
* reasonable!) I/O capability in the host environment. So lets pin this down
* a little bit further.
*
* Rhino:
* perhaps the best situation anywhere. Access to Java classes allows you
* to do anything one might want in terms of I/O, both synchronously and
* async. Can open TCP sockets and perform low-latency client/server
* interactions. HTTP transport is available through Java HTTP client and
* server classes. Wish it were always this easy.
*
* xpcshell:
* XPCOM for I/O.
*
* spidermonkey:
* S.O.L.
*
* Browsers:
* Browsers generally do not provide any useable filesystem access. We are
* therefore limited to HTTP for moving information to and from Dojo
* instances living in a browser.
*
* XMLHTTP:
* Sync or async, allows reading of arbitrary text files (including
* JS, which can then be eval()'d), writing requires server
* cooperation and is limited to HTTP mechanisms (POST and GET).
*
* <iframe> hacks:
* iframe document hacks allow browsers to communicate asynchronously
* with a server via HTTP POST and GET operations. With significant
* effort and server cooperation, low-latency data transit between
* client and server can be acheived via iframe mechanisms (repubsub).
*
* SVG:
* Adobe's SVG viewer implements helpful primitives for XML-based
* requests, but receipt of arbitrary text data seems unlikely w/o
* <![CDATA[]]> sections.
*
*
* A discussion between Dylan, Mark, Tom, and Alex helped to lay down a lot
* the IO API interface. A transcript of it can be found at:
* http://dojotoolkit.org/viewcvs/viewcvs.py/documents/irc/irc_io_api_log.txt?rev=307&view=auto
*
* Also referenced in the design of the API was the DOM 3 L&S spec:
* http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html
******************************************************************************/
// a map of the available transport options. Transports should add themselves
// by calling add(name)
dojo.io.transports = [];
dojo.io.hdlrFuncNames = [ "load", "error", "timeout" ]; // we're omitting a progress() event for now
dojo.io.Request = function(/*String*/ url, /*String*/ mimetype, /*String*/ transport, /*String or Boolean*/ changeUrl){
// summary:
// Constructs a Request object that is used by dojo.io.bind().
// description:
// dojo.io.bind() will create one of these for you if
// you call dojo.io.bind() with an plain object containing the bind parameters.
// This method can either take the arguments specified, or an Object containing all of the parameters that you
// want to use to create the dojo.io.Request (similar to how dojo.io.bind() is called.
// The named parameters to this constructor represent the minimum set of parameters need
if((arguments.length == 1)&&(arguments[0].constructor == Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url = url;
if(mimetype){ this.mimetype = mimetype; }
if(transport){ this.transport = transport; }
if(arguments.length >= 4){ this.changeUrl = changeUrl; }
}
}
dojo.lang.extend(dojo.io.Request, {
/** The URL to hit */
url: "",
/** The mime type used to interrpret the response body */
mimetype: "text/plain",
/** The HTTP method to use */
method: "GET",
/** An Object containing key-value pairs to be included with the request */
content: undefined, // Object
/** The transport medium to use */
transport: undefined, // String
/** If defined the URL of the page is physically changed */
changeUrl: undefined, // String
/** A form node to use in the request */
formNode: undefined, // HTMLFormElement
/** Whether the request should be made synchronously */
sync: false,
bindSuccess: false,
/** Cache/look for the request in the cache before attempting to request?
* NOTE: this isn't a browser cache, this is internal and would only cache in-page
*/
useCache: false,
/** Prevent the browser from caching this by adding a query string argument to the URL */
preventCache: false,
// events stuff
load: function(/*String*/type, /*Object*/data, /*Object*/transportImplementation, /*Object*/kwArgs){
// summary:
// Called on successful completion of a bind.
// type: String
// A string with value "load"
// data: Object
// The object representing the result of the bind. The actual structure
// of the data object will depend on the mimetype that was given to bind
// in the bind arguments.
// transportImplementation: Object
// The object that implements a particular transport. Structure is depedent
// on the transport. For XMLHTTPTransport (dojo.io.BrowserIO), it will be the
// XMLHttpRequest object from the browser.
// kwArgs: Object
// Object that contains the request parameters that were given to the
// bind call. Useful for storing and retrieving state from when bind
// was called.
},
error: function(/*String*/type, /*Object*/error, /*Object*/transportImplementation, /*Object*/kwArgs){
// summary:
// Called when there is an error with a bind.
// type: String
// A string with value "error"
// error: Object
// The error object. Should be a dojo.io.Error object, but not guaranteed.
// transportImplementation: Object
// The object that implements a particular transport. Structure is depedent
// on the transport. For XMLHTTPTransport (dojo.io.BrowserIO), it will be the
// XMLHttpRequest object from the browser.
// kwArgs: Object
// Object that contains the request parameters that were given to the
// bind call. Useful for storing and retrieving state from when bind
// was called.
},
timeout: function(/*String*/type, /*Object*/empty, /*Object*/transportImplementation, /*Object*/kwArgs){
// summary:
// Called when there is an error with a bind. Only implemented in certain transports at this time.
// type: String
// A string with value "timeout"
// empty: Object
// Should be null. Just a spacer argument so that load, error, timeout and handle have the
// same signatures.
// transportImplementation: Object
// The object that implements a particular transport. Structure is depedent
// on the transport. For XMLHTTPTransport (dojo.io.BrowserIO), it will be the
// XMLHttpRequest object from the browser. May be null for the timeout case for
// some transports.
// kwArgs: Object
// Object that contains the request parameters that were given to the
// bind call. Useful for storing and retrieving state from when bind
// was called.
},
handle: function(/*String*/type, /*Object*/data, /*Object*/transportImplementation, /*Object*/kwArgs){
// summary:
// The handle method can be defined instead of defining separate load, error and timeout
// callbacks.
// type: String
// A string with the type of callback: "load", "error", or "timeout".
// data: Object
// See the above callbacks for what this parameter could be.
// transportImplementation: Object
// The object that implements a particular transport. Structure is depedent
// on the transport. For XMLHTTPTransport (dojo.io.BrowserIO), it will be the
// XMLHttpRequest object from the browser.
// kwArgs: Object
// Object that contains the request parameters that were given to the
// bind call. Useful for storing and retrieving state from when bind
// was called.
},
//FIXME: change IframeIO.js to use timeouts?
// The number of seconds to wait until firing a timeout callback.
// If it is zero, that means, don't do a timeout check.
timeoutSeconds: 0,
// the abort method needs to be filled in by the transport that accepts the
// bind() request
abort: function(){ },
// backButton: function(){ },
// forwardButton: function(){ },
fromKwArgs: function(/*Object*/ kwArgs){
// summary:
// Creates a dojo.io.Request from a simple object (kwArgs object).
// normalize args
if(kwArgs["url"]){ kwArgs.url = kwArgs.url.toString(); }
if(kwArgs["formNode"]) { kwArgs.formNode = dojo.byId(kwArgs.formNode); }
if(!kwArgs["method"] && kwArgs["formNode"] && kwArgs["formNode"].method) {
kwArgs.method = kwArgs["formNode"].method;
}
// backwards compatibility
if(!kwArgs["handle"] && kwArgs["handler"]){ kwArgs.handle = kwArgs.handler; }
if(!kwArgs["load"] && kwArgs["loaded"]){ kwArgs.load = kwArgs.loaded; }
if(!kwArgs["changeUrl"] && kwArgs["changeURL"]) { kwArgs.changeUrl = kwArgs.changeURL; }
// encoding fun!
kwArgs.encoding = dojo.lang.firstValued(kwArgs["encoding"], djConfig["bindEncoding"], "");
kwArgs.sendTransport = dojo.lang.firstValued(kwArgs["sendTransport"], djConfig["ioSendTransport"], false);
var isFunction = dojo.lang.isFunction;
for(var x=0; x<dojo.io.hdlrFuncNames.length; x++){
var fn = dojo.io.hdlrFuncNames[x];
if(kwArgs[fn] && isFunction(kwArgs[fn])){ continue; }
if(kwArgs["handle"] && isFunction(kwArgs["handle"])){
kwArgs[fn] = kwArgs.handle;
}
// handler is aliased above, shouldn't need this check
/* else if(dojo.lang.isObject(kwArgs.handler)){
if(isFunction(kwArgs.handler[fn])){
kwArgs[fn] = kwArgs.handler[fn]||kwArgs.handler["handle"]||function(){};
}
}*/
}
dojo.lang.mixin(this, kwArgs);
}
});
dojo.io.Error = function(/*String*/ msg, /*String*/ type, /*Number*/num){
// summary:
// Constructs an object representing a bind error.
this.message = msg;
this.type = type || "unknown"; // must be one of "io", "parse", "unknown"
this.number = num || 0; // per-substrate error number, not normalized
}
dojo.io.transports.addTransport = function(/*String*/name){
// summary:
// Used to register transports that can support bind calls.
this.push(name);
// FIXME: do we need to handle things that aren't direct children of the
// dojo.io module? (say, dojo.io.foo.fooTransport?)
this[name] = dojo.io[name];
}
// binding interface, the various implementations register their capabilities
// and the bind() method dispatches
dojo.io.bind = function(/*dojo.io.Request or Object*/request){
// summary:
// Binding interface for IO. Loading different IO transports, like
// dojo.io.BrowserIO or dojo.io.IframeIO, will register with bind
// to handle particular types of bind calls.
// request: Object
// Object containing bind arguments. This object is converted to
// a dojo.io.Request object, and that request object is the return
// value for this method.
if(!(request instanceof dojo.io.Request)){
try{
request = new dojo.io.Request(request);
}catch(e){ dojo.debug(e); }
}
// if the request asks for a particular implementation, use it
var tsName = "";
if(request["transport"]){
tsName = request["transport"];
if(!this[tsName]){
dojo.io.sendBindError(request, "No dojo.io.bind() transport with name '"
+ request["transport"] + "'.");
return request; //dojo.io.Request
}
if(!this[tsName].canHandle(request)){
dojo.io.sendBindError(request, "dojo.io.bind() transport with name '"
+ request["transport"] + "' cannot handle this type of request.");
return request; //dojo.io.Request
}
}else{
// otherwise we do our best to auto-detect what available transports
// will handle
for(var x=0; x<dojo.io.transports.length; x++){
var tmp = dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(request))){
tsName = tmp;
break;
}
}
if(tsName == ""){
dojo.io.sendBindError(request, "None of the loaded transports for dojo.io.bind()"
+ " can handle the request.");
return request; //dojo.io.Request
}
}
this[tsName].bind(request);
request.bindSuccess = true;
return request; //dojo.io.Request
}
dojo.io.sendBindError = function(/* Object */request, /* String */message){
// summary:
// Used internally by dojo.io.bind() to return/raise a bind error.
//Need to be careful since not all hostenvs support setTimeout.
if((typeof request.error == "function" || typeof request.handle == "function")
&& (typeof setTimeout == "function" || typeof setTimeout == "object")){
var errorObject = new dojo.io.Error(message);
setTimeout(function(){
request[(typeof request.error == "function") ? "error" : "handle"]("error", errorObject, null, request);
}, 50);
}else{
dojo.raise(message);
}
}
dojo.io.queueBind = function(/*dojo.io.Request or Object*/request){
// summary:
// queueBind will use dojo.io.bind() but guarantee that only one bind
// call is handled at a time.
// description:
// If queueBind is called while a bind call
// is in process, it will queue up the other calls to bind and call them
// in order as bind calls complete.
// request: Object
// Same sort of request object as used for dojo.io.bind().
if(!(request instanceof dojo.io.Request)){
try{
request = new dojo.io.Request(request);
}catch(e){ dojo.debug(e); }
}
// make sure we get called if/when we get a response
var oldLoad = request.load;
request.load = function(){
dojo.io._queueBindInFlight = false;
var ret = oldLoad.apply(this, arguments);
dojo.io._dispatchNextQueueBind();
return ret;
}
var oldErr = request.error;
request.error = function(){
dojo.io._queueBindInFlight = false;
var ret = oldErr.apply(this, arguments);
dojo.io._dispatchNextQueueBind();
return ret;
}
dojo.io._bindQueue.push(request);
dojo.io._dispatchNextQueueBind();
return request; //dojo.io.Request
}
dojo.io._dispatchNextQueueBind = function(){
// summary:
// Private method used by dojo.io.queueBind().
if(!dojo.io._queueBindInFlight){
dojo.io._queueBindInFlight = true;
if(dojo.io._bindQueue.length > 0){
dojo.io.bind(dojo.io._bindQueue.shift());
}else{
dojo.io._queueBindInFlight = false;
}
}
}
dojo.io._bindQueue = [];
dojo.io._queueBindInFlight = false;
dojo.io.argsFromMap = function(/*Object*/map, /*String?*/encoding, /*String?*/last){
// summary:
// Converts name/values pairs in the map object to an URL-encoded string
// with format of name1=value1&name2=value2...
// map: Object
// Object that has the contains the names and values.
// encoding: String?
// String to specify how to encode the name and value. If the encoding string
// contains "utf" (case-insensitive), then encodeURIComponent is used. Otherwise
// dojo.string.encodeAscii is used.
// last: String?
// The last parameter in the list. Helps with final string formatting?
var enc = /utf/i.test(encoding||"") ? encodeURIComponent : dojo.string.encodeAscii;
var mapped = [];
var control = new Object();
for(var name in map){
var domap = function(elt){
var val = enc(name)+"="+enc(elt);
mapped[(last == name) ? "push" : "unshift"](val);
}
if(!control[name]){
var value = map[name];
// FIXME: should be isArrayLike?
if (dojo.lang.isArray(value)){
dojo.lang.forEach(value, domap);
}else{
domap(value);
}
}
}
return mapped.join("&"); //String
}
dojo.io.setIFrameSrc = function(/*DOMNode*/ iframe, /*String*/ src, /*Boolean*/ replace){
//summary:
// Sets the URL that is loaded in an IFrame. The replace parameter indicates whether
// location.replace() should be used when changing the location of the iframe.
try{
var r = dojo.render.html;
// dojo.debug(iframe);
if(!replace){
if(r.safari){
iframe.location = src;
}else{
frames[iframe.name].location = src;
}
}else{
// Fun with DOM 0 incompatibilities!
var idoc;
if(r.ie){
idoc = iframe.contentWindow.document;
}else if(r.safari){
idoc = iframe.document;
}else{ // if(r.moz){
idoc = iframe.contentWindow;
}
//For Safari (at least 2.0.3) and Opera, if the iframe
//has just been created but it doesn't have content
//yet, then iframe.document may be null. In that case,
//use iframe.location and return.
if(!idoc){
iframe.location = src;
return;
}else{
idoc.location.replace(src);
}
}
}catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
}
/*
dojo.io.sampleTranport = new function(){
this.canHandle = function(kwArgs){
// canHandle just tells dojo.io.bind() if this is a good transport to
// use for the particular type of request.
if(
(
(kwArgs["mimetype"] == "text/plain") ||
(kwArgs["mimetype"] == "text/html") ||
(kwArgs["mimetype"] == "text/javascript")
)&&(
(kwArgs["method"] == "get") ||
( (kwArgs["method"] == "post") && (!kwArgs["formNode"]) )
)
){
return true;
}
return false;
}
this.bind = function(kwArgs){
var hdlrObj = {};
// set up a handler object
for(var x=0; x<dojo.io.hdlrFuncNames.length; x++){
var fn = dojo.io.hdlrFuncNames[x];
if(typeof kwArgs.handler == "object"){
if(typeof kwArgs.handler[fn] == "function"){
hdlrObj[fn] = kwArgs.handler[fn]||kwArgs.handler["handle"];
}
}else if(typeof kwArgs[fn] == "function"){
hdlrObj[fn] = kwArgs[fn];
}else{
hdlrObj[fn] = kwArgs["handle"]||function(){};
}
}
// build a handler function that calls back to the handler obj
var hdlrFunc = function(evt){
if(evt.type == "onload"){
hdlrObj.load("load", evt.data, evt);
}else if(evt.type == "onerr"){
var errObj = new dojo.io.Error("sampleTransport Error: "+evt.msg);
hdlrObj.error("error", errObj);
}
}
// the sample transport would attach the hdlrFunc() when sending the
// request down the pipe at this point
var tgtURL = kwArgs.url+"?"+dojo.io.argsFromMap(kwArgs.content);
// sampleTransport.sendRequest(tgtURL, hdlrFunc);
}
dojo.io.transports.addTransport("sampleTranport");
}
*/
| 35.104247 | 119 | 0.676474 |
bbcdfb6776e679e73c6f4815d1e2b0b2b0691173 | 2,535 | js | JavaScript | cinema/public/js/components/CinemaModal.js | christopher97/cinema-dissertation | f6d6dffcfd3a99949138eef3ea2b4cdf313bb69b | [
"MIT"
] | null | null | null | cinema/public/js/components/CinemaModal.js | christopher97/cinema-dissertation | f6d6dffcfd3a99949138eef3ea2b4cdf313bb69b | [
"MIT"
] | null | null | null | cinema/public/js/components/CinemaModal.js | christopher97/cinema-dissertation | f6d6dffcfd3a99949138eef3ea2b4cdf313bb69b | [
"MIT"
] | null | null | null | import Operator from '../utils/model/operator/index.js';
import CinemaService from '../services/CinemaService.js';
import CinemaModel from '../models/CinemaModel.js';
import { cinema } from '../states/cinema.js';
export default {
name: 'cinema-modal',
props: {
title: String,
},
template:`
<div class="modal fade" tabindex="-1" role="dialog" id="addModal" aria-labelledby="modelLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h5 class="modal-title">Add New {{title}}</h5>
</div>
<div class="modal-body">
<div class="form-group">
<input class="form-control" type="text" v-bind:placeholder="title + ' name'"
v-model="item.name">
</div>
<div class="form-group">
<input class="form-control" type="text" placeholder="Seat Capacity"
v-model="item.seat_capacity">
</div>
<p v-show="showSuccess" class="text-success">{{title}} successfully added!</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary"
v-on:click="submit">Submit</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal"
@click="showSuccess=false">Close</button>
</div>
</div>
</div>
</div>
`,
data() {
return {
item: CinemaModel,
showSuccess: false,
}
},
methods: {
submit() {
CinemaService.create(this.item)
.then((response) => {
this.item = Operator.single(CinemaModel, response.data.cinema);
cinema.addCinema(this.item);
this.item = Operator.reset(CinemaModel);
this.showSuccess = true;
}, (error) => {
console.log(error);
})
}
},
} | 41.557377 | 104 | 0.451677 |
bbceda89323ee0a2c89467321a26d877981dc8bc | 6,599 | js | JavaScript | src/lib/server.js | patrikx3/grunt-p3x-express | 258a169d5fd18dce6ab240d15de683b656914491 | [
"MIT"
] | 1 | 2017-08-21T09:58:47.000Z | 2017-08-21T09:58:47.000Z | src/lib/server.js | patrikx3/grunt-p3x-express | 258a169d5fd18dce6ab240d15de683b656914491 | [
"MIT"
] | 1 | 2018-05-03T08:30:41.000Z | 2018-05-03T09:00:47.000Z | src/lib/server.js | patrikx3/grunt-p3x-express | 258a169d5fd18dce6ab240d15de683b656914491 | [
"MIT"
] | null | null | null | /*
* grunt-p3x-express
* https://github.com/ericclemmons/grunt-express-server
*
* Copyright (c) 2013 Eric Clemmons
* Copyright (c) 2017 Patrik Laszlo <alabard@gmail.com>
* Licensed under the MIT license.
*/
'use strict';
const spawn = require('child_process').spawn;
const process = require('process');
const path = require('path');
const _ = require('lodash');
module.exports = function (grunt, target) {
if (!process._servers) {
process._servers = {};
}
let backup = null;
let done = null;
let server = process._servers[target]; // Store server between live reloads to close/restart express
let finished = function () {
if (done) {
done();
done = null;
}
};
return {
start: function start(options) {
if (server) {
this.stop(options);
if (grunt.task.current.flags.stop) {
finished();
return;
}
}
backup = JSON.parse(JSON.stringify(process.env)); // Clone process.env
// For some weird reason, on Windows the process.env stringify produces a "Path"
// member instead of a "PATH" member, and grunt chokes when it can't find PATH.
if (!backup.PATH) {
if (backup.Path) {
backup.PATH = backup.Path;
delete backup.Path;
}
}
grunt.log.writeln('Starting '.cyan + (options.background ? 'background' : 'foreground') + ' Express server');
done = grunt.task.current.async();
// Set PORT for new processes
process.env.PORT = options.port;
// Set NODE_ENV for new processes
if (options.node_env) {
process.env.NODE_ENV = options.node_env;
}
if (options.env) {
process.env = _.merge(process.env, options.env)
}
if (options.cmd === 'coffee') {
grunt.log.writeln('You are using cmd: coffee'.red);
grunt.log.writeln('coffee does not allow a restart of the server'.red);
grunt.log.writeln('use opts: ["path/to/your/coffee"] instead'.red);
}
// Set debug mode for node-inspector
// Based on https://github.com/joyent/node/blob/master/src/node.cc#L2903
let debugFlag = 'debug';
if (parseInt(process.versions.node.split('.')[0]) > 7) {
debugFlag = 'inspect';
}
if (options.debug === true) {
options.opts.unshift('--' + debugFlag);
} else if (!isNaN(parseInt(options.debug, 10))) {
options.opts.unshift('--' + debugFlag + '=' + options.debug);
} else if (options.breakOnFirstLine === true) {
options.opts.unshift('--' + debugFlag + '-brk');
} else if (!isNaN(parseInt(options.breakOnFirstLine, 10))) {
options.opts.unshift('--' + debugFlag + '-brk=' + options.breakOnFirstLine);
}
if ((options.debug || options.breakOnFirstLine) && options.cmd === 'coffee') {
options.opts.unshift('--nodejs');
}
if (options.background) {
let errtype = process.stderr;
let spawnOptions = {
env: _.merge(process.env, {
FORCE_COLOR: true
}),
stdio: ['inherit'],
// shell: true,
customFds: [0, 1, 2]
};
if (options.logs && options.logs.err) {
errtype = 'pipe';
spawnOptions = {
env: process.env,
stdio: ['ignore', 'pipe', errtype]
}
}
const args = options.opts.concat(options.args);
// console.log(process.argv0)
// console.log(args)
// console.log(spawnOptions)
// process.exit()
server = process._servers[target] = spawn(process.argv0, args, spawnOptions);
if (options.debug !== undefined && options.debug !== false) {
//server
}
if (options.delay) {
setTimeout(finished, options.delay);
}
if (options.output) {
server.stdout.on('data', function (data) {
let message = "" + data;
let regex = new RegExp(options.output, "gi");
if (message.match(regex)) {
finished();
}
});
server.stderr.on('data', function (data) {
console.error(data.toString());
});
}
let out = process.stdout;
if (options.logs) {
const fs = require('fs');
if (options.logs.out) {
out = fs.createWriteStream(path.resolve(options.logs.out), {flags: 'a'});
}
if (options.logs.err && errtype === 'pipe') {
server.stderr.pipe(fs.createWriteStream(path.resolve(options.logs.err), {flags: 'a'}));
}
}
server.stdout.pipe(out);
server.on('close', this.stop);
} else {
// Server is ran in current process
server = process._servers[target] = require(options.script);
}
process.on('exit', this.stop);
},
stop: function stop(options) {
if (server && server.kill) {
grunt.log.writeln('Stopping'.red + ' Express server');
server.removeAllListeners('close');
if (options.hardStop) {
grunt.log.writeln('Using ' + 'SIGKILL'.red);
server.kill('SIGKILL');
} else {
server.kill('SIGTERM');
}
process.removeListener('exit', finished);
process.removeListener('exit', stop);
server = process._servers[target] = null;
}
// Restore original process.env
if (backup) {
process.env = JSON.parse(JSON.stringify(backup));
}
finished();
}
};
};
| 34.915344 | 121 | 0.467344 |
bbd0ada762636a4c120b7b753a249c54bc6a8ee6 | 6,559 | js | JavaScript | server/validators/post.js | abhirup-mondal/internship-portal | cdbdb3f698f8e38b3d2522fa0148cdbafb2f9d05 | [
"MIT"
] | null | null | null | server/validators/post.js | abhirup-mondal/internship-portal | cdbdb3f698f8e38b3d2522fa0148cdbafb2f9d05 | [
"MIT"
] | 15 | 2017-10-26T21:08:49.000Z | 2018-03-10T01:18:16.000Z | server/validators/post.js | abhirup-mondal/internship-portal | cdbdb3f698f8e38b3d2522fa0148cdbafb2f9d05 | [
"MIT"
] | 17 | 2017-10-26T21:23:58.000Z | 2020-06-13T09:17:56.000Z | const _ = require('lodash');
exports.createPostValidation = (req, res, next) => {
const errors = {};
let hasErrors = false;
if (!_.has(req.body, 'position') || req.body.position.trim().length === 0) {
hasErrors = true;
errors.position = 'The position field cannot be empty';
}
if (!_.has(req.body, 'company') || req.body.company.trim().length === 0) {
hasErrors = true;
errors.company = 'The company field cannot be empty';
}
if (!_.has(req.body, 'location') || req.body.location.trim().length === 0) {
hasErrors = true;
errors.location = 'The location field cannot be empty';
}
if (!_.has(req.body, 'startDate') || req.body.startDate.trim().length === 0) {
hasErrors = true;
errors.startDate = 'Start date field cannot be empty';
} else if (new Date(parseInt(req.body.startDate, 10)) < Date.now()) {
hasErrors = true;
errors.startDate = 'Start date cannot be before now';
}
if (!_.has(req.body, 'duration') || req.body.duration.trim().length === 0) {
hasErrors = true;
errors.duration = 'Duration field cannot be empty';
} else if (parseInt(req.body.duration, 10) <= 0) {
hasErrors = true;
errors.duration = 'Duration must be positive';
}
if (!_.has(req.body, 'stipend') || req.body.stipend.trim().length === 0) {
hasErrors = true;
errors.stipend = 'Stipend field cannot be empty';
} else if (parseInt(req.body.stipend, 10) < 0) {
hasErrors = true;
errors.stipend = 'Stipend must be non-negative';
}
if (!_.has(req.body, 'applyBy') || req.body.applyBy.trim().length === 0) {
hasErrors = true;
errors.applyBy = 'Apply by field cannot be empty';
} else if ((new Date(parseInt(req.body.applyBy, 10))) < Date.now()) {
hasErrors = true;
errors.applyBy = 'Apply by date cannot be before now';
}
if (hasErrors) {
res.status(400).json({
message: 'Validation error',
errors,
});
console.log('Validation error for create post request');
} else {
next();
}
};
exports.getAllPostValidation = (req, res, next) => {
next();
};
exports.getPostValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
next();
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.updatePostValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
const errors = {};
let hasErrors = false;
if (!_.has(req.body, 'position') || req.body.position.trim().length === 0) {
hasErrors = true;
errors.position = 'The position field cannot be empty';
}
if (!_.has(req.body, 'company') || req.body.company.trim().length === 0) {
hasErrors = true;
errors.company = 'The company field cannot be empty';
}
if (!_.has(req.body, 'location') || req.body.location.trim().length === 0) {
hasErrors = true;
errors.location = 'The location field cannot be empty';
}
if (!_.has(req.body, 'startDate') || req.body.startDate.trim().length === 0) {
hasErrors = true;
errors.startDate = 'Start date field cannot be empty';
} else if (new Date(parseInt(req.body.startDate, 10)) < Date.now()) {
hasErrors = true;
errors.startDate = 'Start date cannot be before now';
}
if (!_.has(req.body, 'duration') || req.body.duration.trim().length === 0) {
hasErrors = true;
errors.duration = 'Duration field cannot be empty';
} else if (parseInt(req.body.duration, 10) <= 0) {
hasErrors = true;
errors.duration = 'Duration must be positive';
}
if (!_.has(req.body, 'stipend') || req.body.stipend.trim().length === 0) {
hasErrors = true;
errors.stipend = 'Stipend field cannot be empty';
} else if (parseInt(req.body.stipend, 10) < 0) {
hasErrors = true;
errors.stipend = 'Stipend must be non-negative';
}
if (!_.has(req.body, 'applyBy') || req.body.applyBy.trim().length === 0) {
hasErrors = true;
errors.applyBy = 'Apply by field cannot be empty';
} else if ((new Date(parseInt(req.body.applyBy, 10))) < Date.now()) {
hasErrors = true;
errors.applyBy = 'Apply by date cannot be before now';
}
if (hasErrors) {
res.status(400).json({
message: 'Validation error',
errors,
});
console.log('Validation error for create post request');
} else {
next();
}
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.deletePostValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
next();
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.addStudentValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
const post = req.body;
if (post && post.userId === '') {
res.status(400).json({ message: 'validation error' });
} else {
next();
}
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.addFavouriteValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
const post = req.body;
if (post && post.postId === '') {
res.status(400).json({ message: 'validation error' });
} else {
next();
}
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.removeFavouriteValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
const post = req.body;
if (post && post.postId === '') {
res.status(400).json({ message: 'validation error' });
} else {
next();
}
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.applicationsValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
next();
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.favouritesValidation = (req, res, next) => {
if (Object.prototype.hasOwnProperty.call(req.params, 'id')) {
next();
} else {
res.status(400).json({ message: 'validation error' });
}
};
exports.isFavouritedValidation = (req, res, next) => {
const hasStudentId = Object.prototype.hasOwnProperty.call(req.params, 'studentId');
const hasPostId = Object.prototype.hasOwnProperty.call(req.params, 'postId');
if (hasStudentId && hasPostId) {
next();
} else {
res.status(400).json({ message: 'validation error' });
}
};
| 30.938679 | 85 | 0.607562 |
bbd146717008391f88e2b26cd9e5b05cf49f9b55 | 1,523 | js | JavaScript | test/karma.conf.js | skosno/TechnologyConversationsBdd | ada1fdaad82fb4b6f20fb0b2f47c0d52d305083f | [
"Apache-2.0"
] | 1 | 2015-01-15T22:00:02.000Z | 2015-01-15T22:00:02.000Z | test/karma.conf.js | skosno/TechnologyConversationsBdd | ada1fdaad82fb4b6f20fb0b2f47c0d52d305083f | [
"Apache-2.0"
] | null | null | null | test/karma.conf.js | skosno/TechnologyConversationsBdd | ada1fdaad82fb4b6f20fb0b2f47c0d52d305083f | [
"Apache-2.0"
] | null | null | null | module.exports = function(config){
config.set({
basePath : '../',
files : [
'public/bower_components/jasmine/lib/jasmine-core/jasmine.js',
'public/bower_components/jasmine/lib/jasmine-core/jasmine-html.js',
'public/bower_components/jasmine/lib/jasmine-core/boot.js',
'public/bower_components/jquery/dist/jquery.min.js',
'public/bower_components/jquery-ui/ui/minified/jquery-ui.min.js',
'public/bower_components/angular/angular.min.js',
'public/bower_components/angular-resource/angular-resource.min.js',
'public/bower_components/angular-route/angular-route.min.js',
'public/bower_components/angular-cookies/angular-cookies.min.js',
'public/bower_components/bootstrap/docs/assets/js/bootstrap.min.js',
'public/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js',
'public/bower_components/angular-ui-sortable/sortable.min.js',
'public/bower_components/angular-mocks/angular-mocks.js',
'public/html/**/*.js',
'test/**/*.js'
],
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
'karma-chrome-launcher',
'karma-jasmine',
'karma-junit-reporter'
],
logLevel: 'LOG_DEBUG',
junitReporter : {
outputFile: 'test/output/unit.xml',
suite: 'unit'
}
});
}; | 34.613636 | 81 | 0.594222 |
bbd16abce4b3703a2f7499e7c2c4c7590566d33e | 11,215 | js | JavaScript | service-workers/service-worker/resources/test-helpers.sub.js | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 8 | 2019-04-09T21:13:05.000Z | 2021-11-23T17:25:18.000Z | service-workers/service-worker/resources/test-helpers.sub.js | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 21 | 2021-03-31T19:48:22.000Z | 2022-03-12T00:24:53.000Z | service-workers/service-worker/resources/test-helpers.sub.js | ziransun/wpt | ab8f451eb39eb198584d547f5d965ef54df2a86a | [
"BSD-3-Clause"
] | 11 | 2019-04-12T01:20:16.000Z | 2021-11-23T17:25:02.000Z | // Adapter for testharness.js-style tests with Service Workers
/**
* @param options an object that represents RegistrationOptions except for scope.
* @param options.type a WorkerType.
* @param options.updateViaCache a ServiceWorkerUpdateViaCache.
* @see https://w3c.github.io/ServiceWorker/#dictdef-registrationoptions
*/
function service_worker_unregister_and_register(test, url, scope, options) {
if (!scope || scope.length == 0)
return Promise.reject(new Error('tests must define a scope'));
if (options && options.scope)
return Promise.reject(new Error('scope must not be passed in options'));
options = Object.assign({ scope: scope }, options);
return service_worker_unregister(test, scope)
.then(function() {
return navigator.serviceWorker.register(url, options);
})
.catch(unreached_rejection(test,
'unregister and register should not fail'));
}
// This unregisters the registration that precisely matches scope. Use this
// when unregistering by scope. If no registration is found, it just resolves.
function service_worker_unregister(test, scope) {
var absoluteScope = (new URL(scope, window.location).href);
return navigator.serviceWorker.getRegistration(scope)
.then(function(registration) {
if (registration && registration.scope === absoluteScope)
return registration.unregister();
})
.catch(unreached_rejection(test, 'unregister should not fail'));
}
function service_worker_unregister_and_done(test, scope) {
return service_worker_unregister(test, scope)
.then(test.done.bind(test));
}
function unreached_fulfillment(test, prefix) {
return test.step_func(function(result) {
var error_prefix = prefix || 'unexpected fulfillment';
assert_unreached(error_prefix + ': ' + result);
});
}
// Rejection-specific helper that provides more details
function unreached_rejection(test, prefix) {
return test.step_func(function(error) {
var reason = error.message || error.name || error;
var error_prefix = prefix || 'unexpected rejection';
assert_unreached(error_prefix + ': ' + reason);
});
}
/**
* Adds an iframe to the document and returns a promise that resolves to the
* iframe when it finishes loading. The caller is responsible for removing the
* iframe later if needed.
*
* @param {string} url
* @returns {HTMLIFrameElement}
*/
function with_iframe(url) {
return new Promise(function(resolve) {
var frame = document.createElement('iframe');
frame.className = 'test-iframe';
frame.src = url;
frame.onload = function() { resolve(frame); };
document.body.appendChild(frame);
});
}
function normalizeURL(url) {
return new URL(url, self.location).toString().replace(/#.*$/, '');
}
function wait_for_update(test, registration) {
if (!registration || registration.unregister == undefined) {
return Promise.reject(new Error(
'wait_for_update must be passed a ServiceWorkerRegistration'));
}
return new Promise(test.step_func(function(resolve) {
var handler = test.step_func(function() {
registration.removeEventListener('updatefound', handler);
resolve(registration.installing);
});
registration.addEventListener('updatefound', handler);
}));
}
function wait_for_state(test, worker, state) {
if (!worker || worker.state == undefined) {
return Promise.reject(new Error(
'wait_for_state must be passed a ServiceWorker'));
}
if (worker.state === state)
return Promise.resolve(state);
if (state === 'installing') {
switch (worker.state) {
case 'installed':
case 'activating':
case 'activated':
case 'redundant':
return Promise.reject(new Error(
'worker is ' + worker.state + ' but waiting for ' + state));
}
}
if (state === 'installed') {
switch (worker.state) {
case 'activating':
case 'activated':
case 'redundant':
return Promise.reject(new Error(
'worker is ' + worker.state + ' but waiting for ' + state));
}
}
if (state === 'activating') {
switch (worker.state) {
case 'activated':
case 'redundant':
return Promise.reject(new Error(
'worker is ' + worker.state + ' but waiting for ' + state));
}
}
if (state === 'activated') {
switch (worker.state) {
case 'redundant':
return Promise.reject(new Error(
'worker is ' + worker.state + ' but waiting for ' + state));
}
}
return new Promise(test.step_func(function(resolve) {
worker.addEventListener('statechange', test.step_func(function() {
if (worker.state === state)
resolve(state);
}));
}));
}
// Declare a test that runs entirely in the ServiceWorkerGlobalScope. The |url|
// is the service worker script URL. This function:
// - Instantiates a new test with the description specified in |description|.
// The test will succeed if the specified service worker can be successfully
// registered and installed.
// - Creates a new ServiceWorker registration with a scope unique to the current
// document URL. Note that this doesn't allow more than one
// service_worker_test() to be run from the same document.
// - Waits for the new worker to begin installing.
// - Imports tests results from tests running inside the ServiceWorker.
function service_worker_test(url, description) {
// If the document URL is https://example.com/document and the script URL is
// https://example.com/script/worker.js, then the scope would be
// https://example.com/script/scope/document.
var scope = new URL('scope' + window.location.pathname,
new URL(url, window.location)).toString();
promise_test(function(test) {
return service_worker_unregister_and_register(test, url, scope)
.then(function(registration) {
add_completion_callback(function() {
registration.unregister();
});
return wait_for_update(test, registration)
.then(function(worker) {
return fetch_tests_from_worker(worker);
});
});
}, description);
}
function base_path() {
return location.pathname.replace(/\/[^\/]*$/, '/');
}
function test_login(test, origin, username, password, cookie) {
return new Promise(function(resolve, reject) {
with_iframe(
origin + base_path() +
'resources/fetch-access-control-login.html')
.then(test.step_func(function(frame) {
var channel = new MessageChannel();
channel.port1.onmessage = test.step_func(function() {
frame.remove();
resolve();
});
frame.contentWindow.postMessage(
{username: username, password: password, cookie: cookie},
origin, [channel.port2]);
}));
});
}
function test_websocket(test, frame, url) {
return new Promise(function(resolve, reject) {
var ws = new frame.contentWindow.WebSocket(url, ['echo', 'chat']);
var openCalled = false;
ws.addEventListener('open', test.step_func(function(e) {
assert_equals(ws.readyState, 1, "The WebSocket should be open");
openCalled = true;
ws.close();
}), true);
ws.addEventListener('close', test.step_func(function(e) {
assert_true(openCalled, "The WebSocket should be closed after being opened");
resolve();
}), true);
ws.addEventListener('error', reject);
});
}
function login_https(test) {
var host_info = get_host_info();
return test_login(test, host_info.HTTPS_REMOTE_ORIGIN,
'username1s', 'password1s', 'cookie1')
.then(function() {
return test_login(test, host_info.HTTPS_ORIGIN,
'username2s', 'password2s', 'cookie2');
});
}
function websocket(test, frame) {
return test_websocket(test, frame, get_websocket_url());
}
function get_websocket_url() {
return 'wss://{{host}}:{{ports[wss][0]}}/echo';
}
// The navigator.serviceWorker.register() method guarantees that the newly
// installing worker is available as registration.installing when its promise
// resolves. However some tests test installation using a <link> element where
// it is possible for the installing worker to have already become the waiting
// or active worker. So this method is used to get the newest worker when these
// tests need access to the ServiceWorker itself.
function get_newest_worker(registration) {
if (registration.installing)
return registration.installing;
if (registration.waiting)
return registration.waiting;
if (registration.active)
return registration.active;
}
function register_using_link(script, options) {
var scope = options.scope;
var link = document.createElement('link');
link.setAttribute('rel', 'serviceworker');
link.setAttribute('href', script);
link.setAttribute('scope', scope);
document.getElementsByTagName('head')[0].appendChild(link);
return new Promise(function(resolve, reject) {
link.onload = resolve;
link.onerror = reject;
})
.then(() => navigator.serviceWorker.getRegistration(scope));
}
function with_sandboxed_iframe(url, sandbox) {
return new Promise(function(resolve) {
var frame = document.createElement('iframe');
frame.sandbox = sandbox;
frame.src = url;
frame.onload = function() { resolve(frame); };
document.body.appendChild(frame);
});
}
// Registers, waits for activation, then unregisters on a dummy scope.
//
// This can be used to wait for a period of time needed to register,
// activate, and then unregister a service worker. When checking that
// certain behavior does *NOT* happen, this is preferable to using an
// arbitrary delay.
async function wait_for_activation_on_dummy_scope(t, window_or_workerglobalscope) {
const script = '/service-workers/service-worker/resources/empty-worker.js';
const scope = 'resources/there/is/no/there/there?' + Date.now();
let registration = await window_or_workerglobalscope.navigator.serviceWorker.register(script, { scope });
await wait_for_state(t, registration.installing, 'activated');
await registration.unregister();
}
// This installs resources/appcache-ordering.manifest.
function install_appcache_ordering_manifest() {
let resolve_install_appcache;
let reject_install_appcache;
// This is notified by the child iframe, i.e. appcache-ordering.install.html,
// that's to be created below.
window.notify_appcache_installed = success => {
if (success)
resolve_install_appcache();
else
reject_install_appcache();
};
return new Promise((resolve, reject) => {
const frame = document.createElement('iframe');
frame.src = 'resources/appcache-ordering.install.html';
document.body.appendChild(frame);
resolve_install_appcache = function() {
document.body.removeChild(frame);
resolve();
};
reject_install_appcache = function() {
document.body.removeChild(frame);
reject();
};
});
}
| 35.046875 | 107 | 0.671244 |
bbd21329ce7648dfbcce32ac40c46ff0e1e8e7c2 | 4,543 | js | JavaScript | assets/scripts/info_bubble/description.js | gaybro8777/streetmix | 967969f33d8ce76c19a8d5b21c071f262054070e | [
"BSD-3-Clause"
] | 2 | 2019-05-24T14:09:25.000Z | 2019-05-24T14:31:48.000Z | assets/scripts/info_bubble/description.js | remix/streetmix | 967969f33d8ce76c19a8d5b21c071f262054070e | [
"BSD-3-Clause"
] | 1 | 2022-02-10T23:17:17.000Z | 2022-02-10T23:17:17.000Z | assets/scripts/info_bubble/description.js | gaybro8777/streetmix | 967969f33d8ce76c19a8d5b21c071f262054070e | [
"BSD-3-Clause"
] | null | null | null | /**
* info_bubble/description
*
* Additional descriptive text about segments.
*/
import { trackEvent } from '../app/event_tracking'
import { registerKeypress, deregisterKeypress } from '../app/keypress'
import { getStreetSectionTop } from '../app/window_resize'
import { SEGMENT_INFO } from '../segments/info'
import { infoBubble } from './info_bubble'
const DESCRIPTION_PROMPT_LABEL = 'Learn more'
export function updateDescription (segment) {
const description = getDescriptionData(segment)
destroyDescriptionDOM()
if (description) {
buildDescriptionDOM(description)
}
}
function getDescriptionData (segment) {
const segmentInfo = SEGMENT_INFO[segment.type]
const variantInfo = SEGMENT_INFO[segment.type].details[segment.variantString]
if (variantInfo && variantInfo.description) {
return variantInfo.description
} else if (segmentInfo && segmentInfo.description) {
return segmentInfo.description
} else {
return null
}
}
export function showDescription () {
infoBubble.descriptionVisible = true
const el = infoBubble.el.querySelector('.description-canvas')
// TODO document magic numbers
el.style.height = (getStreetSectionTop() + 300 - infoBubble.bubbleY) + 'px'
infoBubble.el.classList.add('show-description')
if (infoBubble.segmentEl) {
infoBubble.segmentEl.classList.add('hide-drag-handles-when-description-shown')
}
infoBubble.getBubbleDimensions()
infoBubble.updateHoverPolygon()
unhighlightTriangleDelayed()
registerKeypress('esc', hideDescription)
trackEvent('INTERACTION', 'LEARN_MORE', infoBubble.segment.type, null, false)
}
export function hideDescription () {
infoBubble.descriptionVisible = false
infoBubble.el.classList.remove('show-description')
if (infoBubble.segmentEl) {
infoBubble.segmentEl.classList.remove('hide-drag-handles-when-description-shown')
}
infoBubble.getBubbleDimensions()
infoBubble.updateHoverPolygon()
unhighlightTriangleDelayed()
deregisterKeypress('esc', hideDescription)
}
function buildDescriptionDOM (description) {
const promptEl = document.createElement('div')
promptEl.classList.add('description-prompt')
promptEl.innerHTML = (description.prompt) ? description.prompt : DESCRIPTION_PROMPT_LABEL
promptEl.addEventListener('pointerdown', showDescription)
promptEl.addEventListener('pointerenter', highlightTriangle)
promptEl.addEventListener('pointerleave', unhighlightTriangle)
infoBubble.el.appendChild(promptEl)
const descriptionEl = document.createElement('div')
descriptionEl.classList.add('description-canvas')
const descriptionInnerEl = document.createElement('div')
descriptionInnerEl.classList.add('description')
if (description.image) {
descriptionInnerEl.innerHTML += '<img src="/images/info-bubble-examples/' + description.image + '">'
}
if (description.lede) {
descriptionInnerEl.innerHTML += '<p class="description-lede">' + description.lede + '</p>'
}
for (let i = 0; i < description.text.length; i++) {
descriptionInnerEl.innerHTML += '<p>' + description.text[i] + '</p>'
}
if (description.imageCaption) {
descriptionInnerEl.innerHTML += '<footer>Photo: ' + description.imageCaption + '</footer>'
}
descriptionEl.appendChild(descriptionInnerEl)
// Links should open in a new window
const anchorEls = descriptionInnerEl.querySelectorAll('a')
for (let anchorEl of anchorEls) {
anchorEl.target = '_blank'
}
// Lower close button
const closeEl = document.createElement('div')
closeEl.classList.add('description-close')
closeEl.innerHTML = 'Close'
closeEl.addEventListener('pointerdown', hideDescription)
closeEl.addEventListener('pointerenter', highlightTriangle)
closeEl.addEventListener('pointerleave', unhighlightTriangle)
descriptionEl.appendChild(closeEl)
// Decoration: a triangle pointing down
const triangleEl = document.createElement('div')
triangleEl.classList.add('triangle')
descriptionEl.appendChild(triangleEl)
infoBubble.el.appendChild(descriptionEl)
}
function destroyDescriptionDOM () {
const el1 = infoBubble.el.querySelector('.description-prompt')
if (el1) el1.remove()
const el2 = infoBubble.el.querySelector('.description-canvas')
if (el2) el2.remove()
}
function highlightTriangle () {
infoBubble.el.classList.add('highlight-triangle')
}
function unhighlightTriangle () {
infoBubble.el.classList.remove('highlight-triangle')
}
function unhighlightTriangleDelayed () {
window.setTimeout(function () {
unhighlightTriangle()
}, 200)
}
| 31.116438 | 104 | 0.752586 |
bbd25caf439ecfb787603c44efc2c9c9de368b11 | 4,207 | js | JavaScript | gaze_project/gazeBehavior/ver_2/static/js/func/interaction.js | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | 1 | 2022-01-18T01:53:34.000Z | 2022-01-18T01:53:34.000Z | gaze_project/gazeBehavior/ver_2/static/js/func/interaction.js | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | null | null | null | gaze_project/gazeBehavior/ver_2/static/js/func/interaction.js | kidrabit/Data-Visualization-Lab-RND | baa19ee4e9f3422a052794e50791495632290b36 | [
"Apache-2.0"
] | null | null | null | /*
$('#drawbutton').click(function(){
$('#my_dataviz').empty();
//draw_x_chart(rawEyeData.gaze);
//draw_y_chart(rawEyeData.gaze);
//draw_gaze_points(rawEyeData.gaze);
//draw_scanpath(rawEyeData.gaze);
draw_dx_chart(rawEyeData.gaze);
draw_dy_chart(rawEyeData.gaze);
//draw_heatmap(rawEyeData.gaze);
draw_saccade_length_chart(rawEyeData.gaze);
draw_distance_from_center_chart(rawEyeData.gaze);
//draw_parallel_coordinates();
});
function buttonClickFunc(_idx){
var btnIdName = ["btn_f_color", "btn_f_intensity", "btn_f_orientation", "btn_f_hog"];
if(feat_flag[_idx] == true){
feat_flag[_idx] = false;
document.getElementById(btnIdName[_idx]).style.backgroundColor = "#fbb4ae";
}else{
feat_flag[_idx] = true;
document.getElementById(btnIdName[_idx]).style.backgroundColor = "#4CAF50";
}
drawImage(c)
canvas_draw_feature_areas(c);
}
*/
$('#btn_f_color').click(function(){
$('#AUC_field').empty();
$.ajax({
type: "GET",
url: "http://127.0.0.1:8000/static/data/features/U0121_1RTE_color_re.csv",
aync: false,
success: function (csvd) {
csv_as_array = csvd;
},
dataType:"text",
complete:function(){
df_color = [];
var _rows = csv_as_array.split("\n");
for(var i=1; i<_rows.length-1; i++){
var _row = _rows[i].split(",");
var _v = {
"Row": +_row[0],
"Col": +_row[1],
"Val": +_row[2]
};
df_color.push(_v);
}
}
});
changeBTNcolor(0);
drawImage(c)
});
$('#btn_f_intensity').click(function(){
$('#AUC_field').empty();
$.ajax({
type: "GET",
url: "http://127.0.0.1:8000/static/data/features/U0121_1RTE_intensity_re.csv",
aync: false,
success: function (csvd) {
csv_as_array = csvd;
},
dataType:"text",
complete:function(){
df_intensity = [];
var _rows = csv_as_array.split("\n");
for(var i=1; i<_rows.length-1; i++){
var _row = _rows[i].split(",");
var _v = {
"Row": +_row[0],
"Col": +_row[1],
"Val": +_row[2]
};
df_intensity.push(_v);
}
}
});
changeBTNcolor(1);
drawImage(c)
});
$('#btn_f_orientation').click(function(){
$('#AUC_field').empty();
$.ajax({
type: "GET",
url: "http://127.0.0.1:8000/static/data/features/U0121_1RTE_orientation_re.csv",
aync: false,
success: function (csvd) {
csv_as_array = csvd;
},
dataType:"text",
complete:function(){
df_orientation = [];
var _rows = csv_as_array.split("\n");
for(var i=1; i<_rows.length-1; i++){
var _row = _rows[i].split(",");
var _v = {
"Row": +_row[0],
"Col": +_row[1],
"Val": +_row[2]
};
df_orientation.push(_v);
}
}
});
changeBTNcolor(2);
drawImage(c)
});
$('#btn_f_hog').click(function(){
$('#AUC_field').empty();
$.ajax({
type: "GET",
url: "http://127.0.0.1:8000/static/data/features/U0121_1RTE_hog_re.csv",
aync: false,
success: function (csvd) {
csv_as_array = csvd;
},
dataType:"text",
complete:function(){
df_hog = [];
var _rows = csv_as_array.split("\n");
for(var i=1; i<_rows.length-1; i++){
var _row = _rows[i].split(",");
var _v = {
"Row": +_row[0],
"Col": +_row[1],
"Val": +_row[2]
};
df_hog.push(_v);
}
}
});
changeBTNcolor(3);
drawImage(c)
});
function changeBTNcolor(_idx){
var btnIdName = ["btn_f_color", "btn_f_intensity", "btn_f_orientation", "btn_f_hog"];
if(feat_flag[_idx] == true){
feat_flag[_idx] = false;
document.getElementById(btnIdName[_idx]).style.backgroundColor = "#fbb4ae";
}else{
feat_flag[_idx] = true;
document.getElementById(btnIdName[_idx]).style.backgroundColor = "#4CAF50";
}
} | 25.809816 | 88 | 0.52888 |
bbd27f916dcc0a9ac861506b16ff1f17d4da0dc0 | 412 | js | JavaScript | html/namespaceMatrixScale__mod.js | cdslaborg/paramonte-api-kernel | b0aa0aae26b0c531b52b003dab3b89a6d1aeff87 | [
"MIT"
] | null | null | null | html/namespaceMatrixScale__mod.js | cdslaborg/paramonte-api-kernel | b0aa0aae26b0c531b52b003dab3b89a6d1aeff87 | [
"MIT"
] | null | null | null | html/namespaceMatrixScale__mod.js | cdslaborg/paramonte-api-kernel | b0aa0aae26b0c531b52b003dab3b89a6d1aeff87 | [
"MIT"
] | null | null | null | var namespaceMatrixScale__mod =
[
[ "genScaledMat", "interfaceMatrixScale__mod_1_1genScaledMat.html", null ],
[ "operator(.ldtimes.)", "interfaceMatrixScale__mod_1_1operator_07_8ldtimes_8_08.html", null ],
[ "operator(.udtimes.)", "interfaceMatrixScale__mod_1_1operator_07_8udtimes_8_08.html", null ],
[ "MODULE_NAME", "namespaceMatrixScale__mod.html#a44ad4367ac4fe0695d1cc0057265ffe1", null ]
]; | 58.857143 | 99 | 0.776699 |
bbd2b83bb1c68f11e8856daa745edd3166842f36 | 11,835 | js | JavaScript | spec/cloudshare-client-spec.js | cloudshare/js-sdk | bbb064802bdcb788647ebebbae9e938db5dc5fae | [
"Apache-2.0"
] | null | null | null | spec/cloudshare-client-spec.js | cloudshare/js-sdk | bbb064802bdcb788647ebebbae9e938db5dc5fae | [
"Apache-2.0"
] | null | null | null | spec/cloudshare-client-spec.js | cloudshare/js-sdk | bbb064802bdcb788647ebebbae9e938db5dc5fae | [
"Apache-2.0"
] | null | null | null | var Promise = require('es6-promise').Promise;
var CloudShareClient = require('../src/cloudshare-client');
describe("CloudShareClient", function() {
var mockAuthenticationParameterProvider;
var mockHttp;
var requestPromise;
beforeEach(function() {
mockAuthenticationParameterProvider = jasmine.createSpyObj('mockAuthenticationParameterProvider', ['get']);
mockHttp = jasmine.createSpyObj('mockHttp', ['req']);
requestPromise = new Promise(function(resolve){resolve();});
mockHttp.req.and.callFake(function() {
return requestPromise;
});
mockAuthenticationParameterProvider.get.and.returnValue('AUTH-PARAM');
});
describe("req()", function() {
it("return rejected promise if no hostname is given with an error", function(done) {
var client = createClient();
client.req({
apiId: 'API_ID',
apiKey: 'API_KEY'
})
.then(function() {
expect('the promise').toBe('rejected');
done();
})
.catch(function(err) {
expect(err.message).toBe('Missing hostname');
done();
});
});
it("return rejected promise if no http method is given with an error", function(done) {
var client = createClient();
client.req({
hostname: 'localhost',
apiId: 'API_ID',
apiKey: 'API_KEY'
})
.then(function() {
expect('the promise').toBe('rejected');
done();
})
.catch(function(err) {
expect(err.message).toBe('Missing HTTP method');
done();
});
});
it("return rejected promise if no path is given with an error", function(done) {
var client = createClient();
client.req({
hostname: 'localhost',
method: 'GET',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect('the promise').toBe('rejected');
done();
})
.catch(function(err) {
expect(err.message).toBe('Missing path');
done();
});
});
it("calls AuthenticationParameterProvider.get() with https://localhost/api/v3/somepath as url if given hostname: 'localhost' and path: 'somepath'", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: 'somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect(mockAuthenticationParameterProvider.get).toHaveBeenCalledWith(jasmine.objectContaining({
url: 'https://localhost/api/v3/somepath'
}));
done();
})
.catch(function(err) {
expect('the promise').toBe('resolved');
done();
});
});
it("calls AuthenticationParameterProvider.get() with https://localhost/api/v3/somepath?id=123&foo=bar as url if given hostname: 'localhost' and path: 'somepath' and queryParams: {id:123,foo:\"bar\"}", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: 'somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
queryParams: {id:123, foo:"bar"}
})
.then(function() {
expect(mockAuthenticationParameterProvider.get).toHaveBeenCalledWith(jasmine.objectContaining({
url: 'https://localhost/api/v3/somepath?id=123&foo=bar'
}));
done();
})
.catch(function(err) {
expect('the promise').toBe('resolved');
done();
});
});
it("calls AuthenticationParameterProvider.get() with given apiId", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: 'somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect(mockAuthenticationParameterProvider.get).toHaveBeenCalledWith(jasmine.objectContaining({
apiId: 'API_ID'
}));
done();
})
.catch(function(err) {
expect('the promise').toBe('resolved');
done();
});
});
it("calls AuthenticationParameterProvider.get() with given apiKey", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: 'somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect(mockAuthenticationParameterProvider.get).toHaveBeenCalledWith(jasmine.objectContaining({
apiKey: 'API_KEY'
}));
done();
})
.catch(function(err) {
expect('the promise').toBe('resolved');
done();
});
});
it("doesn't call AuthenticationParameterProvider.get() if no apiId is given", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: 'somepath',
apiKey: 'API_KEY'
})
.then(function() {
expect(mockAuthenticationParameterProvider.get).not.toHaveBeenCalled();
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("doesn't call AuthenticationParameterProvider.get() if no apiKey is given", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: 'somepath',
apiId: 'API_ID'
})
.then(function() {
expect(mockAuthenticationParameterProvider.get).not.toHaveBeenCalled();
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with given HTTP method", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: 'somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
method: 'GET'
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with https://localhost/api/v3/somepath as url if given hostname: 'localhost' and path: '/somepath'", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
url: 'https://localhost/api/v3/somepath'
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with https://localhost/api/v3/somepath as url if given hostname: 'localhost' and path: '/somepath' and queryParams: {id: 123}", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
queryParams: {id: 123},
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
url: 'https://localhost/api/v3/somepath'
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with headers: { 'Authorization': 'cs_sha1 AUTH-PARAM', 'Content-Type': 'application/json', 'Accept': 'application/json' }", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
headers: {
'Authorization': 'cs_sha1 AUTH-PARAM',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' } if no apiId is given", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiKey: 'API_KEY'
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' } if no apiKey is given", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiId: 'API_ID'
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with given queryParams", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
queryParams: {
a: '1',
b: '2'
}
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
queryParams: {
a: '1',
b: '2'
}
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("calls Http.req() with given content", function(done) {
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
content: {
a: '1',
b: '2'
}
})
.then(function() {
expect(mockHttp.req).toHaveBeenCalledWith(jasmine.objectContaining({
content: {
a: '1',
b: '2'
}
}));
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("returns a http.req()'s resolved promise if all input is valid", function(done) {
requestPromise = new Promise(function(resolve, reject) {
resolve('RESPONSE');
});
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function(response) {
expect(response).toBe('RESPONSE');
done();
})
.catch(function(err) {
console.log(err.stack);
expect('the promise').toBe('resolved');
done();
});
});
it("returns a http.req()'s rejected promise if all input is valid", function(done) {
requestPromise = new Promise(function(resolve, reject) {
reject('RESPONSE');
});
var client = createClient();
client.req({
method: 'GET',
hostname: 'localhost',
path: '/somepath',
apiId: 'API_ID',
apiKey: 'API_KEY',
})
.then(function(response) {
expect('the promise').toBe('rejected');
done();
})
.catch(function(err) {
expect(err).toBe('RESPONSE');
done();
});
});
});
function createClient() {
return new CloudShareClient(mockHttp, mockAuthenticationParameterProvider);
}
}); | 25.451613 | 220 | 0.581073 |
bbd2c15cfcd1a9e4129d583ca223d9baf5ad0eba | 404 | js | JavaScript | tests/baselines/reference/symbolDeclarationEmit13.js | nilamjadhav/TypeScript | b059135c51ee93f8fb44dd70a2ca67674ff7a877 | [
"Apache-2.0"
] | 129 | 2016-08-15T14:33:21.000Z | 2022-02-16T22:35:51.000Z | tests/baselines/reference/symbolDeclarationEmit13.js | nilamjadhav/TypeScript | b059135c51ee93f8fb44dd70a2ca67674ff7a877 | [
"Apache-2.0"
] | 179 | 2019-05-29T02:32:09.000Z | 2021-08-02T02:25:22.000Z | tests/baselines/reference/symbolDeclarationEmit13.js | nilamjadhav/TypeScript | b059135c51ee93f8fb44dd70a2ca67674ff7a877 | [
"Apache-2.0"
] | 15 | 2017-01-17T02:32:52.000Z | 2019-08-14T10:24:11.000Z | //// [symbolDeclarationEmit13.ts]
class C {
get [Symbol.toPrimitive]() { return ""; }
set [Symbol.toStringTag](x) { }
}
//// [symbolDeclarationEmit13.js]
class C {
get [Symbol.toPrimitive]() { return ""; }
set [Symbol.toStringTag](x) { }
}
//// [symbolDeclarationEmit13.d.ts]
declare class C {
readonly [Symbol.toPrimitive]: string;
[Symbol.toStringTag]: any;
}
| 21.263158 | 46 | 0.608911 |
bbd2eafae05fdafe3883cf54c9bd541c3fc153e7 | 690 | js | JavaScript | app/modules/core/tests/unit/home.spec.js | keshavos/rainbowsandunicorns | 581cb78cff6521035f6c55ba99dd6e7941c4d1e7 | [
"MIT"
] | null | null | null | app/modules/core/tests/unit/home.spec.js | keshavos/rainbowsandunicorns | 581cb78cff6521035f6c55ba99dd6e7941c4d1e7 | [
"MIT"
] | null | null | null | app/modules/core/tests/unit/home.spec.js | keshavos/rainbowsandunicorns | 581cb78cff6521035f6c55ba99dd6e7941c4d1e7 | [
"MIT"
] | null | null | null | 'use strict';
describe('Core.Controllers: Home', function() {
var $rootScope,
ctrl,
home,
scope;
//Load the ui.router module
beforeEach(module('ui.router'));
// Load the core module
beforeEach(module('core'));
beforeEach(inject(function(_$rootScope_, $controller) {
$rootScope = _$rootScope_;
scope = $rootScope.$new();
ctrl = $controller('Home as home', {
$scope: scope
});
}));
it(': should vm bound to the controller', function(){
expect(scope).toBeDefined();
});
it(': should verify title', function() {
expect(scope.home.title).toBe('Home');
});
});
| 21.5625 | 59 | 0.553623 |
bbd3cb477b98c1450c47c7d699aff16b5aca6514 | 1,068 | js | JavaScript | client/src/actions/index.js | KROHNICK/FWLeatherGoods | 4f331b69b2f0d2a2b404c4e13a0b46fdd0891f89 | [
"MIT"
] | null | null | null | client/src/actions/index.js | KROHNICK/FWLeatherGoods | 4f331b69b2f0d2a2b404c4e13a0b46fdd0891f89 | [
"MIT"
] | 11 | 2021-05-08T08:17:18.000Z | 2022-02-26T18:48:43.000Z | client/src/actions/index.js | KROHNICK/FWLeatherGoods | 4f331b69b2f0d2a2b404c4e13a0b46fdd0891f89 | [
"MIT"
] | null | null | null | import axios from "axios";
export const TEST_SERVER = "TEST_SERVER";
export const TEST_SERVER_SUCCESS = "TEST_SERVER_SUCCESS";
export const TEST_SERVER_FAILURE = "TEST_SERVER_FAILURE";
export const FETCHING_PRODUCTS = "FETCHING_PRODUCTS";
export const PRODUCTS_FETCHED = "PRODUCTS_FETCHED";
export const PRODUCTS_FAILURE = "PRODUCTS_FAILURE";
const baseURL =
window.location.hostname === "localhost" ? "http://localhost:4000" : "url";
export const getProducts = () => dispatch => {
dispatch({ type: FETCHING_PRODUCTS });
return axios
.get(`${baseURL}/api/products/`)
.then(res => {
dispatch({ type: PRODUCTS_FETCHED, payload: res.data });
})
.catch(err => {
dispatch({ type: PRODUCTS_FAILURE, payload: err });
});
};
export const testServer = () => dispatch => {
dispatch({ type: TEST_SERVER });
return axios
.get(`${baseURL}/api/`)
.then(res => {
dispatch({ type: TEST_SERVER_SUCCESS, payload: res.data });
})
.catch(err => {
dispatch({ type: TEST_SERVER_FAILURE, payload: err });
});
};
| 28.864865 | 77 | 0.662921 |
bbd3f0815d7128377e9906119ab07e4a3429cddc | 1,092 | js | JavaScript | assets/bower_components/font-awesome/advanced-options/use-with-node-js/free-solid-svg-icons/faSave.js | baekyonggyun/baekyonggyun.github.io | 6b048b11ad657c19ba56c2e540bd3312ca9b8ff9 | [
"MIT"
] | null | null | null | assets/bower_components/font-awesome/advanced-options/use-with-node-js/free-solid-svg-icons/faSave.js | baekyonggyun/baekyonggyun.github.io | 6b048b11ad657c19ba56c2e540bd3312ca9b8ff9 | [
"MIT"
] | 9 | 2021-12-08T07:13:00.000Z | 2021-12-09T12:56:16.000Z | assets/bower_components/font-awesome/advanced-options/use-with-node-js/free-solid-svg-icons/faSave.js | GhostsDev/GhostsDev.github.io | b46334eb53b04667fc3976f6d35f2138cfe9c15f | [
"MIT"
] | null | null | null | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'save';
var width = 448;
var height = 512;
var ligatures = [];
var unicode = 'f0c7';
var svgPathData = 'M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z';
exports.definition = {
prefix: prefix,
iconName: iconName,
icon: [
width,
height,
ligatures,
unicode,
svgPathData
]};
exports.faSave = exports.definition;
exports.prefix = prefix;
exports.iconName = iconName;
exports.width = width;
exports.height = height;
exports.ligatures = ligatures;
exports.unicode = unicode;
exports.svgPathData = svgPathData; | 37.655172 | 463 | 0.674908 |
bbd411f4a2a3c66bc2f424d9fa7dcdf0ed54bb4a | 1,206 | js | JavaScript | components/fancy-slider/fancy-slider.js | maakuwgit/loversandnerds | e7aa9e264e3d2aa0766c78a5ea15145084879b09 | [
"MIT"
] | null | null | null | components/fancy-slider/fancy-slider.js | maakuwgit/loversandnerds | e7aa9e264e3d2aa0766c78a5ea15145084879b09 | [
"MIT"
] | null | null | null | components/fancy-slider/fancy-slider.js | maakuwgit/loversandnerds | e7aa9e264e3d2aa0766c78a5ea15145084879b09 | [
"MIT"
] | null | null | null | /**
* fancy-slider JS
* -----------------------------------------------------------------------------
*
* All the JS for the fancy-slider component.
*/
( function( app ) {
var COMPONENT = {
className: 'll-fancy-slider',
selector : function() {
return '.' + this.className;
},
// Fires after common.init, before .finalize and common.finalize
init: function() {
var _this = this;
var gallery = $("."+_this.className),
nextArrow = '';
nextArrow += '<button type="button" class="fancy-slider__slick-next">';
nextArrow += '<svg class="icon icon-arrow-right">';
nextArrow += '<use xlink:href="#icon-arrow-right"></use>';
nextArrow += '</svg></button>';
gallery.each(function(){
$(this).find('.fancy-slider__slides').slick({
infinite: true,
fade: true,
prevArrow: false,
nextArrow: nextArrow,
dots: true,
appendArrows: gallery
});
});
},
finalize: function() {
var _this = this;
}
};
// Hooks the component into the app
app.registerComponent( 'fancy-slider', COMPONENT );
} )( app );
| 21.927273 | 79 | 0.502488 |
bbd4238d2a6591de1a7766aea39f678065e80a11 | 228 | js | JavaScript | Repeticiones/punto11.js | karvaroz/EjerciciosJavascript | d523451773302b3813322e75f3cbbd6f7f8a6989 | [
"MIT"
] | null | null | null | Repeticiones/punto11.js | karvaroz/EjerciciosJavascript | d523451773302b3813322e75f3cbbd6f7f8a6989 | [
"MIT"
] | null | null | null | Repeticiones/punto11.js | karvaroz/EjerciciosJavascript | d523451773302b3813322e75f3cbbd6f7f8a6989 | [
"MIT"
] | null | null | null | let inicial = parseInt(prompt("Ingrese un número inicial"));
let final = parseInt(prompt("Ingrese un número final"));
let suma = 0;
for (i=0; i<=final; i++) {
suma += inicial++
}
alert("El total de la suma es " + suma);
| 19 | 60 | 0.635965 |
bbd45e916de694075d0f1b2bea82aa9253caf722 | 1,916 | js | JavaScript | test/baidu/event/getPageX.js | BaiduFE/Tangram-base | 8fe0991b90540ef168cd8c73f2553436723c4f32 | [
"BSD-3-Clause"
] | 163 | 2015-01-07T12:43:12.000Z | 2020-12-16T06:08:19.000Z | test/baidu/event/getPageX.js | BaiduFE/Tangram-base | 8fe0991b90540ef168cd8c73f2553436723c4f32 | [
"BSD-3-Clause"
] | 1 | 2016-11-26T16:27:44.000Z | 2017-08-11T10:02:57.000Z | test/baidu/event/getPageX.js | BaiduFE/Tangram-base | 8fe0991b90540ef168cd8c73f2553436723c4f32 | [
"BSD-3-Clause"
] | 61 | 2015-02-03T09:05:15.000Z | 2020-07-14T12:04:55.000Z | module("baidu.event.getPageX");
var checkX = function(x, offset, type) {// 不直接调用这个方法,防止页面出现滚动条的情况,统一调用checkscrollX
var fn = function(e) {
equal(baidu.event.getPageX(e), (x + offset) || 0, type + ' get PageX '
+ (x + offset));
};
type = type || 'mousedown';
offset = offset || 0;
var element = document.body;
if (element.addEventListener) {
element.addEventListener(type, fn, false);
} else if (document.body.attachEvent) {
element.attachEvent('on' + type, fn);
}
if (ua[type] && typeof ua[type] == 'function') {
ua[type](element, {
clientX : x,
clientY : 0
});
}
if (element.removeEventListener) {
element.removeEventListener(type, fn, false);
} else if (element.detachEvent) {
element.detachEvent('on' + type, fn);
}
};
var checkscrollX = function(x, offset, type) {// 通过设置div的宽度制造滚动条,从而可以设置scrollLeft
// var img = document.createElement('img');
// document.body.appendChild(img);
// img.style.width = '5000px';// 用于产生滚动条
// img.style.border = '3px';
// img.src = upath + 'test.jpg';
// window.scrollTo(offset, document.body.scrollTop);// scrollLeft set to be
// // 2000
// checkX(x, offset, type);
// window.scrollTo(0, document.body.scrollTop);
// document.body.removeChild(img);
var div = document.createElement('div');
document.body.appendChild(div);
$(div).css('width', 5000).css('height', 200).css('border', 'solid');
window.scrollTo(offset, document.body.scrollTop);
checkX(x, offset, type);
window.scrollTo(0, document.body.scrollTop);
document.body.removeChild(div);
};
test("getPageX", function() {
expect(8);
checkscrollX(0, 0);
checkscrollX(100, 200, 'mousedown');
checkscrollX(0, 0, 'mousemove');
checkscrollX(100, 0, 'mouseover');
checkscrollX(10, 200, 'mousemove');
checkscrollX(0, 0, 'mouseout');
checkscrollX(100, 200, 'click');
checkscrollX(10, 20, 'dblclick');
});
| 31.409836 | 83 | 0.648747 |
bbd4fa4bfe1c67909619a06b8d3e8f6994a62ae0 | 59,751 | js | JavaScript | docs/92/hierarchy.js | Diedinium/Community | ebb779a99eedb57eeb415baf8704654f20b94de6 | [
"BSD-2-Clause",
"Unlicense"
] | 20 | 2019-03-11T21:58:21.000Z | 2022-03-18T08:57:51.000Z | docs/92/hierarchy.js | Diedinium/Community | ebb779a99eedb57eeb415baf8704654f20b94de6 | [
"BSD-2-Clause",
"Unlicense"
] | 7 | 2019-10-01T06:03:39.000Z | 2022-03-17T04:38:17.000Z | docs/92/hierarchy.js | Diedinium/Community | ebb779a99eedb57eeb415baf8704654f20b94de6 | [
"BSD-2-Clause",
"Unlicense"
] | 22 | 2019-03-08T23:19:46.000Z | 2022-01-25T00:44:48.000Z | var hierarchy =
[
[ "HP.HPTRIM.SDK.DesktopHelper", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_desktop_helper.html", null ],
[ "HP.HPTRIM.SDK.DigitalSignatureTool", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_digital_signature_tool.html", null ],
[ "HP.HPTRIM.SDK.EventProcessorCounters", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_processor_counters.html", null ],
[ "Exception", null, [
[ "HP.HPTRIM.SDK.TrimException", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_exception.html", [
[ "HP.HPTRIM.SDK.TrimParserException", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_parser_exception.html", null ]
] ]
] ],
[ "HP.HPTRIM.SDK.Hwnd", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_hwnd.html", null ],
[ "IEnumerable", null, [
[ "HP.HPTRIM.SDK.CommandDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_command_def_list.html", null ],
[ "HP.HPTRIM.SDK.DatabaseList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_database_list.html", null ],
[ "HP.HPTRIM.SDK.EmailAttachmentList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_attachment_list.html", null ],
[ "HP.HPTRIM.SDK.EmailParticipantList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_participant_list.html", null ],
[ "HP.HPTRIM.SDK.EnumItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_item_list.html", null ],
[ "HP.HPTRIM.SDK.EnumList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_list.html", null ],
[ "HP.HPTRIM.SDK.EventProcessorCountersList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_processor_counters_list.html", null ],
[ "HP.HPTRIM.SDK.EventProcessTypeList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_process_type_list.html", null ],
[ "HP.HPTRIM.SDK.FieldDefinitionList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_field_definition_list.html", null ],
[ "HP.HPTRIM.SDK.IntList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_int_list.html", null ],
[ "HP.HPTRIM.SDK.LocationList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_list.html", null ],
[ "HP.HPTRIM.SDK.MenuItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_item_list.html", null ],
[ "HP.HPTRIM.SDK.ObjectDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_object_def_list.html", null ],
[ "HP.HPTRIM.SDK.OriginEmailCaptureSpamRuleList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_email_capture_spam_rule_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_def_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_def_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldValueList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_value_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyValueList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_value_list.html", null ],
[ "HP.HPTRIM.SDK.SearchClauseIdsList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_clause_ids_list.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuideList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide_list.html", null ],
[ "HP.HPTRIM.SDK.StringArray", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_string_array.html", null ],
[ "HP.HPTRIM.SDK.TrimMenuLinkList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_menu_link_list.html", null ],
[ "HP.HPTRIM.SDK.TrimObjectList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_object_list.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchClauseList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_clause_list.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchSortItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_sort_item_list.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchStackItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_stack_item_list.html", null ],
[ "HP.HPTRIM.SDK.TrimURIList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_u_r_i_list.html", null ]
] ],
[ "IEnumerable", null, [
[ "HP.HPTRIM.SDK.CommandDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_command_def_list.html", null ],
[ "HP.HPTRIM.SDK.DatabaseList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_database_list.html", null ],
[ "HP.HPTRIM.SDK.EmailAttachmentList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_attachment_list.html", null ],
[ "HP.HPTRIM.SDK.EmailParticipantList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_participant_list.html", null ],
[ "HP.HPTRIM.SDK.EnumItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_item_list.html", null ],
[ "HP.HPTRIM.SDK.EnumList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_list.html", null ],
[ "HP.HPTRIM.SDK.EventProcessorCountersList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_processor_counters_list.html", null ],
[ "HP.HPTRIM.SDK.EventProcessTypeList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_process_type_list.html", null ],
[ "HP.HPTRIM.SDK.FieldDefinitionList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_field_definition_list.html", null ],
[ "HP.HPTRIM.SDK.LocationList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_list.html", null ],
[ "HP.HPTRIM.SDK.MenuItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_item_list.html", null ],
[ "HP.HPTRIM.SDK.ObjectDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_object_def_list.html", null ],
[ "HP.HPTRIM.SDK.OriginEmailCaptureSpamRuleList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_email_capture_spam_rule_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_def_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldDefList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_def_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldValueList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_value_list.html", null ],
[ "HP.HPTRIM.SDK.PropertyValueList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_value_list.html", null ],
[ "HP.HPTRIM.SDK.SearchClauseIdsList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_clause_ids_list.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuideList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide_list.html", null ],
[ "HP.HPTRIM.SDK.StringArray", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_string_array.html", null ],
[ "HP.HPTRIM.SDK.TrimObjectList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_object_list.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchClauseList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_clause_list.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchSortItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_sort_item_list.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchStackItemList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_stack_item_list.html", null ],
[ "HP.HPTRIM.SDK.TrimURIList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_u_r_i_list.html", null ]
] ],
[ "IEnumerable", null, [
[ "HP.HPTRIM.SDK.MenuPopup", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_popup.html", null ],
[ "HP.HPTRIM.SDK.TrimChildObjectList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_child_object_list.html", [
[ "HP.HPTRIM.SDK.ActionDefSteps", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_action_def_steps.html", null ],
[ "HP.HPTRIM.SDK.ActivityAuthorizations", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_authorizations.html", null ],
[ "HP.HPTRIM.SDK.ActivityDocuments", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_documents.html", null ],
[ "HP.HPTRIM.SDK.ActivityEmailRecipients", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_email_recipients.html", null ],
[ "HP.HPTRIM.SDK.ActivityEscalations", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_escalations.html", null ],
[ "HP.HPTRIM.SDK.ActivityResults", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_results.html", null ],
[ "HP.HPTRIM.SDK.ActivityStartConditions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_start_conditions.html", null ],
[ "HP.HPTRIM.SDK.AgendaItemAttachments", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item_attachments.html", null ],
[ "HP.HPTRIM.SDK.AgendaItemTypeAttachments", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item_type_attachments.html", null ],
[ "HP.HPTRIM.SDK.AlertSubscribers", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_alert_subscribers.html", null ],
[ "HP.HPTRIM.SDK.ClassificationOnlyRecordTypes", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification_only_record_types.html", null ],
[ "HP.HPTRIM.SDK.ClassificationSapBusinessObjects", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification_sap_business_objects.html", null ],
[ "HP.HPTRIM.SDK.CommunicationDetails", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_communication_details.html", null ],
[ "HP.HPTRIM.SDK.JurisdictionMembers", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_jurisdiction_members.html", null ],
[ "HP.HPTRIM.SDK.LocationAddresses", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_addresses.html", null ],
[ "HP.HPTRIM.SDK.LocationEAddresses", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_e_addresses.html", null ],
[ "HP.HPTRIM.SDK.MeetingDocuments", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_documents.html", null ],
[ "HP.HPTRIM.SDK.MeetingInvitations", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_invitations.html", null ],
[ "HP.HPTRIM.SDK.MeetingTypeUsualParticipants", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type_usual_participants.html", null ],
[ "HP.HPTRIM.SDK.MinuteItemActionArisings", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_minute_item_action_arisings.html", null ],
[ "HP.HPTRIM.SDK.RecordClientMatterParties", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_client_matter_parties.html", null ],
[ "HP.HPTRIM.SDK.RecordClientMatterRoles", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_client_matter_roles.html", null ],
[ "HP.HPTRIM.SDK.RecordHolds", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_holds.html", null ],
[ "HP.HPTRIM.SDK.RecordJurisdictions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_jurisdictions.html", null ],
[ "HP.HPTRIM.SDK.RecordKeywords", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_keywords.html", null ],
[ "HP.HPTRIM.SDK.RecordLinkedDocuments", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_linked_documents.html", null ],
[ "HP.HPTRIM.SDK.RecordLocations", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_locations.html", null ],
[ "HP.HPTRIM.SDK.RecordRelationships", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_relationships.html", null ],
[ "HP.HPTRIM.SDK.RecordRenditions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_renditions.html", null ],
[ "HP.HPTRIM.SDK.RecordRevisions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_revisions.html", null ],
[ "HP.HPTRIM.SDK.RecordSapComponents", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_sap_components.html", null ],
[ "HP.HPTRIM.SDK.RecordTypeAutoSubFolders", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type_auto_sub_folders.html", null ],
[ "HP.HPTRIM.SDK.ScheduledTaskHistorys", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_scheduled_task_historys.html", null ],
[ "HP.HPTRIM.SDK.ScheduleTriggers", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule_triggers.html", null ],
[ "HP.HPTRIM.SDK.TodoItemItemReferences", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_todo_item_item_references.html", null ],
[ "HP.HPTRIM.SDK.WorkflowDocuments", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_documents.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplateDocuments", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template_documents.html", null ]
] ],
[ "HP.HPTRIM.SDK.TrimMainObjectSearch", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_main_object_search.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchStack", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_stack.html", null ]
] ],
[ "IEnumerator", null, [
[ "HP.HPTRIM.SDK.CommandDefList.CommandDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_command_def_list_1_1_command_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.DatabaseList.DatabaseListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_database_list_1_1_database_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EmailAttachmentList.EmailAttachmentListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_attachment_list_1_1_email_attachment_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EmailParticipantList.EmailParticipantListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_participant_list_1_1_email_participant_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EnumItemList.EnumItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_item_list_1_1_enum_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EnumList.EnumListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_list_1_1_enum_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EventProcessorCountersList.EventProcessorCountersListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_processor_counters_list_1_1_event_processor_counters_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EventProcessTypeList.EventProcessTypeListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_process_type_list_1_1_event_process_type_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.FieldDefinitionList.FieldDefinitionListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_field_definition_list_1_1_field_definition_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.IntList.IntListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_int_list_1_1_int_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.LocationList.LocationListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_list_1_1_location_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.MenuItemList.MenuItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_item_list_1_1_menu_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.ObjectDefList.ObjectDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_object_def_list_1_1_object_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.OriginEmailCaptureSpamRuleList.OriginEmailCaptureSpamRuleListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_email_capture_spam_rule_list_1_1_origin_email_capture_spam_rule_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyDefList.PropertyDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_def_list_1_1_property_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldDefList.PropertyOrFieldDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_def_list_1_1_property_or_field_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldValueList.PropertyOrFieldValueListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_value_list_1_1_property_or_field_value_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyValueList.PropertyValueListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_value_list_1_1_property_value_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.SearchClauseIdsList.SearchClauseIdsListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_clause_ids_list_1_1_search_clause_ids_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuideList.SecurityGuideListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide_list_1_1_security_guide_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.StringArray.StringArrayEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_string_array_1_1_string_array_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimMenuLinkList.TrimMenuLinkListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_menu_link_list_1_1_trim_menu_link_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimObjectList.TrimObjectListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_object_list_1_1_trim_object_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchClauseList.TrimSearchClauseListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_clause_list_1_1_trim_search_clause_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchSortItemList.TrimSearchSortItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_sort_item_list_1_1_trim_search_sort_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchStackItemList.TrimSearchStackItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_stack_item_list_1_1_trim_search_stack_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimURIList.TrimURIListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_u_r_i_list_1_1_trim_u_r_i_list_enumerator.html", null ]
] ],
[ "IEnumerator", null, [
[ "HP.HPTRIM.SDK.MenuPopupEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_popup_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimChildObjectListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_child_object_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimObjectListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_object_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchStackIterator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_stack_iterator.html", null ]
] ],
[ "IEnumerator", null, [
[ "HP.HPTRIM.SDK.CommandDefList.CommandDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_command_def_list_1_1_command_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.DatabaseList.DatabaseListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_database_list_1_1_database_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EmailAttachmentList.EmailAttachmentListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_attachment_list_1_1_email_attachment_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EmailParticipantList.EmailParticipantListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_participant_list_1_1_email_participant_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EnumItemList.EnumItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_item_list_1_1_enum_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EnumList.EnumListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_list_1_1_enum_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EventProcessorCountersList.EventProcessorCountersListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_processor_counters_list_1_1_event_processor_counters_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.EventProcessTypeList.EventProcessTypeListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_process_type_list_1_1_event_process_type_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.FieldDefinitionList.FieldDefinitionListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_field_definition_list_1_1_field_definition_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.IntList.IntListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_int_list_1_1_int_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.LocationList.LocationListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_list_1_1_location_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.MenuItemList.MenuItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_item_list_1_1_menu_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.ObjectDefList.ObjectDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_object_def_list_1_1_object_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.OriginEmailCaptureSpamRuleList.OriginEmailCaptureSpamRuleListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_email_capture_spam_rule_list_1_1_origin_email_capture_spam_rule_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyDefList.PropertyDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_def_list_1_1_property_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldDefList.PropertyOrFieldDefListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_def_list_1_1_property_or_field_def_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyOrFieldValueList.PropertyOrFieldValueListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_value_list_1_1_property_or_field_value_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.PropertyValueList.PropertyValueListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_value_list_1_1_property_value_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.SearchClauseIdsList.SearchClauseIdsListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_clause_ids_list_1_1_search_clause_ids_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuideList.SecurityGuideListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide_list_1_1_security_guide_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.StringArray.StringArrayEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_string_array_1_1_string_array_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimMenuLinkList.TrimMenuLinkListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_menu_link_list_1_1_trim_menu_link_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimObjectList.TrimObjectListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_object_list_1_1_trim_object_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchClauseList.TrimSearchClauseListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_clause_list_1_1_trim_search_clause_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchSortItemList.TrimSearchSortItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_sort_item_list_1_1_trim_search_sort_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchStackItemList.TrimSearchStackItemListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_stack_item_list_1_1_trim_search_stack_item_list_enumerator.html", null ],
[ "HP.HPTRIM.SDK.TrimURIList.TrimURIListEnumerator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_u_r_i_list_1_1_trim_u_r_i_list_enumerator.html", null ]
] ],
[ "IList", null, [
[ "HP.HPTRIM.SDK.IntList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_int_list.html", null ],
[ "HP.HPTRIM.SDK.TrimMenuLinkList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_menu_link_list.html", null ]
] ],
[ "ISerializable", null, [
[ "HP.HPTRIM.SDK.TrimException", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_exception.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimAccessControl", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_access_control.html", [
[ "HP.HPTRIM.SDK.AgendaItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item.html", null ],
[ "HP.HPTRIM.SDK.AgendaItemType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item_type.html", null ],
[ "HP.HPTRIM.SDK.AutoPartRule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_auto_part_rule.html", null ],
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.DocumentQueue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_document_queue.html", null ],
[ "HP.HPTRIM.SDK.FieldDefinition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_field_definition.html", null ],
[ "HP.HPTRIM.SDK.Keyword", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_keyword.html", null ],
[ "HP.HPTRIM.SDK.Location", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location.html", null ],
[ "HP.HPTRIM.SDK.LookupItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_lookup_item.html", null ],
[ "HP.HPTRIM.SDK.LookupSet", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_lookup_set.html", null ],
[ "HP.HPTRIM.SDK.Meeting", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting.html", null ],
[ "HP.HPTRIM.SDK.MeetingType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type.html", null ],
[ "HP.HPTRIM.SDK.MinuteItemType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_minute_item_type.html", null ],
[ "HP.HPTRIM.SDK.Origin", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin.html", null ],
[ "HP.HPTRIM.SDK.Record", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record.html", null ],
[ "HP.HPTRIM.SDK.RecordType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type.html", null ],
[ "HP.HPTRIM.SDK.Report", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_report.html", null ],
[ "HP.HPTRIM.SDK.SavedSearch", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_saved_search.html", null ],
[ "HP.HPTRIM.SDK.Schedule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule.html", null ],
[ "HP.HPTRIM.SDK.SearchForm", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_form.html", null ],
[ "HP.HPTRIM.SDK.Space", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_space.html", null ],
[ "HP.HPTRIM.SDK.Workflow", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplate", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimAccessControlDefault", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_access_control_default.html", [
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.MeetingType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type.html", null ],
[ "HP.HPTRIM.SDK.RecordType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplate", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimActiveDates", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_active_dates.html", [
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.Hold", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_hold.html", null ],
[ "HP.HPTRIM.SDK.Jurisdiction", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_jurisdiction.html", null ],
[ "HP.HPTRIM.SDK.Keyword", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_keyword.html", null ],
[ "HP.HPTRIM.SDK.Location", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location.html", null ],
[ "HP.HPTRIM.SDK.LocationAddress", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_address.html", null ],
[ "HP.HPTRIM.SDK.LocationEAddress", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_e_address.html", null ],
[ "HP.HPTRIM.SDK.RecordType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type.html", null ],
[ "HP.HPTRIM.SDK.Schedule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule.html", null ],
[ "HP.HPTRIM.SDK.SecurityCaveat", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_caveat.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuide", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide.html", null ],
[ "HP.HPTRIM.SDK.SecurityLevel", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_level.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplate", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimAddInBase", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_add_in_base.html", [
[ "HP.HPTRIM.SDK.ITrimAddIn", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_add_in.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimDocument", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_document.html", [
[ "HP.HPTRIM.SDK.AgendaItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item.html", null ],
[ "HP.HPTRIM.SDK.AgendaItemType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item_type.html", null ],
[ "HP.HPTRIM.SDK.ConsignmentApprover", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_consignment_approver.html", null ],
[ "HP.HPTRIM.SDK.LocationEAddress", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_e_address.html", null ],
[ "HP.HPTRIM.SDK.MeetingType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type.html", null ],
[ "HP.HPTRIM.SDK.MinuteItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_minute_item.html", null ],
[ "HP.HPTRIM.SDK.MinuteItemType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_minute_item_type.html", null ],
[ "HP.HPTRIM.SDK.OfflineRecord", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_offline_record.html", null ],
[ "HP.HPTRIM.SDK.Origin", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin.html", null ],
[ "HP.HPTRIM.SDK.Record", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record.html", null ],
[ "HP.HPTRIM.SDK.RecordLinkedDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_linked_document.html", null ],
[ "HP.HPTRIM.SDK.RecordRendition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_rendition.html", null ],
[ "HP.HPTRIM.SDK.RecordRevision", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_revision.html", null ],
[ "HP.HPTRIM.SDK.RecordSapComponent", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_sap_component.html", null ],
[ "HP.HPTRIM.SDK.Report", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_report.html", null ],
[ "HP.HPTRIM.SDK.ReportBitmap", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_report_bitmap.html", null ],
[ "HP.HPTRIM.SDK.WorkingCopy", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_working_copy.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimLabels", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_labels.html", [
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.DocumentQueue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_document_queue.html", null ],
[ "HP.HPTRIM.SDK.Jurisdiction", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_jurisdiction.html", null ],
[ "HP.HPTRIM.SDK.Keyword", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_keyword.html", null ],
[ "HP.HPTRIM.SDK.Location", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location.html", null ],
[ "HP.HPTRIM.SDK.Record", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record.html", null ],
[ "HP.HPTRIM.SDK.Report", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_report.html", null ],
[ "HP.HPTRIM.SDK.SavedSearch", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_saved_search.html", null ],
[ "HP.HPTRIM.SDK.Schedule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule.html", null ],
[ "HP.HPTRIM.SDK.SearchForm", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_form.html", null ],
[ "HP.HPTRIM.SDK.Space", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_space.html", null ],
[ "HP.HPTRIM.SDK.Workflow", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplate", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimNotes", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_notes.html", [
[ "HP.HPTRIM.SDK.ActionDef", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_action_def.html", null ],
[ "HP.HPTRIM.SDK.Activity", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity.html", null ],
[ "HP.HPTRIM.SDK.AutoPartRule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_auto_part_rule.html", null ],
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.DocumentQueue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_document_queue.html", null ],
[ "HP.HPTRIM.SDK.FieldDefinition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_field_definition.html", null ],
[ "HP.HPTRIM.SDK.Hold", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_hold.html", null ],
[ "HP.HPTRIM.SDK.Jurisdiction", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_jurisdiction.html", null ],
[ "HP.HPTRIM.SDK.Keyword", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_keyword.html", null ],
[ "HP.HPTRIM.SDK.Location", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location.html", null ],
[ "HP.HPTRIM.SDK.LookupItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_lookup_item.html", null ],
[ "HP.HPTRIM.SDK.LookupSet", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_lookup_set.html", null ],
[ "HP.HPTRIM.SDK.Meeting", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting.html", null ],
[ "HP.HPTRIM.SDK.MeetingInvitation", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_invitation.html", null ],
[ "HP.HPTRIM.SDK.MeetingType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type.html", null ],
[ "HP.HPTRIM.SDK.Origin", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin.html", null ],
[ "HP.HPTRIM.SDK.Record", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record.html", null ],
[ "HP.HPTRIM.SDK.RecordAction", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_action.html", null ],
[ "HP.HPTRIM.SDK.RecordLocation", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_location.html", null ],
[ "HP.HPTRIM.SDK.RecordRendition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_rendition.html", null ],
[ "HP.HPTRIM.SDK.RecordType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type.html", null ],
[ "HP.HPTRIM.SDK.Request", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_request.html", null ],
[ "HP.HPTRIM.SDK.Schedule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule.html", null ],
[ "HP.HPTRIM.SDK.ScheduledTask", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_scheduled_task.html", null ],
[ "HP.HPTRIM.SDK.ScheduledTaskHistory", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_scheduled_task_history.html", null ],
[ "HP.HPTRIM.SDK.SecurityCaveat", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_caveat.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuide", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide.html", null ],
[ "HP.HPTRIM.SDK.SecurityLevel", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_level.html", null ],
[ "HP.HPTRIM.SDK.TodoItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_todo_item.html", null ],
[ "HP.HPTRIM.SDK.Workflow", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplate", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimSecurity", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_security.html", [
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.Location", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location.html", null ],
[ "HP.HPTRIM.SDK.Record", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record.html", null ],
[ "HP.HPTRIM.SDK.RecordType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuide", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide.html", null ],
[ "HP.HPTRIM.SDK.Space", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_space.html", null ]
] ],
[ "HP.HPTRIM.SDK.ITrimUserFields", "interface_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_i_trim_user_fields.html", [
[ "HP.HPTRIM.SDK.Activity", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity.html", null ],
[ "HP.HPTRIM.SDK.CheckinStyle", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_checkin_style.html", null ],
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.Consignment", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_consignment.html", null ],
[ "HP.HPTRIM.SDK.Hold", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_hold.html", null ],
[ "HP.HPTRIM.SDK.Keyword", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_keyword.html", null ],
[ "HP.HPTRIM.SDK.Location", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location.html", null ],
[ "HP.HPTRIM.SDK.Meeting", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting.html", null ],
[ "HP.HPTRIM.SDK.MeetingType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type.html", null ],
[ "HP.HPTRIM.SDK.Record", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record.html", null ],
[ "HP.HPTRIM.SDK.Schedule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuide", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide.html", null ],
[ "HP.HPTRIM.SDK.Space", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_space.html", null ],
[ "HP.HPTRIM.SDK.TodoItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_todo_item.html", null ],
[ "HP.HPTRIM.SDK.Workflow", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow.html", null ]
] ],
[ "HP.HPTRIM.SDK.MenuPopupCommandEnabler", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_popup_command_enabler.html", null ],
[ "HP.HPTRIM.SDK.ObjectSelector", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_object_selector.html", null ],
[ "HP.HPTRIM.SDK.ObjectViewer", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_object_viewer.html", null ],
[ "HP.HPTRIM.SDK.OriginEmailCaptureSpamRule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_email_capture_spam_rule.html", null ],
[ "HP.HPTRIM.SDK.PropertyEditor", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_editor.html", null ],
[ "HP.HPTRIM.SDK.Record.SpLirIdProperty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_1_1_sp_lir_id_property.html", null ],
[ "HP.HPTRIM.SDK.Record.SpLirListGUIDProperty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_1_1_sp_lir_list_g_u_i_d_property.html", null ],
[ "HP.HPTRIM.SDK.Record.SpLirListRecordProperty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_1_1_sp_lir_list_record_property.html", null ],
[ "HP.HPTRIM.SDK.Record.SpLirListTypeProperty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_1_1_sp_lir_list_type_property.html", null ],
[ "HP.HPTRIM.SDK.Record.SpLirListURLProperty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_1_1_sp_lir_list_u_r_l_property.html", null ],
[ "HP.HPTRIM.SDK.Record.SpLirStatusProperty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_1_1_sp_lir_status_property.html", null ],
[ "HP.HPTRIM.SDK.Record.SpLirURLProperty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_1_1_sp_lir_u_r_l_property.html", null ],
[ "HP.HPTRIM.SDK.SwigArgumentPack", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_swig_argument_pack.html", null ],
[ "HP.HPTRIM.SDK.trimPINVOKE.SWIGExceptionHelper", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1trim_p_i_n_v_o_k_e_1_1_s_w_i_g_exception_helper.html", null ],
[ "HP.HPTRIM.SDK.SwigHelper", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_swig_helper.html", null ],
[ "HP.HPTRIM.SDK.SwigMarshal", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_swig_marshal.html", null ],
[ "HP.HPTRIM.SDK.trimPINVOKE.SWIGPendingException", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1trim_p_i_n_v_o_k_e_1_1_s_w_i_g_pending_exception.html", null ],
[ "HP.HPTRIM.SDK.trimPINVOKE.SWIGStringHelper", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1trim_p_i_n_v_o_k_e_1_1_s_w_i_g_string_helper.html", null ],
[ "HP.HPTRIM.SDK.SWIGTYPE_p_ApiTrimEnterpriseDatasetPtr", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_s_w_i_g_t_y_p_e__p___api_trim_enterprise_dataset_ptr.html", null ],
[ "HP.HPTRIM.SDK.trimPINVOKE.SWIGWStringHelper", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1trim_p_i_n_v_o_k_e_1_1_s_w_i_g_w_string_helper.html", null ],
[ "SystemIDisposable", null, [
[ "HP.HPTRIM.SDK.Database", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_database.html", null ],
[ "HP.HPTRIM.SDK.DownloadNotifierBase", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_download_notifier_base.html", [
[ "HP.HPTRIM.SDK.DownloadNotifier", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_download_notifier.html", null ]
] ]
] ],
[ "HP.HPTRIM.SDK.TrimAccessControlList", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_access_control_list.html", null ],
[ "HP.HPTRIM.SDK.TrimApplicationBase", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_application_base.html", [
[ "HP.HPTRIM.SDK.TrimApplication", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_application.html", null ]
] ],
[ "HP.HPTRIM.SDK.TrimCurrency", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_currency.html", null ],
[ "HP.HPTRIM.SDK.TrimDateTime", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_date_time.html", null ],
[ "HP.HPTRIM.SDK.TrimDecimal", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_decimal.html", null ],
[ "HP.HPTRIM.SDK.TrimEnterpriseConfiguration", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_enterprise_configuration.html", null ],
[ "HP.HPTRIM.SDK.TrimEnterpriseDataset", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_enterprise_dataset.html", null ],
[ "HP.HPTRIM.SDK.TrimEvent", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_event.html", null ],
[ "HP.HPTRIM.SDK.TrimEventProcessorAddInBase", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_event_processor_add_in_base.html", [
[ "HP.HPTRIM.SDK.TrimEventProcessorAddIn", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_event_processor_add_in.html", null ]
] ],
[ "HP.HPTRIM.SDK.TrimIcon", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_icon.html", null ],
[ "HP.HPTRIM.SDK.TrimMenuLinkBase", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_menu_link_base.html", [
[ "HP.HPTRIM.SDK.TrimMenuLink", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_menu_link.html", null ]
] ],
[ "HP.HPTRIM.SDK.TrimPropertySet", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_property_set.html", [
[ "HP.HPTRIM.SDK.TrimObject", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_object.html", [
[ "HP.HPTRIM.SDK.Database", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_database.html", null ],
[ "HP.HPTRIM.SDK.TrimChildObject", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_child_object.html", [
[ "HP.HPTRIM.SDK.ActionDefStep", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_action_def_step.html", null ],
[ "HP.HPTRIM.SDK.ActivityAuthorization", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_authorization.html", null ],
[ "HP.HPTRIM.SDK.ActivityDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_document.html", null ],
[ "HP.HPTRIM.SDK.ActivityEmailRecipient", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_email_recipient.html", null ],
[ "HP.HPTRIM.SDK.ActivityEscalation", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_escalation.html", null ],
[ "HP.HPTRIM.SDK.ActivityResult", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_result.html", null ],
[ "HP.HPTRIM.SDK.ActivityStartCondition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity_start_condition.html", null ],
[ "HP.HPTRIM.SDK.AgendaItemAttachment", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item_attachment.html", null ],
[ "HP.HPTRIM.SDK.AgendaItemTypeAttachment", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item_type_attachment.html", null ],
[ "HP.HPTRIM.SDK.AlertSubscriber", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_alert_subscriber.html", null ],
[ "HP.HPTRIM.SDK.ClassificationOnlyRecordType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification_only_record_type.html", null ],
[ "HP.HPTRIM.SDK.ClassificationSapBusinessObject", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification_sap_business_object.html", null ],
[ "HP.HPTRIM.SDK.CommunicationDetail", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_communication_detail.html", null ],
[ "HP.HPTRIM.SDK.JurisdictionMember", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_jurisdiction_member.html", null ],
[ "HP.HPTRIM.SDK.LocationAddress", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_address.html", null ],
[ "HP.HPTRIM.SDK.LocationEAddress", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location_e_address.html", null ],
[ "HP.HPTRIM.SDK.MeetingDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_document.html", null ],
[ "HP.HPTRIM.SDK.MeetingInvitation", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_invitation.html", null ],
[ "HP.HPTRIM.SDK.MeetingTypeUsualParticipant", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type_usual_participant.html", null ],
[ "HP.HPTRIM.SDK.MinuteItemActionArising", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_minute_item_action_arising.html", null ],
[ "HP.HPTRIM.SDK.RecordClientMatterParty", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_client_matter_party.html", null ],
[ "HP.HPTRIM.SDK.RecordClientMatterRole", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_client_matter_role.html", null ],
[ "HP.HPTRIM.SDK.RecordHold", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_hold.html", null ],
[ "HP.HPTRIM.SDK.RecordJurisdiction", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_jurisdiction.html", null ],
[ "HP.HPTRIM.SDK.RecordKeyword", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_keyword.html", null ],
[ "HP.HPTRIM.SDK.RecordLinkedDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_linked_document.html", null ],
[ "HP.HPTRIM.SDK.RecordLocation", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_location.html", null ],
[ "HP.HPTRIM.SDK.RecordRelationship", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_relationship.html", null ],
[ "HP.HPTRIM.SDK.RecordRendition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_rendition.html", null ],
[ "HP.HPTRIM.SDK.RecordRevision", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_revision.html", null ],
[ "HP.HPTRIM.SDK.RecordSapComponent", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_sap_component.html", null ],
[ "HP.HPTRIM.SDK.RecordTypeAutoSubFolder", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type_auto_sub_folder.html", null ],
[ "HP.HPTRIM.SDK.ScheduledTaskHistory", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_scheduled_task_history.html", null ],
[ "HP.HPTRIM.SDK.ScheduleTrigger", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule_trigger.html", null ],
[ "HP.HPTRIM.SDK.TodoItemItemReference", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_todo_item_item_reference.html", null ],
[ "HP.HPTRIM.SDK.WorkflowDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_document.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplateDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template_document.html", null ]
] ],
[ "HP.HPTRIM.SDK.TrimMainObject", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_main_object.html", [
[ "HP.HPTRIM.SDK.ActionDef", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_action_def.html", null ],
[ "HP.HPTRIM.SDK.Activity", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_activity.html", null ],
[ "HP.HPTRIM.SDK.AgendaItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item.html", null ],
[ "HP.HPTRIM.SDK.AgendaItemType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_agenda_item_type.html", null ],
[ "HP.HPTRIM.SDK.Alert", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_alert.html", null ],
[ "HP.HPTRIM.SDK.AutoPartRule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_auto_part_rule.html", null ],
[ "HP.HPTRIM.SDK.Census", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_census.html", null ],
[ "HP.HPTRIM.SDK.CheckinPlace", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_checkin_place.html", null ],
[ "HP.HPTRIM.SDK.CheckinStyle", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_checkin_style.html", null ],
[ "HP.HPTRIM.SDK.Classification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classification.html", null ],
[ "HP.HPTRIM.SDK.Communication", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_communication.html", null ],
[ "HP.HPTRIM.SDK.Consignment", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_consignment.html", null ],
[ "HP.HPTRIM.SDK.ConsignmentApprover", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_consignment_approver.html", null ],
[ "HP.HPTRIM.SDK.ConsignmentIssue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_consignment_issue.html", null ],
[ "HP.HPTRIM.SDK.ConsignmentRejection", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_consignment_rejection.html", null ],
[ "HP.HPTRIM.SDK.DocumentQueue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_document_queue.html", null ],
[ "HP.HPTRIM.SDK.ElectronicStore", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_electronic_store.html", null ],
[ "HP.HPTRIM.SDK.FieldDefinition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_field_definition.html", null ],
[ "HP.HPTRIM.SDK.History", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_history.html", null ],
[ "HP.HPTRIM.SDK.Hold", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_hold.html", null ],
[ "HP.HPTRIM.SDK.HtmlLayout", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_html_layout.html", null ],
[ "HP.HPTRIM.SDK.Jurisdiction", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_jurisdiction.html", null ],
[ "HP.HPTRIM.SDK.Keyword", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_keyword.html", null ],
[ "HP.HPTRIM.SDK.Location", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_location.html", null ],
[ "HP.HPTRIM.SDK.LookupItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_lookup_item.html", null ],
[ "HP.HPTRIM.SDK.LookupSet", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_lookup_set.html", null ],
[ "HP.HPTRIM.SDK.MailTemplate", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_mail_template.html", null ],
[ "HP.HPTRIM.SDK.Meeting", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting.html", null ],
[ "HP.HPTRIM.SDK.MeetingType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_meeting_type.html", null ],
[ "HP.HPTRIM.SDK.MetadataRule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_metadata_rule.html", null ],
[ "HP.HPTRIM.SDK.MinuteItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_minute_item.html", null ],
[ "HP.HPTRIM.SDK.MinuteItemType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_minute_item_type.html", null ],
[ "HP.HPTRIM.SDK.Notification", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_notification.html", null ],
[ "HP.HPTRIM.SDK.OfflineRecord", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_offline_record.html", null ],
[ "HP.HPTRIM.SDK.Origin", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin.html", null ],
[ "HP.HPTRIM.SDK.OriginHistory", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_history.html", null ],
[ "HP.HPTRIM.SDK.Record", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record.html", null ],
[ "HP.HPTRIM.SDK.RecordAction", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_action.html", null ],
[ "HP.HPTRIM.SDK.RecordType", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_record_type.html", null ],
[ "HP.HPTRIM.SDK.Report", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_report.html", null ],
[ "HP.HPTRIM.SDK.ReportBitmap", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_report_bitmap.html", null ],
[ "HP.HPTRIM.SDK.Request", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_request.html", null ],
[ "HP.HPTRIM.SDK.SavedSearch", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_saved_search.html", null ],
[ "HP.HPTRIM.SDK.Schedule", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_schedule.html", null ],
[ "HP.HPTRIM.SDK.ScheduledTask", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_scheduled_task.html", null ],
[ "HP.HPTRIM.SDK.SearchForm", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_form.html", null ],
[ "HP.HPTRIM.SDK.SecurityCaveat", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_caveat.html", null ],
[ "HP.HPTRIM.SDK.SecurityGuide", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_guide.html", null ],
[ "HP.HPTRIM.SDK.SecurityLevel", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_security_level.html", null ],
[ "HP.HPTRIM.SDK.SharePointItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_share_point_item.html", null ],
[ "HP.HPTRIM.SDK.Space", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_space.html", null ],
[ "HP.HPTRIM.SDK.StopWord", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_stop_word.html", null ],
[ "HP.HPTRIM.SDK.TodoItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_todo_item.html", null ],
[ "HP.HPTRIM.SDK.UserLabel", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_user_label.html", null ],
[ "HP.HPTRIM.SDK.Word", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_word.html", null ],
[ "HP.HPTRIM.SDK.Workflow", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow.html", null ],
[ "HP.HPTRIM.SDK.WorkflowTemplate", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_workflow_template.html", null ],
[ "HP.HPTRIM.SDK.WorkingCopy", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_working_copy.html", null ],
[ "HP.HPTRIM.SDK.ZipCode", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_zip_code.html", null ]
] ]
] ],
[ "HP.HPTRIM.SDK.TrimUserOptionSet", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_user_option_set.html", [
[ "HP.HPTRIM.SDK.BlockedSearchMethodsUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_blocked_search_methods_user_options.html", null ],
[ "HP.HPTRIM.SDK.DroppedFilesUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_dropped_files_user_options.html", null ],
[ "HP.HPTRIM.SDK.DroppedFoldersUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_dropped_folders_user_options.html", null ],
[ "HP.HPTRIM.SDK.EmailingRecordsUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_emailing_records_user_options.html", null ],
[ "HP.HPTRIM.SDK.EmailUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_user_options.html", null ],
[ "HP.HPTRIM.SDK.LocaleUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_locale_user_options.html", null ],
[ "HP.HPTRIM.SDK.OutlookUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_outlook_user_options.html", null ],
[ "HP.HPTRIM.SDK.PolicyCentreUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_policy_centre_user_options.html", null ],
[ "HP.HPTRIM.SDK.ReporterUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_reporter_user_options.html", null ],
[ "HP.HPTRIM.SDK.SearchUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_user_options.html", null ],
[ "HP.HPTRIM.SDK.SortAndFilterUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_sort_and_filter_user_options.html", null ],
[ "HP.HPTRIM.SDK.SpellingUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_spelling_user_options.html", null ],
[ "HP.HPTRIM.SDK.StartupUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_startup_user_options.html", null ],
[ "HP.HPTRIM.SDK.TreeBoxUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_tree_box_user_options.html", null ],
[ "HP.HPTRIM.SDK.ViewerUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_viewer_user_options.html", null ],
[ "HP.HPTRIM.SDK.ViewPaneUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_view_pane_user_options.html", null ],
[ "HP.HPTRIM.SDK.WebClientCommandBarUserOptions", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_web_client_command_bar_user_options.html", null ]
] ]
] ],
[ "HP.HPTRIM.SDK.TrimSDKObject", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_s_d_k_object.html", [
[ "HP.HPTRIM.SDK.BulkDataLoader", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_bulk_data_loader.html", null ],
[ "HP.HPTRIM.SDK.ClassifiedSecurity", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_classified_security.html", null ],
[ "HP.HPTRIM.SDK.DatasetConfiguration", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_dataset_configuration.html", null ],
[ "HP.HPTRIM.SDK.EmailAttachment", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_attachment.html", null ],
[ "HP.HPTRIM.SDK.EmailParticipant", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_email_participant.html", null ],
[ "HP.HPTRIM.SDK.Enum", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum.html", null ],
[ "HP.HPTRIM.SDK.EnumItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_enum_item.html", null ],
[ "HP.HPTRIM.SDK.EventMonitor", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_event_monitor.html", null ],
[ "HP.HPTRIM.SDK.ExtractDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_extract_document.html", null ],
[ "HP.HPTRIM.SDK.FormDefinition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_form_definition.html", null ],
[ "HP.HPTRIM.SDK.InputDocument", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_input_document.html", null ],
[ "HP.HPTRIM.SDK.MenuItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_item.html", [
[ "HP.HPTRIM.SDK.CommandDef", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_command_def.html", null ],
[ "HP.HPTRIM.SDK.MenuPopup", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_popup.html", null ],
[ "HP.HPTRIM.SDK.MenuSeparator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_menu_separator.html", null ]
] ],
[ "HP.HPTRIM.SDK.ObjectDef", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_object_def.html", null ],
[ "HP.HPTRIM.SDK.OriginBulkLoaderSettings", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_bulk_loader_settings.html", null ],
[ "HP.HPTRIM.SDK.OriginEmailCaptureSettings", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_origin_email_capture_settings.html", null ],
[ "HP.HPTRIM.SDK.PageDefinition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_page_definition.html", null ],
[ "HP.HPTRIM.SDK.PageItemDefinition", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_page_item_definition.html", null ],
[ "HP.HPTRIM.SDK.PropertyDef", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_def.html", [
[ "HP.HPTRIM.SDK.PropertyValue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_value.html", null ]
] ],
[ "HP.HPTRIM.SDK.PropertyOrFieldDef", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_def.html", [
[ "HP.HPTRIM.SDK.PropertyOrFieldValue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_property_or_field_value.html", null ]
] ],
[ "HP.HPTRIM.SDK.SearchClauseDef", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_search_clause_def.html", null ]
] ],
[ "HP.HPTRIM.SDK.TrimSearchSortItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_sort_item.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchStackItem", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_stack_item.html", [
[ "HP.HPTRIM.SDK.TrimSearchClause", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_clause.html", null ],
[ "HP.HPTRIM.SDK.TrimSearchOperator", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_operator.html", null ]
] ],
[ "HP.HPTRIM.SDK.TrimSearchTopContainersFilter", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_search_top_containers_filter.html", null ],
[ "HP.HPTRIM.SDK.TrimSecurityProfile", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_security_profile.html", null ],
[ "HP.HPTRIM.SDK.TrimURI", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_trim_u_r_i.html", null ],
[ "HP.HPTRIM.SDK.UserFieldValue", "class_h_p_1_1_h_p_t_r_i_m_1_1_s_d_k_1_1_user_field_value.html", null ]
]; | 112.737736 | 239 | 0.791769 |
bbd5d3aa8a34698eb4bb7fd0db952281e64e73b2 | 910 | js | JavaScript | src/components/Cards/Card2Fields/Card2Fields.js | Asthor/test-bo-bim | 9f9acbc17195072638941fd6599212a140bf8c96 | [
"MIT"
] | null | null | null | src/components/Cards/Card2Fields/Card2Fields.js | Asthor/test-bo-bim | 9f9acbc17195072638941fd6599212a140bf8c96 | [
"MIT"
] | null | null | null | src/components/Cards/Card2Fields/Card2Fields.js | Asthor/test-bo-bim | 9f9acbc17195072638941fd6599212a140bf8c96 | [
"MIT"
] | null | null | null | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Card2Fields.css';
import MdZoomIn from 'react-icons/lib/md/zoom-in';
class Card2Fields extends React.Component {
render() {
return (
<div className={s.container}>
<a href={this.props.link}>
<div className={s.header}>
<span className={s.title}>{this.props.title}</span>
<MdZoomIn size={23} color="white"/>
</div>
</a>
<div className={s.subHeader}>
<span className={s.text}>{this.props.sub1}</span>
<span className={s.text}>{this.props.sub2}</span>
</div>
<div className={s.lineContainer}>{this.props.children}</div>
</div>
);
}
}
Card2Fields.defaultProps = {
title: 'Catégorie',
sub1: 'Sub1',
sub2: 'Sub2',
link: '',
};
export default withStyles(s)(Card2Fields);
| 26.764706 | 68 | 0.601099 |
bbd5fdd4d54cf966a37b720b64d56119e7c53e22 | 2,774 | js | JavaScript | http-server/SERVER-SCRIPTS/lib/system/System.js | shigeru-takehara/personal-web-application-sdk | 2b6a606598de0f5d9f71eb8e9e863cc52db8806d | [
"MIT"
] | null | null | null | http-server/SERVER-SCRIPTS/lib/system/System.js | shigeru-takehara/personal-web-application-sdk | 2b6a606598de0f5d9f71eb8e9e863cc52db8806d | [
"MIT"
] | null | null | null | http-server/SERVER-SCRIPTS/lib/system/System.js | shigeru-takehara/personal-web-application-sdk | 2b6a606598de0f5d9f71eb8e9e863cc52db8806d | [
"MIT"
] | null | null | null | var pwa = pwa || {};
/**
* System related functions.
*
* @namespace
* @requires JavaType.js
*/
pwa.system = (function () {
var _pub = {}; // public methods holder
/**
* Separator used for REST API's response. Usualy it is used to update multiple parts
* of the current HTML.
*
* @memberof pwa.system
* @alias pwa.system.DATA_SEPARATOR
*/
_pub.DATA_SEPARATOR = '!=====!';
/**
* Return environment variable value.
*
* @memberof pwa.system
* @alias pwa.system.getEnv
* @param {String} name - environment variable name
* @returns {String} environment variable value
*/
_pub.getEnv = function(name) {
return System.getenv(name);
};
/**
* Return OS Name.
*
* @memberof pwa.system
* @alias pwa.system.getOSName
* @returns {String} OS Name
*/
_pub.getOSName = function(){
return System.getProperty("os.name");
};
/**
* Return OS temporary directory.
*
* @memberof pwa.system
* @alias pwa.system.getTempDir
* @returns {String} OS temporary directory
*/
_pub.getTempDir = function() {
return System.getProperty("java.io.tmpdir");
};
/**
* Return the current directory.
*
* @memberof pwa.system
* @alias pwa.system.getCurrentDir
* @param {CmdWinController} cmdWin - Command Window Controller object
* @returns {String} current directory
*/
_pub.getCurrentDir = function(cmdWin) {
var currentFlag = cmdWin.isLogFlag();
cmdWin.setLogFlag(true); // because cmdWin.getCommandResult() is used below
cmdWin.executeCommand("pwd");
var result = cmdWin.getCommandResult();
cmdWin.setLogFlag(currentFlag);
return result.get(0);
};
/**
* Throw an Exception that notifies the current called method is not implemented.
*
* @memberof pwa.system
* @alias pwa.system.throwMethodNotImplementedException
* @param {String} methodName - method name called and not implemented
* @throws {Exception}
*/
_pub.throwMethodNotImplementedException = function(methodName) {
throw new Exception("Method:" + methodName + " Not Implemented");
}
/**
* Return true if the current OS is Windows.
*
* @memberof pwa.system
* @alias pwa.system.isWindows
* @returns {boolean} true for Windows otherwise false
*/
_pub.isWindows = function() {
return pwa.system.getOSName().indexOf("Windows") > -1;
};
/**
* Return an available TCP/IP port between 8080 and 8100.
*
* @memberof pwa.system
* @alias pwa.system.getAvailableTCPIPPort
* @returns {int} port#, -1 for no port available
*/
_pub.getAvailableTCPIPPort = function() {
for(var i=8080; i<8101; i++) {
if (PortFinder.available(i)) {
return i;
}
}
return -1;
};
return _pub;
}()); | 24.548673 | 87 | 0.643475 |
bbd6ae6d00b2f093a8f348598fbd30f0bf0362ca | 474 | js | JavaScript | api/upload.js | zhijunzhou/letterpad | 5aaf5d2ddd5686b2ec40b4be1e4a11e58b093eaf | [
"MIT"
] | 1 | 2020-06-16T16:01:36.000Z | 2020-06-16T16:01:36.000Z | api/upload.js | zhijunzhou/letterpad | 5aaf5d2ddd5686b2ec40b4be1e4a11e58b093eaf | [
"MIT"
] | null | null | null | api/upload.js | zhijunzhou/letterpad | 5aaf5d2ddd5686b2ec40b4be1e4a11e58b093eaf | [
"MIT"
] | 1 | 2019-07-28T00:28:12.000Z | 2019-07-28T00:28:12.000Z | const multer = require("multer");
const path = require("path");
const customStorage = require("./utils/customStorage");
var upload = multer({
storage: new customStorage({
destination: function(req, file, cb) {
let fname = Date.now() + ".jpg";
cb(null, path.join(__dirname, "../public/uploads/", fname));
},
filename: function(req, file, cb) {
cb(null, Date.now());
},
}),
limits: { fileSize: 5000000 },
});
module.exports = upload;
| 24.947368 | 66 | 0.611814 |
bbd6bd8d0259b163ecd2f2d36372ef94ea53ad92 | 5,200 | js | JavaScript | test/helpers.js | metinbaris/karrot-frontend | 68c07282c02e0d651c599b6fdef2837ecf32f2d9 | [
"MIT"
] | 273 | 2017-09-11T16:12:29.000Z | 2021-11-28T10:13:19.000Z | test/helpers.js | metinbaris/karrot-frontend | 68c07282c02e0d651c599b6fdef2837ecf32f2d9 | [
"MIT"
] | 1,802 | 2017-09-10T21:19:37.000Z | 2021-11-29T16:52:50.000Z | test/helpers.js | metinbaris/karrot-frontend | 68c07282c02e0d651c599b6fdef2837ecf32f2d9 | [
"MIT"
] | 175 | 2017-10-13T17:12:55.000Z | 2021-11-25T17:05:21.000Z | import Vue from 'vue'
import Vuex from 'vuex'
import { createLocalVue, mount, TransitionStub, TransitionGroupStub, RouterLinkStub } from '@vue/test-utils'
import deepmerge from 'deepmerge'
import i18n from '@/base/i18n'
import { IconPlugin } from '@/base/icons'
import routerMocks from '>/routerMocks'
Vue.use(Vuex)
Vue.use(IconPlugin)
const desktopUserAgent = 'Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0'
const mobileUserAgent = 'Mozilla/5.0 (Android 9; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0'
export function useDesktopUserAgent () {
window.navigator.userAgent = desktopUserAgent
}
export function useMobileUserAgent () {
window.navigator.userAgent = mobileUserAgent
}
export async function nextTicks (n) {
while (n--) {
await Vue.nextTick()
}
}
export function createDatastore (mods, { debug = false, plugins = [] } = {}) {
const modules = {}
for (const key of Object.keys(mods)) {
modules[key] = { ...mods[key], namespaced: true }
}
const datastore = new Vuex.Store({
modules, plugins, strict: false,
})
if (debug) {
datastore.subscribe(({ type, payload }) => console.log('mutation', type, payload))
datastore.subscribeAction(({ type, payload }) => console.log('action', type, payload))
}
return datastore
}
export function throws (val) {
return () => {
if (typeof val === 'function') {
val = val()
}
throw val
}
}
export function makefindAllComponentsIterable (wrapper) {
const findAllComponents = wrapper.constructor.prototype.findAllComponents
wrapper.findAllComponents = function () {
const wrapperArray = findAllComponents.apply(this, arguments)
wrapperArray[Symbol.iterator] = () => {
let nextIndex = 0
return {
next () {
if (nextIndex < wrapperArray.length) {
return { value: wrapperArray.at(nextIndex++), done: false }
}
else {
return { done: true }
}
},
}
}
return wrapperArray
}
return wrapper
}
export function configureQuasar (Vue) {
// jest.resetModules() can only provide isolation when we require() a module
// We want a fresh Quasar for every test
const configure = require('>/configureQuasar').default
configure(Vue)
}
export function mountWithDefaults (Component, options = {}) {
const localVue = createLocalVue()
return mountWithDefaultsAndLocalVue(Component, localVue, options)
}
export function mountWithDefaultsAndLocalVue (Component, localVue, options = {}) {
i18n.locale = 'en'
configureQuasar(localVue)
localVue.component('RouterLink', RouterLinkStub)
localVue.component('Transition', TransitionStub)
localVue.component('TransitionGroup', TransitionGroupStub)
localVue.directive('measure', {})
const datastore = options.datastore
delete options.datastore
const wrapper = mount(Component, {
localVue,
sync: false,
i18n,
store: datastore,
mocks: {
...routerMocks,
},
...options,
})
makefindAllComponentsIterable(wrapper)
return wrapper
}
export function storybookDefaults (options) {
i18n.locale = 'en'
return {
i18n,
...options,
}
}
export function createValidationError (data) {
return Object.assign(new Error(), {
response: {
status: 400,
data,
},
})
}
export function createRequestError () {
return Object.assign(new Error(), {
response: {
status: 500,
request: 'foo',
},
})
}
export function mockActionOnce (datastore, actionName) {
const originalValue = datastore._actions[actionName]
const restore = () => { datastore._actions[actionName] = originalValue }
const mockFn = jest.fn()
datastore._actions[actionName] = [async () => {
try {
return await mockFn()
}
finally {
restore()
}
}]
return mockFn
}
export function defaultActionStatus () {
return {
pending: false,
validationErrors: {},
hasValidationErrors: false,
serverError: false,
networkError: false,
startedAt: null,
}
}
export function defaultActionStatusesFor (...actions) {
const result = {}
for (const action of actions) {
result[action + 'Status'] = defaultActionStatus()
}
return result
}
export function sleep (ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}
/**
* Helper for the interface of `withMeta` status and components (`statusMixin`)
*/
function statusMock (override) {
const defaults = {
...defaultActionStatus(),
firstNonFieldError: undefined,
firstValidationError: undefined,
}
return deepmerge(defaults, override || {})
}
export const statusMocks = {
default: statusMock,
pending () {
return statusMock({ pending: true })
},
validationError (field, message) {
return statusMock({
hasValidationErrors: true,
firstValidationError: message,
validationErrors: { [field]: [message] },
})
},
nonFieldError (message) {
return statusMock({
firstNonFieldError: message,
hasValidationErrors: true,
firstValidationError: message,
validationErrors: { nonFieldErrors: [message] },
})
},
}
export const range = n => [...Array(n).keys()]
| 24.413146 | 108 | 0.666923 |
bbd6dc79a5283db3567c3a2d2a3ed51f5f0655ae | 25,405 | js | JavaScript | src/server/routes/apiv3/app-settings.js | Poulpatine/growi | 2d57a7a7827934ae62aadb4fd2e497fdd95e5b95 | [
"MIT"
] | null | null | null | src/server/routes/apiv3/app-settings.js | Poulpatine/growi | 2d57a7a7827934ae62aadb4fd2e497fdd95e5b95 | [
"MIT"
] | null | null | null | src/server/routes/apiv3/app-settings.js | Poulpatine/growi | 2d57a7a7827934ae62aadb4fd2e497fdd95e5b95 | [
"MIT"
] | null | null | null | const loggerFactory = require('@alias/logger');
const logger = loggerFactory('growi:routes:apiv3:app-settings');
const debug = require('debug')('growi:routes:admin');
const express = require('express');
const { listLocaleIds } = require('@commons/util/locale-utils');
const router = express.Router();
const { body } = require('express-validator');
const ErrorV3 = require('../../models/vo/error-apiv3');
/**
* @swagger
* tags:
* name: AppSettings
*/
/**
* @swagger
*
* components:
* schemas:
* AppSettingParams:
* description: AppSettingParams
* type: object
* properties:
* title:
* type: string
* description: site name show on page header and tilte of HTML
* confidential:
* type: string
* description: confidential show on page header
* globalLang:
* type: string
* description: language set when create user
* fileUpload:
* type: boolean
* description: enable upload file except image file
* SiteUrlSettingParams:
* description: SiteUrlSettingParams
* type: object
* properties:
* siteUrl:
* type: string
* description: Site URL. e.g. https://example.com, https://example.com:8080
* envSiteUrl:
* type: string
* description: environment variable 'APP_SITE_URL'
* MailSetting:
* description: MailSettingParams
* type: object
* properties:
* fromAddress:
* type: string
* description: e-mail address used as from address of mail which sent from GROWI app
* transmissionMethod:
* type: string
* description: transmission method
* SmtpSettingParams:
* description: SmtpSettingParams
* type: object
* properties:
* smtpHost:
* type: string
* description: host name of client's smtp server
* smtpPort:
* type: string
* description: port of client's smtp server
* smtpUser:
* type: string
* description: user name of client's smtp server
* smtpPassword:
* type: string
* description: password of client's smtp server
* SesSettingParams:
* description: SesSettingParams
* type: object
* properties:
* accessKeyId:
* type: string
* description: accesskey id for authentification of AWS
* secretAccessKey:
* type: string
* description: secret key for authentification of AWS
* FileUploadSettingParams:
* description: FileUploadTypeParams
* type: object
* properties:
* fileUploadType:
* type: string
* description: fileUploadType
* s3Region:
* type: string
* description: region of AWS S3
* s3CustomEndpoint:
* type: string
* description: custom endpoint of AWS S3
* s3Bucket:
* type: string
* description: AWS S3 bucket name
* s3AccessKeyId:
* type: string
* description: accesskey id for authentification of AWS
* s3SecretAccessKey:
* type: string
* description: secret key for authentification of AWS
* s3ReferenceFileWithRelayMode:
* type: boolean
* description: is enable internal stream system for s3 file request
* gcsApiKeyJsonPath:
* type: string
* description: apiKeyJsonPath of gcp
* gcsBucket:
* type: string
* description: bucket name of gcs
* gcsUploadNamespace:
* type: string
* description: name space of gcs
* gcsReferenceFileWithRelayMode:
* type: boolean
* description: is enable internal stream system for gcs file request
* envGcsApiKeyJsonPath:
* type: string
* description: Path of the JSON file that contains service account key to authenticate to GCP API
* envGcsBucket:
* type: string
* description: Name of the GCS bucket
* envGcsUploadNamespace:
* type: string
* description: Directory name to create in the bucket
* PluginSettingParams:
* description: PluginSettingParams
* type: object
* properties:
* isEnabledPlugins:
* type: string
* description: enable use plugins
*/
module.exports = (crowi) => {
const accessTokenParser = require('../../middlewares/access-token-parser')(crowi);
const loginRequiredStrictly = require('../../middlewares/login-required')(crowi);
const adminRequired = require('../../middlewares/admin-required')(crowi);
const csrf = require('../../middlewares/csrf')(crowi);
const apiV3FormValidator = require('../../middlewares/apiv3-form-validator')(crowi);
const validator = {
appSetting: [
body('title').trim(),
body('confidential'),
body('globalLang').isIn(listLocaleIds()),
body('fileUpload').isBoolean(),
],
siteUrlSetting: [
body('siteUrl').trim().matches(/^(https?:\/\/[^/]+|)$/).isURL({ require_tld: false }),
],
mailSetting: [
body('fromAddress').trim().if(value => value !== '').isEmail(),
body('transmissionMethod').isIn(['smtp', 'ses']),
],
smtpSetting: [
body('smtpHost').trim(),
body('smtpPort').trim().if(value => value !== '').isPort(),
body('smtpUser').trim(),
body('smtpPassword').trim(),
],
sesSetting: [
body('sesAccessKeyId').trim().if(value => value !== '').matches(/^[\da-zA-Z]+$/),
body('sesSecretAccessKey').trim(),
],
fileUploadSetting: [
body('fileUploadType').isIn(['aws', 'gcs', 'local', 'gridfs']),
body('gcsApiKeyJsonPath').trim(),
body('gcsBucket').trim(),
body('gcsUploadNamespace').trim(),
body('gcsReferenceFileWithRelayMode').if(value => value != null).isBoolean(),
body('s3Region').trim().if(value => value !== '').matches(/^[a-z]+-[a-z]+-\d+$/)
.withMessage((value, { req }) => req.t('validation.aws_region')),
body('s3CustomEndpoint').trim().if(value => value !== '').matches(/^(https?:\/\/[^/]+|)$/)
.withMessage((value, { req }) => req.t('validation.aws_custom_endpoint')),
body('s3Bucket').trim(),
body('s3AccessKeyId').trim().if(value => value !== '').matches(/^[\da-zA-Z]+$/),
body('s3SecretAccessKey').trim(),
body('s3ReferenceFileWithRelayMode').if(value => value != null).isBoolean(),
],
pluginSetting: [
body('isEnabledPlugins').isBoolean(),
],
};
/**
* @swagger
*
* /app-settings:
* get:
* tags: [AppSettings]
* operationId: getAppSettings
* summary: /app-settings
* description: get app setting params
* responses:
* 200:
* description: Resources are available
* content:
* application/json:
* schema:
* properties:
* appSettingsParams:
* type: object
* description: app settings params
*/
router.get('/', accessTokenParser, loginRequiredStrictly, adminRequired, async(req, res) => {
const appSettingsParams = {
title: crowi.configManager.getConfig('crowi', 'app:title'),
confidential: crowi.configManager.getConfig('crowi', 'app:confidential'),
globalLang: crowi.configManager.getConfig('crowi', 'app:globalLang'),
fileUpload: crowi.configManager.getConfig('crowi', 'app:fileUpload'),
siteUrl: crowi.configManager.getConfig('crowi', 'app:siteUrl'),
envSiteUrl: crowi.configManager.getConfigFromEnvVars('crowi', 'app:siteUrl'),
isMailerSetup: crowi.mailService.isMailerSetup,
fromAddress: crowi.configManager.getConfig('crowi', 'mail:from'),
transmissionMethod: crowi.configManager.getConfig('crowi', 'mail:transmissionMethod'),
smtpHost: crowi.configManager.getConfig('crowi', 'mail:smtpHost'),
smtpPort: crowi.configManager.getConfig('crowi', 'mail:smtpPort'),
smtpUser: crowi.configManager.getConfig('crowi', 'mail:smtpUser'),
smtpPassword: crowi.configManager.getConfig('crowi', 'mail:smtpPassword'),
sesAccessKeyId: crowi.configManager.getConfig('crowi', 'mail:sesAccessKeyId'),
sesSecretAccessKey: crowi.configManager.getConfig('crowi', 'mail:sesSecretAccessKey'),
fileUploadType: crowi.configManager.getConfig('crowi', 'app:fileUploadType'),
envFileUploadType: crowi.configManager.getConfigFromEnvVars('crowi', 'app:fileUploadType'),
useOnlyEnvVarForFileUploadType: crowi.configManager.getConfig('crowi', 'app:useOnlyEnvVarForFileUploadType'),
s3Region: crowi.configManager.getConfig('crowi', 'aws:s3Region'),
s3CustomEndpoint: crowi.configManager.getConfig('crowi', 'aws:s3CustomEndpoint'),
s3Bucket: crowi.configManager.getConfig('crowi', 'aws:s3Bucket'),
s3AccessKeyId: crowi.configManager.getConfig('crowi', 'aws:s3AccessKeyId'),
s3SecretAccessKey: crowi.configManager.getConfig('crowi', 'aws:s3SecretAccessKey'),
s3ReferenceFileWithRelayMode: crowi.configManager.getConfig('crowi', 'aws:referenceFileWithRelayMode'),
gcsUseOnlyEnvVars: crowi.configManager.getConfig('crowi', 'gcs:useOnlyEnvVarsForSomeOptions'),
gcsApiKeyJsonPath: crowi.configManager.getConfig('crowi', 'gcs:apiKeyJsonPath'),
gcsBucket: crowi.configManager.getConfig('crowi', 'gcs:bucket'),
gcsUploadNamespace: crowi.configManager.getConfig('crowi', 'gcs:uploadNamespace'),
gcsReferenceFileWithRelayMode: crowi.configManager.getConfig('crowi', 'gcs:referenceFileWithRelayMode'),
envGcsApiKeyJsonPath: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:apiKeyJsonPath'),
envGcsBucket: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:bucket'),
envGcsUploadNamespace: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:uploadNamespace'),
isEnabledPlugins: crowi.configManager.getConfig('crowi', 'plugin:isEnabledPlugins'),
};
return res.apiv3({ appSettingsParams });
});
/**
* @swagger
*
* /app-settings/app-setting:
* put:
* tags: [AppSettings]
* summary: /app-settings/app-setting
* operationId: updateAppSettings
* description: Update app setting
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/AppSettingParams'
* responses:
* 200:
* description: Succeeded to update app setting
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/AppSettingParams'
*/
router.put('/app-setting', loginRequiredStrictly, adminRequired, csrf, validator.appSetting, apiV3FormValidator, async(req, res) => {
const requestAppSettingParams = {
'app:title': req.body.title,
'app:confidential': req.body.confidential,
'app:globalLang': req.body.globalLang,
'app:fileUpload': req.body.fileUpload,
};
try {
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', requestAppSettingParams);
const appSettingParams = {
title: crowi.configManager.getConfig('crowi', 'app:title'),
confidential: crowi.configManager.getConfig('crowi', 'app:confidential'),
globalLang: crowi.configManager.getConfig('crowi', 'app:globalLang'),
fileUpload: crowi.configManager.getConfig('crowi', 'app:fileUpload'),
};
return res.apiv3({ appSettingParams });
}
catch (err) {
const msg = 'Error occurred in updating app setting';
logger.error('Error', err);
return res.apiv3Err(new ErrorV3(msg, 'update-appSetting-failed'));
}
});
/**
* @swagger
*
* /app-settings/site-url-setting:
* put:
* tags: [AppSettings]
* operationId: updateAppSettingSiteUrlSetting
* summary: /app-settings/site-url-setting
* description: Update site url setting
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/SiteUrlSettingParams'
* responses:
* 200:
* description: Succeeded to update site url setting
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/SiteUrlSettingParams'
*/
router.put('/site-url-setting', loginRequiredStrictly, adminRequired, csrf, validator.siteUrlSetting, apiV3FormValidator, async(req, res) => {
const requestSiteUrlSettingParams = {
'app:siteUrl': req.body.siteUrl,
};
try {
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', requestSiteUrlSettingParams);
const siteUrlSettingParams = {
siteUrl: crowi.configManager.getConfig('crowi', 'app:siteUrl'),
};
return res.apiv3({ siteUrlSettingParams });
}
catch (err) {
const msg = 'Error occurred in updating site url setting';
logger.error('Error', err);
return res.apiv3Err(new ErrorV3(msg, 'update-siteUrlSetting-failed'));
}
});
/**
* send mail (Promise wrapper)
*/
async function sendMailPromiseWrapper(smtpClient, options) {
return new Promise((resolve, reject) => {
smtpClient.sendMail(options, (err, res) => {
if (err) {
reject(err);
}
else {
resolve(res);
}
});
});
}
/**
* validate mail setting send test mail
*/
async function sendTestEmail(destinationAddress) {
const { configManager, mailService } = crowi;
if (!mailService.isMailerSetup) {
throw Error('mailService is not setup');
}
const fromAddress = configManager.getConfig('crowi', 'mail:from');
if (fromAddress == null) {
throw Error('fromAddress is not setup');
}
const smtpHost = configManager.getConfig('crowi', 'mail:smtpHost');
const smtpPort = configManager.getConfig('crowi', 'mail:smtpPort');
const smtpUser = configManager.getConfig('crowi', 'mail:smtpUser');
const smtpPassword = configManager.getConfig('crowi', 'mail:smtpPassword');
const option = {
host: smtpHost,
port: smtpPort,
};
if (smtpUser && smtpPassword) {
option.auth = {
user: smtpUser,
pass: smtpPassword,
};
}
if (option.port === 465) {
option.secure = true;
}
const smtpClient = mailService.createSMTPClient(option);
debug('mailer setup for validate SMTP setting', smtpClient);
const mailOptions = {
from: fromAddress,
to: destinationAddress,
subject: 'Wiki管理設定のアップデートによるメール通知',
text: 'このメールは、WikiのSMTP設定のアップデートにより送信されています。',
};
await sendMailPromiseWrapper(smtpClient, mailOptions);
}
const updateMailSettinConfig = async function(requestMailSettingParams) {
const {
configManager,
mailService,
} = crowi;
// update config without publishing S2sMessage
await configManager.updateConfigsInTheSameNamespace('crowi', requestMailSettingParams, true);
await mailService.initialize();
mailService.publishUpdatedMessage();
return {
isMailerSetup: mailService.isMailerSetup,
fromAddress: configManager.getConfig('crowi', 'mail:from'),
smtpHost: configManager.getConfig('crowi', 'mail:smtpHost'),
smtpPort: configManager.getConfig('crowi', 'mail:smtpPort'),
smtpUser: configManager.getConfig('crowi', 'mail:smtpUser'),
smtpPassword: configManager.getConfig('crowi', 'mail:smtpPassword'),
sesAccessKeyId: configManager.getConfig('crowi', 'mail:sesAccessKeyId'),
sesSecretAccessKey: configManager.getConfig('crowi', 'mail:sesSecretAccessKey'),
};
};
/**
* @swagger
*
* /app-settings/smtp-setting:
* put:
* tags: [AppSettings]
* operationId: updateAppSettingSmtpSetting
* summary: /app-settings/smtp-setting
* description: Update smtp setting
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/SmtpSettingParams'
* responses:
* 200:
* description: Succeeded to update smtp setting
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/SmtpSettingParams'
*/
router.put('/smtp-setting', loginRequiredStrictly, adminRequired, csrf, validator.smtpSetting, apiV3FormValidator, async(req, res) => {
const requestMailSettingParams = {
'mail:from': req.body.fromAddress,
'mail:transmissionMethod': req.body.transmissionMethod,
'mail:smtpHost': req.body.smtpHost,
'mail:smtpPort': req.body.smtpPort,
'mail:smtpUser': req.body.smtpUser,
'mail:smtpPassword': req.body.smtpPassword,
};
try {
const mailSettingParams = await updateMailSettinConfig(requestMailSettingParams);
return res.apiv3({ mailSettingParams });
}
catch (err) {
const msg = 'Error occurred in updating smtp setting';
logger.error('Error', err);
return res.apiv3Err(new ErrorV3(msg, 'update-smtpSetting-failed'));
}
});
/**
* @swagger
*
* /app-settings/smtp-test:
* post:
* tags: [AppSettings]
* operationId: postSmtpTest
* summary: /app-settings/smtp-setting
* description: Send test mail for smtp
* responses:
* 200:
* description: Succeeded to send test mail for smtp
*/
router.post('/smtp-test', loginRequiredStrictly, adminRequired, async(req, res) => {
try {
await sendTestEmail(req.user.email);
return res.apiv3({});
}
catch (err) {
const msg = req.t('validation.failed_to_send_a_test_email');
logger.error('Error', err);
debug('Error validate mail setting: ', err);
return res.apiv3Err(new ErrorV3(msg, 'send-email-with-smtp-failed'));
}
});
/**
* @swagger
*
* /app-settings/ses-setting:
* put:
* tags: [AppSettings]
* operationId: updateAppSettingSesSetting
* summary: /app-settings/ses-setting
* description: Update ses setting
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/SesSettingParams'
* responses:
* 200:
* description: Succeeded to update ses setting
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/SesSettingParams'
*/
router.put('/ses-setting', loginRequiredStrictly, adminRequired, csrf, validator.sesSetting, apiV3FormValidator, async(req, res) => {
const { mailService } = crowi;
const requestSesSettingParams = {
'mail:from': req.body.fromAddress,
'mail:transmissionMethod': req.body.transmissionMethod,
'mail:sesAccessKeyId': req.body.sesAccessKeyId,
'mail:sesSecretAccessKey': req.body.sesSecretAccessKey,
};
let mailSettingParams;
try {
mailSettingParams = await updateMailSettinConfig(requestSesSettingParams);
}
catch (err) {
const msg = 'Error occurred in updating ses setting';
logger.error('Error', err);
return res.apiv3Err(new ErrorV3(msg, 'update-ses-setting-failed'));
}
await mailService.initialize();
mailService.publishUpdatedMessage();
return res.apiv3({ mailSettingParams });
});
/**
* @swagger
*
* /app-settings/file-upload-settings:
* put:
* tags: [AppSettings]
* operationId: updateAppSettingFileUploadSetting
* summary: /app-settings/file-upload-setting
* description: Update fileUploadSetting
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/FileUploadSettingParams'
* responses:
* 200:
* description: Succeeded to update fileUploadSetting
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/FileUploadSettingParams'
*/
router.put('/file-upload-setting', loginRequiredStrictly, adminRequired, csrf, validator.fileUploadSetting, apiV3FormValidator, async(req, res) => {
const { fileUploadType } = req.body;
const requestParams = {
'app:fileUploadType': fileUploadType,
};
if (fileUploadType === 'gcs') {
requestParams['gcs:apiKeyJsonPath'] = req.body.gcsApiKeyJsonPath;
requestParams['gcs:bucket'] = req.body.gcsBucket;
requestParams['gcs:uploadNamespace'] = req.body.gcsUploadNamespace;
requestParams['gcs:referenceFileWithRelayMode'] = req.body.gcsReferenceFileWithRelayMode;
}
if (fileUploadType === 'aws') {
requestParams['aws:s3Region'] = req.body.s3Region;
requestParams['aws:s3CustomEndpoint'] = req.body.s3CustomEndpoint;
requestParams['aws:s3Bucket'] = req.body.s3Bucket;
requestParams['aws:s3AccessKeyId'] = req.body.s3AccessKeyId;
requestParams['aws:s3SecretAccessKey'] = req.body.s3SecretAccessKey;
requestParams['aws:referenceFileWithRelayMode'] = req.body.s3ReferenceFileWithRelayMode;
}
try {
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', requestParams, true);
await crowi.setUpFileUpload(true);
crowi.fileUploaderSwitchService.publishUpdatedMessage();
const responseParams = {
fileUploadType: crowi.configManager.getConfig('crowi', 'app:fileUploadType'),
};
if (fileUploadType === 'gcs') {
responseParams.gcsApiKeyJsonPath = crowi.configManager.getConfig('crowi', 'gcs:apiKeyJsonPath');
responseParams.gcsBucket = crowi.configManager.getConfig('crowi', 'gcs:bucket');
responseParams.gcsUploadNamespace = crowi.configManager.getConfig('crowi', 'gcs:uploadNamespace');
responseParams.gcsReferenceFileWithRelayMode = crowi.configManager.getConfig('crowi', 'gcs:referenceFileWithRelayMode ');
}
if (fileUploadType === 'aws') {
responseParams.s3Region = crowi.configManager.getConfig('crowi', 'aws:s3Region');
responseParams.s3CustomEndpoint = crowi.configManager.getConfig('crowi', 'aws:s3CustomEndpoint');
responseParams.s3Bucket = crowi.configManager.getConfig('crowi', 'aws:s3Bucket');
responseParams.s3AccessKeyId = crowi.configManager.getConfig('crowi', 'aws:s3AccessKeyId');
responseParams.s3SecretAccessKey = crowi.configManager.getConfig('crowi', 'aws:s3SecretAccessKey');
responseParams.s3ReferenceFileWithRelayMode = crowi.configManager.getConfig('crowi', 'aws:referenceFileWithRelayMode');
}
return res.apiv3({ responseParams });
}
catch (err) {
const msg = 'Error occurred in updating fileUploadType';
logger.error('Error', err);
return res.apiv3Err(new ErrorV3(msg, 'update-fileUploadType-failed'));
}
});
/**
* @swagger
*
* /app-settings/plugin-setting:
* put:
* tags: [AppSettings]
* operationId: updateAppSettingPluginSetting
* summary: /app-settings/plugin-setting
* description: Update plugin setting
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/PluginSettingParams'
* responses:
* 200:
* description: Succeeded to update plugin setting
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/PluginSettingParams'
*/
router.put('/plugin-setting', loginRequiredStrictly, adminRequired, csrf, validator.pluginSetting, apiV3FormValidator, async(req, res) => {
const requestPluginSettingParams = {
'plugin:isEnabledPlugins': req.body.isEnabledPlugins,
};
try {
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', requestPluginSettingParams);
const pluginSettingParams = {
isEnabledPlugins: crowi.configManager.getConfig('crowi', 'plugin:isEnabledPlugins'),
};
return res.apiv3({ pluginSettingParams });
}
catch (err) {
const msg = 'Error occurred in updating plugin setting';
logger.error('Error', err);
return res.apiv3Err(new ErrorV3(msg, 'update-pluginSetting-failed'));
}
});
return router;
};
| 36.925872 | 150 | 0.615824 |
bbd8ce6dd79f103ebd55c505e1b8cc2c3da23616 | 341 | js | JavaScript | src/property-delete-spec.js | bahmutov/change-by-example | 384023bcbd0931883759e9fb3f89f6afc580cdc5 | [
"Unlicense",
"MIT"
] | 34 | 2017-07-20T19:05:26.000Z | 2021-11-04T09:13:14.000Z | src/property-delete-spec.js | bahmutov/change-by-example | 384023bcbd0931883759e9fb3f89f6afc580cdc5 | [
"Unlicense",
"MIT"
] | 14 | 2017-07-20T13:18:55.000Z | 2021-01-21T14:17:16.000Z | src/property-delete-spec.js | bahmutov/change-by-example | 384023bcbd0931883759e9fb3f89f6afc580cdc5 | [
"Unlicense",
"MIT"
] | null | null | null | const { finds } = require('./utils')
/* global describe, it */
describe('delete property', () => {
const source = {
foo: 'f',
bar: 'b',
baz: 'baz',
list: [1, 'foo']
}
const destination = {
bar: 'b',
baz: 'baz',
list: [1, 'foo']
}
it('deletes properties', () => {
finds(source, destination)
})
})
| 17.05 | 36 | 0.492669 |
bbd91880dd3ea386d8c2723c9177798783b3cfa1 | 1,049 | js | JavaScript | util/healthCheck.util.js | goodgodth/express-es6-template | a8d9cc466a71a144887844dad73634ada4bec0b4 | [
"MIT"
] | null | null | null | util/healthCheck.util.js | goodgodth/express-es6-template | a8d9cc466a71a144887844dad73634ada4bec0b4 | [
"MIT"
] | null | null | null | util/healthCheck.util.js | goodgodth/express-es6-template | a8d9cc466a71a144887844dad73634ada4bec0b4 | [
"MIT"
] | null | null | null | import moment from "moment";
module.exports.healthCheckModel = {
serviceOnAtTimeStamp: 0,
serviceOnAt: "",
recentyRequestAtTimeStamp: 0,
recentyRequestAt: "",
minuteOfServiceOn: 0
};
module.exports.setServiceOn = function(_on) {
this.healthCheckModel.serviceOnAtTimeStamp = _on;
this.healthCheckModel.recentyRequestAtTimeStamp = _on;
this.healthCheckModel.serviceOnAt = moment
.unix(_on / 1000)
.format("YYYY-MM-DD HH:mm:ss");
this.healthCheckModel.recentyRequestAt = moment
.unix(_on / 1000)
.format("YYYY-MM-DD HH:mm:ss");
};
module.exports.setRecentRequest = function(_on) {
this.healthCheckModel.recentyRequestAtTimeStamp = _on;
this.healthCheckModel.recentyRequestAt = moment
.unix(_on / 1000)
.format("YYYY-MM-DD HH:mm:ss");
this.healthCheckModel.minuteOfServiceOn =
(this.healthCheckModel.recentyRequestAtTimeStamp -
this.healthCheckModel.serviceOnAtTimeStamp) /
60000;
this.healthCheckModel.minuteOfServiceOn = Math.round(
this.healthCheckModel.minuteOfServiceOn
);
};
| 30.852941 | 56 | 0.745472 |
bbda20234a7e78dd1d687969e96efa28a21f860b | 2,329 | js | JavaScript | app/components/malt/MaltSection.js | MitchLillie/brewhome | fa3c2f56e969d90fbfe72a6d0684edc56eabb0c3 | [
"MIT"
] | null | null | null | app/components/malt/MaltSection.js | MitchLillie/brewhome | fa3c2f56e969d90fbfe72a6d0684edc56eabb0c3 | [
"MIT"
] | null | null | null | app/components/malt/MaltSection.js | MitchLillie/brewhome | fa3c2f56e969d90fbfe72a6d0684edc56eabb0c3 | [
"MIT"
] | null | null | null | import React from 'react'
import MaltList from './MaltList'
import OG from './OG'
const MaltSection = React.createClass({
handleMaltSubmit: function (malt) {
this.props.addMalt(malt)
},
render: function () {
return (
<div className='maltBox panel panel-default'>
<div className='panel-heading'>
<h5>Fermentables <span className='glyphicon glyphicon-cog pull-right'></span></h5>
</div>
<div className='panel-body'>
<MaltList malts={this.props.ingredients.fermentables} onMaltSubmit={this.handleMaltSubmit}/>
</div>
</div>
)
},
// <div class="panel panel-default">
// <div class="panel-heading">
// <h5>Fermentables <span class="glyphicon glyphicon-cog pull-right"></span></h5>
// </div>
// <div class="panel-body">
// <table class="table table-hover table-condensed table-no-bottom">
// <tr>
// <td class="col-md-6">
// Briess 2-row
// </td>
// <td class="col-md-2">
// 8 lb
// </td>
// <td class="col-md-4">
// 2.0 srm
// </td>
// </tr>
// <tr>
// <td>
// Munich
// </td>
// <td>
// 3 lb
// </td>
// <td>
// 2.0 srm
// </td>
// </tr>
// <tr>
// <td>
// Carafa Special III
// </td>
// <td>
// 4 oz
// </td>
// <td>
// 200.0 srm
// </td>
// </tr>
// <tr class="collapse" id="fermentable-form-input">
// <td>
// <input type="text" class="form-control" form="fermenable-form" />
// </td>
// <td>
// <input type="text" class="form-control" form="fermentable-form" />
// </td>
// <td>
// <input type="text" class="form-control" form="fermentable-form" />
// </td>
// </tr>
// <tr>
// <td colspan="5">
// <button type="button" data-toggle="collapse" data-target="#fermentable-form-input" class="btn btn-default">+</button>
// </td>
// </tr>
// </table>
// </div>
// </div>
propTypes: {
addMalt: React.PropTypes.func,
ingredients: React.PropTypes.object,
og: React.PropTypes.number
}
})
export default MaltSection
| 26.465909 | 130 | 0.48304 |
bbda7b7385f135930a265159786583804a9384f1 | 667 | js | JavaScript | client/src/components/RoomFull.js | jasmaa/morse-chat | e5a05746636dda653ed37c7bb5c5b617bac8a4e0 | [
"MIT"
] | null | null | null | client/src/components/RoomFull.js | jasmaa/morse-chat | e5a05746636dda653ed37c7bb5c5b617bac8a4e0 | [
"MIT"
] | null | null | null | client/src/components/RoomFull.js | jasmaa/morse-chat | e5a05746636dda653ed37c7bb5c5b617bac8a4e0 | [
"MIT"
] | null | null | null | import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faFrownOpen } from '@fortawesome/free-solid-svg-icons';
/**
* Room full display
*/
const RoomFull = () => {
return (
<div className="container p-3">
<div className="card">
<div className="card-body d-flex flex-column align-items-center justify-content-center">
<p>This room is currently unavailable. Please try another room.</p>
<FontAwesomeIcon icon={faFrownOpen} size="6x" color="gray" />
</div>
</div>
</div>
);
}
export default RoomFull; | 31.761905 | 104 | 0.587706 |
bbdaa83b59d2086cb347061177d68bd2596f98d9 | 131 | js | JavaScript | assets/javascript/debugInfo.js | diogosm/teoriaDaComputacao | a0cef556f25c73ddfc26f33e768175f74e919342 | [
"MIT"
] | 11 | 2020-08-19T11:23:52.000Z | 2021-11-24T03:13:07.000Z | assets/javascript/debugInfo.js | diogosm/teoriaDaComputacao | a0cef556f25c73ddfc26f33e768175f74e919342 | [
"MIT"
] | 6 | 2020-08-13T11:42:15.000Z | 2021-04-14T08:00:50.000Z | assets/javascript/debugInfo.js | diogosm/teoriaDaComputacao | a0cef556f25c73ddfc26f33e768175f74e919342 | [
"MIT"
] | 3 | 2021-03-31T11:45:13.000Z | 2022-03-21T18:52:02.000Z | class DebugInfo extends HTMLElement {
constructor() {
super();
}
}
window.customElements.define("debug-info", DebugInfo);
| 16.375 | 54 | 0.70229 |
bbdaab93bda352df798acb319c4598d980167cb4 | 760 | js | JavaScript | client/src/test/components/businesses/presentational/cards.test.js | ddouglasz/We-connect | cfecf1e3d6379a56007183a11e5c318e2025952a | [
"MIT"
] | 4 | 2018-03-30T09:21:14.000Z | 2018-06-19T11:32:55.000Z | client/src/test/components/businesses/presentational/cards.test.js | ddouglasz/We-connect | cfecf1e3d6379a56007183a11e5c318e2025952a | [
"MIT"
] | 1 | 2018-03-19T17:23:17.000Z | 2018-03-19T17:23:17.000Z | client/src/test/components/businesses/presentational/cards.test.js | ddouglasz/We-connect | cfecf1e3d6379a56007183a11e5c318e2025952a | [
"MIT"
] | null | null | null | import { configure, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import Cards from '../../../../components/businesses/Presentational/cards.jsx';
configure({ adapter: new Adapter() });
const props = {
name: 'douglas',
description: 'good company',
category: 'technology',
id: 1,
image: 'company.jpg',
createdAt: '2018-07-25T10:08:38.181Z'
};
describe('Compnent: Card', () => {
it('should render the component successfully', () => {
const wrapper = shallow(<Cards {...props}/>);
expect(wrapper.find('div').length).toBe(5);
expect(wrapper.find('TextTruncate').length).toBe(1);
expect(wrapper.find('img').length).toBe(1);
expect(wrapper.find('hr').length).toBe(1);
});
});
| 30.4 | 79 | 0.655263 |
bbdaf7ae7828557838be89fafdd13e61a2daf27b | 503 | js | JavaScript | frontend/javascript/code/coding_challenge_1.js | the-eternal-newbie/web-development | 12b6db5ca406256df195c93beb879ef3581a386e | [
"MIT"
] | 1 | 2020-11-12T03:47:31.000Z | 2020-11-12T03:47:31.000Z | frontend/javascript/code/coding_challenge_1.js | the-eternal-newbie/web-development | 12b6db5ca406256df195c93beb879ef3581a386e | [
"MIT"
] | null | null | null | frontend/javascript/code/coding_challenge_1.js | the-eternal-newbie/web-development | 12b6db5ca406256df195c93beb879ef3581a386e | [
"MIT"
] | null | null | null | class Human {
constructor(name) {
this.name = name;
}
bmi = () => { return this.mass / Math.pow(this.height, 2) }
input = () => {
this.mass = prompt('Introduce ' + this.name + ' mass: ')
this.height = prompt('Introduce ' + this.name + ' height: ')
}
}
const john = new Human('John');
const mark = new Human('Mark');
john.input();
mark.input();
const isMarkHigher = mark.bmi() > john.bmi();
console.log("Is Mark's BMI higher than John's? " + isMarkHigher); | 25.15 | 68 | 0.574553 |
bbdb46e6cf120fbdfa27c9fa34bb3ceabbfde2eb | 1,733 | js | JavaScript | client/src/components/OtherReviews.js | inthelamp/book-reviewer3 | 3f6e1ee5092142c97f05861d753e2e9f9f2c782e | [
"MIT"
] | null | null | null | client/src/components/OtherReviews.js | inthelamp/book-reviewer3 | 3f6e1ee5092142c97f05861d753e2e9f9f2c782e | [
"MIT"
] | null | null | null | client/src/components/OtherReviews.js | inthelamp/book-reviewer3 | 3f6e1ee5092142c97f05861d753e2e9f9f2c782e | [
"MIT"
] | null | null | null | import { useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import { ListGroup } from 'react-bootstrap'
import axios from 'axios'
import ReviewItem from '../components/ReviewItem'
/**
* List other reviews not posted by the user
* @param {string} userId - User id
*/
const OtherReviews = ( { userId }) => {
/**
* @typedef {Object} Review
* @property {string} reviewId - Review id
* @property {subject} subject - Review subject
* @property {bool} isOwner - presenting if the user is the owner of the review or not
* @property {string} status - Review status
*/
const [reviews, setReviews] = useState()
// Getting other reviews
useEffect(() => {
// Sending server a request to get others' reviews
axios
.get(process.env.REACT_APP_SERVER_BASE_URL + '/reviews/reviews', { headers: { UserId: userId } })
.then((response) => {
setReviews(response.data.reviews)
console.log(response.data.message)
})
.catch ((error) => {
if (error.response) {
console.log(error.response.data.message)
} else {
console.log('Error', error.message)
}
})
}, [userId]);
return (<>
{reviews ? ( <ListGroup className='scrollable'>
{reviews.map((review, i) => <ListGroup.Item key={i}><ReviewItem review={review} /></ListGroup.Item>)}
</ListGroup>) : null
}
</>
)
}
OtherReviews.propTypes = {
userId: PropTypes.string
}
export default OtherReviews | 33.326923 | 151 | 0.543566 |
bbdc456e626784f2167e537649e297a680d7f5c5 | 606 | js | JavaScript | src/components/forms/button.js | asleepysheepy/nhl-player-guesser | a5af4b3d2f176912cef7733c0c96ddf5d927657d | [
"MIT"
] | null | null | null | src/components/forms/button.js | asleepysheepy/nhl-player-guesser | a5af4b3d2f176912cef7733c0c96ddf5d927657d | [
"MIT"
] | null | null | null | src/components/forms/button.js | asleepysheepy/nhl-player-guesser | a5af4b3d2f176912cef7733c0c96ddf5d927657d | [
"MIT"
] | null | null | null | import React from 'react'
const baseClasses = 'inline-flex items-center border shadow-sm px-4 py-2 text-sm font-medium rounded focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500'
const variants = {
primary: 'border-transparent text-white bg-blue-600 hover:bg-blue-700',
secondary: 'border-gray-300 text-gray-700 bg-white hover:bg-gray-50',
}
export function Button({ children, onClick, variant = 'primary' }) {
return (
<button
className={`${baseClasses} ${variants[variant]}`}
onClick={onClick}
type={'button'}
>
{children}
</button>
)
}
| 30.3 | 173 | 0.683168 |
bbdc7ad6e0fc0b538787eca2ac9434ea6bb136f5 | 216 | js | JavaScript | routes/home.js | dedydantry/helpdes | 2acad0a5ff6a5b17bcad09ae4d36abf052528a63 | [
"MIT"
] | 1 | 2018-04-13T20:45:01.000Z | 2018-04-13T20:45:01.000Z | routes/home.js | dedydantry/helpdes | 2acad0a5ff6a5b17bcad09ae4d36abf052528a63 | [
"MIT"
] | null | null | null | routes/home.js | dedydantry/helpdes | 2acad0a5ff6a5b17bcad09ae4d36abf052528a63 | [
"MIT"
] | null | null | null | var express = require('express');
var router = express.Router();
var homeController = require('../controller/homeController.js');
/* GET home page. */
router.get('/', homeController.index);
module.exports = router; | 27 | 64 | 0.712963 |
bbdcadaa8c4e27f86249f3bfc536c06615870147 | 2,259 | js | JavaScript | node_modules/npm/node_modules/minipass-sized/test/basic.js | DABOZE/Queen-Alexa | d24743fd7b48e6e68d08b74c56f00eb73035d1c0 | [
"MIT"
] | 6,256 | 2018-07-05T23:44:13.000Z | 2022-03-31T23:54:40.000Z | node_modules/npm/node_modules/minipass-sized/test/basic.js | DABOZE/Queen-Alexa | d24743fd7b48e6e68d08b74c56f00eb73035d1c0 | [
"MIT"
] | 3,867 | 2018-07-06T01:59:29.000Z | 2022-03-31T22:54:19.000Z | node_modules/npm/node_modules/minipass-sized/test/basic.js | DABOZE/Queen-Alexa | d24743fd7b48e6e68d08b74c56f00eb73035d1c0 | [
"MIT"
] | 1,871 | 2018-07-09T21:29:15.000Z | 2022-03-31T10:25:48.000Z | const t = require('tap')
const MPS = require('../')
t.test('ok if size checks out', t => {
const mps = new MPS({ size: 4 })
mps.write(Buffer.from('a').toString('hex'), 'hex')
mps.write(Buffer.from('sd'))
mps.end('f')
return mps.concat().then(data => t.equal(data.toString(), 'asdf'))
})
t.test('error if size exceeded', t => {
const mps = new MPS({ size: 1 })
mps.on('error', er => {
t.match(er, {
message: 'Bad data size: expected 1 bytes, but got 4',
found: 4,
expect: 1,
code: 'EBADSIZE',
name: 'SizeError',
})
t.end()
})
mps.write('asdf')
})
t.test('error if size is not met', t => {
const mps = new MPS({ size: 999 })
t.throws(() => mps.end(), {
message: 'Bad data size: expected 999 bytes, but got 0',
found: 0,
name: 'SizeError',
expect: 999,
code: 'EBADSIZE',
})
t.end()
})
t.test('error if non-string/buffer is written', t => {
const mps = new MPS({size:1})
mps.on('error', er => {
t.match(er, {
message: 'MinipassSized streams only work with string and buffer data'
})
t.end()
})
mps.write({some:'object'})
})
t.test('projectiles', t => {
t.throws(() => new MPS(), {
message: 'invalid expected size: undefined'
}, 'size is required')
t.throws(() => new MPS({size: true}), {
message: 'invalid expected size: true'
}, 'size must be number')
t.throws(() => new MPS({size: NaN}), {
message: 'invalid expected size: NaN'
}, 'size must not be NaN')
t.throws(() => new MPS({size:1.2}), {
message: 'invalid expected size: 1.2'
}, 'size must be integer')
t.throws(() => new MPS({size: Infinity}), {
message: 'invalid expected size: Infinity'
}, 'size must be finite')
t.throws(() => new MPS({size: -1}), {
message: 'invalid expected size: -1'
}, 'size must be positive')
t.throws(() => new MPS({objectMode: true}), {
message: 'MinipassSized streams only work with string and buffer data'
}, 'no objectMode')
t.throws(() => new MPS({size: Number.MAX_SAFE_INTEGER + 1000000}), {
message: 'invalid expected size: 9007199255740992'
})
t.end()
})
t.test('exports SizeError class', t => {
t.isa(MPS.SizeError, 'function')
t.isa(MPS.SizeError.prototype, Error)
t.end()
})
| 26.892857 | 76 | 0.585215 |
bbdcaf0346cc82badf81c4b8f5daa0c0331937d6 | 2,709 | js | JavaScript | src/pages/System/Role/RoleList.js | pigzhuzhu55/v2.preview.pro.ant.design.test | 2f4b7f4cda5bc19d6410181384d31e4c7407c717 | [
"MIT"
] | null | null | null | src/pages/System/Role/RoleList.js | pigzhuzhu55/v2.preview.pro.ant.design.test | 2f4b7f4cda5bc19d6410181384d31e4c7407c717 | [
"MIT"
] | null | null | null | src/pages/System/Role/RoleList.js | pigzhuzhu55/v2.preview.pro.ant.design.test | 2f4b7f4cda5bc19d6410181384d31e4c7407c717 | [
"MIT"
] | null | null | null | import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Card, Button, Icon, List } from 'antd';
import { FormattedMessage } from 'umi-plugin-react/locale';
import Ellipsis from '@/components/Ellipsis';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import styles from './RoleList.less';
const roleTypeMap = [
'https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png',
'https://gw.alipayobjects.com/zos/rmsportal/siCrBXXhmvTQGWPNLBow.png',
'https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png',
];
@connect(({ roleList, loading }) => ({
roleList,
loading: loading.models.roleList,
}))
class RoleList extends PureComponent {
componentDidMount() {
const { dispatch } = this.props;
dispatch({
type: 'roleList/listLoad',
payload: {},
});
}
render() {
const {
roleList: { listData },
loading,
} = this.props;
const bodyHeight = document.body.clientHeight - 170;
return (
<PageHeaderWrapper title={<FormattedMessage id="menu.system.role" />}>
<div
className={styles.cardList}
style={{
height: bodyHeight,
padding: 12,
overflowY: 'auto',
}}
>
<List
rowKey="key"
loading={loading}
grid={{ gutter: 24, lg: 3, md: 2, sm: 1, xs: 1 }}
dataSource={['', ...listData]}
renderItem={item =>
item ? (
<List.Item key={item.key}>
<Card
hoverable
className={styles.card}
actions={[<a>编辑</a>, <a>配置权限</a>, <a>配置用户</a>]}
>
<Card.Meta
avatar={
<img
alt=""
className={styles.cardAvatar}
src={roleTypeMap[item.roleType]}
/>
}
title={<a>{item.roleName}</a>}
description={
<Ellipsis className={styles.item} lines={3}>
{item.roleDescribe}
</Ellipsis>
}
/>
</Card>
</List.Item>
) : (
<List.Item>
<Button type="dashed" className={styles.newButton}>
<Icon type="plus" /> 新建角色
</Button>
</List.Item>
)
}
/>
</div>
</PageHeaderWrapper>
);
}
}
export default RoleList;
| 29.129032 | 76 | 0.4677 |
bbdd2defccc5e1253ce2bfe4796e36b1b4836766 | 2,969 | js | JavaScript | src/pages/Process.js | KLU01/UniDesignCompassApp | 10cd309fe7f7de35e8f416dcd16389ed0b835e76 | [
"MIT"
] | null | null | null | src/pages/Process.js | KLU01/UniDesignCompassApp | 10cd309fe7f7de35e8f416dcd16389ed0b835e76 | [
"MIT"
] | null | null | null | src/pages/Process.js | KLU01/UniDesignCompassApp | 10cd309fe7f7de35e8f416dcd16389ed0b835e76 | [
"MIT"
] | null | null | null | /**
* @fileoverview The Process page that shows the compass and the anayltics of a process
* @author Abraham Villaroman
* @version 1.0.0
*/
import React from "react";
import { Tab, Nav } from 'react-bootstrap';
import Layout from "../components/layout";
import {getProcess} from "../graphql_utils/utils"
import Graph from "../components/Graph";
import Compass from "../components/Compass"
import "../components/bootstrap.css"
/**
* The Component that handles the display/tabbing between Compass and AnalyticsPage
* holds all the logic in retrieving the process according to proces id stored in the url
*/
class Process extends React.Component {
state = {
date_end: "",
date_start: "",
id: "",
name: "",
phases: [],
updateComponent: ""
}
componentDidMount() {
const id = this.props.location.pathname.replace(process.env.PROCESS_LINK,"").replace("/","")
this.getProcessItems(id);
}
/**
* @param {string} id of the process
* makes an api request to retrieve all of the data of the process from the process ID
* once the data is retrieved, change the state of the component
*/
getProcessItems = (id) => {
getProcess(id)
.then((res) => {
const {date_end, date_start, id, name, phaseids : { items }} = res.data.getProcess
this.setState({
date_end,
date_start,
id,
name,
phases: items,
updateCount: 0
})
})
}
/**
* @param {string} either "Compass" or "Graph", the components to refresh
* change the state of the component to refresh, when the person chooses a tab, the child component will make a new request to the api for the latest data
*/
updateHandler = (updateComponent) => {
this.setState({updateComponent})
}
render() {
const { name,id } = this.state;
return (
<Layout>
<h2 className="text-center">{name}</h2>
<Tab.Container id="left-tabs-example" defaultActiveKey="compass">
<Nav variant="pills" defaultActiveKey="compass" className="process-tabs">
<Nav.Item className="tab">
<Nav.Link eventKey="compass" onClick={()=>{ this.updateHandler("Compass")}}>Compass</Nav.Link>
</Nav.Item>
<Nav.Item className="tab">
<Nav.Link eventKey="analytics" onClick={()=>{ this.updateHandler("Graph")}}>Analytics</Nav.Link>
</Nav.Item>
</Nav>
<Tab.Content>
<Tab.Pane eventKey="compass">
{id && <Compass id={id} updateHandler={this.updateHandler} updateComponent={this.state.updateComponent === "Compass"}/>}
</Tab.Pane>
<Tab.Pane eventKey="analytics">
{id && <Graph processId={id} updateHandler={this.updateHandler} updateComponent={this.state.updateComponent === "Graph"}/>}
</Tab.Pane>
</Tab.Content>
</Tab.Container>
</Layout>
);
}
}
export default Process;
| 32.626374 | 157 | 0.618053 |
bbdef1d43ee8d9ff37b9a743578aa42e55e1538a | 147 | js | JavaScript | fuzzer_output/interesting/sample_1554128588964.js | patil215/v8 | bb941b58df9ee1e4048b69a555a2ce819fb819ed | [
"BSD-3-Clause"
] | null | null | null | fuzzer_output/interesting/sample_1554128588964.js | patil215/v8 | bb941b58df9ee1e4048b69a555a2ce819fb819ed | [
"BSD-3-Clause"
] | null | null | null | fuzzer_output/interesting/sample_1554128588964.js | patil215/v8 | bb941b58df9ee1e4048b69a555a2ce819fb819ed | [
"BSD-3-Clause"
] | null | null | null | function main() {
const v1 = {};
const v4 = Object.seal(v1,1337);
const v6 = Symbol.match;
v1[v6] = 13.37;
}
%NeverOptimizeFunction(main);
main();
| 16.333333 | 32 | 0.659864 |
bbdf2bbf7075ebf82c333f67c42a38a7f4114cb2 | 324 | js | JavaScript | src/components/Map/USAMap/USAState.js | mjhm/covid-projections | 156b654d18dfffa8060dc9855741a99038585cb6 | [
"MIT"
] | null | null | null | src/components/Map/USAMap/USAState.js | mjhm/covid-projections | 156b654d18dfffa8060dc9855741a99038585cb6 | [
"MIT"
] | null | null | null | src/components/Map/USAMap/USAState.js | mjhm/covid-projections | 156b654d18dfffa8060dc9855741a99038585cb6 | [
"MIT"
] | null | null | null | import React from 'react';
const USAState = props => {
return (
<path
d={props.dimensions}
fill={props.fill}
data-name={props.state}
className={`${props.state} state`}
onClick={props.onClickState}
>
<title>{props.stateName}</title>
</path>
);
};
export default USAState;
| 19.058824 | 40 | 0.592593 |
bbdf38b055304086f29bbe43e67ef020f5891633 | 463 | js | JavaScript | tt-gateway/src/gateway.js | got2bhockey/Squad-Community-Ban-List | 6dacc655618753b1567e0f6d3f15c8472786f9e5 | [
"MIT"
] | null | null | null | tt-gateway/src/gateway.js | got2bhockey/Squad-Community-Ban-List | 6dacc655618753b1567e0f6d3f15c8472786f9e5 | [
"MIT"
] | null | null | null | tt-gateway/src/gateway.js | got2bhockey/Squad-Community-Ban-List | 6dacc655618753b1567e0f6d3f15c8472786f9e5 | [
"MIT"
] | null | null | null | import sleep from 'core/utils/sleep';
import BanImporter from './ban-importer.js';
export default class Gateway {
constructor() {
this.banImporter = new BanImporter();
this.sleepPeriod = 60 * 1000;
}
async run() {
while (true) {
if (await this.banImporter.hasWork()) {
await this.banImporter.doWork();
} else {
console.log('No work found. Sleeping...');
await sleep(this.sleepPeriod);
}
}
}
}
| 20.130435 | 50 | 0.602592 |
bbdfed172357ea6fccf052ad9749488406e4daa9 | 1,423 | js | JavaScript | src/index.js | virtools/portfolio | 80bbfbcbcf5ae8559f2abad362635d96a236965f | [
"MIT"
] | null | null | null | src/index.js | virtools/portfolio | 80bbfbcbcf5ae8559f2abad362635d96a236965f | [
"MIT"
] | 6 | 2020-09-13T12:33:08.000Z | 2022-02-27T06:51:54.000Z | src/index.js | virtools/portfolio | 80bbfbcbcf5ae8559f2abad362635d96a236965f | [
"MIT"
] | 1 | 2021-02-23T01:56:06.000Z | 2021-02-23T01:56:06.000Z | import "material-design-icons/iconfont/material-icons.css";
import Vue from "vue";
import "bootstrap/dist/css/bootstrap.css";
import App from "./vue/App";
import Mock from "mockjs";
const app = new Vue({
el: "#app",
render: (h) => h(App),
});
const guid = () => {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
const r = (Math.random() * 16) | 0,
v = c == "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
};
import dataList from "./res/data";
dataList.forEach((el) => (el.id = guid()));
Mock.setup({
timeout: "50-150",
});
Mock.mock("dataList", "get", (data) => {
if (data.body) {
let list = dataList.filter((el) => !(el["visibility"] && el["visibility"] == "hidden"));
const params = JSON.parse(data.body);
if (params.filters) {
for (let key in params.filters) {
if (key === "tags") {
//filters tags的篩選
const condition = params.filters[key].split(/\,/g);
list = list.filter((el) => {
if (!el[key]) {
return true;
}
const tags = el[key].split(/\,/g);
for (let elem of tags) {
return condition.includes(elem);
}
});
} else {
//filters屬性內資料與資料中相符就顯示
list = list.filter((el) => el[key] === params.filters[key]);
}
}
}
return list;
}
return dataList;
});
| 26.849057 | 92 | 0.524245 |
bbe038c27996faefc7d0f6b3824842be4a8c1ac4 | 204,452 | js | JavaScript | nfl/nflcom/1116940/path---gamerecords-448dced8cc1ceaf34f98.js | FFstats/FFstats.github.io | 4be9e0d799f9c77670c42d9478e885b76bb78503 | [
"Apache-2.0",
"0BSD"
] | null | null | null | nfl/nflcom/1116940/path---gamerecords-448dced8cc1ceaf34f98.js | FFstats/FFstats.github.io | 4be9e0d799f9c77670c42d9478e885b76bb78503 | [
"Apache-2.0",
"0BSD"
] | 2 | 2019-09-11T22:50:09.000Z | 2019-12-20T18:53:29.000Z | nfl/nflcom/1116940/path---gamerecords-448dced8cc1ceaf34f98.js | FFstats/FFstats.github.io | 4be9e0d799f9c77670c42d9478e885b76bb78503 | [
"Apache-2.0",
"0BSD"
] | null | null | null | webpackJsonp([0xd698a3179644],{329:function(e,a){e.exports={data:{allDataJson:{edges:[{node:{owners:[{name:"Adrian Gomez",fantasyname:"Freeman",id:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",image:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",status:"active"},{name:"Cesar Trevino",fantasyname:"Park",id:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",image:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",status:"active"},{name:"Daniel Burguete",fantasyname:"Kimikos",id:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",image:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",status:"active"},{name:"Hugo Diaz",fantasyname:"Zoom",id:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",image:"https://i.imgur.com/YPPdBTu.jpg",status:"active"},{name:"Jorge Barcena",fantasyname:"Barcena",id:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",image:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",status:"active"},{name:"Leonard Parker",fantasyname:"to Grandma",id:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",image:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",status:"active"},{name:"Marco Cuellar",fantasyname:"Got Dak ",id:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",image:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",status:"active"},{name:"Mauricio Martinez",fantasyname:"Barbon",id:"{2DB7AD49-8784-4270-8087-B93669074D35}",image:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",status:"active"},{name:"Rogelio Garcia-Moreno",fantasyname:"Tecate",id:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",image:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",status:"active"},{name:"andres cardenas",fantasyname:"This",id:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",image:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",status:"active"},{name:"carlos Garza",fantasyname:"Seria ",id:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",image:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",status:"active"},{name:"carlos valenzuela",fantasyname:"to Remember",id:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",image:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",status:"active"},{name:"Sebi Molinas",fantasyname:"Secret",id:"{D6520B5C-3479-4F0A-A7AB-C394A4BF227A}",image:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-8.svg",status:"inactive"}],years:[{weeks_games:[{games:[{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:97,rank:12}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:142,rank:5}],year:"2015 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:106,rank:11}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:102,rank:9}],year:"2015 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:87,rank:4}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:107,rank:2}],year:"2015 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:143,rank:6}],team_b:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:132,rank:8}],year:"2015 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:143,rank:1}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:111,rank:10}],year:"2015 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:120,rank:7}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:124,rank:3}],year:"2015 SEASON"}]},{games:[{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:113,rank:9}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:170,rank:5}],year:"2015 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:82,rank:4}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:138,rank:11}],year:"2015 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:114,rank:2}],team_b:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:104,rank:12}],year:"2015 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:100,rank:10}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:57,rank:7}],year:"2015 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:109,rank:1}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:138,rank:6}],year:"2015 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:64,rank:8}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:96,rank:3}],year:"2015 SEASON"}]},{games:[{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:116,rank:12}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:146,rank:4}],year:"2015 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:129,rank:9}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:72,rank:2}],year:"2015 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:192,rank:11}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:119,rank:5}],year:"2015 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:98,rank:10}],team_b:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:154,rank:8}],year:"2015 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:148,rank:1}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:154,rank:7}],year:"2015 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:76,rank:3}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:107,rank:6}],year:"2015 SEASON"}]},{games:[{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:77,rank:12}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:92,rank:9}],year:"2015 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:90,rank:2}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:80,rank:11}],year:"2015 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:86,rank:5}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:110,rank:4}],year:"2015 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:72,rank:6}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:119,rank:10}],year:"2015 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:127,rank:7}],team_b:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:133,rank:8}],year:"2015 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:94,rank:3}],team_b:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:99,rank:1}],year:"2015 SEASON"}]},{games:[{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:115,rank:11}],team_b:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:110,rank:12}],year:"2015 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:109,rank:4}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:78,rank:9}],year:"2015 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:146,rank:5}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:87,rank:2}],year:"2015 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:103,rank:10}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:105,rank:3}],year:"2015 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:121,rank:6}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:123,rank:7}],year:"2015 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:111,rank:8}],team_b:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:136,rank:1}],year:"2015 SEASON"}]},{games:[{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:95,rank:12}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:111,rank:10}],year:"2015 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:110,rank:9}],team_b:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:125,rank:8}],year:"2015 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:135,rank:2}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:109,rank:6}],year:"2015 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:108,rank:5}],team_b:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:129,rank:1}],year:"2015 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:144,rank:7}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:98,rank:11}],year:"2015 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:150,rank:3}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:92,rank:4}],year:"2015 SEASON"}]},{games:[{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:136,rank:10}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:117,rank:9}],year:"2015 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:115,rank:6}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:94,rank:11}],year:"2015 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:159,rank:1}],team_b:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:73,rank:12}],year:"2015 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:116,rank:7}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:116,rank:4}],year:"2015 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:152,rank:3}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:76,rank:5}],year:"2015 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:94,rank:8}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:122,rank:2}],year:"2015 SEASON"}]},{games:[{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:131,rank:12}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:83,rank:3}],year:"2015 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:109,rank:9}],team_b:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:146,rank:1}],year:"2015 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:83,rank:11}],team_b:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:86,rank:8}],year:"2015 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:138,rank:4}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:82,rank:10}],year:"2015 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:105,rank:2}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:127,rank:7}],year:"2015 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:147,rank:6}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:152,rank:5}],year:"2015 SEASON"}]},{games:[{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:160,rank:9}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:100,rank:11}],year:"2015 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:132,rank:2}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:145,rank:4}],year:"2015 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:144,rank:5}],team_b:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:100,rank:12}],year:"2015 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:109,rank:10}],team_b:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:139,rank:1}],year:"2015 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:108,rank:3}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:104,rank:7}],year:"2015 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:60,rank:8}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:121,rank:6}],year:"2015 SEASON"}]},{games:[{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:93,rank:12}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:100,rank:2}],year:"2015 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:83,rank:11}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:121,rank:4}],year:"2015 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:92,rank:5}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:172,rank:9}],year:"2015 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:77,rank:6}],team_b:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:124,rank:1}],year:"2015 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:128,rank:7}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:97,rank:10}],year:"2015 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:94,rank:3}],team_b:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:79,rank:8}],year:"2015 SEASON"}]},{games:[{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:57,rank:4}],team_b:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:97,rank:12}],year:"2015 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:101,rank:2}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:99,rank:9}],year:"2015 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:112,rank:5}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:101,rank:11}],year:"2015 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:70,rank:6}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:81,rank:3}],year:"2015 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",
score:106,rank:7}],team_b:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:101,rank:1}],year:"2015 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:130,rank:8}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:77,rank:10}],year:"2015 SEASON"}]},{games:[{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:114,rank:9}],team_b:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:137,rank:12}],year:"2015 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:106,rank:11}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:161,rank:2}],year:"2015 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:127,rank:4}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:107,rank:5}],year:"2015 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:104,rank:10}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:109,rank:6}],year:"2015 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:96,rank:1}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:156,rank:3}],year:"2015 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:95,rank:8}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:93,rank:7}],year:"2015 SEASON"}]},{games:[{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Belicheck",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/CreepShow-ToddDetwiler/CreepShow-01.svg",score:120,rank:12}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:99,rank:11}],year:"2015 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:142,rank:9}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:85,rank:4}],year:"2015 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:81,rank:2}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:141,rank:5}],year:"2015 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:122,rank:1}],team_b:[{name:"6th Street",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.newyorker.com/wp-content/uploads/2013/12/denby-wolf-of-wall-street.jpg",score:120,rank:8}],year:"2015 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:87,rank:7}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:107,rank:6}],year:"2015 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:110,rank:3}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:116,rank:10}],year:"2015 SEASON"}]},{games:[{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:125,rank:4}],team_b:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:111,rank:5}],year:"2015 SEASON"},{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:129,rank:3}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:118,rank:6}],year:"2015 SEASON"}]},{games:[{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:122,rank:1}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:139,rank:4}],year:"2015 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:125,rank:2}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:104,rank:3}],year:"2015 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:111,rank:5}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:114,rank:6}],year:"2015 SEASON"}]},{games:[{week:"Week 16",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"/img/DEF.png",score:125,rank:2}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:114,rank:4}],year:"2015 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Masterdeflator",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://blacksportsonline.com/home/wp-content/uploads/2015/01/Brady-Belichick.jpg",score:141,rank:1}],team_b:[{name:"my Suit and TY",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_14a.svg",score:106,rank:3}],year:"2015 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Love Muscles",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://www.cubbytees.com/ShirtPieces/Russell_Wilson_Dangeruss_Seahawk_Sign--ZM--NVY.jpg",score:81,rank:5}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:101,rank:6}],year:"2015 SEASON"}]}]},{weeks_games:[{games:[{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:97,rank:5}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:127,rank:7}],year:"2016 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:134,rank:2}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:105,rank:4}],year:"2016 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:147,rank:9}],team_b:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:90,rank:10}],year:"2016 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:116,rank:6}],team_b:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:117,rank:1}],year:"2016 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:117,rank:3}],team_b:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:164,rank:11}],year:"2016 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:119,rank:8}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:121,rank:12}],year:"2016 SEASON"}]},{games:[{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:115,rank:4}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:114,rank:7}],year:"2016 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:82,rank:9}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:80,rank:2}],year:"2016 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:79,rank:10}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:145,rank:5}],year:"2016 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:95,rank:11}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:135,rank:8}],year:"2016 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:132,rank:3}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:117,rank:6}],year:"2016 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:116,rank:1}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:102,rank:12}],year:"2016 SEASON"}]},{games:[{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:160,rank:5}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:102,rank:9}],year:"2016 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:101,rank:4}],team_b:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:129,rank:10}],year:"2016 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:123,rank:2}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:125,rank:7}],year:"2016 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:82,rank:11}],team_b:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:95,rank:1}],year:"2016 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:110,rank:3}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:132,rank:8}],year:"2016 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:82,rank:12}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:120,rank:6}],year:"2016 SEASON"}]},{games:[{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:119,rank:5}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:68,rank:4}],year:"2016 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:84,rank:10}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:133,rank:2}],year:"2016 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:106,rank:7}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:120,rank:9}],year:"2016 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:80,rank:6}],team_b:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:122,rank:11}],year:"2016 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:119,rank:8}],team_b:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:135,rank:1}],year:"2016 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:93,rank:12}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:118,rank:3}],year:"2016 SEASON"}]},{games:[{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:154,rank:2}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:131,rank:5}],year:"2016 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:133,rank:9}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:96,rank:4}],year:"2016 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:123,rank:7}],team_b:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:153,rank:10}],year:"2016 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:76,rank:11}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:69,rank:12}],year:"2016 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:123,rank:6}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:119,rank:8}],year:"2016 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:104,rank:1}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:126,rank:3}],year:"2016 SEASON"}]},{games:[{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:77,rank:5}],team_b:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:100,rank:11}],year:"2016 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:113,rank:4}],team_b:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:101,rank:1}],year:"2016 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:126,rank:10}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:109,rank:6}],year:"2016 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:106,rank:7}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:114,rank:3}],year:"2016 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:136,rank:8}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:103,rank:2}],year:"2016 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:95,rank:12}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:119,rank:9}],year:"2016 SEASON"}]},{games:[{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:121,rank:11}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:123,rank:4}],year:"2016 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:104,rank:6}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:99,rank:2}],year:"2016 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:95,rank:3}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:133,rank:5}],year:"2016 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:126,rank:8}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:102,rank:9}],year:"2016 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:103,rank:12}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:107,rank:7}],year:"2016 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:100,rank:1}],team_b:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:80,rank:10}],year:"2016 SEASON"}]},{games:[{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:108,rank:5}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:132,rank:12}],year:"2016 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:117,rank:4}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:131,rank:3}],year:"2016 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:106,rank:2}],team_b:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:119,rank:1}],year:"2016 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:115,rank:9}],team_b:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:102,rank:11}],year:"2016 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:102,rank:10}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:89,rank:8}],year:"2016 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:129,rank:6}],team_b:[{name:"Cuellar",
owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:117,rank:7}],year:"2016 SEASON"}]},{games:[{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:124,rank:4}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:195,rank:2}],year:"2016 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:106,rank:10}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:99,rank:9}],year:"2016 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:98,rank:7}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:102,rank:5}],year:"2016 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:121,rank:11}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:116,rank:3}],year:"2016 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:142,rank:12}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:70,rank:8}],year:"2016 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:98,rank:1}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:132,rank:6}],year:"2016 SEASON"}]},{games:[{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:127,rank:5}],team_b:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:101,rank:10}],year:"2016 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:132,rank:2}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:97,rank:9}],year:"2016 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:131,rank:7}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:135,rank:4}],year:"2016 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:81,rank:6}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:133,rank:3}],year:"2016 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:99,rank:8}],team_b:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:95,rank:11}],year:"2016 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:103,rank:12}],team_b:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:125,rank:1}],year:"2016 SEASON"}]},{games:[{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:80,rank:9}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:81,rank:5}],year:"2016 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:88,rank:10}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:121,rank:4}],year:"2016 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:135,rank:7}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:125,rank:2}],year:"2016 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:117,rank:6}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:102,rank:12}],year:"2016 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:103,rank:8}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:110,rank:3}],year:"2016 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:120,rank:1}],team_b:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:88,rank:11}],year:"2016 SEASON"}]},{games:[{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:145,rank:4}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:116,rank:5}],year:"2016 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:116,rank:2}],team_b:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:95,rank:10}],year:"2016 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:106,rank:9}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:129,rank:7}],year:"2016 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:73,rank:11}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:115,rank:6}],year:"2016 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:147,rank:3}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:82,rank:12}],year:"2016 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:109,rank:1}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:87,rank:8}],year:"2016 SEASON"}]},{games:[{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:80,rank:5}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:166,rank:2}],year:"2016 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:126,rank:4}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:89,rank:9}],year:"2016 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Squad",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:104,rank:10}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:125,rank:7}],year:"2016 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:126,rank:3}],team_b:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:130,rank:1}],year:"2016 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:102,rank:8}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:83,rank:6}],year:"2016 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"http://media.elsiglodetorreon.com.mx/i/2014/09/646447.jpeg",score:107,rank:12}],team_b:[{name:"Charms",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://media-cache-ak0.pinimg.com/236x/dd/d9/20/ddd920bf9c291e150c24a01164133bb8.jpg",score:87,rank:11}],year:"2016 SEASON"}]},{games:[{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:101,rank:4}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:100,rank:5}],year:"2016 SEASON"},{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:80,rank:3}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:121,rank:6}],year:"2016 SEASON"}]},{games:[{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:68,rank:1}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:110,rank:4}],year:"2016 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:116,rank:2}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:62,rank:6}],year:"2016 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:140,rank:3}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:110,rank:5}],year:"2016 SEASON"}]},{games:[{week:"Week 16",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:128,rank:2}],team_b:[{name:"Holiday Inn!",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://s-media-cache-ak0.pinimg.com/originals/2d/3b/8f/2d3b8febe23b8ff3cd2b3da3ba0542ca.jpg",score:170,rank:4}],year:"2016 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Esta",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://shakamauiisfun.files.wordpress.com/2011/05/3109644-shaka-hand-sign-02.jpg",score:78,rank:1}],team_b:[{name:"Tower",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_12.svg",score:100,rank:6}],year:"2016 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:122,rank:3}],team_b:[{name:"Secret",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:67,rank:5}],year:"2016 SEASON"}]}]},{weeks_games:[{games:[{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:85.62,rank:5}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:106.84,rank:12}],year:"2017 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:99.2,rank:4}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:146.98,rank:2}],year:"2017 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:121.34,rank:9}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:95.08,rank:7}],year:"2017 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:90.72,rank:11}],team_b:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:137.54,rank:1}],year:"2017 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:81.84,rank:10}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:101.94,rank:6}],year:"2017 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:127.28,rank:3}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:86.96,rank:8}],year:"2017 SEASON"}]},{games:[{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:114.68,rank:2}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:133.42,rank:12}],year:"2017 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:98.02,rank:9}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:88.58,rank:4}],year:"2017 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:99.9,rank:7}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:125.72,rank:5}],year:"2017 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:114.04,rank:6}],team_b:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:101.78,rank:3}],year:"2017 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:142.28,rank:10}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:77.08,rank:11}],year:"2017 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:109.3,rank:1}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:117,rank:8}],year:"2017 SEASON"}]},{games:[{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:157.92,rank:5}],team_b:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:105.98,rank:9}],year:"2017 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:91.96,rank:2}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:120.82,rank:7}],year:"2017 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:119.3,rank:4}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:104.12,rank:12}],year:"2017 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:137.2,rank:6}],team_b:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:116.78,rank:1}],year:"2017 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:73.16,rank:10}],team_b:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:94.92,rank:3}],year:"2017 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:88.14,rank:8}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:142.52,rank:11}],year:"2017 SEASON"}]},{games:[{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:115.1,rank:5}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:129.96,rank:2}],year:"2017 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:87.72,rank:7}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:120.6,rank:4}],year:"2017 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:131.96,rank:12}],team_b:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:132.88,rank:9}],year:"2017 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:119.68,rank:11}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:84.32,rank:6}],year:"2017 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:72.78,rank:3}],team_b:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:125.54,rank:1}],year:"2017 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:70.08,rank:8}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:98.88,rank:10}],year:"2017 SEASON"}]},{games:[{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:117.1,rank:4}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:110.12,rank:5}],year:"2017 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:104.34,rank:9}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:106.16,rank:2}],year:"2017 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:90.24,rank:12}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:96.02,rank:7}],year:"2017 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:108.62,rank:6}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:113.4,rank:8}],year:"2017 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:114.94,rank:11}],team_b:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:116.72,rank:3}],year:"2017 SEASON"
},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:86.32,rank:1}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:79.34,rank:10}],year:"2017 SEASON"}]},{games:[{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:105.68,rank:5}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:62.14,rank:6}],year:"2017 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:94.2,rank:2}],team_b:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:132.32,rank:1}],year:"2017 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:106.96,rank:7}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:98.34,rank:11}],year:"2017 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:80.42,rank:12}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:95.02,rank:10}],year:"2017 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:150.58,rank:3}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:151.76,rank:4}],year:"2017 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:127.78,rank:8}],team_b:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:125.12,rank:9}],year:"2017 SEASON"}]},{games:[{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:106.04,rank:6}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:128.66,rank:2}],year:"2017 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:103.16,rank:11}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:97.82,rank:4}],year:"2017 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:108.72,rank:10}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:134.56,rank:5}],year:"2017 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:181.36,rank:3}],team_b:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:97.58,rank:9}],year:"2017 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:105.32,rank:8}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:97.7,rank:12}],year:"2017 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:92.02,rank:1}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:87.36,rank:7}],year:"2017 SEASON"}]},{games:[{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:126.98,rank:5}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:103.54,rank:8}],year:"2017 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:141.58,rank:2}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:106.46,rank:10}],year:"2017 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:137.66,rank:4}],team_b:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:85.18,rank:1}],year:"2017 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:91.92,rank:9}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:122.36,rank:6}],year:"2017 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:80.58,rank:7}],team_b:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:130.92,rank:3}],year:"2017 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:103.82,rank:11}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:119.02,rank:12}],year:"2017 SEASON"}]},{games:[{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:136.24,rank:2}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:97.38,rank:4}],year:"2017 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:112.44,rank:7}],team_b:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:95.88,rank:9}],year:"2017 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:80.64,rank:12}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:99.88,rank:5}],year:"2017 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:96.42,rank:6}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:119.82,rank:10}],year:"2017 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:122.8,rank:8}],team_b:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:84.38,rank:3}],year:"2017 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:98.52,rank:1}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:85.36,rank:11}],year:"2017 SEASON"}]},{games:[{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:91.82,rank:5}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:123.7,rank:7}],year:"2017 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:107.46,rank:4}],team_b:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:105.34,rank:9}],year:"2017 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:64.2,rank:12}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:105.26,rank:2}],year:"2017 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:136.04,rank:11}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:133.8,rank:10}],year:"2017 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:129.74,rank:3}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:132.76,rank:6}],year:"2017 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:90.98,rank:8}],team_b:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:105.46,rank:1}],year:"2017 SEASON"}]},{games:[{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:135.38,rank:9}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:116.6,rank:5}],year:"2017 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:87.3,rank:7}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:82.36,rank:2}],year:"2017 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:88.82,rank:12}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:139.96,rank:4}],year:"2017 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:105.4,rank:11}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:132.48,rank:8}],year:"2017 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:154,rank:3}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:137.4,rank:10}],year:"2017 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:126.64,rank:1}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:105.6,rank:6}],year:"2017 SEASON"}]},{games:[{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:132.2,rank:2}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:133.02,rank:5}],year:"2017 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:133.22,rank:4}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:130.86,rank:7}],year:"2017 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:126.58,rank:9}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:118.68,rank:12}],year:"2017 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:117.14,rank:6}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:83.86,rank:11}],year:"2017 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:126.68,rank:10}],team_b:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:93.26,rank:8}],year:"2017 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:92.16,rank:1}],team_b:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:117.48,rank:3}],year:"2017 SEASON"}]},{games:[{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:104.58,rank:5}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:100.42,rank:4}],year:"2017 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:138.08,rank:2}],team_b:[{name:"Flaberson",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:128.64,rank:9}],year:"2017 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:93.7,rank:7}],team_b:[{name:"Bigos",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:78.82,rank:12}],year:"2017 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:87.92,rank:10}],team_b:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:113.36,rank:1}],year:"2017 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:170.82,rank:3}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:120.24,rank:11}],year:"2017 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Cardenas",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/s/ffllm/logos/MickeyAndDonald-Disney/Disney-05.svg",score:110.58,rank:8}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:147.96,rank:6}],year:"2017 SEASON"}]},{games:[{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:144.04,rank:4}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:98.64,rank:5}],year:"2017 SEASON"},{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:88.62,rank:3}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:103.24,rank:6}],year:"2017 SEASON"}]},{games:[{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:156.3,rank:1}],team_b:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:111.64,rank:4}],year:"2017 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:160.74,rank:2}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:77.24,rank:6}],year:"2017 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:120.52,rank:3}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:85.28,rank:5}],year:"2017 SEASON"}]},{games:[{week:"Week 16",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Stormborn ",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"http://www.freestencilgallery.com/wp-content/uploads/2014/05/Game-of-Thrones-House-Targaryen-Sigil-Stencil-Thumb.jpg",score:103.9,rank:1}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"http://g.espncdn.com/s/ffllm/logos/AtTheStadium-RobbHarskamp/At_The_Stadium_08.svg",score:120.56,rank:2}],year:"2017 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Hernandead",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"http://images.performgroup.com/di/library/omnisport/99/7f/hernandez-aaron-122415-usnews-getty-ftr_geggpq509aza1u505vtmjq35q.jpg?t=-723275871&w=960&quality=70",score:98.6,rank:4}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:79.26,rank:6}],year:"2017 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Oblongata",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamMascots-RobbHarskamp/Team_Mascots-07.svg",score:93.76,rank:3}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:99.72,rank:5}],year:"2017 SEASON"}]}]},{weeks_games:[{games:[{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:110.46,rank:4}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:123.74,rank:5}],year:"2018 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:92.34,rank:12}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:128.84,rank:10}],year:"2018 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:134.24,rank:1}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:144.84,rank:6}],year:"2018 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:121.56,rank:9}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:145.96,rank:7}],year:"2018 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:120.72,rank:2}],team_b:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:103.02,rank:8}],year:"2018 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:121.1,rank:11}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:129.18,rank:3}],year:"2018 SEASON"}]},{games:[{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:126.02,rank:10}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:96.48,rank:5}],year:"2018 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:186.94,rank:1}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:104.96,rank:12}],year:"2018 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:119.7,rank:6}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:165.94,
rank:4}],year:"2018 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:122.38,rank:8}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:113.18,rank:11}],year:"2018 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:101.64,rank:2}],team_b:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:140.5,rank:9}],year:"2018 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:123.42,rank:7}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:150.16,rank:3}],year:"2018 SEASON"}]},{games:[{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:148.86,rank:4}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:116.16,rank:1}],year:"2018 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:102.1,rank:10}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:123.7,rank:6}],year:"2018 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:85.64,rank:12}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:106.48,rank:5}],year:"2018 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:105.12,rank:8}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:132.24,rank:7}],year:"2018 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:111.08,rank:2}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:120.1,rank:11}],year:"2018 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:124.94,rank:3}],team_b:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:106.64,rank:9}],year:"2018 SEASON"}]},{games:[{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:165.3,rank:4}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:144.5,rank:10}],year:"2018 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:112.5,rank:6}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:106.98,rank:12}],year:"2018 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:121.38,rank:5}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:144.36,rank:1}],year:"2018 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:97.68,rank:9}],team_b:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:139.76,rank:8}],year:"2018 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:165.86,rank:11}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:117.78,rank:7}],year:"2018 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:123.06,rank:3}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:125.98,rank:2}],year:"2018 SEASON"}]},{games:[{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:100.22,rank:12}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:92.8,rank:4}],year:"2018 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:130.68,rank:1}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:97.68,rank:10}],year:"2018 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:90.72,rank:5}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:123.7,rank:6}],year:"2018 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:94.3,rank:8}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:154.14,rank:3}],year:"2018 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:136.34,rank:9}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:111.7,rank:11}],year:"2018 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:114.84,rank:7}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:152.8,rank:2}],year:"2018 SEASON"}]},{games:[{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:131.4,rank:4}],team_b:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:124.7,rank:8}],year:"2018 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:116.4,rank:10}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:97.22,rank:7}],year:"2018 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:153.68,rank:6}],team_b:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:128.92,rank:9}],year:"2018 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:95.94,rank:5}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:139.78,rank:2}],year:"2018 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:82.32,rank:11}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:93.66,rank:12}],year:"2018 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:123.9,rank:3}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:157.38,rank:1}],year:"2018 SEASON"}]},{games:[{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:101.4,rank:8}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:99.66,rank:10}],year:"2018 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:144.76,rank:9}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:103.62,rank:12}],year:"2018 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:177.86,rank:2}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:131.16,rank:4}],year:"2018 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:67.44,rank:11}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:122.52,rank:1}],year:"2018 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:132.58,rank:3}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:153.18,rank:5}],year:"2018 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:104.8,rank:7}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:106.52,rank:6}],year:"2018 SEASON"}]},{games:[{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:90.5,rank:4}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:127.36,rank:3}],year:"2018 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:100.66,rank:10}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:147.28,rank:2}],year:"2018 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:102.82,rank:12}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:149.2,rank:7}],year:"2018 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:136.12,rank:1}],team_b:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:118.94,rank:8}],year:"2018 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:64.2,rank:6}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:167.06,rank:11}],year:"2018 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:162.16,rank:9}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:135.6,rank:5}],year:"2018 SEASON"}]},{games:[{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:113.78,rank:10}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:57.14,rank:12}],year:"2018 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:119.52,rank:6}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:136,rank:1}],year:"2018 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:161.54,rank:5}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:125.2,rank:4}],year:"2018 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:119.32,rank:8}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:136.58,rank:2}],year:"2018 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:125.26,rank:3}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:84.1,rank:11}],year:"2018 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:157.34,rank:7}],team_b:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:126.36,rank:9}],year:"2018 SEASON"}]},{games:[{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:125.82,rank:4}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:122.1,rank:6}],year:"2018 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:124.12,rank:12}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:174.76,rank:1}],year:"2018 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:117.42,rank:5}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:95.32,rank:10}],year:"2018 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:118.96,rank:9}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:126.88,rank:2}],year:"2018 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:112.82,rank:11}],team_b:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:127.54,rank:8}],year:"2018 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:95.26,rank:3}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:118.1,rank:7}],year:"2018 SEASON"}]},{games:[{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:200.32,rank:1}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:148.04,rank:4}],year:"2018 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:74.02,rank:6}],team_b:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:116.38,rank:10}],year:"2018 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:129.02,rank:5}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:88.4,rank:12}],year:"2018 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:108.78,rank:9}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:132.3,rank:3}],year:"2018 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:89.16,rank:11}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:123.6,rank:2}],year:"2018 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:114.52,rank:7}],team_b:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:128.62,rank:8}],year:"2018 SEASON"}]},{games:[{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:86.44,rank:10}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:165.28,rank:4}],year:"2018 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:78.5,rank:12}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:122.8,rank:6}],year:"2018 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:197.68,rank:1}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:89.44,rank:5}],year:"2018 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:154.68,rank:8}],team_b:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:124.72,rank:9}],year:"2018 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:122.56,rank:2}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:140.92,rank:3}],year:"2018 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:108.14,rank:7}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:106.02,rank:11}],year:"2018 SEASON"}]},{games:[{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:145.16,rank:4}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"http://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:85.56,rank:12}],year:"2018 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Cuellar",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"http://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:88,rank:10}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:147.5,rank:1}],year:"2018 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:66.46,rank:6}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:73.38,rank:5}],year:"2018 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:132.06,rank:2}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"http://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:87.48,rank:7}],year:"2018 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"http://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:69.02,rank:11}],team_b:[{name:"EM",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/BoS5SJy.jpg",score:116.42,rank:9}],year:"2018 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:153,rank:3}],team_b:[{name:"Knee Weak",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",
score:128.46,rank:8}],year:"2018 SEASON"}]},{games:[{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:109.2,rank:4}],team_b:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:66.2,rank:5}],year:"2018 SEASON"},{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:120.08,rank:3}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:91.78,rank:6}],year:"2018 SEASON"}]},{games:[{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:87.02,rank:1}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:97.22,rank:4}],year:"2018 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:72.68,rank:2}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:129.34,rank:3}],year:"2018 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:127.96,rank:5}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:115.36,rank:6}],year:"2018 SEASON"}]},{games:[{week:"Week 16",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzUSdTY3H4bEICX1PUuL3V2MvdhjHqGInERaERjVwBCZ7YOH_qtg",score:73.96,rank:3}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:152.96,rank:4}],year:"2018 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"http://g.espncdn.com/s/ffllm/logos/ESPN_Avengers_Pak/9-ESPN_AVG_Groot-01.svg",score:131.72,rank:1}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"http://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:123.94,rank:2}],year:"2018 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Action",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"http://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:126.64,rank:5}],team_b:[{name:"Dead",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"http://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:145.96,rank:6}],year:"2018 SEASON"}]}]},{weeks_games:[{games:[{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:154,rank:1}],team_b:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:112.2,rank:9}],year:"2019 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:115.12,rank:6}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:121.14,rank:12}],year:"2019 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:117.9,rank:8}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:152.82,rank:11}],year:"2019 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:118.3,rank:4}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:154.74,rank:5}],year:"2019 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:149.3,rank:10}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:80.36,rank:3}],year:"2019 SEASON"},{week:"Week 1",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:137.26,rank:2}],team_b:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:58.92,rank:7}],year:"2019 SEASON"}]},{games:[{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:98.42,rank:9}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:116,rank:12}],year:"2019 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:106.02,rank:11}],team_b:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:106.26,rank:1}],year:"2019 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:117.66,rank:5}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:92.86,rank:6}],year:"2019 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:158.98,rank:2}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:89.5,rank:8}],year:"2019 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:133.66,rank:7}],team_b:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:150.94,rank:4}],year:"2019 SEASON"},{week:"Week 2",playoffTierType:"NONE",team_a:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:110.52,rank:3}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:123.5,rank:10}],year:"2019 SEASON"}]},{games:[{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:138.46,rank:11}],team_b:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:110.04,rank:9}],year:"2019 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:108.32,rank:12}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:151.04,rank:5}],year:"2019 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:163.04,rank:1}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:112.38,rank:2}],year:"2019 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:124.24,rank:6}],team_b:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:104,rank:7}],year:"2019 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:125,rank:8}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:150.12,rank:3}],year:"2019 SEASON"},{week:"Week 3",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:97.36,rank:4}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:178.84,rank:10}],year:"2019 SEASON"}]},{games:[{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:170.14,rank:9}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:115.78,rank:5}],year:"2019 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:103.38,rank:2}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:89.6,rank:11}],year:"2019 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:142.08,rank:7}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:90.6,rank:12}],year:"2019 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:107.48,rank:3}],team_b:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:71.62,rank:1}],year:"2019 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:89.7,rank:10}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:109.1,rank:6}],year:"2019 SEASON"},{week:"Week 4",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:108.8,rank:4}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:171.6,rank:8}],year:"2019 SEASON"}]},{games:[{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:112.44,rank:2}],team_b:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:163.54,rank:9}],year:"2019 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:123.72,rank:5}],team_b:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:178.42,rank:7}],year:"2019 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:75.64,rank:11}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:103.42,rank:3}],year:"2019 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:97.04,rank:12}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:170.82,rank:10}],year:"2019 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:136.32,rank:1}],team_b:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:155.96,rank:4}],year:"2019 SEASON"},{week:"Week 5",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:138.24,rank:6}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:153.36,rank:8}],year:"2019 SEASON"}]},{games:[{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:86.9,rank:9}],team_b:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:180.02,rank:7}],year:"2019 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:78.92,rank:3}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:122.64,rank:2}],year:"2019 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:122.7,rank:10}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:149.76,rank:5}],year:"2019 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:155.04,rank:4}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:138.42,rank:11}],year:"2019 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:110,rank:8}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:77.4,rank:12}],year:"2019 SEASON"},{week:"Week 6",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:103.8,rank:6}],team_b:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:104.02,rank:1}],year:"2019 SEASON"}]},{games:[{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:86.72,rank:3}],team_b:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:120.04,rank:9}],year:"2019 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:164.28,rank:7}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:95.64,rank:10}],year:"2019 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:142.42,rank:2}],team_b:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:90.74,rank:4}],year:"2019 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:99.76,rank:5}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:60.52,rank:8}],year:"2019 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:94.64,rank:11}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:113.72,rank:6}],year:"2019 SEASON"},{week:"Week 7",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:95.86,rank:12}],team_b:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:140.96,rank:1}],year:"2019 SEASON"}]},{games:[{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:160.28,rank:9}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:104.98,rank:10}],year:"2019 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:157.88,rank:4}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:101.08,rank:3}],year:"2019 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:144.44,rank:8}],team_b:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:156.3,rank:7}],year:"2019 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:135.56,rank:6}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:112.04,rank:2}],year:"2019 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:156.98,rank:1}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:116.46,rank:5}],year:"2019 SEASON"},{week:"Week 8",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:83.84,rank:12}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:121.06,rank:11}],year:"2019 SEASON"}]},{games:[{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:84.86,rank:4}],team_b:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:133.34,rank:9}],year:"2019 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:123.22,rank:10}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:125.2,rank:8}],year:"2019 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:137.1,rank:3}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:106.44,rank:6}],year:"2019 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:91.04,rank:7}],team_b:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:130.08,rank:1}],year:"2019 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:86.72,rank:2}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:114.46,rank:12}],year:"2019 SEASON"},{week:"Week 9",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:160.5,rank:5}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:101.56,rank:11}],year:"2019 SEASON"}]},{games:[{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:81.5,rank:9}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:156.72,rank:8}],year:"2019 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:105.26,rank:6}],team_b:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:79.14,rank:4}],year:"2019 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:147.08,rank:1}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:111.38,rank:10}],year:"2019 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:106.48,rank:12}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:123.42,rank:3}],year:"2019 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:107.94,rank:11}],team_b:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:139.02,rank:7}],year:"2019 SEASON"},{week:"Week 10",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:104.58,rank:5}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:133.12,rank:2}],year:"2019 SEASON"}]},{games:[{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",
logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:98.42,rank:6}],team_b:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:117.68,rank:9}],year:"2019 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:71.06,rank:8}],team_b:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:157.36,rank:1}],year:"2019 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:133.16,rank:4}],team_b:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:106.22,rank:12}],year:"2019 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:111.32,rank:10}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:78.28,rank:11}],year:"2019 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:123.32,rank:3}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:98.04,rank:5}],year:"2019 SEASON"},{week:"Week 11",playoffTierType:"NONE",team_a:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:108.44,rank:7}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:134.08,rank:2}],year:"2019 SEASON"}]},{games:[{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:104.58,rank:9}],team_b:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:159.88,rank:1}],year:"2019 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:93.28,rank:12}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:122.9,rank:6}],year:"2019 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:83.92,rank:11}],team_b:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:155.62,rank:8}],year:"2019 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:76.34,rank:5}],team_b:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:156.28,rank:4}],year:"2019 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:106.56,rank:2}],team_b:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:66.9,rank:10}],year:"2019 SEASON"},{week:"Week 12",playoffTierType:"NONE",team_a:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:74.56,rank:7}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:104.66,rank:3}],year:"2019 SEASON"}]},{games:[{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:125.46,rank:6}],team_b:[{name:"This",owner:"andres cardenas",ownerId:"{A14B2F08-4995-4CD7-99F8-BF51329E2379}",logo:"https://g.espncdn.com/lm-static/logo-packs/ffl/ShieldsOfGlory-LDopa/ShieldsOfGlory-09.svg",score:91,rank:9}],year:"2019 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:116.7,rank:1}],team_b:[{name:"Barbon",owner:"Mauricio Martinez",ownerId:"{2DB7AD49-8784-4270-8087-B93669074D35}",logo:"https://www.diarioelindependiente.mx/noticias/2018/01/original/15151409732bbac.jpg",score:116.34,rank:11}],year:"2019 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Barcena",owner:"Jorge Barcena",ownerId:"{00452F99-BB21-4AFA-852F-99BB214AFA9B}",logo:"https://g.espncdn.com/s/ffllm/logos/TeamKinny-MartinLaksman/TeamKinny-03.svg",score:95.6,rank:12}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:138.34,rank:5}],year:"2019 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Seria ",owner:"carlos Garza",ownerId:"{31ADFDC3-B4CE-4DDD-9636-0D76A4B5C04C}",logo:"https://i.ytimg.com/vi/OPxQbgnpX4w/maxresdefault.jpg",score:95.42,rank:8}],team_b:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:123.92,rank:2}],year:"2019 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:139.5,rank:4}],team_b:[{name:"Zoom",owner:"Hugo Diaz",ownerId:"{151F97B5-F8EA-48F6-9F97-B5F8EA88F61A}",logo:"https://i.imgur.com/YPPdBTu.jpg",score:92.42,rank:7}],year:"2019 SEASON"},{week:"Week 13",playoffTierType:"NONE",team_a:[{name:"to Remember",owner:"carlos valenzuela",ownerId:"{80E839B1-3994-4F9D-A9AF-B183CAB74763}",logo:"https://g.espncdn.com/s/ffllm/logos/BlitznBears-MartinLaksman/bears-01.svg",score:108.9,rank:10}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:129.64,rank:3}],year:"2019 SEASON"}]},{games:[{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:150,rank:4}],team_b:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:54.82,rank:5}],year:"2019 SEASON"},{week:"Week 14",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:90.48,rank:3}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:88.36,rank:6}],year:"2019 SEASON"}]},{games:[{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:137.28,rank:1}],team_b:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:141.14,rank:4}],year:"2019 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:160.78,rank:2}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:120.66,rank:3}],year:"2019 SEASON"},{week:"Week 15",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:64,rank:5}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:108.66,rank:6}],year:"2019 SEASON"}]},{games:[{week:"Week 16",playoffTierType:"WINNERS_BRACKET",team_a:[{name:"Park",owner:"Cesar Trevino",ownerId:"{CF50FE46-F3C1-47B7-AA3F-DF09C659178B}",logo:"https://g.espncdn.com/s/ffllm/logos/SmackTalk-LeoEspinosa/any-sunday-05.svg",score:139.32,rank:2}],team_b:[{name:"Freeman",owner:"Adrian Gomez",ownerId:"{051E4BD3-5C9C-4168-9B77-565953E3AE8F}",logo:"https://img.aws.livestrongcdn.com/ls-article-image-673/ds-photo/getty/article/94/219/161735631.jpg",score:158.36,rank:4}],year:"2019 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Got Dak ",owner:"Marco Cuellar",ownerId:"{D9D94E2B-AFC7-4090-8F0D-BFE334886854}",logo:"https://g.espncdn.com/s/ffllm/logos/MatthewBerry-ChipWass/MatthewBerry-01.svg",score:105.7,rank:1}],team_b:[{name:"to Grandma",owner:"Leonard Parker",ownerId:"{14CFA305-5FF4-48A2-8FA3-055FF4B8A20D}",logo:"https://g.espncdn.com/s/ffllm/logos/StarWarsTheForceAwakens-ToddDetwiler/ESPN_Star_Wars_05a.svg",score:114.76,rank:3}],year:"2019 SEASON"},{week:"Week 16",playoffTierType:"WINNERS_CONSOLATION_LADDER",team_a:[{name:"Tecate",owner:"Rogelio Garcia-Moreno",ownerId:"{A091FDCB-A5BA-450C-91FD-CBA5BAE50CA1}",logo:"https://g.espncdn.com/s/ffllm/logos/GridironWarriors-MartinLaksman/warriors-15.svg",score:59.36,rank:5}],team_b:[{name:"Kimikos",owner:"Daniel Burguete",ownerId:"{7D25D5B6-D8F9-4884-A5D5-B6D8F9F8842B}",logo:"https://g.espncdn.com/lm-static/logo-packs/core/StadiumFoods-ESPN/stadium-foods_tacos.svg",score:94.72,rank:6}],year:"2019 SEASON"}]}]}]}}]}},pathContext:{}}}});
//# sourceMappingURL=path---gamerecords-448dced8cc1ceaf34f98.js.map | 25,556.5 | 32,040 | 0.768581 |
bbe0c0bc86cddbf315f15e853a09a6e0cfc3dc33 | 2,923 | js | JavaScript | app/screens/Auth/Login.js | lukakerr/hackd | d1c9bb84492fe7c65a3fe2686cb7ff9bfeac9837 | [
"MIT"
] | 81 | 2018-02-03T02:20:09.000Z | 2021-12-08T10:42:13.000Z | app/screens/Auth/Login.js | lukakerr/hackd | d1c9bb84492fe7c65a3fe2686cb7ff9bfeac9837 | [
"MIT"
] | 2 | 2018-02-23T18:14:10.000Z | 2018-02-24T16:48:52.000Z | app/screens/Auth/Login.js | lukakerr/hackd | d1c9bb84492fe7c65a3fe2686cb7ff9bfeac9837 | [
"MIT"
] | 11 | 2018-02-24T02:47:46.000Z | 2022-01-25T20:32:02.000Z | import React from 'react';
import { View, StyleSheet } from 'react-native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import commonStyles from '../../styles/common';
import { ActionCreators } from '../../actions';
import Form from '../../components/Form';
import { login } from '../../helpers/api';
import CustomText from '../../components/CustomText';
class Login extends React.Component {
static propTypes = {
login: PropTypes.func.isRequired,
navigator: PropTypes.object.isRequired,
settings: PropTypes.shape({
appColor: PropTypes.string
}).isRequired,
};
constructor(props) {
super(props);
this.state = {
username: '',
password: '',
loading: false,
error: null,
};
}
handleUsername = text => {
this.setState({ username: text, error: null });
};
handlePassword = text => {
this.setState({ password: text, error: null });
};
logIn = () => {
this.setState({ loading: true, error: null });
const { username, password } = this.state;
login(username, password).then(loggedIn => {
if (loggedIn) {
const user = {
username,
password,
loggedIn: true,
};
this.setState({ loading: false });
this.props.login(user);
} else {
const user = {
loggedIn: false,
};
this.setState({
loading: false,
error: 'Invalid username or password. Please try again.',
});
this.props.login(user);
}
});
};
goToFeed = () => {
this.props.navigator.switchToTab({
tabIndex: 0,
});
};
render() {
const loginInputs = [
{
placeholder: 'Username',
action: this.handleUsername
},
{
placeholder: 'Password',
action: this.handlePassword,
secureTextEntry: true,
},
];
const { settings } = this.props;
const { error, loading } = this.state;
return (
<View style={styles.container}>
<CustomText style={[styles.header, commonStyles.textCenter]}>Login to Hacker News</CustomText>
<Form
inputs={loginInputs}
submit={this.logIn}
submitText="Login"
back={this.goToFeed}
backText="feed"
error={error}
loading={loading}
color={settings.appColor}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
paddingTop: 50,
backgroundColor: '#FFF',
flex: 1,
},
header: {
fontSize: 28,
margin: 30,
fontWeight: 'bold',
},
});
const mapDispatchToProps = dispatch => bindActionCreators(ActionCreators, dispatch);
const mapStateToProps = state => ({
user: state.user,
settings: state.settings,
});
export default connect(mapStateToProps, mapDispatchToProps)(Login);
| 22.835938 | 102 | 0.578515 |
bbe0e17f1d9e2462885455a6aab870a4094461c8 | 665 | js | JavaScript | unified-tasklist-react-mycamundamicroservice/webpack/stats-to-java.js | aravindhrs/unified-tasklist-react-showcase | 8010e2f9069f24d53d69c2c6d6ce4036f998f753 | [
"Apache-2.0"
] | 1 | 2021-08-04T06:09:12.000Z | 2021-08-04T06:09:12.000Z | unified-tasklist-react-mycamundamicroservice/webpack/stats-to-java.js | aravindhrs/unified-tasklist-react-showcase | 8010e2f9069f24d53d69c2c6d6ce4036f998f753 | [
"Apache-2.0"
] | null | null | null | unified-tasklist-react-mycamundamicroservice/webpack/stats-to-java.js | aravindhrs/unified-tasklist-react-showcase | 8010e2f9069f24d53d69c2c6d6ce4036f998f753 | [
"Apache-2.0"
] | null | null | null |
module.exports = {
transform
};
function entrypointToModules(entrypoint) {
var result = new Array();
entrypoint.assets.forEach((asset) => {
result.push(`${asset}`);
});
return result;
}
function statsAsObject(stats, webpackStats, tenant) {
Object.keys(stats.entrypoints).forEach((entrypoint) => {
var item = {
tenant: `${tenant}`,
moduleName: `${entrypoint}`,
modules: entrypointToModules(stats.entrypoints[entrypoint])
};
webpackStats.push(item);
});
}
function transform(stats, tenant, _opts) {
var result = {
webpackStats: []
};
statsAsObject(stats, result.webpackStats, tenant);
return JSON.stringify(result);
} | 17.972973 | 63 | 0.676692 |
bbe124d0d0444b2a8239adc1b7892f28ec06b958 | 3,230 | js | JavaScript | web/js/sctiptAdmin.js | Zhasulan-123/vue-yii2 | 684ab08739b6dadaa4417b8e903803b94347f7d8 | [
"BSD-3-Clause"
] | null | null | null | web/js/sctiptAdmin.js | Zhasulan-123/vue-yii2 | 684ab08739b6dadaa4417b8e903803b94347f7d8 | [
"BSD-3-Clause"
] | null | null | null | web/js/sctiptAdmin.js | Zhasulan-123/vue-yii2 | 684ab08739b6dadaa4417b8e903803b94347f7d8 | [
"BSD-3-Clause"
] | null | null | null | new Vue({
el: '#app',
data: {
product: [],
search: '',
newProduct: {
_csrf: yii.getCsrfToken(),
id: '',
name: '',
price: '',
desc: '',
is_published: '',
},
},
mounted() {
this.getAll();
},
methods: {
modalProduct() {
$('#modal-lg').modal('toggle');
},
getAll() {
axios.get('/admin/tasks/select').then(response => this.product = response.data)
.catch((error) => console.log(error.response.data));
},
addProduct() {
self = this;
let productForm = this.newProduct;
const Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 3000
});
axios.post('/admin/tasks/create', productForm).then(function (response) {
if (response.data.success) {
$('#modal-lg').modal('toggle');
self.getAll();
Toast.fire({
type: 'success',
title: 'Ваше данный было добавлено в базу данных !!!'
});
} else {
Toast.fire({
type: 'error',
title: 'Ошибка запольнете поля обезательно поле обязательное для заполнения !!!'
});
}
});
},
updateProduct(id) {
let updateProductForm = this.newProduct;
const Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 3000
});
axios.post('/admin/tasks/update?id=' + id, updateProductForm).then(function (response) {
if (response.data.success) {
$('#modal-lg-update').modal('toggle');
self.getAll();
Toast.fire({
type: 'success',
title: 'Ваше данный было обновлено в базе данных !!!'
});
} else {
Toast.fire({
type: 'error',
title: 'Ошибка запольнете поля обезательно поле обязательное для заполнения !!!'
});
}
});
},
editForm(id) {
self = this;
axios.get('/admin/tasks/edit?id=' + id).then(function (response) {
$('#modal-lg-update').modal('toggle');
self.newProduct.id = response.data.id;
self.newProduct.name = response.data.name;
self.newProduct.price = response.data.price;
self.newProduct.desc = response.data.desc;
self.newProduct.is_published = response.data.is_published;
});
},
},
computed: {
searcheForm() {
return this.product.filter(elem => {
return elem.name.includes(this.search);
});
},
},
}); | 32.3 | 104 | 0.417957 |
bbe16476d5ead03a9ca1af8fb38bbc8394e55084 | 4,592 | js | JavaScript | reducers/index.js | moritzmhmk/sane-webui | aaa306df0220c020425a3c38378004bfa6da8fe9 | [
"MIT"
] | 1 | 2019-05-26T10:14:22.000Z | 2019-05-26T10:14:22.000Z | reducers/index.js | moritzmhmk/sane-webui | aaa306df0220c020425a3c38378004bfa6da8fe9 | [
"MIT"
] | 1 | 2018-07-10T20:48:17.000Z | 2018-07-11T15:20:45.000Z | reducers/index.js | moritzmhmk/sane-webui | aaa306df0220c020425a3c38378004bfa6da8fe9 | [
"MIT"
] | null | null | null | import { combineReducers } from 'redux'
import {RECEIVE_DEVICES, OPEN_DEVICE} from '../actions/devices'
import {RECEIVE_OPTIONS, REQUEST_OPTION_VALUE, RECEIVE_OPTION_VALUE} from '../actions/options'
import {REQUEST_SCAN, RECEIVE_SCAN, ADD_SCAN_REGION, REMOVE_SCAN_REGION, UPDATE_SCAN_REGION, SELECT_SCAN_REGION} from '../actions/scans'
function devices (state = [], action) {
switch (action.type) {
case RECEIVE_DEVICES:
return action.payload
default:
return state
}
}
function options (state = {}, action) {
switch (action.type) {
case RECEIVE_OPTIONS:
let newState = {}
action.payload.forEach(function (option, id) {
option.id = id
option.device = action.meta
newState[option.id] = option
})
return newState
case REQUEST_OPTION_VALUE:
return {...state, [action.meta.option]: {...state[action.meta.option], valuePending: true}}
case RECEIVE_OPTION_VALUE:
return {...state, [action.meta.option]: {...state[action.meta.option], value: action.payload, valuePending: false}}
default:
return state
}
}
function optionsByName (state = {}, action) {
switch (action.type) {
case RECEIVE_OPTIONS:
let newState = {}
action.payload.forEach(function (option, id) { newState[option.name] = option.id })
return newState
default:
return state
}
}
function optionsGrouped (state = [], action) {
switch (action.type) {
case RECEIVE_OPTIONS:
let group = { members: [], cap: [], title: '' }
let groups = []
action.payload.forEach((option) => {
if (option.type === 'GROUP') {
group = {
title: option.title,
description: option.description,
cap: option.cap,
id: option.id,
members: []
}
groups.push(group)
} else {
group.members.push(option.id)
}
})
return groups
default:
return state
}
}
function scans (state = {}, action) {
switch (action.type) {
case REQUEST_SCAN:
return {
...state,
[action.meta.id]: {pending: true}
}
case RECEIVE_SCAN:
return {
...state,
[action.meta.id]: {
...state[action.meta.id],
pending: false,
image: action.payload,
regions: []
}
}
case ADD_SCAN_REGION:
return {
...state,
[action.meta.scan]: {
...state[action.meta.scan],
regions: [
...state[action.meta.scan].regions,
{
geometry: {position: {x: 0, y: 0}, dimension: {x: 100, y: 100}, rotation: 0, ...action.payload.geometry},
image: action.payload.image
}
],
selectedRegion: state[action.meta.scan].regions.length
}
}
case REMOVE_SCAN_REGION:
return {
...state,
[action.meta.scan]: {
...state[action.meta.scan],
regions: [
...state[action.meta.scan].regions.slice(0, action.meta.region),
...state[action.meta.scan].regions.slice(action.meta.region + 1)
]
}
}
case UPDATE_SCAN_REGION:
return {
...state,
[action.meta.scan]: {
...state[action.meta.scan],
regions: [
...state[action.meta.scan].regions.slice(0, action.meta.region),
{
geometry: {...state[action.meta.scan].regions[action.meta.region].geometry, ...action.payload.geometry},
image: action.payload.image || state[action.meta.scan].regions[action.meta.region].image
},
...state[action.meta.scan].regions.slice(action.meta.region + 1)
]
}
}
case SELECT_SCAN_REGION:
return action.meta.scan ? {
...state,
[action.meta.scan]: {
...state[action.meta.scan],
selectedRegion: action.meta.region
}
} : state
default:
return state
}
}
function selectedScan (state = null, action) {
switch (action.type) {
case REQUEST_SCAN:
return action.meta.id
case SELECT_SCAN_REGION:
return action.meta.scan
default:
return state
}
}
function selectedDevice (state = null, action) {
switch (action.type) {
case OPEN_DEVICE:
return action.meta
default:
return state
}
}
const rootReducer = combineReducers({
devices,
selectedDevice,
options,
optionsByName,
optionsGrouped,
scans,
selectedScan
})
export default rootReducer
| 26.697674 | 136 | 0.574042 |
bbe1f31de337f4b8001b14008338ff0c1afc3479 | 11,796 | js | JavaScript | cant/jmejiadev-canti-d101c2098194/public/jqx/scripts/jslocalization.js | Lordcreos/Lamadas-cant | dea17c91d926e03dc276f3e8506af4a8253efe69 | [
"MIT"
] | null | null | null | cant/jmejiadev-canti-d101c2098194/public/jqx/scripts/jslocalization.js | Lordcreos/Lamadas-cant | dea17c91d926e03dc276f3e8506af4a8253efe69 | [
"MIT"
] | null | null | null | cant/jmejiadev-canti-d101c2098194/public/jqx/scripts/jslocalization.js | Lordcreos/Lamadas-cant | dea17c91d926e03dc276f3e8506af4a8253efe69 | [
"MIT"
] | null | null | null | var getLocalization = function (culture) {
var localization = null;
switch (culture) {
case 'de':
localization =
{
// separator of parts of a date (e.g. '/' in 11/05/1955)
'/': '/',
// separator of parts of a time (e.g. ':' in 05:44 PM)
':': ':',
// the first day of the week (0 = Sunday, 1 = Monday, etc)
firstDay: 1,
days: {
// full day names
names: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
// abbreviated day names
namesAbbr: ['Sonn', 'Mon', 'Dien', 'Mitt', 'Donn', 'Fre', 'Sams'],
// shortest day names
namesShort: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa']
},
months: {
// full month names (13 months for lunar calendards -- 13th month should be '' if not lunar)
names: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember', ''],
// abbreviated month names
namesAbbr: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dez', '']
},
// AM and PM designators in one of these forms:
// The usual view, and the upper and lower case versions
// [standard,lowercase,uppercase]
// The culture does not use AM or PM (likely all standard date formats use 24 hour time)
// null
AM: ['AM', 'am', 'AM'],
PM: ['PM', 'pm', 'PM'],
eras: [
// eras in reverse chronological order.
// name: the name of the era in this culture (e.g. A.D., C.E.)
// start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era.
// offset: offset in years from gregorian calendar
{ 'name': 'A.D.', 'start': null, 'offset': 0 }
],
twoDigitYearMax: 2029,
patterns:
{
d: 'dd.MM.yyyy',
D: 'dddd, d. MMMM yyyy',
t: 'HH:mm',
T: 'HH:mm:ss',
f: 'dddd, d. MMMM yyyy HH:mm',
F: 'dddd, d. MMMM yyyy HH:mm:ss',
M: 'dd MMMM',
Y: 'MMMM yyyy'
},
percentsymbol: '%',
currencysymbol: '€',
currencysymbolposition: 'after',
decimalseparator: '.',
thousandsseparator: ',',
pagergotopagestring: 'Gehe zu',
pagershowrowsstring: 'Zeige Zeile:',
pagerrangestring: ' von ',
pagerpreviousbuttonstring: 'nächster',
pagernextbuttonstring: 'voriger',
pagerfirstbuttonstring: 'first',
pagerlastbuttonstring: 'last',
groupsheaderstring: 'Ziehen Sie eine Kolumne und legen Sie es hier zu Gruppe nach dieser Kolumne',
sortascendingstring: 'Sortiere aufsteigend',
sortdescendingstring: 'Sortiere absteigend',
sortremovestring: 'Entferne Sortierung',
groupbystring: 'Group By this column',
groupremovestring: 'Remove from groups',
filterclearstring: 'Löschen',
filterstring: 'Filter',
filtershowrowstring: 'Zeige Zeilen, in denen:',
filterorconditionstring: 'Oder',
filterandconditionstring: 'Und',
filterselectallstring: '(Alle auswählen)',
filterchoosestring: 'Bitte wählen Sie:',
filterstringcomparisonoperators: ['leer', 'nicht leer', 'enthält', 'enthält(gu)',
'nicht enthalten', 'nicht enthalten(gu)', 'beginnt mit', 'beginnt mit(gu)',
'endet mit', 'endet mit(gu)', 'equal', 'gleich(gu)', 'null', 'nicht null'],
filternumericcomparisonoperators: ['gleich', 'nicht gleich', 'weniger als', 'kleiner oder gleich', 'größer als', 'größer oder gleich', 'null', 'nicht null'],
filterdatecomparisonoperators: ['gleich', 'nicht gleich', 'weniger als', 'kleiner oder gleich', 'größer als', 'größer oder gleich', 'null', 'nicht null'],
filterbooleancomparisonoperators: ['gleich', 'nicht gleich'],
validationstring: 'Der eingegebene Wert ist ungültig',
emptydatastring: 'Nokeine Daten angezeigt',
filterselectstring: 'Wählen Sie Filter',
loadtext: 'Loading...',
clearstring: 'Löschen',
todaystring: 'Heute'
}
break;
case 'en':
default:
localization =
{
// separator of parts of a date (e.g. '/' in 11/05/1955)
'/': '/',
// separator of parts of a time (e.g. ':' in 05:44 PM)
':': ':',
// the first day of the week (0 = Sunday, 1 = Monday, etc)
firstDay: 0,
days: {
// full day names
names: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
// abbreviated day names
namesAbbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
// shortest day names
namesShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
},
months: {
// full month names (13 months for lunar calendards -- 13th month should be '' if not lunar)
names: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', ''],
// abbreviated month names
namesAbbr: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', '']
},
// AM and PM designators in one of these forms:
// The usual view, and the upper and lower case versions
// [standard,lowercase,uppercase]
// The culture does not use AM or PM (likely all standard date formats use 24 hour time)
// null
AM: ['AM', 'am', 'AM'],
PM: ['PM', 'pm', 'PM'],
eras: [
// eras in reverse chronological order.
// name: the name of the era in this culture (e.g. A.D., C.E.)
// start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era.
// offset: offset in years from gregorian calendar
{ 'name': 'A.D.', 'start': null, 'offset': 0 }
],
twoDigitYearMax: 2029,
patterns: {
// short date pattern
d: 'M/d/yyyy',
// long date pattern
D: 'dddd, MMMM dd, yyyy',
// short time pattern
t: 'h:mm tt',
// long time pattern
T: 'h:mm:ss tt',
// long date, short time pattern
f: 'dddd, MMMM dd, yyyy h:mm tt',
// long date, long time pattern
F: 'dddd, MMMM dd, yyyy h:mm:ss tt',
// month/day pattern
M: 'MMMM dd',
// month/year pattern
Y: 'yyyy MMMM',
// S is a sortable format that does not vary by culture
S: 'yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss',
// formatting of dates in MySQL DataBases
ISO: 'yyyy-MM-dd hh:mm:ss',
ISO2: 'yyyy-MM-dd HH:mm:ss',
d1: 'dd.MM.yyyy',
d2: 'dd-MM-yyyy',
d3: 'dd-MMMM-yyyy',
d4: 'dd-MM-yy',
d5: 'H:mm',
d6: 'HH:mm',
d7: 'HH:mm tt',
d8: 'dd/MMMM/yyyy',
d9: 'MMMM-dd',
d10: 'MM-dd',
d11: 'MM-dd-yyyy'
},
percentsymbol: '%',
currencysymbol: '$',
currencysymbolposition: 'before',
decimalseparator: '.',
thousandsseparator: ',',
pagergotopagestring: 'Go to page:',
pagershowrowsstring: 'Show rows:',
pagerrangestring: ' of ',
pagerpreviousbuttonstring: 'previous',
pagernextbuttonstring: 'next',
pagerfirstbuttonstring: 'first',
pagerlastbuttonstring: 'last',
groupsheaderstring: 'Drag a column and drop it here to group by that column',
sortascendingstring: 'Sort Ascending',
sortdescendingstring: 'Sort Descending',
sortremovestring: 'Remove Sort',
groupbystring: 'Group By this column',
groupremovestring: 'Remove from groups',
filterclearstring: 'Clear',
filterstring: 'Filter',
filtershowrowstring: 'Show rows where:',
filterorconditionstring: 'Or',
filterandconditionstring: 'And',
filterselectallstring: '(Select All)',
filterchoosestring: 'Please Choose:',
filterstringcomparisonoperators: ['empty', 'not empty', 'enthalten', 'enthalten(match case)',
'does not contain', 'does not contain(match case)', 'starts with', 'starts with(match case)',
'ends with', 'ends with(match case)', 'equal', 'equal(match case)', 'null', 'not null'],
filternumericcomparisonoperators: ['equal', 'not equal', 'less than', 'less than or equal', 'greater than', 'greater than or equal', 'null', 'not null'],
filterdatecomparisonoperators: ['equal', 'not equal', 'less than', 'less than or equal', 'greater than', 'greater than or equal', 'null', 'not null'],
filterbooleancomparisonoperators: ['equal', 'not equal'],
validationstring: 'Entered value is not valid',
emptydatastring: 'No data to display',
filterselectstring: 'Select Filter',
loadtext: 'Loading...',
clearstring: 'Clear',
todaystring: 'Today'
}
break;
}
return localization;
} | 56.711538 | 177 | 0.437267 |
bbe2147cf4d4c66e9b33d1f4faa1522ee623a65c | 5,362 | js | JavaScript | examples/webUtils/framework/server/backing.js | rodrigoaasm/dojot-microservice-sdk-js | 165660c51f4e28945abab29ec36a2be2f70721a1 | [
"Apache-2.0"
] | null | null | null | examples/webUtils/framework/server/backing.js | rodrigoaasm/dojot-microservice-sdk-js | 165660c51f4e28945abab29ec36a2be2f70721a1 | [
"Apache-2.0"
] | null | null | null | examples/webUtils/framework/server/backing.js | rodrigoaasm/dojot-microservice-sdk-js | 165660c51f4e28945abab29ec36a2be2f70721a1 | [
"Apache-2.0"
] | null | null | null | const createError = require('http-errors');
const jwtDecode = require('jwt-decode');
const { WebUtils } = require('@dojot/microservice-sdk');
function createModule(logger) {
// interceptors act on requests independently of the HTTP method,
// it is enough that the request is on the same path in which the
// interceptor is registered...
const interceptors = [
// useful interceptor to generate request IDs
WebUtils.framework.interceptors.requestIdInterceptor(),
// useful interceptor to convert the request body into a json object
WebUtils.framework.interceptors.jsonBodyParsingInterceptor({
config: {
limit: '100kb',
},
}),
// custom interceptor to extract some information from a JWT token
{
name: 'token-parsing-interceptor',
path: '/private',
middleware: (
req, res, next,
) => {
const err = new createError.Unauthorized();
if (req.headers.authorization) {
const authHeader = req.headers.authorization.split(' ');
if (authHeader.length === 2 && authHeader[0] === 'Bearer') {
const token = authHeader[1];
const payload = jwtDecode(token);
if (payload.service) {
req.tenant = payload.service;
return next();
}
}
err.message = 'Invalid JWT token';
return next(err);
}
err.message = 'Missing JWT token';
return next(err);
},
},
];
// The application can have multiple routes to various resources...
const routes = [
{
// The route name is just an identifier for debugging
name: 'simple-route-two-handlers',
// The mount point can be ideal for API versioning
mountPoint: '/api/v1',
// The route path is attached to the mount point
path: '/resource',
// It is possible to have handlers for all types of HTTP verbs
handlers: [
{
// we must define what is the HTTP verb in which the handler will act
method: 'get',
// Finally we define the middleware of Express.js
middleware: [
(req, res) => {
logger.info(`GET - ${req.id} - Connection received. IP:${req.connection.remoteAddress}`);
res.status(200).json({ result: 'GET - OK' });
},
],
},
{
// Another handler that acts on the HTTP verb POST
method: 'post',
middleware: [
// The middleware supports async/await
async (req, res) => {
logger.info(`POST - ${req.id} - Connection received. IP:${req.connection.remoteAddress}. Body:`, req.body);
const json = await Promise.resolve({ result: 'POST - async/await - OK' });
res.status(200).json(json);
},
],
},
],
},
// The route below is mounted on a path monitored by a custom interceptor
{
name: 'custom-intercept-route',
// This mount point matches the path monitored by the 'token-parsing-interceptor'
mountPoint: '/private',
path: '/jwt',
handlers: [
{
method: 'put',
middleware: [
async (req, res) => {
// The interceptor only lets the request reach this point
// if there is a valid 'tenant' in the JWT token, and to complete,
// it defines the 'tenant' in the request object: ${req.tenant}
logger.info(`PUT - ${req.id} - Intercepted tenant: ${req.tenant} - Connection received. IP:${req.connection.remoteAddress}`);
const json = await Promise.resolve({ result: 'PUT - async/await - OK' });
res.status(200).json(json);
},
],
},
],
},
// It is possible to create routes for opening a connection via websockets
// (as long as it is enabled in the creation of Express)
{
name: 'websocket-route',
// As with Express, paths support parameters (:topic)
path: '/topics/:topic',
// It is possible to manipulate the value of the
// parameters before they reach the middleware
params: [{
// This name must match the name defined in the route path
name: 'topic',
// The trigger is fired so that the parameter value
// is treated before invoking the middlewares
trigger: (
req, res, next, value, param,
) => {
req.params[param] = value.toUpperCase();
// It is necessary to call 'next()' to continue the Express flow
next();
},
}],
handlers: {
// The 'ws' method stands for 'websocket' and is an extension added to Express
method: 'ws',
// To handle websockets, we must define only one middleware
middleware: async (ws, req) => {
logger.info(`Websocket - ${req.id} - Connection received. IP:${req.connection.remoteAddress}. URI Param 'topic': ${req.params.topic}`);
ws.on('message', (message) => {
logger.info(`Websocket - ${req.id} - Received message: ${message}`);
ws.send('ho!');
});
ws.send('Websocket - OK');
},
},
},
];
return { interceptors, routes };
}
module.exports = (logger) => createModule(logger);
| 36.47619 | 145 | 0.566953 |